Code: Select all
Invalid data encountered for texture :sprites/.ds_store
Moderator: GZDoom Developers
Code: Select all
Invalid data encountered for texture :sprites/.ds_store
Was about to go into angry mode since I actually do run some mods cloned from Git (if anything more mods need to use this sort of version control) but thankfully noticed the second sentence in time. Anyway the easiest would probably just to be ignoring unknown extensions and .hidden files if anything.Rachael wrote:How about this, instead:
If GZDoom detects these blacklisted folders in a folder, it simply ignores them.
If it detects it in a .zip or .7z that it is loading, it will halt the load for 4 seconds with a big obvious orange message that says "Remove your .DS_Store/.git/Thumbs.db using your archive manager for this_archive.pk3!" and then proceed to ignore said file.
Do we already have similar workflow for other warnings or errors? I'm not aware of it. If we don't have it indeed, what's the point of inventing such thing for this particular case? Is it so common to be handled exclusively?Rachael wrote:it will halt the load for 4 seconds with a big obvious orange message that says "Remove your .DS_Store/.git/Thumbs.db using your archive manager for this_archive.pk3!" and then proceed to ignore said file.
Certainly it's not the easiest and in fact this is wrong. zscript.exe and decorate.dll must and will be parsed accordingly because their lump/short names are ZSCRIPT and DECORATE. Same logic applies for many other special lumps.fakemai wrote:the easiest would probably just to be ignoring unknown extensions
This is also questionable. I see no reason why arbitrary dotfile should be ignored. Are you 100% sure that no one uses them already?fakemai wrote:and .hidden files if anything.
The reason why I thought of that was I was trying to guess why Graf thought it was a bad idea to completely ignore it when not for folders. In terms of mod development - such a warning would be handy before you "go gold" with your mod to alert you there's some stuff you need to trim out to not only save download/upload space but also to protect your own confidentiality in terms of workflow, in case of things like accidentally putting a private photo in the folder that you don't want others to have thumbnail access to._mental_ wrote:Do we already have similar workflow for other warnings or errors? I'm not aware of it. If we don't have it indeed, what's the point of inventing such thing for this particular case? Is it so common to be handled exclusively?
I definitely remember being bothered that the Git repo for Aetherius was tracking Thumbs.db files. Can't find any other examples of those in my mod collection though, surprisingly. EDIT: Correction, Project Brutality has one too at least for its Git repository. Can't speak for its normal version._mental_ wrote:Do we already have similar workflow for other warnings or errors? I'm not aware of it. If we don't have it indeed, what's the point of inventing such thing for this particular case? Is it so common to be handled exclusively?
Didn't know that about those two, but no on reconsideration you'd probably end up needing to make a list of valid extensions, which would be longer than a list of common problem filenames._mental_ wrote:Certainly it's not the easiest and in fact this is wrong. zscript.exe and decorate.dll must and will be parsed accordingly because their lump/short names are ZSCRIPT and DECORATE. Same logic applies for many other special lumps.
Of the mods I have there was only a single one in Lithium and said file seems to be dummied out from actual use. I'm mostly just throwing the idea out there though if you want to consider making it stricter and it's possible to do without breaking anything. If necessary though filtering out .git and the like would be sensible._mental_ wrote:This is also questionable. I see no reason why arbitrary dotfile should be ignored. Are you 100% sure that no one uses them already?
Git can exclude certain files from being tracked, that's the purpose of the .gitignore list.fakemai wrote:I definitely remember being bothered that the Git repo for Aetherius was tracking Thumbs.db files.
Yeah, and there's a pretty helpful template for some of the common Windows ones here.Gez wrote:Git can exclude certain files from being tracked, that's the purpose of the .gitignore list.fakemai wrote:I definitely remember being bothered that the Git repo for Aetherius was tracking Thumbs.db files.
Different VCS? Because you can outright purge files from the history with Git, and amusingly, there's an unofficial tool "BFG" to simplify the process.Graf Zahl wrote:And yet, you encounter countless of repos that indiscriminately track internal compiler files and other sorts of garbage