Localization problem with ambushers [solved]

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
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Localization problem with ambushers [solved]

Post by YaNkFaN »

I'm making a campaign script and the ambushers work fine except they don't want to be localized
Hidden/Spoiler:
[code]AddUnitClass(ATK, "kor_inf_rrifleman", 3)
AddUnitClass(ATK, "kor_inf_rengineer", 2)
SetUnitCount(ATK, 5)
SetReinforcementCount(ATK, -1)
SetTeamName(ATK, ATK)
SetTeamAsFriend(ATK, REP)
SetTeamAsEnemy(ATK, CIS)
SetTeamAsFriend(REP, ATK)
SetTeamAsEnemy(CIS, ATK)
ClearAIGoals(ATK)
--STH
AddUnitClass(STH, "kor_inf_darkjedi", 2)
SetUnitCount(STH, 2)
SetReinforcementCount(STH, -1)
SetTeamName(STH, STH)
SetTeamAsFriend(STH, CIS)
SetTeamAsEnemy(STH, REP)
SetTeamAsFriend(CIS, STH)
SetTeamAsEnemy(REP, STH)
ClearAIGoals(STH)
--HDD
AddUnitClass(HDD, "kor_inf_srifleman", 2)
AddUnitClass(HDD, "kor_inf_sengineer", 2)
SetUnitCount(HDD, 4)
SetReinforcementCount(HDD, -1)
SetTeamName(HDD, HDD)
SetTeamAsFriend(HDD, CIS)
SetTeamAsEnemy(HDD, REP)
SetTeamAsFriend(CIS, HDD)
SetTeamAsEnemy(REP, HDD)
ClearAIGoals(HDD)
--KCP
AddUnitClass(KCP, "kor_inf_srifleman", 2)
AddUnitClass(KCP, "kor_inf_sengineer", 1)
AddUnitClass(KCP, "kor_inf_ssniper", 1)
AddUnitClass(KCP, "kor_inf_sheavy", 1)
SetUnitCount(KCP, 5)
SetReinforcementCount(KCP, -1)
SetTeamName(KCP, KCP)
SetTeamAsFriend(KCP, CIS)
SetTeamAsEnemy(KCP, REP)
SetTeamAsFriend(CIS, KCP)
SetTeamAsEnemy(REP, KCP)
ClearAIGoals(KCP)[/code]
I bolded where i defined their names except when i play in game the think says [null]

however i looked in my error log and it says that
Hidden/Spoiler:
[code]Message Severity: 2
.\Source\Team.cpp(884)
Missing a localized team name for this level, level.IC1.local[/code]
except i never called any team named local
also oddly enough if i add in the ;eve;.IC1.local key (ie add something in) all local teams get this name.
I did the ambushers without a setup teams section because that was the only way i seemed to be able to get them to work with the Ambush() function instead of the SetupAmbushTrigger() function
Any ideas on how to resolve this
Last edited by YaNkFaN on Sun Dec 06, 2009 6:48 pm, edited 1 time in total.
User avatar
bobfinkl
Rebel Colonel
Rebel Colonel
Posts: 593
Joined: Sun Jul 13, 2008 9:01 am
Projects :: Lots of unreleased stuff
Games I'm Playing :: Life
xbox live or psn: No gamertag set
Location: The quaint little city gametoast.

Re: localization problem with ambushers

Post by bobfinkl »

YaNkFaN wrote:level.IC1.local
That's the hierarchy that things are in localization, are you sure you put the localization for your locals under that directory? If you didn't try it.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: localization problem with ambushers

Post by YaNkFaN »

problem fixed i just added ""s around the names so

SetTeamName(STH, STH)
became

SetTeamName(STH, "STH")

all better

thanks
Post Reply