Memory-fix by Harkonnen is out!

I used the patch, but after 1 or 2 turns of play i get this error.

Memeory allocation failure- exiting program
Reason:bad allocation, file:.\cvappmainloop.cpp, line:261


What could be the cause of this error? My machine is amd xp 2500+, geforce TI4600 128mb, 1g memory.

The patch really did speed things up if this failure didn't happen.
 
TLHeart
With no alt-tabbing, 512Mb of system RAM and 256Mb of video RAM you have all pros and no cons for using 'insane_mode = 1'.

weimingshi
Some people in another thread caught this error with exactly same line of original civ4 source code. I don't know nature of this error but I guess this is something graphics-related if my patch showed it up. Try reducing 'vid_mem_usage' down to 60, probably this will make things rolling.
 
DeyofAlgiers
No, I do not affect Civ4.ini in any form... Probably you screwed up some lines when was setting 'DynamicAnimPaging = 0' and stuff. Just a guess. Also official 1.09 patch from Firaxis has such effects.
 
I started to get the blue-fill squares in the place of some ocean textures as told by others before.
The settings don't affect this issue.
Without the patch the anomaly is gone.

So maybe there would be some fix for that Harky?

ThanX
 
OFF

BTW it's not related to this patch but the texture for wonder Colossus is corrupt at least for me. Small black squre around it in the water.
 
Harkonnen, thanks for the patch!

The only issue I was having was a crash to a garbled screen. I just got done a 6 hour marathon with no crashes, so thanks so much! I've got a top-end system, so I never had any lag, just the crashes. Anyway, enough rambling, thanks!!!
 
kettyo
If settings affect nothing (even minimal effect of 'vid_mem_usage = 32', 'insane_mode = 0'), then I don't know what to say...

The coming release will adjust itself better in-game (so less to preconfig), probably it'll help with this problem.

Also note that 'low' graphics settings sometimes affect appearance of some game entities. For example, caravels turn red/green/purple (civ color) with 'low' settings. I don't think that ocean squares are the same problem, but still it's possible.

BTW, did you try to play with vertex shaders before my fix? There were two "solutions" before my fix (and even before official 1.09) which I pesonally did not like for their impact on post-fix state and on other games:

1) Turning off AGP
2) Setting pixel/vertex shaders to 1.1

I think you have AGP on, at least I talked about that many times in this thread, but what about shaders?
 
Harkonnen

FullyCompletely
There might be two reasons in Harkonnen.ini for that:

1) You probably have overestimated 'vid_mem_usage'. Try values of 120, 80, 40 in that order - one of them should work. If it does not work even for 40, set it to 60 and proceed to step 2.

2) Try setting 'insane_mode = 0'. If it works, you may want to increase 'vid_mem_usage' back to its original value or at least leave it as 60.

I tried all this, and I get the same error. I've noticed however it has no problem loading a saved game of a mod, or a saved game that was started after your files were installed. I'm quite puzzled.

I'm on an AIW radeon 9800 pro 128mb, 756mb RAM, P4 2.5GHz

And yes I did disable ATI tray-tools, and tried it in both windowed and full-screen modes.
 
Just for the sake of feedback:

P4 2.8GHz
1GB System RAM
Nvidia Geforce 4 MX440 (64MB)

Followed instructions. Installed patch. Set Vid_MEM_usage=30, Insane_mode=0

Plays great - no more CTDs for me.

New problems: Leaderheads SOMETIMES partially disappear and all I can see is eyebrows, etc. Graphs sometimes disappear. I know you are working on these issues for the next release, but I thought you should have as much data as possible on problems affecting particular systems.
 
FullyCompletely
Well, when textures size almost match amount of video memory, such effects appear sooner or later with my fix. The next release will address this issue by better tracking amount of video memory.

Steve2000
Thank you. You are right, these issues will be solved with the update. Well, at least I hope so because I make changes targetted at these problems.
 
I'm using full screen mode with insane mode 0 and a mobility radeon x300
If I tab out and back while the game is loading, it will crash in the harkonen dll

It's not a big deal, but I thought I should let put it up here
 
I can't start new games with this patch... I always get 'Civilization 4 has encountered a problem and needs to shut down. Sorry for any inconvenience. [Send Error Report] - [Don't Send] I haven't sent one, this always pops up when I go to load a game, it gets to 'Finishing' where it is about to start then the game just dies. :(

I am not too concerned as the game does run ok now with 1.09 and this is more of a toying around thing I am trying. Here is everything I did.

1. Downloaded the .zip
2. Cut/paste zlib1.dll from Civilization 4 folder to my desktop.
3. Copy pasted the files in the .zip to the Civ 4 folder.
4. Ran the game, changing the graphic settings to lowest possible then exited.
5. Reloaded game. Tried to start a new game. First crash
6. Changed "insane_mode = 1" for the hell of it and cleared cache.
7. Tried another game. Second crash

Not sure if I am doing this right. One thing I did note in the readme.txt is that I have never been able to get anything above '0' in AA. My graphics are real shabby with polygon holes I now somewhat understand more due to how you explain the AA in the readme. I am kinda hoping this will fix my graphics although I know you said it probably wouldn't. :(
Is there anyone who knows how I can get decent textures on the game? Setting graphics to 'High' simply slows my game down for no reason as no graphic changes are actually made. Thanks.

My specs:
P4 2.7 Ghz
760MB RAM
128M PCI ATI Radeon 7500

EDIT: Neither of these games I started were in window mode. I simply changed resolution settings in window mode then switched back also.
 
King Flevance
Yes, it works with 1.09 and it was released after 1.09...

So, I am not sure if you are using 'insane_mode = 1' or 'insane_mode = 0'... In case of any instability (and what you face is some instability), you should use 'insane_mode = 0'. Also try setting 'vid_mem_usage = 50'.
 
I tried the settings you suggested just now to get the same error report crashing just before the game began again. (Nemoy is talking then it crashes)
'insane_mode = 0'
'vid_mem_usage = 50'

I have been changing these in Harkonnen.txt (Configuration settings file)
The three files I have in Civ 4 are:

Harkonnen.txt - (Notepad file)
PatchbyHarkonnen.dll
zlib1.dll

I feel like I am not doing it right somehow... trying to explain the best I can for you. :blush:
 
King Flevance
Actually it is 'Harkonnen.ini' file, but it's ok since my patch would show an error message if it would not find it.

Probably this is due to PCI version of video card (but then this is some problem with its drivers). In this case the best thing I can offer is setting 'vid_mem_usage = 10'
 
OK, thanks for your effort just the same mate. :)
I have the recent catalyst drivers released by ATI currently. I will not rest until my graphics get fixed. Although I will play until I fix them also, slowing my fix down. :p

I already kind of figured the video card was hurting me. Thank you again for the suggestions and the effort you have obviously devoted to this patch.:goodjob:
 
Thanks Harkonnen,

You are a SuperGenius, the default settings make the game work great in a huge game for me.



Radeon 9800 XT 256mg
AMD64 3400+
1 gig ram

back to lurk mode.
 
sadab
Unlurk to get even more with 'vid_mem_usage = 150' (since you've got 256 megs of video mem).
 
Back
Top Bottom