My side is not working

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

My side is not working

Post 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!!
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: My side is not working

Post 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?
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

Re: My side is not working

Post 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.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: My side is not working

Post by CressAlbane »

Can you post the locations of the above files?
User avatar
asleeponduty
Private First Class
Posts: 77
Joined: Tue Jul 22, 2008 3:05 pm
Games I'm Playing :: AaaaaAAaaaAAAaaAAAA
xbox live or psn: No gamertag set
Location: Illinois

Re: My side is not working

Post 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*
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: My side is not working

Post 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??
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

Re: My side is not working

Post 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!!
User avatar
Firefang
Major
Major
Posts: 518
Joined: Mon Nov 15, 2010 8:55 pm
Location: California

Re: My side is not working

Post 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.
Post Reply