May 2, 2020, 12:57 PM | |
Freezing with long filename on command line
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. |
May 2, 2020, 05:24 PM | |
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.
|
May 3, 2020, 03:37 PM | |
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? Last edited by French; May 3, 2020 at 03:37 PM. Reason: Typo |
May 3, 2020, 05:04 PM | |
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.
|
Aug 19, 2022, 08:11 PM | |
Fix will be available in 5.10.
|
«
Previous Thread
|
Next Thread
»
Thread Tools | |
|
|
All times are GMT -8. The time now is 03:03 PM.
Jazz2Online © 1999-INFINITY (Site Credits). Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats. Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Original site design by Ovi Demetrian. DrJones is the puppet master. Eat your lima beans, Johnny.