Cps and object lighting

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

Post Reply
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Cps and object lighting

Post by [TFA]Padawan_Fighter »

Hey everyone, I seem to have a problem with CPs showing up ingame. I deleted all the other existing cps and made a new cp1 out of scratch, I had a control region, spawn path, capture region, and everything. But when I start up the game, I still see no cps. Did I miss something?


Also, is there a way to remove all the dark areas from places like the cantina from Mos Eisley and such?



P.S: Here is the CP section (I think) of the map's LUA (Clone Wars)

Code: Select all

-- 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"}

    
    
    
    --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:Start()

    EnableSPHeroRules()
    
 end

jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Cps and object lighting

Post by jedimoose32 »

Perhaps you could detail this a bit more.

Did you munge common?
Also, you will need more than 1 CP.

As for the dark spots...

ZeroEditor --> Light --> Place --> **click where you want it** --> change properties on selected light --> save --> munge --> :runaway:
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Cps and object lighting

Post by [TFA]Padawan_Fighter »

Yes I munged common...but I didn't know I needed more than one CP! :o Thanks for the help!
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: Cps and object lighting

Post by Teancum »

Also, just to cover it, make sure your CPs are on the correct layer in ZE.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Cps and object lighting

Post by [TFA]Padawan_Fighter »

Teancum wrote:Also, just to cover it, make sure your CPs are on the correct layer in ZE.

They are in conquest, if that's what you mean.
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Cps and object lighting

Post by Xterminator »

I have the same problem, it shows one CP called 0 but you cant spawn at it. I did the same thing as you deleted all the cp's and made a new one.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Cps and object lighting

Post by [TFA]Padawan_Fighter »

Xterminator wrote:I have the same problem, it shows one CP called 0 but you cant spawn at it. I did the same thing as you deleted all the cp's and made a new one.

You need a spawn path. And that's not exactly the same problem...
User avatar
Xterminator
Private Second Class
Posts: 69
Joined: Thu Feb 19, 2009 5:07 pm

Re: Cps and object lighting

Post by Xterminator »

Sorry I didnt mean the same problem , i ment the I did the same thing as you. but meh whatever.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Cps and object lighting

Post by [TFA]Padawan_Fighter »

ARGH! It still doesnt work, jedimoose's advice didn't change anything. And before you ask, yes i added 3 more cps and changed the lua back to what it was. But it didn't work.


Here's a picture of my problem:
frustrated.jpg
Post Reply