Page 1 of 1

The Good ol' Admiral

Posted: Wed Jul 27, 2005 1:21 am
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?

RE: The Good ol

Posted: Wed Jul 27, 2005 3:57 am
by Lord-Bandu
post your mission lua.

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

RE: The Good ol

Posted: Wed Jul 27, 2005 9:13 am
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

RE: The Good ol

Posted: Wed Jul 27, 2005 9:29 am
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

RE: The Good ol

Posted: Wed Jul 27, 2005 11:23 am
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?

RE: The Good ol

Posted: Wed Jul 27, 2005 12:21 pm
by Delta_57_Dash
do what rends said

RE: The Good ol

Posted: Wed Jul 27, 2005 12:34 pm
by Leviathan

RE: The Good ol

Posted: Wed Jul 27, 2005 1:21 pm
by Lord-Bandu
dc: needs to be added to your lua like rends posted above