Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Garmine

Pages: [1]
1
Modding / File miscapitalization detector -- cross platform mods FTW
« on: December 08, 2015, 04:23:30 AM »
Hi!

TL;DR : I'm working on a file capitaliztaion VS file reference capitalization checker tool. Where should I look for a mod's stored references (e.g. filename strings in code) to compare them to the actual filename recorded on the file system?

---

Every time I try to play StarSector with many mods I spend a few hours just debugging case mismatches between the file system and the mods' code - e.g. "starsector/mods/mod/somedir/image.PNG" referenced as "somedir/iMage.png". This is not a problem on any Windows as the OS ignores file case BUT NTFS does store filename entires with case. Thus the mods' uploaded zip archives contain the file path+name and the reference with different cases. Linux and UNIXes are on the other hand do not ignore case mismatches causing a few errors during startup.

As I see many modders use Windows and many mods/Linux users suffer from the above issue.

I'd like to implement a tool (in Java with both a GUI and CLI) to automatically check for these issues before running Starsector and waiting for long long times between each detected mismatch. So far I have seen mismatches on image files and maybe even on a .java source file. Where shall I look for these files/which files can be affected by this and where shall I look for references to these files?

@Alex : maybe enforcing case matches in StarSector file access routines OR including some checking+warning toggleable dev tool would help a lot to Linux folks like myself in the future :)

I might be wrong on that Java is capable to read back the file name case-correctly, in which case I'm sorry for the technical inaccuracy in my post! (And am gonna use C++ in my project in this case.)

Also sorry for not RTFMing, but as this is quite a meta-modding question I think it'll be faster and more accurate to rely on modders' experiences regarding this.

Thank you for the help in advance!

Regards,
Garmine

Pages: [1]