What am I doing wrong here? Localize problem.

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
Big_rich

What am I doing wrong here? Localize problem.

Post by Big_rich »

I'm aucutally trying to make two new sides not show up as NULL in the team select page.

Here is the lua:

Code: Select all

ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveConquest")

	--  Empire Attacking (attacker is always #1)
    local EWK = 2
    local EW1 = 1
    --  These variables do not change
    local ATT = 1
    local DEF = 2
    
function ScriptPostLoad()	   
    
And the team setup lua:

Code: Select all

ReadDataFile("SIDE\\ewk.lvl",
						"ewk_inf_basic")
						 
                    
    ReadDataFile("dc:SIDE\\EW1.lvl",
                    "ew1_inf_basic")

	ReadDataFile("SIDE\\tur.lvl",
						"tur_bldg_tat_barge",	
						"tur_bldg_laser")	
 
	SetupTeams{
		ewk = {
			team = EWK,
			units = 20,
			reinforcements = 150,
			soldier	= { "ewk_inf_trooper",9, 25},
			engineer = { "ewk_inf_repair",1,4},
			sniper	= { "ewk_inf_scout",1,4},
			

		},
		ew1 = {
			team = EW1,
			units = 20,
			reinforcements = 150,
			soldier	= { "ew1_inf_trooper",9, 25},
			engineer = { "ew1_inf_repair",1,4},
			sniper	= { "ew1_inf_scout",1,4},
		},
	}
Localize:

Set up new teams names and such under:
common\sides\ewk\
common\sides\ew1\

only way I can get any name at all is if I add local and LOCALS name to level\ECW\local and \locals?

Why is it wanting to set up my poor ewoks as locals when I am trying to set them up as auctual teams for conquest? Also It wont use the firstnames and lastnames... Will I just have to edit the ALL and IMP sides localize?
Big_rich

Post by Big_rich »

Also I noticed that the AI doesn't seem to think that anyone is it's enemy. So it is deff seeing the new sides as locals.. Anyway around this? Or is it coded into the game?
Rekubot
Jedi
Jedi
Posts: 1080
Joined: Wed Apr 05, 2006 12:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: Shadow Complex
xbox live or psn: Rekubot
Location: UK

Post by Rekubot »

I'm not sure if it's relevant, but the ewoks you're using aren't mentioned in the ReadDataFile part.
Post Reply