Page 1 of 1

New Side Name(s)

Posted: Mon Nov 24, 2014 6:00 pm
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?

Re: New Side Name(s)

Posted: Mon Nov 24, 2014 8:04 pm
by commanderawesome
You need to add the strings call firstnames 1 2 3, etc. and lastnames 1 2 3, etc.

Re: New Side Name(s)

Posted: Mon Nov 24, 2014 8:18 pm
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.