Page 2 of 4

Re: Custom Command Posts

Posted: Sun Feb 22, 2009 12:02 am
by MasterFang1
Fluffy you can see the blue CP in the background right? :)

Re: Custom Command Posts

Posted: Sun Feb 22, 2009 9:59 am
by Yodakid
About custom colors, wouldn't it be possible to get the cp to read diffrent holo.odfs for diffrent teams?

Re: Custom Command Posts

Posted: Sun Feb 22, 2009 10:19 am
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.

Re: Custom Command Posts

Posted: Sun Feb 22, 2009 3:59 pm
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.

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 10:23 am
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.

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 10:44 am
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.

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 1:09 pm
by Taivyx
Just a note, this should be added to the FAQ for easy access, methinks.

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 2:58 pm
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.

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 4:50 pm
by Fiodis
Taivyx wrote:Just a note, this should be added to the FAQ for easy access, methinks.
Agreed. Very useful!

Re: Custom Command Posts

Posted: Mon Feb 23, 2009 9:20 pm
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!.

Re: Custom Command Posts

Posted: Tue Feb 24, 2009 4:30 pm
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.

Re: Custom Command Posts

Posted: Tue Feb 24, 2009 5:34 pm
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.

Re: Custom Command Posts

Posted: Tue Feb 24, 2009 5:42 pm
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?

Re: Custom Command Posts

Posted: Tue Feb 24, 2009 8:45 pm
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.

Re: Custom Command Posts

Posted: Wed Feb 25, 2009 9:17 am
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?

Re: Custom Command Posts

Posted: Wed Feb 25, 2009 6:45 pm
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.

Re: Custom Command Posts

Posted: Wed Feb 25, 2009 8:46 pm
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.

Re: Custom Command Posts

Posted: Thu Feb 26, 2009 12:18 am
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?

Re: Custom Command Posts

Posted: Thu Feb 26, 2009 9:59 am
by fai222
Never mind, I got it to work now. I placed the wrong cp :oops:. Thanks for the help.

Re: Custom Command Posts

Posted: Thu Feb 26, 2009 10:14 am
by The_Emperor
Nice, those flags'd be great for that medieval project