Page 1 of 1
[NULL] Why???
Posted: Fri Nov 03, 2006 8:56 pm
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.
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!
Pi314
Posted: Fri Nov 03, 2006 9:22 pm
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

Posted: Fri Nov 03, 2006 9:27 pm
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")
RE: [NULL] Why???
Posted: Fri Nov 03, 2006 9:29 pm
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"
Posted: Fri Nov 03, 2006 9:32 pm
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. ^^
Posted: Sat Nov 04, 2006 2:40 pm
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.
Posted: Sun Nov 05, 2006 7:33 am
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. ^^
Posted: Sun Nov 05, 2006 5:55 pm
by somen00b
Check all of the localize info. It's in there somewhere unless it's an image.
Posted: Sun Nov 05, 2006 9:57 pm
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
Posted: Mon Nov 06, 2006 8:21 pm
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.