Page 1 of 1

My side is not working

Posted: Sun Jan 02, 2011 12:44 pm
by ColonelKlink
Hi, I tried making my first side the other day, but when I tried it, it didnt work. I got several errors in BFlog, and I don't know what to do about it. I have checked my odfs, and reqs three times, and dont see an typo, or mistake. Here are the errors,
Hidden/Spoiler:
Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk med_test_rookie in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\GOG\Data\_lvl_pc\SIDE\med.lvl

Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk in dc:SIDE\med.lvl

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "med_test_rookie" (check the side's .req file)

Message Severity: 2
.\Source\EntityGeometry.cpp(1058)
Entity "com_weap_veh_guided_rocket_ord" unknown terrain collision "p_front_sphere"
Here is my unit's req
Hidden/Spoiler:
ucft
{
REQN
{
"class"
"med_test_rookie"
}
}
Here is my Side's req,
Hidden/Spoiler:
ucft
{
REQN
{
"lvl"
"med_test_rookie"
}
}
And here is my Lua,
Hidden/Spoiler:
function ScriptInit()

ReadDataFile("ingame.lvl")



SetMaxFlyHeight(40)
SetMaxPlayerFlyHeight(40)


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\\tat.lvl;tat2gcw")
ReadDataFile("dc:SIDE\\med.lvl",
"med_test_rookie")

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_fly_destroyer_dome")

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

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "med_test_rookie",9, 25},

},
imp = {
team = IMP,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",9, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
},
}

SetHeroClass(IMP, "imp_hero_bobafett")
the rest I didnt change. Is there an error here? I don't see any. Please let me know what I'm doing wrong. Thanks!!

Re: My side is not working

Posted: Sun Jan 02, 2011 1:17 pm
by DarthD.U.C.K.
did you make a "med"-folder with the munge- and clean.bat ind the "_BUILD\Sides"-folder and select the side when munging?

Re: My side is not working

Posted: Sun Jan 02, 2011 1:31 pm
by ColonelKlink
Yes, I did. I am using the rebel side as a base, I mean I am using the rebel engineer model, and odf (but I changed the odf to give him some Terra Strife weapons), and gave him a reb engineer based tga (i changed the colour), would that be a problem? I renamed all the rebel engineer mshs, tgas, and option files. I only changed all-to med, (inf- to test) and engineer- to rookie. I left all other words the same.

Re: My side is not working

Posted: Sun Jan 02, 2011 5:00 pm
by CressAlbane
Can you post the locations of the above files?

Re: My side is not working

Posted: Thu Jan 06, 2011 11:35 pm
by asleeponduty
Go to Data_??? -> _BUILD -> Sides, copy the ALL folder, rename it MED.
Open up the munge.bat and change the three letter sequence (ALL) to MED
then it should munge correctly
Don't forget to localize everything

*Staff Edit*

Re: My side is not working

Posted: Fri Jan 07, 2011 5:31 am
by Anakin
ColonelKlink wrote:Yes, I did. I am using the rebel side as a base, I mean I am using the rebel engineer model, and odf (but I changed the odf to give him some Terra Strife weapons), and gave him a reb engineer based tga (i changed the colour), would that be a problem? I renamed all the rebel engineer mshs, tgas, and option files. I only changed all-to med, (inf- to test) and engineer- to rookie. I left all other words the same.
you changed the tga files?? this won't work. you can rename your msh but not the tga oe option files without editing your msh files. i tried myself too.
you can use the hexeditor.
open your mshfile.
somewere you will find something like "name".tga
overwrite all the names. but not more or less letters. exaxmple:

you will cange the tga names of your ARC.

you open the msh file and see the part.

rep_inf_arc_pack_blue.tga.
and
rep_inf_arc_blue.tga.

if you want this to be black you can change it to

rep_inf_arc_packblack.tga
and
rep_inf_arcblack.tga.

rep_inf_arc_pack_black.tga this won't work.
and you see the tga file names have one more
rep_inf_arc_black.tga. letter than the original one.


if this didn't fix your problem what files have you copied to your MAP_data/sides folder??

Re: My side is not working

Posted: Sun Jan 09, 2011 2:35 pm
by ColonelKlink
Thank you guys for the replies, I think I am understanding this better. I just figured out that you can't rename textures, unless you use HEX editor. I am getting models to work, although I only merged my "side" with the ALL side. It works okay right now, but I would eventually like to be able to have a MED folder, that you can copy and paste in the sides folder, and it will work.
One more thing, do I have to localize my side and units? Will it cause the game to crash? I haven't done any localization, but the current version of my mod doesn't crash, only the weapons are named what their odfs are named (e.g. "med_weap_inf_machinegun") and the units are named things like, "entity.med.assault.trooper". By the way, is there anything I need besides my units' msh, odf, and req? I mean like something, like allshell? or a file with animations? The animations are in the MUNGED folder of my side right? Or I noticed some req files in the REQ folder that all like, "alleng.req", does my unit need one of those too?
One more question, ( I am sorry I have soo many questions, I just want to know,) there a files that are like "all_inf_rifleman_desert.sprite" what is that?
Thank you guys, you have been a great help!!

Re: My side is not working

Posted: Sun Jan 09, 2011 2:43 pm
by Firefang
It won't crash if you don't localize
You don't need anything except reqs, mshs, and odfs (unless you want custom animations, heroes, or effects)
Yes animations go in the munged folder
alleng.req is a file used for first person so you only need one if it is a custom first person
I don't know what sprites are so I can't help you there.