Editing Sides

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
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Editing Sides

Post by Silas »

I'm having trouble adding characters such as Jawas to my map. I'd like to switch out a couple Rep people with them, but i cant get them to switch. How do you put in other characters?
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Editing Sides

Post by MandeRek »

You have to add and change lines in you .lua
Maybe you should read the .lua documentation in the documentation folder...that helped for me :)

~ :jango:
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Editing Sides

Post by Silas »

well, i did change/add stuff to the .lua script, but i havent read the document about it. im a gonna do that and get back here later. i only have a couple minutes right now :maulsaber:

im a little closer now to getting other people in my map, but it keeps saying that the game was expecting a bracket, and none was found, and it goes back to the defualt unit. I have no idea what is wrong. here's the lua:

function ScriptInit()

ReadDataFile("ingame.lvl")


SetMaxFlyHeight(30)
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\\yav.lvl;yav1cw"
ReadDataFile("SIDE\\des.lvl",
"tat_inf_jawa")

ReadDataFile("dc:SIDE\\kit.lvl","rep_hero_fisto")
ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_marine",
"rep_inf_ep3_pilot",
"rep_inf_ep3_sniper_felucia",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_hover_fightertank",
"rep_hero_fisto",
"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_hero_countdooku",
"cis_hover_aat")


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

SetupTeams{
rep = {
team = REP,
units = 50,
reinforcements = 1500,
soldier = { "tat_inf_jawa",9, 25},
assault = { "rep_inf_ep3_marine",1, 4},
engineer = { "rep_inf_ep3_pilot",1, 4},
sniper = { "rep_inf_ep3_sniper_felucia",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 50,
reinforcements = 1500,
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, "jawas")
AddUnitClass (3, "tat_inf_jawa", 10,15)
SetUnitCount (3, 15)
AddAIGoal(3, "Deathmatch", 100)
SetTeamAsEnemy(ATT,3)
SetTeamAsEnemy(3,ATT)
SetTeamAsEnemy(DEF,3)
SetTeamAsEnemy(3,DEF)



SetHeroClass(CIS, "tat_inf_jawa")
SetHeroClass(REP, "rep_hero_fisto")

the things im trying to do are:
1. Switch out the rep rifleman and cis hero with a jawa
2. Add jawas as locals
if anyone sees my problem, plz tell me.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Editing Sides

Post by Silas »

well, i figured out what the problem was, and i successfully have jawas in my game. this map's gonna be sweet :P
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Editing Sides

Post by MandeRek »

Ok good luck ;)
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Editing Sides

Post by Silas »

lol maybe im not done. my jawa refuses to change weapons, and his health is like a Jedi's health. i have no idea how to fix either problem
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Editing Sides

Post by Frisbeetarian »

Do you mean that you inserted him as a hero, because that would cause the health thing.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Editing Sides

Post by Silas »

yeah, i did put a jawa as the cis hero. i thought i had removed it. oh well. oh, while im remembering, how do you make it so a Hero like obiwan is a playable character with a normal health bar?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Editing Sides

Post by Xavious »

Set them up under the normal units set-up rather than in the heroes set-up.

For example;

Code: Select all

SetupTeams{
rep = {
team = REP,
units = 50,
reinforcements = 1500,
soldier = { "rep_hero_obiwan",9, 25},
assault = { "rep_inf_ep3_marine",1, 4},
engineer = { "rep_inf_ep3_pilot",1, 4},
sniper = { "rep_inf_ep3_sniper_felucia",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},
You could set the unit numbers (9,25) to (1,1) to make it so there can only be one of the character on the battlefield at a time.
User avatar
Silas
Captain
Captain
Posts: 481
Joined: Thu Oct 11, 2007 5:30 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: Editing Sides

Post by Silas »

well, i got obi into the game, but it crashes after a couple minutes of gameplay. oh well, its not all that important, mostly i was just curious
Post Reply