Page 1 of 2

Problem with adding replacement .lvls

Posted: Tue Nov 08, 2005 11:21 pm
by Astute
Well, I'm positive i've set it up right, sides and all. The problem i have is when i move my file, say imp.lvl for example, to the side folder. In game the dark trooper isn't selectable, but my storm commando isn't either, just an empty space. What have i done wrong?

Posted: Tue Nov 08, 2005 11:28 pm
by Jetsi
I am curious to find out the answer to this one because I can't get my imp scout to show up (You can only choose from 4 classes).

Jetsi

Posted: Wed Nov 09, 2005 9:32 pm
by Jetsi
Astute,

I don't mean to hijack your thread, but it seems we are having the same problem.

Here is what I get from sptest:

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

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

Now I have found the ewk.req file in my sides folder, but I haven't found the all.req or imp.req. I was under the impression that it wasn't necessary to add the all and imp to the sides folder because it would be a duplication and increase the munged folder size. Is the fix as simple as adding the appropriate sides folder?

Jetsi

Posted: Wed Nov 09, 2005 10:08 pm
by Teancum
You have to add them into the CW or GCW lua, don't forget, as well as the req files. Just take a gander at the files. You'll see what I mean.

And BTW, it's much easier and provides a smaller download if you just create a new side. You can still make it show up on your IMP side in-game.

Posted: Sat Nov 12, 2005 12:03 am
by Astute
Hmm, ok this is the only error i'm getting.

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

It seems to still be looking for the dark trooper even though i've deleted him from the imp.lvl req file.

Posted: Sat Nov 12, 2005 12:08 am
by -_-
Astute wrote:Hmm, ok this is the only error i'm getting.

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

It seems to still be looking for the dark trooper even though i've deleted him from the imp.lvl req file.
ur lua?

Posted: Mon Nov 14, 2005 10:47 pm
by Jetsi
OK, I'm starting to get frustrated.

Astute, sorry to hijack your thread, but I don't think we need two of these threads runnin around. Hopefully if I get an answer you can also.

So, here is my GCW .lua file (some extraneous sound stuff removed):

--start header
function ScriptInit()
local ALL = 1
local IMP = 2
local ATT = 1
local DEF = 2
--end header
--start objectives
AddMissionObjective(IMP,"red", "level.ENDATB.objectives.1");
AddMissionObjective(IMP,"orange", "level.ENDATB.objectives.2");
AddMissionObjective(IMP,"orange", "level.ENDATB.objectives.3");
AddMissionObjective(ALL,"red", "level.ENDATB.objectives.1");
AddMissionObjective(ALL,"orange", "level.ENDATB.objectives.2");
AddMissionObjective(ALL,"orange","level.ENDATB.objectives.3");
--end objectives
--start soundlvl
ReadDataFile("sound\\end.lvl;end1gcw");
--end soundlvl

-- Start sidelvls
ReadDataFile("SIDE\\all.lvl",
"all_inf_basicjungle",
"all_inf_smuggler"),
"all_hover_combatspeeder",;
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_basic_tie",
"imp_inf_dark_trooper",
"imp_inf_pilotatst",
"imp_walk_atst_jungle",
"imp_hover_speederbike");
ReadDataFile("SIDE\\ewk.lvl",
"all_end_music",
"ewk_inf",
"ewk_inf_basic");
--end sidelvls
--start loadouts
SetTeamName(ALL, "Alliance")
SetTeamIcon(ALL, "all_icon")
AddUnitClass(ALL, "all_inf_soldierjungle",11)
AddUnitClass(ALL, "all_inf_vanguardjungle",3)
AddUnitClass(ALL, "all_inf_pilot",4)
AddUnitClass(ALL, "all_inf_marksmanjungle",4)
AddUnitClass(ALL, "all_inf_smuggler",3)
--SetHeroClass(ALL, "all_inf_lukeskywalker")
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "imp_inf_storm_trooper",11)
AddUnitClass(IMP, "imp_inf_shock_trooper",3)
AddUnitClass(IMP, "imp_inf_pilotatst",4)
AddUnitClass(IMP, "imp_inf_scout_trooper",4)
AddUnitClass(IMP, "imp_inf_dark_trooper",3)
--SetHeroClass(IMP, "imp_inf_darthvader")
--Local Stats
SetTeamName (3, "locals")
AddUnitClass (3, "ewk_inf", 15);
AddUnitClass (3, "ewk_inf_repair", 25);
AddUnitClass (3, "ewk_inf_scout", 25);
AddUnitClass (3, "ewk_inf_trooper", 25);
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(3,DEF)
--end loadouts
--start teamstats
SetUnitCount(ATT, 25)
SetReinforcementCount(ATT, 200)
SetUnitCount(DEF, 25)
SetReinforcementCount(DEF, 200)
SetUnitCount (3, 75)
SetReinforcementCount(3, 400)
--end teamstats
--start alliances
SetTeamAsFriend(ATT, 1)
SetTeamAsEnemy(ATT, 2)
SetTeamAsEnemy(ATT, 3)
SetTeamAsFriend(DEF, 2)
SetTeamAsEnemy(DEF, 1)
SetTeamAsEnemy(DEF, 3)
SetAttackingTeam(ATT)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(3,DEF);
--end alliances

