New Side Name(s)

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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

New Side Name(s)

Post by jedimoose32 »

Hi everyone.

I'm trying to have my custom side (we'll call it SID, and the name, for example, is Mysidename) localized properly in my map. To be clear, it's not a "local" team, it is one of my mod's main playable teams. I have read the tutorial on localizing local teams, but the outcome isn't quite what I was hoping for. The team name in unit selection shows up as Mysidename (no problem here), but I haven't come across a way for the soldiers to have proper names. They show up as Mysidename as well ("jedimoose32 killed Mysidename"). I tried adding a common.sides.sid scope and then putting name, name_m, longname, etc like the stock sides have and that didn't work, the team name and unit names all show as [NULL].

Am I missing something here or am I trying to do the impossible?
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: New Side Name(s)

Post by commanderawesome »

You need to add the strings call firstnames 1 2 3, etc. and lastnames 1 2 3, etc.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: New Side Name(s)

Post by jedimoose32 »

I did that too. What I'm saying is that the game doesn't seem to be looking in common.sides.sid at all. It only wants to look in level.ABC.locals

Edit: Sort of solved. Since side "sid" gets assigned to imp in the lua, I just edited the name, long name, first names and last names of the imp side and that works. I'm not totally happy with this as a long-term solution but I suppose it's much better than what I had before. I did some digging around in the shell scripts and I think I might have found a way to make the game look in common.sides.sid for the information, but if I do find a solution I'll post it in a different thread at a later time.
Post Reply