[NULL] Why???

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
Pi314

[NULL] Why???

Post by Pi314 »

I am modding the first time with the Modtools (have used a Hex Editor before) and have come quite far.
I have made a map, teams, skins etc. And I have found out quite a lot on my own.
But now I'm really stuck. :cry:
I have used Editlocalize to create a team. In Common>Sides I created Man and Firstnames, Lastnames, Hero, Longname, Name, and Name_m inside it. It looks right and everything and the team is playable. But the teamname only shows up as [NULL] and the same for the AI characters.
Although I managed to name the classes of my team (Sharpshooter, Assault etc.) I just can't figure this one out... :(
Please help me someone! :cry:

Pi314
somen00b

Post by somen00b »

Welocme to Gametoast!

If the error is on the team selection (before you spawn for the first time) screen. I don't know much about this but I think the team's localize info is named in the setup teams portion of the lua

ex:

SetupTeams{
all = {
team = ALL,
units = 29,
reinforcements = 150,
soldier = { "all_inf_rifleman_jungle",10, 25},
assault = { "all_inf_rocketeer_jungle",1,4},
engineer = { "all_inf_engineer_jungle",1,4},
sniper = { "all_inf_sniper_jungle",1,4},
officer = {"all_inf_officer_jungle",1,4},
special = { "all_inf_wookiee",1,4},
},
imp = {
team = IMP,
units = 29,
reinforcements = 150,
soldier = { "imp_inf_rifleman",10, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = {"imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
}
}
I thnk this because of the mos eisley hero assault script:
SetupTeams{
hero = {
team = ALL,
units = 32,
reinforcements = -1,
soldier = { "all_hero_hansolo_tat",1,2},
assault = { "all_hero_chewbacca", 1,2},
engineer= { "all_hero_luke_jedi", 1,2},
sniper = { "rep_hero_obiwan", 1,2},
officer = { "rep_hero_yoda", 1,2},
special = { "rep_hero_macewindu", 1,2},
},
}

AddUnitClass(ALL,"all_hero_leia", 1,2)
AddUnitClass(ALL,"rep_hero_aalya", 1,2)
AddUnitClass(ALL,"rep_hero_kiyadimundi",1,2)

SetupTeams{
villain = {
team = IMP,
units = 32,
reinforcements = -1,
soldier = { "imp_hero_bobafett", 1,2},
assault = { "imp_hero_darthvader",1,2},
engineer= { "cis_hero_darthmaul", 1,2},
sniper = { "cis_hero_jangofett", 1,2},
officer = { "cis_hero_grievous", 1,2},
special = { "imp_hero_emperor", 1,2},

},
}
AddUnitClass(IMP, "rep_hero_anakin",1,2)
AddUnitClass(IMP, "cis_hero_countdooku",1,2)
The team's internal names are the same (ALL, IMP) but the underlined names are different. Look for the underlined names in the localize info. This might not help but its all I know :D
Pi314

Post by Pi314 »

Thanks for welcoming me and for the reply!
I was aware of that part through much experimenting and looking into existing .lua files.
Mine looks like this:

SetupTeams{
rep = {
team = REP,
units = 30,
reinforcements = 160,
soldier = { "rep_inf_ep2_rifleman",10, 25},
assault = { "rep_inf_ep3_rocketeer",5, 10},
engineer = { "rep_inf_ep3_engineer",5, 10},
sniper = { "rep_inf_ep3_sniper",5, 10},
officer = {"rep_inf_ep3_jettrooper",3, 9},
special = { "rep_hero_aayla",0, 0},

},
man = {
team = CIS,
units = 30,
reinforcements = 160,
soldier = { "man_rif_clo",10, 25},
assault = { "man_roc_clo",5, 10},
engineer = { "man_eng_clo",5, 10},
sniper = { "man_sni_clo",5, 10},
officer = {"man_cla_clo",3, 9},
special = { "cis_hero_jangofett",0, 0},
}
}

SetHeroClass(CIS, "man_her_clo")
SetHeroClass(REP, "her_inf_snowtrooper")
SymbolS

RE: [NULL] Why???

Post by SymbolS »

Always make sure that your side files are in the correct place, you munged it recently to make sure that you just didnt munge, and when you munge, make sure your munging the side that says "null"
Pi314

Post by Pi314 »

I munged everything just to make sure.
As I said. The team itself and the charakters work. It's only the names. :(

oh yeah... ignore the jango fett and aayla parts. it's only for testing and I'm gonna remove them. ^^
somen00b

Post by somen00b »

Try this: go to common.sides.man (you should have created it) be in localize and be sure you have every thing that a retail side has: "firstnames", "lastnames", "hero", "longname", "name", and "name_m". some might be unused but fill in them all just to be sure.
Pi314

Post by Pi314 »

As I stated before I added these keys and scopes: Firstnames, Lastnames, Hero, Longname, Name, and Name_m

What I'll try to do is try it again on a new map. Let's just see what happens then.

Thanks for the help guys! I'll be back to report what happened afterwards. ^^
somen00b

Post by somen00b »

Check all of the localize info. It's in there somewhere unless it's an image.
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 »

Create a two new keys under levels.(your 3 letter level ID) called local and locals. Put the name of your team there. For instance:

level.123.local -->MY TEAM
level.123.locals -->MY TEAM
Pi314

Post by Pi314 »

Thanks it worked! ^^ But now my bots all got the same name. >.>''
Guess I'll just rename another team like the rebels. Nyehehehe!!! Don't need 'em anyway.
Post Reply