Problem saving with Star Trek mod

Hello,

I recently downloaded and installed galciv2: ultimate edition, and immediately downloaded and installed the star trek vs star wars mod.  The first time I tried to play, I set it to Milky Way map, and the game started with me as the federation, but no other races that I had picked.  All the races were regular galciv2 races.

So this time I started playing, and chose the immense map size.  All was going fine for a while, I even managed to save quite a few times.  But then, I got to a point where any time I tried to save, the game would freeze.  I hit Alt+Ctrl+Del, and there was an error message, so I pulled that up, and the error message said "Not enough memory".  That seems very strange to me as this computer has 638 GB of free memory.  And the game was able to save prior to this point. 

Anyone know what's going on here?  I dled the ultimate edition just to be able to play the star trek mod, so it would be pretty lame if I couldn't...

I haven't even tried the game without the mod.  Should I do that to see if it freezes upon saving, or would this be a mod problem?

I've got the mod, plus all the packs up to 14.

10,936 views 14 replies
Reply #1 Top

638 GB of free memory?

You do realize that the 'memory' the game is referring to is RAM, right? Not hard drive space.

Apples and oranges.

Reply #2 Top

You could call me computer illiterate, and that would be an understatement.  I would have to check my computer, but I think it's got 4 GB Ram...or somewhere I read 4096 MB.  Either way, the computer is brand new, and this is the first game I installed, so I really don't think there should be any memory issues with saving any game.

Has anyone had this happen, or does anyone have a possible solution?

Reply #3 Top

Sorry, I should say, the error message I got was "Out of memory".  This just doesn't make any sense...

Is this a software or hardware problem? 

Reply #4 Top

Software. You have plenty of RAM, but as the game is 32-bit it can only use up to 2GB.

The largest galaxy sizes can eat a lot of RAM, especially if you also include many civs. It'll get to the point that the game is using so much there is not enough left to save the game.

Also, mods like ST have some nice ship designs which also use a lot of RAM once they are loaded into memory - which happens the first time you go into the ship buildier in each session. The more hulls you have, the more RAM it uses. I have added so many hulls that they were unable to all load, so I had to weed some out.

One thing that might help is to reduce the background star and nebula density settings in Options - Interface. Set nebula to 1, and only a few hundred for stars.

And always save your game often, especially during a war if you are destroying a lot of ships and/or invading a lot of planets. Do too much in any one turn and the game will explode with that OOM issue. I always save with one unique file name per game (and I save / overwrite the file every so often, and sometimes several times during a single turn if I am doing a lot), and have my autosave set to 3. That way I'll always have at least 1, and as many as 3, backups to fall back on.

Reply #5 Top

hmm, interesting.

I switched the size down from the largest to the next largest, and cut out 2 civs for my second game, and it still happened.

I will try switching up the options like you suggested.

I do always save my game often.  The autosave is set to 8, but I try to save after 3 or 4.  It's nice if I mess up my game to not have it saved, but that's just incentive to get better at the game lol

Thank you very much for all the help!  I will try these things and let you know.

Reply #6 Top

Ok, I tried that, and it worked for a while.

Can I expect the game to crash like this while trying to save forever, when playing with this mod?  Basically, I will be able to get through the game, but it will run out of memory every so often while trying to save?

Also, is there anything else I can turn down in the options area that will allow me to play this mod a bit better?

If not, is there any way to transfer the ships over from this mod to the normal game's custom design area?  I just really want to fly Federation ships...

This time, I got another error as well.  When it said "Out of memory", and I clicked "Ok", another message popped up.  It said I didn't have enough virtual memory and I should try to free some up.  Is this consistent with what you were telling me Moosetek?

I tried to read up on virtual memory on the internet but I am very computer illiterate, as I already stated :(  I just like to play video games!! 

Reply #7 Top

Quoting Ripyeet, reply 6
I will be able to get through the game, but it will run out of memory every so often while trying to save?
End of Ripyeet's quote

Saving tends to be the "breaking point" because it's pretty memory-intensive; it takes a large allocation to write the save out, but that memory gets freed up immediately afterwards. So if you're already running low due to lots going on in the game and/or lots of large models/textures from mods, saving is quite likely to be what pushes you over the edge.

Reply #8 Top

Yes, one more thing that can free up the base memory the game uses.

In Options - Video, turn down the 'Planet Surface Variety' slider to around 15-20%.

One other thing that might help is to set a static swap file in Windows. It defaults to a dynamic swap file, which is supposed to grow as needed. Doesn't always work correctly with all programs, so sometimes it is best to just set it manually to a set size.

Right-click on the My Computer icon (desktop) and choose Properties,

There should be an Advanced tab or link, depending on your version of Windows. Look through there until you find the advanced performance option for Virtual Memory. Select Custom Size for the drive you want the swap file on (usually C:), and set both min and max to the same value - try twice your physical RAM size, so 8192. OK out of all the windows and reboot.

Don't forget, the game can only address up to 2GB of memory (physical and virtual combined). So even with a large static swap file you may still get the error.

Reply #9 Top

:congrat: moosetek13 Hats off to you!! been along time since I just randomly jumped into a forum and saw anyone help another the way you have here. Very refreshing and a welcome change from the flaming and trolling ya see so often. (of forums in general)

Just wanted to give ya a shout out and a thank you from a random by stander :thumbsup:

Reply #10 Top

Just curious Moosetek, will setting my virtual memory up like that have any ill effects, or is there anything I will have to watch out for in the future?  Will this fry my computer in any way?

 

Edit:  Dumb question.  Just read up on swap files.  Interesting stuff!  Seems the only times I learn about computers is when I'm trying to get a game to work lol

It was already set to 3152 or something like that, but I turned it up anyways.  I suppose I'm just going to have to tone it down on the game size and graphics etc. 

 Apparently I can create a swap file for a different drive, even removable drives.  But I suppose it doesn't matter if all the game can use is 2GBs.

Thank you all so much for the help!  This is great.  I won't have any time to test these changes in the next week or so, as I'm heading down to Oregon and Washington for my 1 year wedding anniversary, but when I am able to get on and play for a while, I will let you all know how things go.

 

One other thing: would it help if I turned autosave off and only saved in the middle of turns, when the game isn't trying to load other stuff?  I notice a lot of the time, when my research is complete, at the beginning of the turn, it will prompt me to choose a new research topic, and it will also autosave, and that's when it freezes most of the time.  So I assume that if I wait for everything to happen in a turn, and then save, the game will be using less memory at this time, and the save should work.  Is my logic flawed?

Reply #11 Top

I've never tried it that way, so let us know if it helps.

Every little trick helps.

Reply #12 Top

Well, it didn't work. 

So I went through the video section and disabled anything graphics related.  It will make for a dull game but damnit! I want my Federation ships!!!  I haven't tried it yet, but it will probably help.  If not, I will just have to play a smaller game.

 

Is there any way I could transfer the ship designs for the federation in to the normal game?

Reply #13 Top

The ship hulls are in the Mods\(your mod)\Data\ShipComponents folder.

Each of the ship types should have its own .xml file, so all you have to do is remove the hull types you don't want.

If you want to get them into the 'unmodded' game it is more difficult. You would have to find all the model files and associated graphic files for each hull and copy them into the games GFX folder. Then you would need to copy the hull .xml file into the correct folder.

Much easier to just trim your mod folder. Just move the .xml files for the hulls you don't want into a different folder somewhere. That way it is just as easy to add them back in.