Page 1 of 1

Localization problem with ambushers [solved]

Posted: Sun Dec 06, 2009 9:08 am
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

Re: localization problem with ambushers

Posted: Sun Dec 06, 2009 11:33 am
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.

Re: localization problem with ambushers

Posted: Sun Dec 06, 2009 6:48 pm
by YaNkFaN
problem fixed i just added ""s around the names so

SetTeamName(STH, STH)
became

SetTeamName(STH, "STH")

all better

thanks