Stop the locals names being [NULL]

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
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Stop the locals names being [NULL]

Post by DarthHamster »

I have just added locals in my map. I did everything I'm supposed to in the scripts and zeroeditor. But when I killed a gammorean in my map the message came up DarthHamster killed [NULL]. How do I make that [NULL] become Gammorean or Geonosien or Wampu etc.
Last edited by DarthHamster on Mon Nov 23, 2009 3:17 pm, edited 3 times in total.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Stop the locals names being NULL

Post by AQT »

What is the locals' team name in your LUA?
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being NULL

Post by DarthHamster »

SetTeamName (3, "Gammorrean")
AddUnitClass (3, "gam_inf_gamorreanguard", 40,75)
SetUnitCount (40, 75)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Stop the locals names being NULL

Post by AceMastermind »

Read near the bottom of the first post in this FAQ topic:
http://www.gametoast.com/forums/viewtop ... =27&t=6088
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being NULL

Post by DarthHamster »

When It tells you to select your three letter map in the editlocalize.bat my level is not there.

?
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Stop the locals names being NULL

Post by Darth_Spiderpig »

[quote=""The How to add local sides!"Tutorial"]...blahblahblah killed [NULL],

to fix this, go into your MOD_ID folder and run "editlocalize.bat"

once its started, right click on level and select Add key, name the key the three letter name of your map, mine is LTT

so now you will have something like this

level -> LTT,
...
[/quote]

You have to add it. :wink:
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being NULL

Post by DarthHamster »

Thanks I misunderstood that. But now I got another problem. It says "now you need to right click on (map) and select Add Scope". When I do that the only options I get are delete key and rename key.
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Stop the locals names being NULL

Post by Darth_Spiderpig »

That was for me too.

But only on my new map...

On Korriban it worked :|
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being NULL

Post by DarthHamster »

Thats odd. Maybe I should delete it out of the addon folder and munge it back in.
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: Stop the locals names being [NULL]

Post by Darth_Spiderpig »

Don't know about that.

I won't do it, because I don't know if it will be munged in correctly.
Hidden/Spoiler:
I know, I am not really brave :P
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being [NULL]

Post by DarthHamster »

Well, its not a map I plan on releasing its just practice. So I got nothing to lose. I will see if it works. :cpu:

EDIT
Didn't work.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Stop the locals names being NULL

Post by AceMastermind »

DarthHamster wrote:...But now I got another problem. It says "now you need to right click on (map) and select Add Scope". When I do that the only options I get are delete key and rename key.
Looks like a typo in the tutorial, the last child in the branch should be a key and everything before it should be a scope.

It should be like this:
to fix this, go into your MOD_ID folder and run "editlocalize.bat"

once its started, right click on level and select Add Scope, name the Scope the three letter name of your map, mine is LTT (Local team Tutorial)

so now you will have something like this

level -> LTT,

now you need to right click on LTT and select Add Key, once you've done that rename it to the name that we set out local team in the .lua, remember, ours was Jawas, so set it to Jawas, it now should look something like this

level -> LTT -> Jawas
level
  • LTT (Scope)
    • Jawas (Key)
User avatar
DarthHamster
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 300
Joined: Wed Nov 18, 2009 9:09 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Orlando, Florida
Contact:

Re: Stop the locals names being [NULL]

Post by DarthHamster »

I'll try it. :)

EDIT
Didn't work. Still says [NULL]. When I munged the world after making the changes this came up.
Hidden/Spoiler:
ERROR[localizemunge Comments.cfg]:Text file syntax error. (File end)ERROR[localizemunge Comments.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge English.cfg]:Text file syntax error. (File end)ERROR[localizemunge English.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge French.cfg]:Text file syntax error. (File end)ERROR[localizemunge French.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge german.cfg]:Text file syntax error. (File end)ERROR[localizemunge german.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge Italian.cfg]:Text file syntax error. (File end)ERROR[localizemunge Italian.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge japanese.cfg]:Text file syntax error. (File end)ERROR[localizemunge japanese.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge spanish.cfg]:Text file syntax error. (File end)ERROR[localizemunge spanish.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge uk_english.cfg]:Text file syntax error. (File end)ERROR[localizemunge uk_english.cfg]:Text file syntax error. (File end) [continuing]
16 Errors 0 Warnings

EDIT2
Anyone know why the localizing isn't changing [NULL]???

The munge output=
Hidden/Spoiler:
ERROR[localizemunge Comments.cfg]:Text file syntax error. (File end)ERROR[localizemunge Comments.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge English.cfg]:Text file syntax error. (File end)ERROR[localizemunge English.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge French.cfg]:Text file syntax error. (File end)ERROR[localizemunge French.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge german.cfg]:Text file syntax error. (File end)ERROR[localizemunge german.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge Italian.cfg]:Text file syntax error. (File end)ERROR[localizemunge Italian.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge japanese.cfg]:Text file syntax error. (File end)ERROR[localizemunge japanese.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge spanish.cfg]:Text file syntax error. (File end)ERROR[localizemunge spanish.cfg]:Text file syntax error. (File end) [continuing]
ERROR[localizemunge uk_english.cfg]:Text file syntax error. (File end)ERROR[localizemunge uk_english.cfg]:Text file syntax error. (File end) [continuing]
16 Errors 0 Warnings
Post Reply