Page 1 of 1
I have an error with a hero that I want to add
Posted: Sun Mar 29, 2020 7:09 pm
by ZZ09
I have an error with a hero, in this case it is bossk since I add it to the game and when the imperial voice is about to say that there is an allied hero in the field, I crash and this message appears "Weapon 'imp_weap_hero_bossk' is not localized for stats page "and I don't know how to fix it. I am using the maveritchell bossk and a sereja´s model rifle weapon. From already thank you very much! Sorry for my bad english
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(82)
Weapon 'imp_weap_hero_bossk' is not localized for stats page
Re: I have an error with a hero that I want to add
Posted: Thu Apr 09, 2020 3:37 pm
by Sporadia
The error message you've posted normally comes up when a unit or it's weapon hasn't been localized. When you make a new unit for the first time, it's name and all of it's weapons will show up ingame as a string of random characters until you name everything properly with the editlocalize tool. I'm not used to it causing crashes so I'm suspicious your problem might be caused by something else. Either way, there's a good localization section in the sticky:
http://gametoast.com/viewtopic.php?f=27&t=13806
'Using the Localize Tool' explains how to use editlocalize. If you make sure Bossk has a localize key, and any original weapon odfs of his also have localize keys, then the error message should go away and you'll know if it was causing the crash.
If you think everything is localized already, double check that
core.lvl is being read at the end of your addme. The line should be there by default.
ReadDataFile("..\\..\\addon\\ABC\\data\\_LVL_PC\\core.lvl")
Re: I have an error with a hero that I want to add
Posted: Sat Apr 25, 2020 9:31 pm
by ZZ09
Thank you very much, rename the files and it worked !!
But now the game closes when I start the map where I test the unit, without saying any error the BFront2
What may be happening now?