Localizing Locals (FAQ)

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

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: Re: Doesn

Post by Teancum »

@ Artemis -- be sure to check the 'localize' checkbox when you munge. I forgot to at first and it drove me nuts.
TAWArtemis

Re: RE: Re: Doesn

Post by TAWArtemis »

Teancum wrote:@ Artemis -- be sure to check the 'localize' checkbox when you munge. I forgot to at first and it drove me nuts.
At this point it works on sides that are shipped. ALL, REP, GUN, IMP, etc..

But I am having trouble using it with the jedi creation template. A new side is created (JDI) and it will not localize. Ideas?
TAW_pinx

RE: Re: RE: Re: Doesn

Post by TAW_pinx »

Man, I'm having enough trouble just adding locals. What simple things am I forgetting or can someone point me to docs that explain the differences for adding sides in SWBF I and II?

Thanks!
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: Re: RE: Re: Doesn

Post by Teancum »

What is the odf name of your jedi, Artemis?
froshthewookie

RE: Re: RE: Re: Doesn

Post by froshthewookie »

I'm having problems here... I have Jawas and Tusken Raiders together as a 3rd faction (I tried to create a 4th faction and BF2 wouldn't even recognize it...) My problem = no matter what I seem to do, either both are called "Jawas" or both are called "Tusken Raiders" I can't get mt tuskens to be called "Tusken Raiders" and my Jawas to be called "Jawas"... any help?
CarbineImpulse

RE: Re: RE: Re: Doesn

Post by CarbineImpulse »

Ok, I need to know where I'm going wrong on this. I wish to modify a units name in the loading screen. I used the Jedi Creation doc to get (in this case) all_hero_hansolo_storm (the odf name and name called in req file) into the game via my own side CI1 . I've used him to replace the usual sniper. Ok well now I'd like to change Han's Name in the unit selection screen. In the localize tool I created a section under "entity" called CI1 for the name of my side. In the created CI1 folder I created a key called all_hero_hansolo_storm with the new required name in the "entity.CI1.all_hero_hansolo_storm" and the comments boxes. Saved, and then visual munged with the "everything" pull down selected and the common and localise tickboxes clicked. However it's not showing up as having changed in the game, is the entity name supposed to be something else, like the geometry name or something?? or am I missing some other part of the process out? The only other part of the localised tree structure that mentions my CI1 side is under the mapname section. help :(
OGEB1103

RE: Re: RE: Re: Doesn

Post by OGEB1103 »

Ok well the way you are localizing it is the problem. You are trying to make all_hero_hansolo_storm be called something else, but you are changing the entity that is called ci1_all_hero_hansolo_storm. It is looking for a unit called that, but there isn't one. Even if you put something eg. a unit or weapon from another side into a new one or current one, the localize will be the same, so to change your hero go to entity all_hero_hansolo_storm and change his name to whatever you want.
Stager00

Post by Stager00 »

I have a final question about localizing.

My Geonosis map has 3 seperate local sides(Geonosians..jedi..Acklay)...with three seperate "types" of locals for the jedi alone. By following the tut I end up as all locals being called Geonosians/Geonosian when you shoot them(even the jedi and acklay).

Could someone assist me in building the strings for that many different locals in one map?
OGEB1103

Post by OGEB1103 »

I need help getting locals to work, anybody?
Murdocr

Post by Murdocr »

@ stager: i thought yo could only have 2 local sides are the acklay's and geonosians on the same side? if not do you add a fith side just like the fourth and third?
anyway, to answer you question, in your lua where you created the side called 'locals' change this to jedi, geonosian or acklay, and then create new keys for them called acklay, geonosian and jedi.


@ OGEB: i had trouble with locals too. here is my thread http://www.gametoast.com/index.php?name ... pic&t=4596

copy the lua posted there and use that as a base to build on. it worked for me ;)
Stager00

Post by Stager00 »

No..you can have more.

The acklay are side 5..they are enemies with everyone.
The geonisians are side 4.they are enemies with 3(jedi) 1(rep) 5(acklay)
The jedi are enemies with 2(cis) 4 (geonosians) ans 5 (acklay)

Thanks for the answer.

Looks like this:

-- Local Stats
SetTeamName(3, "locals")
SetUnitCount(3, 55)
AddUnitClass(3, "geo_inf_geonosian", 55)
SetTeamAsFriend(3, DEF)
SetTeamAsEnemy(5, 1)
SetTeamAsEnemy(5, 4)

SetTeamName(4, "jedi")
AddUnitClass(4, "jed_knight_03", 10)
AddUnitClass(4, "jed_knight_02", 10)
AddUnitClass(4, "jed_master_01", 5)
SetUnitCount(4, 27)
AddAIGoal(4, "conquest", 100)
SetTeamAsFriend(4, ATT)

SetTeamName(5, "acklay")
AddUnitClass(5, "geo_inf_acklay", 1)
SetUnitCount(5, 3)
AddAIGoal(5, "deathmatch", 1)
SetTeamAsEnemy(5, 1)
SetTeamAsEnemy(5, 3)
SetTeamAsEnemy(5, 4)

So my problem was i was only referencing the "locals" from the lua..and not the "jedi" and "acklay"..correct?
mnl1121

Post by mnl1121 »

yeah stager u r right. U refered all local sides to "locals" changing them to "jedi" and blah blah will work perfectly. you only refer locals as "locals" when there is only 1 extra side. Since u have 3 extra sides then its different for u.
Stager00

Post by Stager00 »

Yup...works perfectly.

Only now multiplayer wont launch...lol

More work ahead I guess...(Ive discovered the value in backing up the DATA_MODID folder about once an hour...lol)

EDIT
Okay...names work great in instant action...but dont display at all in multiplayer....any ideas?
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

Post by Teancum »

I didn't know you could do 5 teams. I knew four were possible.
Stager00

Post by Stager00 »

Yeah...1.7 has been running 5 teams. No problems.
battlwfrontfreak

RE: Re: Doesn

Post by battlwfrontfreak »

Can anyone help me change the name of Rep_inf_ep3officer? i went to it, changed it name. then i munged the common side, had the common and local(ize) boxes checked. but still they wont work! NOTE: i am takingthe sides after they are munged and then are moving them to the main sides folder. Then i rename them from rep and repshell to sep and sepshell. i had hex-editing change the side of coruscant from REP to SEP so that every thing on the side changed to the SEP side. EXEPT THE NAME FOR THE OFFICER( i changed it from clone commander to ARC captain.
iko94
Posts: 3
Joined: Mon Sep 22, 2008 12:53 pm

Re: Localizing Locals (FAQ)

Post by iko94 »

Hey, needing some help too.

I've got wampas re-skinned to look like Talz, which are pretty similar. I have the skins working and when you hover over them (they are locals btw) it says Talz instead of Wampa. However, when I blow them up it says "Player 1 killed [NULL]".

I've tried everything you guys have suggested so far, and nothing works. I've even tried localizing every language, but epic failure occurs every time. :runaway:
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Localizing Locals (FAQ)

Post by DarthD.U.C.K. »

welcome at gametoast!
so you followed the "suggestions" step by step?
did you activate the localization-checkbox of visualmunge?
Post Reply