CariElf CariElf

*Unofficial* Test Build to address 1.1 Memory/Save Game/Crash issues

*Unofficial* Test Build to address 1.1 Memory/Save Game/Crash issues

If you have Windows 2000 or XP you can try this UNOFFICIAL test exe. I will be updating this link periodically until we get the official update out.  I'm using an newer version of the DirectX SDK on my computer than the one that Brad uses to create the offical builds, and the version I'm using is not supported on Win 98/ME.

Before extracting the contents of the zip file to your GalCiv2 install folder, backup your GalCiv2.exe and Lib3D.dll and your save games, just in case. 

http://sd.stardock.com/carielf/gc2/GalCiv2MemTestWinXP13.zip

If you get an error about missing D3DX9_28.dll, here is a link to that file in a zip, which can be extracted to your GalCiv2 directory:

http://sd.stardock.com/carielf/d3dx928.zip

This test file is meant to

1) fix crash when loading save games

2) reduce save/load times (may only be slight difference)

3) make it less likely to crash while saving.

4) This version attempts to abort saving rather than just crashing when it runs out of memory while saving.  However, it is still possible to max out your memory so badly that the game will crash even if you're not saving.

5) You may get a few missing strings because I'm not including any data files with the exe. 

6) If anyone has been having the bug where the Metaverse submit dialog does not pop up at the end of a game, please let me know if you have that problem with this build, as I may have fixed this problem.

7) I took out some unused debugging code that may have caused slowdowns.

8) Fixed a random crash when you or the AI would colonize a planet whose surface had not been initialized.

9) Build 10 has the changes to the combat reverted back to the old system.

10) We also fixed a bug in the planet surface code caused by a timing issue; if you colonized the planet before it was initialized, it would fail to create the initial colony and then crash.

11) I fixed a few bugs in our resource manager.

12) Reverted the code that calculated the total number of stars  (based on the number of sectors) to the version in 1.0X2.  This will also affect the number of planets.  This should save a lot of memory and increase performance. 

In task manager on the process tab, select View and then Select Columns.  Add the column Virtual Memory Size.  That way, you can see how much RAM GC2 is using and how much Virtual Memory.

I think that the latest change (less stars and planets) will be enough for an update to 1.1, but we did find other areas where we can decrease memory and/or increase performance that we can try to get into 1.2.

Please report here with results on if your problems were solved, if there are new bugs, etc.  If you've been playing with simpler ship designs, turning down the stars, etc, feel free to turn everything up again to abuse the test exe.

 

73,835 views 111 replies
Reply #101 Top
Killzone did you email the SmartException report off to gc2bugs@stardock.com as has been asked for all memory crashes??
Reply #102 Top

To anybody that is still having memory issues, or having a weird crash when exiting the game, I have a few questions...

1.) Were you able to properly save games using your current settings in version 1.0x (or, even better, in pre-final 1.1 builds)?

2.) Is everone getting crashes only on save, or are these also happening during gameplay?

We have a smartException from a player that got the memory crash on a 2 gig computer, which is frustrating since we've been able to play a Gigantic game on our low-end 256meg rig. We have a few more things to try out, but if all player could let us know about 1. and 2, it's be much appreciated!

Thanks!

edit: Also, make sure, when youre testing these builds, that you're starting a new game. The major issue was the number of stars being generated and, if you're loading a saved game, it'll most likely have all those extra stars in it (and thus, you'll continue to crash). Thanks again for everyones help!

Reply #103 Top
Please note:

When testing Build 13, you will need to start a new game. Loading a saved game will still encounter the same memory problems.
Reply #104 Top
Too slow, jesse, too slow
Reply #105 Top
When I purchased the game I immediately patched , was the 2nd patch released I think. Played a few games with a huge galaxay, abundant everything without crashes. The problems began when I tried playing gigantic galaxy-abundant everything. The game ran well upto around several game years into the game, then the crashes came.

With previous patches the game crashed at various times, during saving (often obliterating the saved game as well)or when ships were completing autopliot routes - these were different crashes to what is being experienced now, typically the screen would totally freeze. I should also mention here that when loading a saved game with these galaxies (regardless of patches), the load times were 10 minutes.

Later patches saw the the crashes occur only when saving, with an out of memory error. Turned off autosave, defragged drive, reinstalled game, turned down all the visuals, tried various virtual memeory settings..but nothing worked. Occasionally you could save the game without crashing but eventually it would crash during saving with an out of memory error, which is a bit weird (bear with me I have limited computer acumen) as according to that last debug report only a fraction of my virtual memory pagefile (current setting 2GB min - 4GB max) had been used.

