Alpha Project is a Battlefield 2 modification which goals are to bring back all the features that were left out in the retail game. The gameplay style of the mod is a mixture of arcade and realism.

Report RSS Alpha Project Basic Debugging

The following tutorial will show you how to find the reason for crashes

Posted by on - Basic QA/Testing

On the following link you will find two shortcuts, which will run "windowed mode" or the "debugger" those need to be placed in the alpha project mod root diretory (../EA GAMES/Battlefield 2/mods/ap/)

Mediafire.com

For those who want to create the shortcuts themself this are the target lines, including the code we use for the shortcuts:

Windowed Mode:

"C:\Program Files\EA GAMES\Battlefield 2\BF2.exe" +menu 1 +fullscreen 0 +szx 1600 +szy 900 +restart +modPath mods/ap


Debug Mode:

"C:\Program Files\EA GAMES\Battlefield 2\BF2_r.exe" +menu 1 +fullscreen 1 +modPath mods/ap


Before you can use them you have to right click on them and open the properties of the shortcut to edit the "target" and "start in" line to use YOUR installtion directory, ONLY change the directory to your installation folder of the game and keep the rest like it is then press ok.

Now you should be able to use those shortcuts, lets go into deeper explanation...

The "windowed mode" shortcut will only run the game in a window at a certain resolution i set up within the shortcut target, this allows you to see possible errors poping up while loading a map, if you see an error poping up, make a screenshot of it or write down what it says and let us know about it so we can try to fix the specific issue!

I would suggest only using the "debugger" if the methode aboth dont come up with a error message, be aware that the debug mode might screw up your controls, so always backup your battlefield 2 folder within .../your documents/your name/ directory and let the game create a new one for you when using the debugger.
Unlike the windowed mode the debug mode will generate you a log file within your ../EA GAMES/Battlefield 2/mods/ap/Logs/ folder which can be very helpful to find the reason for the crash if you send it to us.

Be aware that you can only use the "debugger" with the bf2editor installed, or you wont have the "bf2_r.exe" for it!

Hope this could help!

Post comment Comments
mickLMZR
mickLMZR - - 542 comments

Thanks! This will help a lot of those who are new to BF2 modding. :)

Reply Good karma Bad karma+3 votes
Devilman.
Devilman. - - 271 comments

Not mentioned above,but the debugger will only work if you have the BF2 Editor installed

Reply Good karma Bad karma+3 votes
JONES™ Author
JONES™ - - 1,780 comments

Thanks, totaly forgott to mention that since i always have bf2editor installed. Tut updated with the missing info!

Reply Good karma+1 vote
likearealbaws
likearealbaws - - 1 comments

If so, how can one give you the log since BF2Editor only works on XP? I am having troubles myself and I cannot give you a debug log if I simply cannot install BF2Editor.

Reply Good karma Bad karma+1 vote
am3binea
am3binea - - 27 comments

What can I do when i run bf2.exe in windowed mode but the error message doesn't appear. I've tried the debug mode, but it appear and error message too :p

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,203 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: