Custom Command Posts (FAQ)

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

MasterFang1
Corporal
Corporal
Posts: 144
Joined: Sat Apr 05, 2008 4:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Custom Command Posts

Post by MasterFang1 »

Fluffy you can see the blue CP in the background right? :)
Yodakid
Second Lance Corporal
Second Lance Corporal
Posts: 117
Joined: Sat Nov 22, 2008 5:43 pm
Projects :: Something old
Games I'm Playing :: TES Online AC Unity
xbox live or psn: No gamertag set
Location: Finland

Re: Custom Command Posts

Post by Yodakid »

About custom colors, wouldn't it be possible to get the cp to read diffrent holo.odfs for diffrent teams?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Custom Command Posts

Post by Fluffy_the_ic »

MasterFang1 wrote:Fluffy you can see the blue CP in the background right? :)
>.<
Blue is the moonwalking bear.
No, I never really look at pics closely. Not when I'm in a hurry, which is pretty much always.
MasterFang1
Corporal
Corporal
Posts: 144
Joined: Sat Apr 05, 2008 4:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Custom Command Posts

Post by MasterFang1 »

A custom command post I set up:
Hidden/Spoiler:
Image
I also uploaded this pic on SWBFFiles for the PotD.
EDIT:How would I make it so the holo geometry thing is lower? In some rooms you can't see it because its above the ceiling.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Custom Command Posts

Post by Teancum »

Okay, that seriously merits looking into. Guess I'm checking into that tonight. If I can set up SWBF1-style CPs I need to. I know the 2.1 patch is out, but it's still in testing, so hopefully I'll be fast enough to catch this prior to public release.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Custom Command Posts

Post by FragMe! »

MasterFang1 wrote:A custom command post I set up:
Hidden/Spoiler:
Image
I also uploaded this pic on SWBFFiles for the PotD.
EDIT:How would I make it so the holo geometry thing is lower? In some rooms you can't see it because its above the ceiling.
Change the HoloHeight in the holo.odf or move your model down in XSI if it was created via that.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: Custom Command Posts

Post by Taivyx »

Just a note, this should be added to the FAQ for easy access, methinks.
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2: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: Norway, Xfire: Fai222

Re: Custom Command Posts

Post by fai222 »

I was just wondering, when you say grayscale texture do you mean just make the texture completly gray or change the picture to a black/white picture? (kind of a dumb question)

Edit: Never mind, you did say grayscale.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Custom Command Posts

Post by Fiodis »

Taivyx wrote:Just a note, this should be added to the FAQ for easy access, methinks.
Agreed. Very useful!
MasterFang1
Corporal
Corporal
Posts: 144
Joined: Sat Apr 05, 2008 4:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Custom Command Posts

Post by MasterFang1 »

Oh and credit for the model I used goes to Mav. It's the bomb model found in the ffxassetsplus pack. Kudos to you Mav! Thanks for teaching us how to do this FragMe!.
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2: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: Norway, Xfire: Fai222

Re: Custom Command Posts

Post by fai222 »

Hmm... I dont get it to work. This is what i do:
Make the model ready (in this case a ppsh 41 model)
Copy the com_bldg_controlzone.odf file to the worlds odf folder. (data_AAA\Worlds\AAA\odf)
Rename it
Open the file and change the appropriate parts for the Hologeomerty for the teams.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Custom Command Posts

Post by FragMe! »

And put the msh and tga in the data_AAA\Worlds\AAA\msh directory and replace the cp in ze with your edited one? What do you see in game, normal, nothing or Barney? If it is the last thing you really did something wrong.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Custom Command Posts

Post by Fiodis »

Barney from da Flintstones? :D

Hmmm, so in ZE that properties box shows up when you select the object?

Does this mean that you can have custom health and ammo droids and flags as well through the same method?
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Custom Command Posts

Post by FragMe! »

Actually I was thinking of the Purple Dinosaur but Barney Rubble will do.
As for boxes that pop up, yes cause it is still a control zone just with the changes.

You could probably change what the flag is too but it would be a lot more fun because, without looking at the contents and so can tell which ones you'd have to change, there are at least 20 files associated with the flag.

For gonks and health you should be able to change them and I am pretty sure people have, one map I played got ammo'd up by standing next to a box.
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2: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: Norway, Xfire: Fai222

Re: Custom Command Posts

Post by fai222 »

FragMe! wrote:And put the msh and tga in the data_AAA\Worlds\AAA\msh directory and replace the cp in ze with your edited one? What do you see in game, normal, nothing or Barney? If it is the last thing you really did something wrong.
What i see ingame is normal. Just like i have never done anything. I put the tga and msh in the msh directory, and i deleted the old cp object and placed a new one. I wasnt supposed to do anything with the spawn and capture thing right?
User avatar
hammythepig
Master Sergeant
Master Sergeant
Posts: 175
Joined: Mon Nov 24, 2008 6:05 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

Re: Custom Command Posts

Post by hammythepig »

FragMe! wrote:For gonks and health you should be able to change them and I am pretty sure people have, one map I played got ammo'd up by standing next to a box.
Yes, in the 607th mod there are those.

This looks really cool.
I think I'm going to try this.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Custom Command Posts

Post by FragMe! »

fai222 wrote:
FragMe! wrote:And put the msh and tga in the data_AAA\Worlds\AAA\msh directory and replace the cp in ze with your edited one? What do you see in game, normal, nothing or Barney? If it is the last thing you really did something wrong.
What i see ingame is normal. Just like i have never done anything. I put the tga and msh in the msh directory, and i deleted the old cp object and placed a new one. I wasnt supposed to do anything with the spawn and capture thing right?
All you need to do, taking conquest for example, take current cp1 delete it, put your new command post in it's place, name it cp1 add in the capture and spawn region informtion on the side entry bar and that should do it. Do that for all the command posts you want to change.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Custom Command Posts

Post by Teancum »

Been doing more research as to how team colors get set. I found something in ifs_freeform_main.lua in assets/shell that tipped me off. Now I'm just trying to get it to work on a per-game basis

TSTc_con.lua:
Hidden/Spoiler:
unction 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()

-- set up team colors
-- precomputed colors
local colorWhite = { r=255, g=255, b=255 }
local colorBlue = { r=180, g=40, b=180 }
local colorRed = { r=255, g=186, b=0 }

self.teamColor = {}
-- absolute colors: 0=nuetral 1=friendly, 2=enemy
self.teamColor[1] = { [0] = colorWhite, [1] = colorBlue, [2] = colorRed }
self.teamColor[2] = { [0] = colorWhite, [1] = colorBlue, [2] = colorRed }

end
Does it look like I'm referencing anything weird?
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2: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: Norway, Xfire: Fai222

Re: Custom Command Posts

Post by fai222 »

Never mind, I got it to work now. I placed the wrong cp :oops:. Thanks for the help.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Custom Command Posts

Post by The_Emperor »

Nice, those flags'd be great for that medieval project
Post Reply