Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Other Apogee/3D Realms Games > Rise of the Triad (1995) Source Code
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 02-18-2004, 10:02 AM   #1
0marTheZealot
 
Save Game fix?
Is there any way to fix the save game bugs (it crashes whenever you try to load games) under rott32? or do I have to devote a whole day to beat this game?
0marTheZealot is offline  
Old 02-18-2004, 06:43 PM   #2
jbailey

jbailey's Avatar
Re: Save Game fix?
Hello,
The code listed below was originally for a fix related to saving a game, then reloading the save game and all of the windows were broken, I'm not sure this will help you, but here is the code:


#358099 Re: Saving shatters all windows...
06/21/03 06:46 PM

Fixed!

It was indeed a problem specific to big endian machines. I'll save you the details and just post the fixed piece of code from LoadMaskedWalls() in rt_door.c, the comments speak for themselves:

code:

for (i=0;i<maskednum;i++)
{
// Yet another endianness problem: the flags are stored in different byte
// order depending on the platform. This is bad, but I guess not many people
// will exchange game files anyway.
// Worse is that the original code here checked for the first byte of each
// flag, which only makes sense on little endian platforms. This can be
// fixed elegantly by using bit masks.
word flags; // used to be a byte

mw=maskobjlist[i];
size=sizeof(mw->flags);
memcpy(&flags,bufptr,size);
bufptr+=size;
if ((flags&0x00FF)!=(mw->flags&0x00FF)) // only check the 8 LSBs.
UpdateMaskedWall(i);
if (mw->flags&MW_SWITCHON)
mw->toptexture--;
}

This also fixes a dirty practice in the original code: a char was declared but then an int was memcopy'd into it.

Just insert the above code and re-compile and give it a try!

Hope this fixes your problem....

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 02-20-2004, 07:02 AM   #3
Atum Ra
Re: Save Game fix?
Where exactly do i put that code and how do i 're-compile'
Im not a coder at all an its all alien to me
All i want to do is be able to load my save games with out the game crashing too!!!!
__________________
First One To Find Dopefish Gets A Chew Toy!!!!!
Atum Ra is offline  
Old 02-21-2004, 07:45 AM   #4
jbailey

jbailey's Avatar
Re: Save Game fix?
Hello,
If you don't know how to recompile the rott executable at all, then the code listed is useless to you. Other things you could try would be to check your configuration settings, make sure everything in your config file is correct for your setup. If this fails to yield any results, you might have to play the game with a diffrent version of the executable. You can look on www.icculus.org and click on the rott link there if you haven't already tried that.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
Old 03-05-2004, 08:36 PM   #5
0marTheZealot
 
Re: Save Game fix?
so outside of coding there is no real way to do this....
0marTheZealot is offline  
Old 03-06-2004, 09:17 AM   #6
jbailey

jbailey's Avatar
Re: Save Game fix?
If I understood your problem properly, then in my opinion no, there is no way to correct your problem with your current version of the executable you are running. The problem is in the source code that your executable was compiled from. That being the case, your only other option is to use a different version of the executable, as I mentioned in my last message, you can try the icculus version of the rott executable and see if that fixes your problem, you can download it at http://www.icculus.org and scroll down the page a bit and click on the rott link listed there. If you have already checked your configuration settings and they seem fine, then this is about your only other option that I know of at least. If you would like to learn how to re-compile your own executable, let me know and I'll help you out with that...
Also note that if you try a different version of the executable, then all of your current save games will more than likely be incompatable and won't load.

jbailey
__________________
Download Winrott here:

http://www.riseofthetriad.dk/DL_GlROTT.htm

jbailey
jbailey is offline  
 

Bookmarks

Tags
rott, saved game

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:01 PM.

Page generated in 0.11599493 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.