Trying to play the game without saving at all didnt work either, I could play for say 10-20 turns and then it just CTD.
Reply #106 Top
I'll probably have to retake those last few planets. It was so late, er, early, I had to get some sleep. ha.
It's a 388kb debug file, so I snipped the middle most out. Ran fine up until it kicked me out to the desktop as it finished this autosave.


Boy, those Klingon ships sure look good in battle...


Debug Message: Version v1.1 Memory Issue test 13 last updated on: Sat May 6 19:55:01 2006
Debug Message: *********DXDiag info follows.*********
System Info
Time: 5/8/2006, 02:37:16
DirectX Version: DirectX 9.0c (4.09.0000.0904)
Machine Name: MOOSE2
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_gdr.050301-1519)
Languages: English (Regional Setting: English)
System Manufacturer: n/a
System Model: n/a
BIOS: n/a
Processor: Intel(R) Pentium(R) D CPU 2.80GHz (2 CPUs)
Physical Memory: 3070MB RAM
Page File: 358MB used, 3318MB available
Windows Dir: C:\WINDOWS


Display Info
Display device 1:
Device Name: \\.\DISPLAY1
Card Name: NVIDIA GeForce 6800 GS
Manufacturer: NVIDIA
Chip Type: GeForce 6800 GS
DAC Type: Integrated RAMDAC
Key Device: Enum\PCI\VEN_10DE&DEV_00C0&SUBSYS_C3893842&REV_A2
Display Memory: 256.0 MB
Current Display Mode: 1280 x 1024 (32 bit) (75Hz)
Monitor Name: Default Monitor
Monitor Max Resolution:
Driver Name: nv4_disp.dll
Driver Version: 6.14.0010.8198
Driver Date: 12/10/2005 04:06:00
DirectX Acceleration Enabled: Yes

Display device 2:
Device Name: \\.\DISPLAY2
Card Name: NVIDIA GeForce 6800 GS
Manufacturer: NVIDIA
Chip Type: GeForce 6800 GS
DAC Type: Integrated RAMDAC
Key Device: Enum\PCI\VEN_10DE&DEV_00C0&SUBSYS_C3893842&REV_A2
Display Memory: 256.0 MB
Current Display Mode: 1024 x 768 (32 bit) (60Hz)
Monitor Name: Default Monitor
Monitor Max Resolution:
Driver Name: nv4_disp.dll
Driver Version: 6.14.0010.8198
Driver Date: 12/10/2005 04:06:00
DirectX Acceleration Enabled: Yes



Sound info
Sound device 1:
Description: SB Audigy 4 [DE00]
Default Sound Playback: Yes
Default Voice Playback: Yes
Hardware ID: PCI\VEN_1102&DEV_0008&SUBSYS_10211102&REV_00
Manufacturer ID: 1
Product ID: 100
Driver Name: ctaud2k.sys
Provider: Creative
Driver Version: 5.12.0001.1164
Driver Date: 12/8/2005 11:55:46
Type: WDM
Other Drivers:
Acceleration Level: 3
Cap Flags: 0
Min/Max Sample Rate: 0, 0



