Posted: Sat Sep 22, 2012 2:08 am Post subject:
The Save Game Bug
Subject description: How to fix it?
For some reason I am unable to load my savegames, they crash the game. I can play for hours and do anything that I want even save, but when I load, I get a "tiberian sun has encountered a internal error" and it crashes.
I heard this is called the dreaded "Save Game Bug," can anyone elaborate on how to fix it? Do I need some bug spray or a really big mallet? _________________ MODDB Profile: http://www.moddb.com/mods/the-second-tiberium-war
Tried quickly looking for the post that had instructions how to fix this but couldn't find it. Maybe it should be in the tutorials forum? Anyway in short: Move all the animations from firestrm.ini to rules.ini. Place them after the TS animations and before your mod's animations.
Start your mod, based on UMP, as this fixes already the animations list problem, by moving all FS stuff to TS (firestrm.ini and artfs.ini are this way not used anymore and can't cause trouble again)
Other than that, there can be several coding issues causing a save game bug. So you should check your inis for mistakes like Infantry with missing art (an infantry without a sequence will cause SGBs as well).
Is there a log where you can find the exact point that the game crashes to determine the line in rules.ini that causes this?
Because ill upload my rules.ini but that would take hours to go through and I aint no coding expert, it's probably is a mess... _________________ MODDB Profile: http://www.moddb.com/mods/the-second-tiberium-war
Is there a log where you can find the exact point that the game crashes to determine the line in rules.ini that causes this?
Not really. If you're using Hyperpatch it might (might; I'm not sure if it's included in the public build) have a feature that writes a debug log, but even then, not everything the game does is logged so even at its best it'd just give you some info with which you could try to make a more accurate guess of the problem's cause. _________________ CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered
Is there a log where you can find the exact point that the game crashes to determine the line in rules.ini that causes this?
Because ill upload my rules.ini but that would take hours to go through and I aint no coding expert, it's probably is a mess...
there is 2 ways to find error quite quick.
1. use Dcoders ini checker (its very fast at finding problems but not animations yo can use it to find which one is having the animation firing before the error)
2 isolate the error. just disable units and infantry untill no error happens. then enable slowly and go through all the code's animations, weapons, projectiles and warheads) _________________ Link to a document to see what mods i have and/or working on or working with
Click QUICK_EDIT
who wrote that ini?
___
[Sniper] doesn't only has unit but also weapon keys.
no wonder it doesn't works if UMAGON uses Weapon=Sniper and you also create an infantry with the ID [Sniper]
___
pretty bad is also using [unitname] and the Image=UNITNAME
forget using constantly the Image key and keep the IDs consistent in the first place
___
having a list with
Code:
[Section]
Key
Key
;comment for next section
Key
Key
[NextSection]
is bad too. Bad to read, bad to check, bad to fix and since TS isn't using the windows user32 function GetPrivateProfileString but something written by WW, it's not entirely sure if such a bad coding doesn't causes other issues.
This makes me believe that not you wrote the ini, but some crappy tool, which obviously inserts errors in the inis without your knowledge.
___
You have an Infantry without a sequence.
PlasmaLegion has no art.ini section
!!! this is definitely one reason for your SGB
__
as said many times before, using space in an ID is bad
[Mutant Warrior] is definitely a bad way to code a unit and surely another reason for SGBs or other unstable functionality
there are surely more bugs, but i stop searching here, because i think it's better you start from scratch again and write this time the inis yourself and not with a bad working tool.
It's also a complete hell to check this ini, since it's so messed up with units, weapons, projectiles etc mixed up and not that well ordered like the original ini. So when you start again, keep the inis well ordered. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Well here's the thing, this mod is my first. I've not modded TS or RA2 before so I am learning as I go. I knew that it was messy and one day it was gonna blow up in my face and It just did. When I started I knew next to nothing about ini editing, so I have been building upon that poorly done work from the beginning. I know what I have to do, remake it all from scratch. I also started before I knew about UMP so that also is a problem . Thanks Lin Kuei Ominae for checking
Quote:
there are surely more bugs, but I stop searching here, because I think it's better you start from scratch again and write this time the inis yourself and not with a bad working tool.
It sucks but thats what i've decided to do, start from scratch. I am going to set up a good naming system and organize into sections. As you can tell I am more on the visual end of modding and not on the programming, guess it's time to change.
The original inis give you already good way to organize them. Units to units, buildings to buildings, weapons to weapons etc.
Only in art.ini i would suggest keeping the building and it's corresponding animations together and not like WW, which used an area for the buildings and another for the animations.
Other than that, the inis are very easy editable and if you use a good text editor like ultraedit or notepad++, it's simple to always keep an overview (good search function, code highlighting, good undo/redo functions etc). _________________ SHP Artist of Twisted Insurrection: Nod buildings
One problem I have when dealing with text editors is eye strain. Is there a text editor that I am able to change the backdrop color from white to a less bright color? I know I could just turn the monitor brightness down but I'd like a alternative means to doing so. _________________ MODDB Profile: http://www.moddb.com/mods/the-second-tiberium-war
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum