View Single Post
French French's Avatar

JCF Member

Joined: Jul 2013

Posts: 26

French is doing well so far

May 2, 2020, 12:57 PM
French is offline
Unhappy 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.
Attached Images
File Type: png freezing.png (255.4 KB, 0 views)