Debug Message: *********END dxdiag info.*********
Debug Message: Entering WinMain
Debug Message: ******* Starting Game Shell *******
Debug Message: Going Fullscreen
Debug Message: Preparing to change display settings.
Debug Message: Using multilsample setting: D3DMULTISAMPLE_2_SAMPLES
Debug Message: Game Resolution: 1280 x 1024
Debug Message: Running fullscreen.
Debug Message: HAL (hw vp): NVIDIA GeForce 6800 GS
Debug Message: D3DPRESENT_INTERVAL_DEFAULT
Debug Message: Refresh rate: 75
Debug Message: Bit Depth: 32 bit.
Debug Message: *********Checking D3DDevice Caps***********************
Debug Message: A full-color cursor is supported in hardware at high resolution modes.
Debug Message: RGB in format 6:6:6, Masks reported as ff0000:ff00:ff
Debug Message: Now Fullscreen
Debug Message: Shell initialization complete
Debug Message: ***** Initializing Game *****
Debug Message: Timer Frequency is 0 a6f14630
Debug Message: Initializing sound card.
Debug Message: initailizing bink
Debug Message: No string tables in C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods/*.str
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Gfx\*.png
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Gfx\Race\*.png
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\sfx\*.wav
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Music\*.mp3
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Event Music\*.mp3
Debug Message: Create setup screens.
Debug Message: Clear galaxy settings.
Debug Message: Clear influence.
Debug Message: Clear up laws.
Debug Message: Clear first time events.
Debug Message: Clear wonders and trade goods.
Debug Message: Clear sector mapper.
Debug Message: * Collectors Edition *
Debug Message: Set mouse.
Debug Message: Set update timer.
Debug Message: Clear data definitions.
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\Techs\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\ShipComponents\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\ShipDefs\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\PlanetImprovements\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\TerrainColorSchemes\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\PlanetDescriptions\*.xml
*DEBUG ERROR: ***Unable to find required tech ImpossibleTech for PirateShip. ***
Debug Message: Found existing ship type with class name: Ranger
*DEBUG ERROR: ***Unable to find required tech ImpossibleTech for Starbase. ***
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\ships\*.shipclass
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\Anomalies\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\Events\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\UPIssues\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\Invasion\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\PoliticalParties\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\StarTypes\*.xml
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\StarbaseModules\*.xml
Debug Message: Reading Star Names
Debug Message: Reading Star Names... Done
Debug Message: GalaxyWnd: Cannot find OBJID Scenario_CPU_Option_Title
Debug Message: GalaxyWnd: Cannot find OBJID Scenario_CPU_Option_Checkbox
Debug Message: Error. String Not Found. Table: GalaxyWnd String Name: AllowCPUIntensiveAlgorithms
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\CustomMaps\*.gc2map
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\Data\Scenarios\*.gc2scenario
Debug Message: CustomRaceWnd: Cannot find OBJID CustomRace_Description_Text
Debug Message: CustomRaceWnd: Cannot find OBJID CustomRace_Tab_Homeworld
Debug Message: Creating Galaxy
Debug Message: Killing threads.
Debug Message: Kiling civs.
Debug Message: Killing ships.
Debug Message: Killing rallypoints.
Debug Message: Killing misc objects.
Debug Message: Killing stars.
Debug Message: Killing anomalies.
Debug Message: Killing space resources.
Debug Message: Killing colonies and planets.
Debug Message: killing scenario.
Debug Message: Clear galaxy settings.
Debug Message: Clear influence.
Debug Message: Clear up laws.
Debug Message: Clear first time events.
Debug Message: Clear wonders and trade goods.
Debug Message: Clear sector mapper.
Debug Message: Galaxy Size Set: 12 x 12
Debug Message: Creating Random Map
Debug Message: Creating Random Map... Stars
Debug Message: Number of Unplaced Stars: 1.
Debug Message: Creating Random Map... Planets
Debug Message: Creating Random Map... Anomalies
Debug Message: Num Anomalies: 217
Debug Message: Creating Random Map... Resources
Debug Message: Creating Random Map... Done
Debug Message: Setting Game Options
Debug Message: Creating Civs
Debug Message: Terran Alliance: Intellence -> 128
Debug Message: Drengin Empire: Intellence -> 128
Debug Message: Altarian Republic: Intellence -> 128
Debug Message: Arcean Empire: Intellence -> 128
Debug Message: Dominion of Korx: Intellence -> 128
Debug Message: Iconian Refuge: Intellence -> 128
Debug Message: Creating Civs... Done
Debug Message: Updating ZOC.
Debug Message: Updating ZOC.
Debug Message: Galaxy Create... Done
Debug Message: UIBeginGame called with g_ulLocalPlayerID = 10


***snip***


Debug Message: Random Event: End
Debug Message: Drengin Empire (1): Researching: Deflectors
Debug Message: Dominion of Korx (6): Researching: Titanium Armor III
Debug Message: BuildShip: Cannot build ship type 14-Frigate M4-1 at Jessuins I - No open slots
Debug Message: Cannot find texture
Debug Message: Cannot find texture
Debug Message: Destroying ship Fast Troop 2922. Orbiting: 0
Debug Message: Destroying ship Fast Troop 2921. Orbiting: 0
Debug Message: Destroying ship Fast Troop 2920. Orbiting: 0
Debug Message: Destroying ship Fast Troop 2919. Orbiting: 0
Debug Message: Destroying ship Meese Fleet 182. Orbiting: 0
Debug Message: Our agents have just notified us that they have stolen information relating to the technology Habitat Improvement from the Drengin Empire. The information will be in the hands of our scientists and engineers before the end of the day, so that we may begin to utilize this information immediately.
Debug Message: Updating ZOC.
Debug Message: Destroying ship Drengin Troop Transport M3-1 2924. Orbiting: 1
Debug Message: Was Orbiting: Anderson I
Debug Message: Destroying ship Drengin Troop Transport M3-1 2924. Orbiting: 0
Debug Message: Destroying ship Iconian Troop Transport M0-12 548. Orbiting: 1
Debug Message: Was Orbiting: Sitlet I
Debug Message: Destroying ship Arcean Constructor M4-1 2788. Orbiting: 0
Debug Message: Destroying ship Korx Constructor M3-1 2877. Orbiting: 0
Debug Message: Random Event: Begin
Debug Message: Random Event: End
Debug Message: Deleting previous save game.
Debug Message: About to auto save.
Debug Message: Save Game: About to save
Debug Message: Saving game C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\AutoSave.sav
Debug Message: Num Sectors Across: 12
Debug Message: Max num techs: 248
Debug Message: Total tech data size: 147783 Max tech size: 1891
Debug Message: Total improvement db size: 62750
Debug Message: Component defs data size: 213107
Debug Message: Total ship class data size: 195223 Max ship class data size: 952
Debug Message: No files found matching mask C:\Documents and Settings\Duane\My Documents\My Games\GalCiv2\Mods\s*_UD_*.shipcfg
Debug Message: Total Ship config data size: 384908 Max ship config data size: 23794
Debug Message: Total anomaly types data: 17300, Max anomaly type size: 692
Debug Message: Total random event data size: 31840 Max random event size: 1276
Debug Message: Total UP issue data size: 236940 Max UP issue size: 7180
Debug Message: Total resource type data size: 1600 Max resource type data size: 332
Debug Message: Total invasion tatic data size: 2790 Max invasion tactic data size: 476
Debug Message: Total starbase module data size: 311168 Max starbase module size: 3536
Debug Message: Total political party data size: 13576 Max political party size: 1697
Debug Message: Total planet types data size: 0 Max planet type size: 0
Debug Message: Total star type data size: 6896 Max star type size: 862
Debug Message: Game Object data: 16
Debug Message: Galaxy data: 15114
Debug Message: FOW data: 388784
Debug Message: ZOC data: 1508
Debug Message: Total Planet data size: 519168 Max Planet data size: 6145
Debug Message: Total Star data size: 54696 Max Star data size: 424
Debug Message: Total Anomaly data size: 0 Max Anomaly data size: 0
Debug Message: Total Space resource data size: 6040 Max space resource data size: 302
Debug Message: Total Civilization data size: 914514 Max Civ data size: 141787
Debug Message: Total Colony data size: 17550 Max colony data size: 270
Debug Message: Total Rally point data size: 11622 Max Rallypoint data size: 298
Debug Message: Total Ship data size: 377412 Max Ship Data size: 1536
Debug Message: Total Fleet data size: 757848 Max Fleet Data size: 20644
Debug Message: Save game finished.
Debug Message: Finished auto save.
Reply #107 Top
Oh, by the way. There was no problem doing Control-N's, I had done probably 6-8 of them beginning this game.
This version seems very stable on my machine.
I can't seem to get SmartException to work - it always errors out when making the zip file. I did save the Autosave game and debug,err, though, in case you want me to sent those to you.

Right now, it is time to go finish off those darn Drengin's and see who else wants to mess with the Meese.
Time to Die, says the Drengi. Ya, right...
He musta been looking in a mirror when he said that.
Reply #108 Top

edit: Also, make sure, when youre testing these builds, that you're starting a new game. The major issue was the number of stars being generated and, if you're loading a saved game, it'll most likely have all those extra stars in it (and thus, you'll continue to crash). Thanks again for everyones help!


I was using a saved game from before Build 13, so that would explain the crashes. I'll start a new game and see how it's like.
Reply #109 Top
I can't seem to get SmartException to work - it always errors out when making the zip file


To get the program to work you need to close it and then restart it from the START menu, not SDC I had the same issue and this resolved it for me..
Reply #110 Top
To get the program to work you need to close it and then restart it from the START menu, not SDC I had the same issue and this resolved it for me..


Tried that. Didn't work for me.
Tried not loading it at boot time, and starting it from the Start menu, didn't work that way either.
Tried uninstalling and reinstalling it. Didn't work.

Doesn't work for me for some reason, but I am not having all the problems with the game either.
I can save in about a second, reload a saved game in less than a minute, and have very, very few crashes.
So, not really a big deal as far as I'm concerned.
Reply #111 Top
Ok. NP

I forgot to mention that i had to uninstall it and then reinstall it again first Sorry.
Just remember to say no to the initial run fro SDC...