Page 2 of 3

Re: How to add Commander Cody

Posted: Thu Oct 18, 2007 2:00 pm
by Teancum
What does it tell you when you try to run it? Any original game will give an error if BF2_modtools.exe doesn't work.

Re: How to add Commander Cody

Posted: Thu Oct 18, 2007 2:33 pm
by Firenic
Please, insert CD 1

Re: How to add Commander Cody

Posted: Thu Oct 18, 2007 2:35 pm
by Teancum
Ah, you must have the DVD version. If so, the FAQ has a way to get that same BFront2.log. Check it. :thumbs:
Question: My map keeps crashing. What's wrong?

Answer: Could be lots of things. If you have the CD version, you can run BF2_modtools.exe, which produces a debug output called BFront2.log. Thanks to [RDH]Zerted, those with the DVD version can now get that same log. For information, visit this link:
http://www.gametoast.com/forums/viewtopic.php?t=5363

Re: How to add Commander Cody

Posted: Fri Oct 19, 2007 6:36 am
by Firenic
How do i create a .file???
I created one with wordpad, but when i click "open with" Battlefront II
it appears a Window saying "Fatal" Couldn't read C:\Archivos de programa\Lucasarts\Star wars battlefront II S.lvl
I don't know what to do :crying:

*Edit: Now i'm uploading my map to filefront, if someone can, please try to do that of the log in your pc.

Re: How to add Commander Cody

Posted: Fri Oct 19, 2007 10:47 am
by Teancum
Hopefully this doesn't come out wrong:

We won't do it for you. Once you set the web server up once it's easy to do from then on, and it's essential that you start learning things that way. So ask away on what you need to setup the server to get BFront2.log. Because once you have your log appearing you can debug any map that you have making life tons easier. But if we don't help you through this part you'll get stuck an untold amount of times. Trust me, you need to be able to look at that log constantly, so we need to set you up with the SWBF2 Server Manager so you can get one.

Now, where on setting the manager are you stuck exactly?

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 2:58 pm
by Firenic
Well, fisrt of all, sorry

Then. I udapte my game to 1.1, and i install the v1.1 server manager.
Then, i create a Bat file but with wordpad. And in it there's this
Hidden/Spoiler:
C:
cd " C:\Archivos de Programa\Lucasarts\Star Wars Battlefront II PC Server"
BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 C66g_con 400 400
That's my pc's swbf2 server location. Then i click to this file, and i select "open with" option. Then, i select the battlefront II thing (the one that is a ep3 soldier hemlet) and appears a FATAL window saying that couldn't open .lvl (Couldn't read C:\Archivos de programa\Lucasarts\Star wars battlefront II S.lvl)
<- It shows like this
And i dunno what to do.

Thanks for all guys

P.D: Can you see my avatar?



EDIT
Well, Well, Well
I have added the "rep" folder into my assets, and now the map loads, and i can play, but, no Cody appears. Here's my Lua.
Please Help
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")

-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;


function ScriptPostLoad()


--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}



--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)

conquest:Start()

EnableSPHeroRules()

end


---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()

ReadDataFile("ingame.lvl")


SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")

ReadDataFile("dc:SIDE\\fst.lvl",
"fst_ep3cmd_cody")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}

}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")

AddUnitClass(REP, "fst_ep3cmd_cody",1, 1)

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 3:30 pm
by Frisbeetarian
So did you ever get the BFront2.log, and if you did, post that so we can help you.

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 3:35 pm
by Teancum
Firenic wrote:Well, fisrt of all, sorry

Then. I udapte my game to 1.1, and i install the v1.1 server manager.
Then, i create a Bat file but with wordpad. And in it there's this
Hidden/Spoiler:
C:
cd " C:\Archivos de Programa\Lucasarts\Star Wars Battlefront II PC Server"
BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 C66g_con 400 400
That's my pc's swbf2 server location. Then i click to this file, and i select "open with" option. Then, i select the battlefront II thing (the one that is a ep3 soldier hemlet) and appears a FATAL window saying that couldn't open .lvl (Couldn't read C:\Archivos de programa\Lucasarts\Star wars battlefront II S.lvl)
<- It shows like this
And i dunno what to do.

Thanks for all guys

P.D: Can you see my avatar?
Bat files don't need to be opened by anything. They run by just double clicking. If that doesn't work, go START-->RUN-->Type cmd and hit enter. From there move to the directory with your server and run the bat file.

As long as you didn't associate bat files with SWBF2 you'll be fine. (if you didn't check that checkbox at the bottom when you picked SWBF2)

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 4:10 pm
by Firenic
But HOW do i create it? I've created it with wordpad, so it just opens it to edit it.
Can you give me details? (which programm, how..?

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 4:25 pm
by Frisbeetarian
I don't have the DVD version, so I can't hold your hand through it, but if you followed the steps in the link, then you should have output a file named BFront2.log, that is what you need to post.

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 4:27 pm
by Firenic
Frisbeetarian wrote:I don't have the DVD version, so I can't hold your hand through it, but if you followed the steps in the link, then you should have output a file named BFront2.log, that is what you need to post.
But that's why i want help!!! I need to make a .batch file to make it run and get the Log.
So anyone knows????

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 4:45 pm
by Frisbeetarian
Now that you've put in rep.lvl run the .bat file.

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 8:55 pm
by AceMastermind
Firenic wrote:I need to make a .batch file to make it run and get the Log.
So anyone knows????
Create a new text document
Type the contents into it that you need:
Example:

Code: Select all

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 TESc_con 400 400


Save it, close it, then rename the file yourname.bat or whatever, just make sure it has the .bat file extension.

Re: How to add Commander Cody

Posted: Mon Oct 22, 2007 9:29 pm
by Teancum
And then you just double click to run it. You shouldn't have to associate it with any program. It should run natively in Windows. If it doesn't then your comp has either un-associated it or re-associated it with a different program.

Re: How to add Commander Cody

Posted: Tue Oct 23, 2007 1:38 am
by Frisbeetarian
The .bat file he had posted before looked perfectly alright to me.

Re: How to add Commander Cody

Posted: Thu Oct 25, 2007 2:29 am
by Firenic
Well, I just repeat you the same. I don't know how to create it.
I right-clik and i select "new". There's no batch file there, so i create a wordpad document.
Then if i double click it, it just opens and i can edit it. No runs.
:crying:

Re: How to add Commander Cody

Posted: Thu Oct 25, 2007 2:31 am
by Penguin
have to rename it from .txt to .bat

Re: How to add Commander Cody

Posted: Thu Oct 25, 2007 12:02 pm
by Firenic
Well, now i ahve a good batch file. I open it, but then a small window appears but nothing else. What do i have to do now?

Re: How to add Commander Cody

Posted: Thu Oct 25, 2007 9:58 pm
by Frisbeetarian
What was in the window, and how long did you wait before closing it?

Re: How to add Commander Cody

Posted: Fri Oct 26, 2007 2:38 am
by Firenic
When a few time passes, appears this:

Game: Testing Map
Mission: C66c_con
Teams: Republic vs. CIS
Score: 400 to 400
time: 0m0s
Players: { } (0)

And nothing more.......