 |
|
Fromafar
|
|
quote: Originally posted by mog
if you load this save game and press next turn button, the game crashed. |
When I load this save game, I get an error message: "Unable to locate the scenario that created this game. Looking for: Welt."
Is this just the German version of the Activision WorldMaps scenario, or is it a personal modification?
Could you post the contents of your the Scenarios\Welt directory tree?
|
|
|  |
 |
|
Fromafar
|
|
Apparently the recent changes are not stable enough. I too, am getting all kinds of crashes - mostly failing memory allocations (i.e. new fails). I am going to rollback to a more stable version, and reinsert the modifications one by one to find out what the problems are.
One obvious problem is the increase of the number of sprites from 200 to 500. The code in UnitActor::Serialize expects a uint8 sprite index, so anything over 255 may have unexpected results.
|
|
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:36
|
|
quote: Originally posted by Fromafar
Apparently the recent changes are not stable enough. I too, am getting all kinds of crashes - mostly failing memory allocations (i.e. new fails). I am going to rollback to a more stable version, and reinsert the modifications one by one to find out what the problems are. |
How far do you want to go back? One thing was the status bar issure, that should be now ok. I don't think that calvitex lastest source modifications are a problem either, as I playered the game whose quicksave I attached without these modifications about the AI.
The modification of the dbgen\MemberClass.cpp could be a source of the problem even if it is not very likely, as I just have copied and pasted some code from the main record generator. The Record classes themselves shouldn't be a problem as they are generated automaticly. So only the member class part can here the problem if at all.
UnitActor.cpp might be another source, in addition to the problem below in it, but I added default values to the new fields in AgeCityStyleDB. So this is also less likely. And also the changes in greatlibrary.cpp as they just increase the size of an array shouldn't be the problem, agesscreen.cpp and gameselectwindow.cpp are used when MP games are setup. So that wouldn't be the first place either I would look for. scenarioeditor.cpp also just contains some additional code that exists in another form in the same file. Not an candiate on my list either.
quote: Originally posted by Fromafar
One obvious problem is the increase of the number of sprites from 200 to 500. The code in UnitActor::Serialize expects a uint8 sprite index, so anything over 255 may have unexpected results. |
That is something odd, m_spriteID is a long but it is saved as unsigned but is saved as unsigned char. Fixing this and allowing us to use an higher sprite limit then 255 means changing the save game format. If we have to do this we should discuss first what we should also include in a new save game format, we need something so that the game remembers whether the Cheat Editor was used and maybe we need something else.
-Martin
|
|
|  |
 |
|
Fromafar
|
|
Better testing revealed even more errors. Strangely enough, with the debug version there were no problems at all. But when playing with a release version, just starting a game could generate a crash.
The following version has the changes of the previous post, Martin's 2004.09.04.dotnetleftover changes, and my 2004.09.07.newgame changes.
Fixed: crashes when starting a new game
Fixed: crashes with illegal units
Fixed: crashes with missing diplomat pictures
Fixed: always display the newest message
Added: option to display the newest message at the top
Fixed: crashes when loading mod files
Fixed: assignment of civilisations at the start of the game
Added: option to define icons in citystyle.txt
Fixed: user profile settings are used for MP games
Fixed: memory leaks (status bar, starting a new game)
ctp2_program\ctp\ctp2.exe
ctp2_program\ctp\ctp2.map
[Edit: links removed. Newer version available.]
Last edited by Fromafar on 30-09-2004 at 02:30
|
|
|  |
 |
|
J Bytheway
|
 |
England
Jul 2001 time: 05:36
|
|
I was a little puzzled by that date - I noticed it just now and assumed it was just a wrong filename. I'll go get the new one.
Last edited by J Bytheway on 15-09-2004 at 00:51
|
|
|  |
All times are GMT. The time now is 05:36. Apolyton Time is 00:36. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|