![]() |
Freezing with long filename on command line
1 Attachment(s)
Yet another f***ing bug.
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:
I hope this helps. ;) |
Yeah, this is an annoying one. :( JJ2 stores (most? all?) strings in fixed-length character buffers, which mostly cap out at 32 or 64 characters. People tend to keep JJ2 close to the root to limit the issue, e.g. C:\Games\Jazz2 or D:\Games\Jazz2. I made some progress at fixing this a while back, but it involves finding every reference to the strings anywhere in the game and replacing all of them, and I never finished the job... thanks for the reminder.
|
Okay. But how do you explain that JJ2+ now needs a shorter filepath?
BTW, it seems not to work if the filepath contains spaces and is contained in a single argument, i.e. it is put between quotes on the command line. You must omit the quotes. It is very weird. I have no idea about how it is possible. (It is not new to JJ2+.) So JJ2 vanilla used C-style strings and you try to use C++ ones instead, this is the idea? |
Right, C vs. C++ strings. The code in question is very old and I didn't write any of it, so I can't comment on how or why it differs from vanilla JJ2 on this front.
|
Fix will be available in 5.10.
|
| All times are GMT -8. The time now is 04:20 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online