The Good ol' Admiral

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
NegativeSmiley

The Good ol' Admiral

Post by NegativeSmiley »

Ok so I managed to add the clone gunner from Jai Nollan as a custom side but I can't seem to get Admiral Thrawn in my map. Under SPtest i got this

Message Severity: 3
.\source\LuaCallbacks_Mission.cpp(195)
Lua ReadDataFile: Could not open SIDE\IMPOFF.lvl

Message Severity: 2
.\source\Team.cpp(531)
Team missing class "imp_inf_thrawn" (check the side's .req file)

Can I have some help with his localazation, Lua, and what to put under sides?
Lord-Bandu

RE: The Good ol

Post by Lord-Bandu »

post your mission lua.

also ,in your sides folder is your req called IMPOFF ? it should be.
NegativeSmiley

RE: The Good ol

Post by NegativeSmiley »

"--start header
function ScriptInit()
local ALL = 1
local IMP = 2
local ATT = 1
local DEF = 2
--end header
--start objectives
AddMissionObjective(IMP,"red", "level.Neg2.objectives.1");
AddMissionObjective(IMP,"orange", "level.Neg2.objectives.2");
AddMissionObjective(IMP,"orange", "level.Neg2.objectives.3");
AddMissionObjective(ALL,"red", "level.Neg2.objectives.1");
AddMissionObjective(ALL,"orange", "level.Neg2.objectives.2");
AddMissionObjective(ALL,"orange","level.Neg2.objectives.3");
--end objectives
--start soundlvl
ReadDataFile("sound\\tat.lvl;tat1gcw");
--end soundlvl
-- Start sidelvls
ReadDataFile("SIDE\\all.lvl",
"all_inf_basicjungle",
"all_inf_lukeskywalker",
"all_inf_smuggler");
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_basic",
"imp_inf_darthvader",
"imp_inf_dark_trooper");
ReadDataFile("SIDE\\IMPOFF.lvl",
"imp_inf_thrawn");
--end sidelvls
--start loadouts
SetTeamName(ALL, "Alliance")
SetTeamIcon(ALL, "all_icon")
AddUnitClass(ALL, "all_inf_soldierjungle",10)
AddUnitClass(ALL, "all_inf_vanguardjungle",1)
AddUnitClass(ALL, "all_inf_pilot",2)
AddUnitClass(ALL, "all_inf_marksmanjungle",2)
AddUnitClass(ALL, "all_inf_smuggler",1)
SetHeroClass(ALL, "all_inf_lukeskywalker")
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "imp_inf_storm_trooper",10)
AddUnitClass(IMP, "imp_inf_shock_trooper",1)
AddUnitClass(IMP, "imp_inf_pilotatst",2)
AddUnitClass(IMP, "imp_inf_scout_trooper",2)
AddUnitClass(IMP, "imp_inf_thrawn",1)
SetHeroClass(IMP, "imp_inf_darthvader")
--end loadouts
--start teamstats
SetUnitCount(ATT, 16)
SetReinforcementCount(ATT, 200)
SetUnitCount(DEF, 16)
SetReinforcementCount(DEF, 200)
--end teamstats
--start alliances
SetTeamAsFriend(ATT, 1)
SetTeamAsEnemy(ATT, 2)
SetTeamAsFriend(DEF, 2)
SetTeamAsEnemy(DEF, 1)
SetAttackingTeam(ATT);
--end alliances"

Thats the part that is needed
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 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: Germany
Contact:

RE: The Good ol

Post by Rends »

If you want to add a new third party you need to call it from ReadDataFile("dc:SIDE\\IMPOFF.lvl",

but you need to follow all of freds instructions about adding new teams:
http://www.secretsociety.com/forum/disp ... sp?mid=76l
NegativeSmiley

RE: The Good ol

Post by NegativeSmiley »

That link didn't work but what should be put under localization? should it be
Entity>IMPOFF>inf_thrawn
or
Entity>imp>inf_thrawn
I have both are any of those right?
Delta_57_Dash
Jedi
Jedi
Posts: 1187
Joined: Fri Jun 10, 2005 2:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: The Good ol

Post by Delta_57_Dash »

do what rends said
Leviathan
Missing Jedi Admin
Posts: 3277
Joined: Fri Nov 12, 2004 2:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: The Good ol

Post by Leviathan »

Lord-Bandu

RE: The Good ol

Post by Lord-Bandu »

dc: needs to be added to your lua like rends posted above
Post Reply