| 02-14-2004, 11:24 AM | #1 |
Ok I have a Fatal Error problem that is definately not related to buildings without pathing maps. It is really odd... I can't easily revert either because it doesn't always show up so I worked for awhile under the assumption nothing is wrong. Therefore I would like to try to simply solve it...(good luck right?) It is a fatal error that only occurs after closing the map! It gives me the memory reference error of trying to write to a certain address. The interesting thing is the instruction trying to write the block of memory seems to always be the same. Since it is only at closing the map it doesn't affect game play. It never ever crashes mid game. It also doesn't seem to be consistent... I thought I had tracked it down to only occuring when a player loses all his bases and is kicked out. However, it seems to sometimes occur 5 seconds into the game if I quit right away. On top of that it usually keeps happening if I don't restart the PC. Anotherwords if I play a game for an hour and quit with a window popping up telling me there is a fatal error, I can rerun the game immeadiately with no problems but when I quite no matter how far in it I will get the error again. The only way to get rid of it in those cases is to restart thus clearing all memory. However I have also had some cases where with a fresh run of the game as I said I quite 5 seconds in and the error pops up. In those cases if I rerun the game right away the error won't show again! I am really stumped and could use any suggestions. No individual trigger in my map is that complicated, thought I have quite a few, around 80 or so. |
| 02-14-2004, 03:39 PM | #2 |
It could be something with removing your buildings when you quit. I once had a problem where a tower caused errors whenever it was destroyed. |
| 02-15-2004, 04:02 AM | #3 |
Any more ideas? I can't seem to make it reproducable so I don't know how to test against it.... |
| 02-15-2004, 04:12 AM | #4 |
Dunno...post the map unprotected so we can see what you're doing with your triggers? I'd suggest disabling every trigger related to a player's buildings being removed, and then start enabling them. Also try exporting your triggers and importing them into a blank map, and running that for a bit to see if the error occures. Do you do anything on defeat of a player? Or on a player leaves game event? |
| 02-15-2004, 09:43 PM | #5 |
Yeah I destroy certain main bases on defeat/player leaves game. However, I am not too sure it is based around buildings being destroyed. It has occasionaly happened if I quit 5 seconds into the game without having touched a thing! Only thing I can figure out is my melee initilization trigger(its custom so I just gutted the original version and made my own) and a map initilization trigger that runs at 0.0 seconds and sets up a few things that can't be done under the map initilization event. Sorry that sounds a bit confusing. Anyways most of my setup commands are simply variable declarations like set x = sort of things so I don't get it. Is there any sort of early trigger like that I should be trying to avoid? Now remember the error only actually shows up when I quit. So It defintely seems to be some sort of memory clearnup error... |
| 02-16-2004, 12:19 AM | #6 |
I realize this might not pertain to your situation at all, but.... You don't happen to have two buildings that can cross-upgrade into each other... do you? As an example, in my map, I had at one point let Town Halls upgrade to Keeps or Castles. Also, Castles could turn into Keeps, and Keeps into Castles. Every time I would click the Town Hall from then on in, the game would crash with a Fatal Error - until I reset the Dependancy Equivalents and Upgrades To fields back to more "normal" settings. Anyhow, again, might not have anything to do with your situation... but I know that Dependancy Equivalents and Upgrades don't play nice sometimes :). |
