Side Problems [Solved]

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
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Side Problems [Solved]

Post by epm01 »

Hey, Its me again.

I'm having problems with getting sides to work (Again), I always seem to get these lines in my BF2_Modtools.exe log (They look alot like the cause) when adding different units to maps (I'm using MetalcoreRancor's Rancor unit as an example):
Hidden/Spoiler:
Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "ran_inf_rancor" (check the side's .req file)

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

Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(1379)
Hero class "ran_inf_rancor" not found for team 2 (check the side's .req file)

Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(1379)
Hero class "ran_inf_rancor" not found for team 1 (check the side's .req file)
Only Rancor REQ:

Code: Select all

ucft
{
    REQN
    {
        "class"
        "ran_inf_rancor"
    }
}
Side Part of LUA:
Hidden/Spoiler:
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("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

ReadDataFile("SIDE\\ran_inf_rancor.lvl",
"ran_inf_rancor")

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

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "ran_inf_rancor",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},
}
}
The reason that I'm calling it ran_inf_rancor is because thats what its called in my Addon - TST - Data - LVL_PC - SIDE folder:

Image
Image

Anything wrong? If you need more information to help fix the problem then don't fret to ask and Thanks ahead of time.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Side Problems

Post by AceMastermind »

What about the side's req, did you create one named ran_inf_rancor.req?

Code: Select all

ucft
{
    REQN
    {
        "lvl"
        "ran_inf_rancor"
    }
}
Did you create a folder in _BUILD/Sides named ran_inf_rancor and copy the munge and clean bat files from another folder in that directory to your new folder?

Edit
Ok I see now that you have a lvl file in your....addon folder?
epm01 wrote:The reason that I'm calling it ran_inf_rancor is because thats what its called in my Addon - TST - Data - LVL_PC - SIDE folder
Is that a lvl file that someone sent to you or did you actually setup your side and munge this yourself?, please explain what you've done already.
4l4ny4ng
Private Recruit
Posts: 18
Joined: Wed Aug 13, 2008 4:57 pm

Re: Side Problems

Post by 4l4ny4ng »

also im not sure if this is the case but if you load an extra class it crashes...at least it does for me..
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Side Problems

Post by epm01 »

What about the side's req, did you create one named ran_inf_rancor.req?
Yes, I did.
Did you create a folder in _BUILD/Sides named ran_inf_rancor and copy the munge and clean bat files from another folder in that directory to your new folder?
Yes I did but it was called Rancor before (Because my Data_TST -> Sides -> Rancor folder was called that) and out of curiousity I renamed it the _BUILD/Sides/Rancor to ran_inf_rancor but had no luck. Would it be a good idea to also change the name of my Data_TST -> Sides -> Rancor folder to ran_inf_rancor too?
Is that a lvl file that someone sent to you or did you actually setup your side and munge this yourself?
I actually setup my own side and munged it myself.
also im not sure if this is the case but if you load an extra class it crashes...at least it does for me..
I'm not loading an extra class I'm replacing the Rifleman with the Rancor and also it isn't crashing, All the units Rocketeer, Sniper, Engineer..ect.. are there but the Rancor/Rifleman. Theres the so called Soldier unit (The first unit call from the LUA) isn't showing up after I replaced it with the Rancor.

Edit: Sorry I missed this part.
Ok I see now that you have a lvl file in your....addon folder?
Addon/TST/Data/LVL_PC/SIDE
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Side Problems

Post by AceMastermind »

epm01 wrote:Would it be a good idea to also change the name of my Data_TST -> Sides -> Rancor folder to ran_inf_rancor too?
Yes because according to this:

Code: Select all

ReadDataFile("SIDE\\ran_inf_rancor.lvl",
                              "ran_inf_rancor")
that is the side that your LUA is looking for.

You also need to add dc: to the ReadDataFile line like this:

Code: Select all

ReadDataFile("dc:SIDE\\ran_inf_rancor.lvl",
                              "ran_inf_rancor")
Edit
Or you could just rename it to this(to avoid confusion) :

Code: Select all

ReadDataFile("dc:SIDE\\rancor.lvl",
                              "ran_inf_rancor")
Then make sure your custom side's folder is named rancor like this:
data_TST\Sides\rancor
and change the folder name for this side in the _BUILD\Sides\ folder to:
data_TST\_BUILD\Sides\rancor
also name your side's lvl req file to rancor.req
then manual clean that side and re-munge then you should be good to go.
epm01
Master Sergeant
Master Sergeant
Posts: 162
Joined: Sat Jun 16, 2007 4:12 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Cookie Land

Re: Side Problems

Post by epm01 »

It works now :bowdown: . Thanks to everyone (AceMastermind) for all the help.
Post Reply