side help

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

woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: side help

Post by woner11 »

Did you cite them in the lua correctly before adding them to the sides. Post your lua. Also ligtning? or lighting? Lightning is a weapon and it is pretty straight forward. Lighting you do in the ZE under the lighting section and that is also pretty straight forward I beleive. However I'll be happy to explain either.
SilvaDalek
Sith
Sith
Posts: 1329
Joined: Sun Dec 02, 2007 12:52 pm
Games I'm Playing :: Destiny and FIFA
xbox live or psn: TH3 R0LL3R

Re: side help

Post by SilvaDalek »

The folder geo isn't in the cis folder. Two different sides. Seperate.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: side help

Post by woner11 »

You need to make another ReadData section and add them both in there. Then you can mix things around in the setupteams section.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: side help

Post by woner11 »

Yes. :yes:
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: side help

Post by woner11 »

You have some typo on line 101 I beleive
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: side help

Post by Maveritchell »

If you did what the mungelog said, and checked the .req file, you'd notice that there's no such unit as "geo_inf_geonosian." It's "gen_inf_geonosian."

Also, unless you're modifying the geonosian or the acklay, there's no need to have the dc: to load a custom side.

The other error means that you did something screwy near line 101, probably something like leaving a comma out.
User avatar
tsurugi13
Lieutenant Colonel
Lieutenant Colonel
Posts: 543
Joined: Mon Dec 17, 2007 6:16 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: Battling the ISA menace on Helghan.

Re: side help

Post by tsurugi13 »

If you're adding them to the premade sides you might need to add them to the .req, but that's not really my forte so it's just a suggestion.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: side help

Post by woner11 »

tsurugi13 wrote:If you're adding them to the premade sides you might need to add them to the .req, but that's not really my forte so it's just a suggestion.
:shock:

Never do that in 3000 years!!! That is a big NO NO!!! Sides go in the lua. Not the maps req. Hoever they do need to have individual reqs.
SilvaDalek
Sith
Sith
Posts: 1329
Joined: Sun Dec 02, 2007 12:52 pm
Games I'm Playing :: Destiny and FIFA
xbox live or psn: TH3 R0LL3R

Re: side help

Post by SilvaDalek »

cloneknight wrote:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_sniper",
"rep_inf_ep2_rocketeer_chaingun",
"rep_inf_ep2_jettrooper_rifleman",
"rep_inf_ep2_jettrooper",
"rep_hover_fightertank",
"rep_hero_obiwan",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_inf_pilot",
"cis_hero_grievous",
"cis_hover_aat")
ReadDataFile("dc:SIDE\\geo.lvl",
"geo_inf_geonosian",
"geo_inf_acklay",)
like this?
No. No comma after acklay. :P
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side help

Post by cloneknight »

thsnks ill see if i can get it to work :)
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side help

Post by cloneknight »

is my geonosian correct?
Hidden/Spoiler:
ReadDataFile("SIDE\\geo.lvl",
"geo_inf_acklay",
"gen_inf_geonosian")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_dark_trooper")


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

SetupTeams{
rep = {
team = REP,
units = 73,
reinforcements = 400,
soldier = { "rep_inf_ep2_rifleman",25, 30},
assault = { "rep_inf_ep2_rocketeer",8, 10},
engineer = { "rep_inf_ep2_engineer",8, 10},
sniper = { "rep_inf_ep2_sniper",8, 10},
marine = { "rep_inf_ep2_rocketeer_chaingun",8, 10},
officer = {"rep_inf_ep2_jettrooper_rifleman",8, 10},
special = { "rep_inf_ep2_jettrooper",8, 10},
pilot = { "imp_inf_dark_trooper",8, 10},

},
cis = {
team = CIS,
units = 61,
reinforcements = 500,
soldier = { "cis_inf_rifleman",21, 30},
assault = { "cis_inf_rocketeer",7, 9},
engineer = { "cis_inf_engineer",7, 9},
sniper = { "cis_inf_sniper",7, 9},
officer = {"cis_inf_officer",7, 8},
special = { "cis_inf_droideka",4, 5},
pilot = { "cis_inf_pilot",7, 9},
marine = { "gen_inf_geonosian",7, 9},
}
because it doesnt show up ingame..
Flinti
Private Recruit
Posts: 24
Joined: Sun Mar 23, 2008 10:13 am

Re: side help

Post by Flinti »

I do not really know but I think you can only have up to 7 units per side...
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: side help

Post by AceMastermind »

cloneknight wrote:marine = { "gen_inf_geonosian",7, 9},
should be:
marine = { "geo_inf_geonosian",7, 9},


gen_inf_geonosian loads the unit, geo_inf_geonosian is the unit
cloneknight
Chief Warrant Officer
Chief Warrant Officer
Posts: 357
Joined: Sun Aug 20, 2006 11:39 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: side help

Post by cloneknight »

ya but they dont show up ingame
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: side help

Post by Maveritchell »

cloneknight wrote:ya but they dont show up ingame
Do what Ace said. In your ReadDataFile section it needs to be gen_inf_geonosian, but in your setupteams it needs to be geo_inf_geonosian. If you're ever unsure just check the stock Geonosis scripts:

From geo1c_hunt.lua:

Code: Select all

ReadDataFile("SIDE\\geo.lvl",
                             "gen_inf_geonosian")

	ReadDataFile("SIDE\\tur.lvl",
                             "tur_bldg_geoturret")                             

    --  Level Stats

    ClearWalkers()
    SetMemoryPoolSize("EntityWalker", -1)
    AddWalkerType(0, 3) -- 8 droidekas (special case: 0 leg pairs)
    AddWalkerType(2, 2) -- 2 spider walkers with 2 leg pairs each
    AddWalkerType(3, 2) -- 2 attes with 3 leg pairs each
    SetMemoryPoolSize("Aimer", 70)
    SetMemoryPoolSize("BaseHint", 200)
    SetMemoryPoolSize("CommandWalker", 1)
    SetMemoryPoolSize("EntityFlyer", 4)
    SetMemoryPoolSize("EntityHover", 12)
    SetMemoryPoolSize("EntityLight", 50)
    SetMemoryPoolSize("MountedTurret", 12)
    SetMemoryPoolSize("Obstacle", 338)
    SetMemoryPoolSize("PathNode", 100)

    SetSpawnDelay(10.0, 0.25)

    SetupTeams{
             
        rep = {
            team = REP,
            units = 32,
            reinforcements = -1,
            
            sniper   = { "rep_inf_ep2_sniper",8},
            
            
        },
        cis = {
            team = CIS,
            units = 32,
            reinforcements = -1,
            soldier  = { "geo_inf_geonosian",25},
            
        }
     }
Post Reply