D.H1cks
03-22-2006, 11:02 PM
I am working on a mod and whenever I finish a round and start to load a new map, the game crashes.
If I create a local server, I can load a map, play it and disconnect, but if I tried to start another map without completely leaving the game, it will crash during loading.
Basically, the only way for me to switch maps on my mod, is to completely leave BF2 and start again.
I have run the game in windowed mode, but I do not get any error messages, and it does not always crash at the same point in loading. Sometimes it will crash right at the start, sometime while verifing client data.
There are three maps in my mod, and they all load and play fine if I am starting fresh, so I don't think there is a problem with my maps.
I do not have the problem running the original BF2 mod, only my mod. To me it seems like the game does not unload resources properly and crashes when it tries to load another map.
I am going to keep looking for an answer, hope someone here has an idea as to what is causing the problem.
Edit: Found the problem. Looks like the editor puts a line in the wrong file. This line:
run Common/FreeCamera/Object.con
Should be in GameLogicInit.con, not Init.con.
My miniMod is now working. Yea!
If I create a local server, I can load a map, play it and disconnect, but if I tried to start another map without completely leaving the game, it will crash during loading.
Basically, the only way for me to switch maps on my mod, is to completely leave BF2 and start again.
I have run the game in windowed mode, but I do not get any error messages, and it does not always crash at the same point in loading. Sometimes it will crash right at the start, sometime while verifing client data.
There are three maps in my mod, and they all load and play fine if I am starting fresh, so I don't think there is a problem with my maps.
I do not have the problem running the original BF2 mod, only my mod. To me it seems like the game does not unload resources properly and crashes when it tries to load another map.
I am going to keep looking for an answer, hope someone here has an idea as to what is causing the problem.
Edit: Found the problem. Looks like the editor puts a line in the wrong file. This line:
run Common/FreeCamera/Object.con
Should be in GameLogicInit.con, not Init.con.
My miniMod is now working. Yea!