Page 1 of 1

Posted: Sat May 20, 2006 8:09 am
by Dragonum
[RDH]Zerted wrote:Here is how to get your debug output when you have the DVD version of the game and BF2_modtools.exe doesn't work.

Requirments:
You have SWBF2 installed.
You have the Server Manager installed.
You have a map to test.
Some understanting of batch files and/or the willingness to go look up the SWBF2 commands

Steps:
1) Go to the server manager's directory
2) Create a folder named "addon"
3) Copy the map you want to test, and paste it into the new addon folder
4) Create a batch file (.bat) to launch your map.
Here is an example batch file, with the modID being ABC:
C:
cd "C:\games\SWBF2 PC Server v1.1"
BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 ABCc_con 400 400
(You will need to change this to fit your computer's setup.)

5) Launch the batch file to start the server.
6) The log file is stored at server manager\BFront2.log
7) If you want to, run SWBF2 like you normally do and join the server.

In C:\BF2_ModTools there's a file called modtools.exe (the one with the clone trooper on it.).

Copy it into LucasArts\Star Wars Battlefront II\GameData and run the map with it. When you run the map, a file called BFront2 will be created.




ok, i create the bat file in the C:\Programme\LucasArts\Star Wars Battlefront II PC Server Folder

the bat file looks like this:

Code: Select all

C:
cd "C:\Programme\LucasArts\Star Wars Battlefront II PC Server"
BattlefrontII.exe /gamename "Testin Map" win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 TESc_con 400 400
i get a message

cant open win.lvl

i changed win in the bat file in tes (tes is my project ID)
and i get the message
cant open tes.lvl

Posted: Sat May 20, 2006 8:40 am
by yankeefan05
What is BlackOp's Server Manager? I dont know if I have it so can u post a link.

Posted: Sat May 20, 2006 9:02 pm
by [RDH]Zerted
Dragonum wrote:...the bat file looks like this:

Code: Select all

C:
cd "C:\Programme\LucasArts\Star Wars Battlefront II PC Server"
BattlefrontII.exe /gamename "Testin Map" win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 TESc_con 400 400
i get a message
cant open win.lvl..
Ok, I made a typo. There needs to be a "/" before "win". The "/" tells the game its a command. Without it, the game things it a level and tries to load it. I'll fix my first post.

To download the server manager, go here: http://www.blackbagops.com/

Posted: Sun May 21, 2006 4:23 am
by Dragonum
thanks,
now it works :D

Posted: Tue Jun 13, 2006 1:18 pm
by danrosen
I seem to be having a bit of trouble with this method... when I run the batch file I get the little white window with 'Loading' in it and after about five seconds it just closes itself. My batch file looks like this

C:
cd "C:\Program Files\LucasArts\Star Wars Battlefront II PC Server"
BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 FPTg_con 400 400

I have my map (FPT) in Addon folder in Battlefron 2 directory and in the server manager directory. Is there anything else I've done wrong?

Posted: Tue Jun 13, 2006 1:45 pm
by [RDH]Zerted
Your batch files looks fine. "/playercount 1"... is on the same line as "BattlefrontII.exe"... right?

I would guess your map is crashing while it is loading up. Does it output a log file?

If you want to test your batch file, replace your map (FPTg_con) with the name of one of the offical maps.

Posted: Tue Jun 13, 2006 2:13 pm
by danrosen
No, it isn't making a log file :( the batch file is fine however, I tested it with cor1g_con . And it does crash at the end of the loading screen when I load up normally. Thanks for the help, any more ideas?

EDIT: Tracked the problem down to my custom side, no idea why it is not working though. Why doesn't it give me an error when munging? And why no bfront2 log file? Hopefully you can answer these questions, it would be a big help :wink:

Re: Debug Output for DVD Version (FAQ)

Posted: Wed Mar 26, 2008 5:03 pm
by Flinti
I tried it, the map starts, but I get no log.

Code: Select all

BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 kam1g_con 400 400
EDIT
Oh it's allright I tried it with v1.0 :oops:

Re: Debug Output for DVD Version (FAQ)

Posted: Tue Jun 16, 2009 8:35 pm
by Philou231
Hi all I had a little bit of problem with my text it look like this.
C:
cd "C:\Program Files\LucasArts\Star Wars Battlefront II"
BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 FM1c_con 400 400

and I want to know what I type wrong because when I run the .bat file there is just the kind of black box that apear and then there is nothing and nothing apear somewhere. I know i did an error but I don't know where could someone help me please.And when you say that we need to change some things depend of our cpu setting what are we suppose to write on the first line of the text(not the c:) the cd "c:..........

Re: Debug Output for DVD Version (FAQ)

Posted: Tue Jun 16, 2009 10:11 pm
by AceMastermind
This method is outdated and obsolete, use THIS BF2_modtools.exe if you have the DVD version of SWBF2.

Place it in:
\Program Files\LucasArts\Star Wars Battlefront II\GameData
You should create a shortcut to it somewhere for easy launching.

After you launch this exe, play your map and a BFront2.log will appear in:
\Program Files\LucasArts\Star Wars Battlefront II\GameData

If you have Vista then your BFront2.log may have been written to:
C:\Users\<username>\AppData\Local\VirtualStore\Program Files\LucasArts\Star Wars Battlefront II\GameData

You can access it easily by clicking on Compatibility Files as shown in the image in this post:
http://www.gametoast.com/forums/viewtop ... 84#p315584