Crashing?!?!

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Crashing?!?!

Post by EGG_GUTS »

I'm sick and tired of my maps crashing is there a way to find out exactly why
your map is crashing???

(thanks)
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

RE: Crashing?!?!

Post by Ipodzanyman »

THe Bf2 log thing and proofreading everything yourself works, When you munge your map does it have any errors, and if there is what are they? :?
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

Well it worked last night I undid every thing I did last night and it still crashes
this is the error

C:\BF2_ModTools\ToolsFL\Bin\luac.exe: ..\..\common\scripts\DOK\~$Kc_con.lua:1: invalid control char near `char(6)'
ERROR[scriptmunge scripts\DOK\~$Kc_con.lua]:Could not read input file.ERROR[scriptmunge scripts\DOK\~$Kc_con.lua]:Could not read input file. [continuing]
2 Errors 0 Warnings


but I played my map with this error before :?
Tuskenjedi

Post by Tuskenjedi »

that's not the bf2 log. The bf2 log is obtained by running the debug version of swbf2.
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

Sorry for sounding really noobish (well I am a noob to modding) but how do
I do that?
MasterSkywalker
Major
Major
Posts: 501
Joined: Mon Apr 17, 2006 1:44 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by MasterSkywalker »

You don't need the BF2 log for this. Open your lua up in Notepad ++ (Shows closing brachlets etc.), and look for char(6). Look whats wrong there, and If ya found and fixed it, remunge, and your problem should be fixed!

Soul -- Merry Christmas, and a Happy Newyear!!
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

BF2_modtools.exe creates the bfront2.log, which is a log of all of the errors it encounters while the map is running. I'll tell you how to run it.

In BF2_ModTools, there is a file called bf2_modtools.exe. Put it in your GameData folder. Then run it.

run your map, and let it crash. then, go to your GameData folder, and a file called bfront2.log should be there now. open it in notepad an paste it's contents here (but post it as a quote, so it doesn't take up so much space :wink:)
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

I copied it and put it in gamedata and ran it and it said "please insert cd 1"?
and My bf2 was in the computer. so I ran BF2 instead and a text document poped up saying

Opened logfile BFront2.log 2006-12-31 1427

so what do I do?
wazmol
High General
High General
Posts: 892
Joined: Sat Sep 02, 2006 6:47 pm
Projects :: Thinking...
Games I'm Playing :: Black Ops
Location: London
Contact:

Post by wazmol »

you need the CD version of the game to run the BF2modtools.exe if you have the DVD version you cant do it, i have the DVD version and its very enoying.
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

Well I guess I'm screwed then :( does anybody know another way to do it?
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

Post by Ipodzanyman »

Go to the "Every Thing you need to know thread", it has a link on a tutorial teaching how to do this with something called "blackops"(?)
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

I can't seem to find it could you give me a link to the page or the link to
the tutorial?
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

Post by Ipodzanyman »

User avatar
squipple
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Tue Jun 28, 2005 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by squipple »

I've mentioned this before, but..
If own the DVD version, but know someone who has the CD version, you can make a duplicate of disc1 of the CD version and put it in your drive, and that will allow you to run the BF2_modtools.exe
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

I have a friend with th CD version he doesn't play BF2 anymore it bores him
:roll: anyways if I used his CD1 would it work?
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

Post by Ipodzanyman »

Di you bother with that second link I put down?
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: CANADA!

Post by EGG_GUTS »

ya I did but I don't have server manager and I don't know how to make a
batch file
Ipodzanyman
Sith
Sith
Posts: 1304
Joined: Fri Feb 03, 2006 12:16 am
Games I'm Playing :: ME3 Demo
Contact:

Post by Ipodzanyman »

Download the server manager and I think there is a tutorial around here somewhere, I did this stuff a while back, but I forgot the 3 letters you saved it as.... :?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Batch files are normal text files with a .bat ending. Open up notepad and start typing. When you save, use Save As... and change the Save as Type... to All Files. Next, change the file ending to .bat and save. To run the file just like an exe.

Tip: If you want to see the bat's output, put pause as the file's last line.
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Post by trainmaster611 »

Were you trying to add water by any chance? :|
Post Reply