|
Cube & Cube 2 FORUM
|
Nasty bug - close to tracking it down |
by thirdrock
on 05/08/2004 10:36, 3 messages, last message: 05/09/2004 10:42, 837 views, last view: 04/28/2024 14:32 |
|
Hello,
Not sure if this is the right place to post bug reports but I couldn't find anywhere else . Anyway ....
If you load a quicksave game and then die, something goes wrong in function "loadgamerest" and you get the error message "savefile game corrupt" from the gzcheck function.
I spent about four hours on this bug today and as far as I can tell it had something to do with the variable gzFile f being declared multiple times at both the global and local level, but I am not 100% sure that this is the problem.
I am using NT4 sp6 and VC6. I had to make two changes to get cube to compile under VC6, something about the compiler complaining about "void function can't return a value", but apart from that, it compiles and runs fine.
I think when it gets to the loadgamerest function, f should be NULL, but it isn't because of the scope ambiguity. I remember having a problem like this before with VC6.
Anyway, if this is not clear, feel free to e-mail me.
Ian
|
|
Board Index
|
|
#1: .. |
by Aardappel
on 05/08/2004 21:28
|
|
I am pretty sure I fixed this bug for the new release. at least on my machine the sequence: start sp map -> quicksave -> quickload -> die, does not cause a crash.
reply to this message
|
|
#2: Which release? |
by thirdrock
on 05/09/2004 10:28
|
|
I thought I had the latest release, which release do you mean?
Also, I noticed there is no CVS on the sourceforge site, how often is cube released?
Thanks,
Ian
reply to this message
|
|
#3: Re: Which release? |
by Aardappel
on 05/09/2004 10:42, refers to #2
|
|
the upcoming release... its not out yet. and no, cube is not under CVS.
reply to this message
|
|
|
Board Index
|
|
Unvalidated accounts can only reply to the 'Permanent Threads' section!
|
|
|
|
|