Freezing with long filename on command line
Yet another f***ing bug.
- If I run JJ2+ with a file path with more than 62 characters, it freezes (i.e. stops responding) when loading the level.
- With JJ2 vanilla, I can get it work with a path length up to 128 characters (might be less if the tileset filename is longer than the level filename). When exceeding this limit, JJ2+ crashes the same way as JJ2 vanilla, i.e. with a fatal application error. (Uh, actually vanilla may crash with an access violation error instead, but not JJ2+… Never mind.)
62 characters is a bit short for me, you know, as my JJ2 folder is a subsubfolder of the ‘Program Files (x86)’ folder on my main disk partition. Then ‘Save & Run’ from JCS triggers the bug.
From Windows cmd, with my JJ2+ folder as working directory: - this works:
Code:
Jazz2.exe .\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Easter1.j2l
- this makes the game freeze (just one backslash more):
Code:
Jazz2.exe .\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\Easter1.j2l
I hope this helps.
|