Page 1 of 1

gamorreans! [solved]

Posted: Fri Sep 07, 2007 6:36 pm
by BountyHunterV
so i'm trying to add gamorreans to my map as locals...when i type it into the LUA, its all fine and dandy...they show up in the map, they attack, everything's perfect

ok so now i'm trying to edit the gamorreans, so i want to include them in my side...and when i do that there is no Munging error or anything, they just don't appear in game. at all.

here is my LUA thingy (actually its only the part that i edited):




function ScriptInit()

ReadDataFile("ingame.lvl")


SetMaxFlyHeight(30)
SetMaxPlayerFlyHeight (30)

SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")
ReadDataFile("dc:SIDE\\bmt.lvl",
"bmt_testsoldier",
"gam_inf_gamorreanguard")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "bmt_testsoldier",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetTeamName (3,"piggies")
AddUnitClass (3, "gam_inf_gamorreanguard", 10,15)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")



i'm pretty sure i included all the necessary .odfs and .mshs in my side (there aren't very many), so i really don't know what's wrong...i probably just made some stupid mistake, but plz help

Re: gamorreans!

Posted: Fri Sep 07, 2007 6:40 pm
by Master Fionwë
AddUnitClass (3, "gam_inf_gamorreanguard", 10,15)
SetUnitCount (3, 15)
Set that to 15, not ten. I had the same issue once, and that fixed it. You only need the one number, not the two.

Re: gamorreans!

Posted: Sat Sep 08, 2007 4:28 pm
by BountyHunterV
thanks for the tip, but unfortunately that didn't work...the gamorreans still don't appear




SetTeamName (3,"piggies")
AddUnitClass (3, "gam_inf_gamorreanguard", 15)
SetUnitCount (3, 15)



this is what i changed it to...i just deleted the "10," but no good

anybody else know what the problem is? (thanks in advance)

Re: gamorreans!

Posted: Sat Sep 08, 2007 5:11 pm
by Caleb1117
And thats whats crashing it.

Because you deleted the ten.
You must have a lower number for it to refrence.
In this case, any number less then 15.
SetTeamName (3, "hidden")
AddUnitClass (3, "man_inf_mand1", 1,2)
AddUnitClass (3, "man_inf_mand2", 1,2)
AddUnitClass (3, "man_duros_noob", 1,2)
AddUnitClass (3, "man_inf_mand3", 1,2)
SetUnitCount (3, 9)
AddAIGoal(3, "Deathmatch", 100)

Re: gamorreans!

Posted: Sat Sep 08, 2007 5:20 pm
by FragMe!
Check for your BMT side in the sides directory the addon folder for your map make sure it is there. If you put and unmodified gamorrean in you side folder then clean and remunge the side does it work then?

Re: gamorreans!

Posted: Sat Sep 08, 2007 6:13 pm
by BountyHunterV
i know my sides directory is there because i have another unit from my sides that works fine...

the gamorrean is unmodified, and i've already cleaned and remunged...i will try again but i doubt it will make a difference

Re: gamorreans!

Posted: Sun Sep 09, 2007 12:04 am
by FragMe!
I was asking if it was unmodified because of this:
so i'm trying to add gamorreans to my map as locals...when i type it into the LUA, its all fine and dandy...they show up in the map, they attack, everything's perfect

ok so now i'm trying to edit the gamorreans, so i want to include them in my side...and when i do that there is no Munging error or anything, they just don't appear in game. at all.
When they did work were they called from bmt side? Did you add gam_inf_gamorreanguard to your sides .req folder? I've missed that one before :oops:

Re: gamorreans!

Posted: Sun Sep 09, 2007 4:31 pm
by BountyHunterV
thanks very much FragMe, i completely, totally, and utterly forgot about the REQ :D

UNFORTUNATELY, the gamorreans still don't work...lol
when i cleaned and remunged, however, i did get some unhelpful warning messages that might be helpful to other people:




WARNING[PC_modelmunge msh\gam_inf_gamorreanguard.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\gam_inf_gamorreanguard.msh]:SplitSkinnedSegments: WARNING: out of space in splitting catalog!
WARNING[PC_modelmunge msh\gam_inf_gamorreanguard.msh]:SplitSkinnedSegments: WARNING: resorting to brute force, this may take a while...
WARNING[PC_modelmunge msh\gam_inf_gamorreanguard.msh]:gam_inf_gamorreanguard has 1731 vertices and NO COLLISION GEOMETRY (WILL BE SLOW)!
0 Errors 4 Warnings





does anybody know what these things mean? if not, should i try a manual clean?

Re: gamorreans!

Posted: Sun Sep 09, 2007 5:07 pm
by Maveritchell
You can ignore those warnings; in fact, almost any munging warnings (not errors) can be ignored.

Re: gamorreans!

Posted: Sun Sep 09, 2007 5:31 pm
by BountyHunterV
okay...then what am i doing wrong

Re: gamorreans!

Posted: Sun Sep 09, 2007 5:53 pm
by GolfBulb
would the BF2_log help any? it usualy helps with some things

Re: gamorreans!

Posted: Sun Sep 09, 2007 10:39 pm
by BountyHunterV
nvrm guys, i figured it out (thank god)...i rememberd the gamorreans individual REQ file, but i forgot to put "gam_inf_gamorreanguard" in the sides REQ file :D

thanks for the help anyways