--start memorypools
ClearWalkers()
AddWalkerType(0, 0)-- special -> droidekas
AddWalkerType(1, 2)-- 1x2 (1 pair of legs)
AddWalkerType(2, 0)-- 2x2 (2 pairs of legs)
AddWalkerType(3, 0)-- 3x2 (3 pairs of legs)
SetMemoryPoolSize("EntityHover", 20)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize ("MountedTurret",20)
SetMemoryPoolSize ("EntityDroid",10)
--end memorypools
--start worldlvl
ReadDataFile("dc:ENDATB\\ENDATB.lvl")
--end worldlvl
--start spawndelay
SetSpawnDelay(10.0, 0.25)
--end spawndelay
--start flyheight
--end flyheight
--start ainotify
--end ainotify
--start stayinturrets
--end stayinturrets
--start denseenvironment
SetDenseEnvironment("false")
--end denseenvironment
--start birdsandfish
--end birdsandfish
--start deathregions
--end deathregions

And here is my imp.req file:

ucft
{
REQN
{
"lvl"
"imp_fly_destroyer_dome"
"imp_fly_tiebomber"
"imp_fly_tiefighter"
"imp_fly_trooptrans"
"imp_hover_fightertank"
"imp_hover_speederbike"
"imp_inf_basic"
"imp_inf_basicsnow"
"imp_inf_basic_tie"
"imp_inf_dark_trooper"
"imp_inf_dark_troopersnow"
"imp_inf_pilot_atst"
"imp_walk_atat"
"imp_walk_atst"
"imp_walk_atst_jungle"
"imp_walk_atst_snow"
"imp_droid_probe"
}
}

So, I mislabelled in my first post. I only show 4 classes on the Imperial side, and the choice for pilot is missing. I see where others can get 6 or more choices (whether they play or not is a different story), but I can only get 4. I have also tried putting in the Tie pilot and the ATAT pilot, but they still don't show. So I believe the problem is somewhere else. Any help would be greatly appreciated.

Jetsi

Posted: Tue Nov 15, 2005 1:50 pm
by Leviathan
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_basic_tie",
"imp_inf_dark_trooper",
"imp_inf_pilotatst",
"imp_walk_atst_jungle",
"imp_hover_speederbike");
You should have replaced "imp_inf_basic_tie" by "imp_inf_basic"...

You beat me to it

Posted: Tue Nov 15, 2005 3:40 pm
by Jetsi
Did a search of all .req files, and found a bunch.

Realized that in the .lua it was not adding individual classes, but that was a batch add to the classes. So I have already made the change there, but still nothing. Just a choice of 4 classes.

GRRRRRRRRRRRRRRRRRRRR

Jetsi

RE: You beat me to it

Posted: Thu Nov 17, 2005 8:38 pm
by Astute
Ok, nothing is working, i still end up with no dark trooper/storm commando, just an empty slot. Here are my files.
LUA>
ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_basic_tie",
"imp_inf_storm_commando",
"imp_inf_darthvader");

-- Imperial Stats
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_pilottie",2)
AddUnitClass(IMP, "imp_inf_scout_trooper",2)
AddUnitClass(IMP, "imp_inf_storm_commando",1)
SetHeroClass(IMP, "imp_inf_darthvader")

REQS>
ucft
{
REQN
{
"lvl"
"imp_fly_destroyer_dome"
"imp_fly_tiebomber"
"imp_fly_tiefighter"
"imp_fly_trooptrans"
"imp_hover_fightertank"
"imp_hover_speederbike"
"imp_inf_basic"
"imp_inf_basicsnow"
"imp_inf_basic_tie"
"imp_inf_storm_commando"
"imp_inf_darthvader"
"imp_walk_atat"
"imp_walk_atst"
"imp_walk_atst_jungle"
"imp_walk_atst_snow"
"imp_droid_probe"
}
}

>>EDIT:My bfront.log is in a previous post above.

This works on my modded maps, but when the new imp.lvl file is added it just doesn't work.

RE: You beat me to it

Posted: Thu Nov 17, 2005 10:03 pm
by Teancum
Anything from BFront.log?

RE: You beat me to it

Posted: Sat Nov 19, 2005 3:45 pm
by Astute
Ack, I've tried everything i can think of. Renaming, Rearranging, even trying to pass the storm commando off as a dark trooper, nothing is working :(

RE: You beat me to it

Posted: Sun Nov 20, 2005 11:25 am
by Delta_57_Dash
is this replacing the original sides for all levels? or just one map?

RE: You beat me to it

Posted: Tue Nov 22, 2005 4:08 pm
by Astute
this is a replacement for all levels

RE: You beat me to it

Posted: Tue Nov 22, 2005 10:26 pm
by sef0907
Maybe you are doing too much? Weird, nothing seems wrong in your log.

RE: You beat me to it

Posted: Fri Nov 25, 2005 1:52 pm
by Leviathan
Astute, could you sum up what you'd like to do, please ? (I might have an idea to make this project working...)

RE: You beat me to it

Posted: Sat Nov 26, 2005 1:26 am
by Astute
for now, i would just like my storm commando in place of the dark trooper on all shipped levels.

EDIT: The REQ name is imp_inf_storm_commando

RE: You beat me to it

Posted: Sat Nov 26, 2005 9:07 am
by Leviathan
What's the name of your Storm Commando's *.REQ file ? :|

Posted: Sat Nov 26, 2005 2:33 pm
by -_-
Astute, you can easily just change the req file of the storm commando to the name of the darktrooper = ="

Posted: Sat Nov 26, 2005 4:11 pm
by Leviathan
But he's probably perfectionist, and wants to erase any track of the Dark Trooper in "imp.lvl" and "mission.lvl"... :wink: