Problem: Edits to Troops [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
TheJynxedOnes
Posts: 3
Joined: Wed Apr 15, 2015 4:05 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

Problem: Edits to Troops [Solved]

Post by TheJynxedOnes »

Hello, I've recently started messing around with editing maps and wanted to take a stab at making small changes to existing troops. I watched a series of videos by a member here and have been able to do most things I want. Until I tried editing troops. I went simple and just wanted to change the amount of ammo the Super Battle Droid has for it's Rocket.

I made a new map, went into the Assets/sides folder and copied the "cis" folder to the "Sides" folder in my new map. Opened the file "cis_inf_default_rifleman" in notepad++ and changed this:

Code: Select all

WEAPONSECTION = 3
WeaponName     	= "cis_weap_inf_wrist_rocket"
WeaponAmmo     	= 3
WeaponChannel  	= 1
to this

Code: Select all

WEAPONSECTION = 3
WeaponName     	= "cis_weap_inf_wrist_rocket"
WeaponAmmo     	= 5
WeaponChannel  	= 1
I went to test it and nothing changed. I've tried several other small edits, like changing secondary weapons, ammo of other weapons. From what I've read and watched I thought I was doing it the right way. Any help would be wonderful. Thank you in advance.
Last edited by TheJynxedOnes on Thu Apr 16, 2015 12:51 am, edited 1 time in total.
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Problem: Edits to Troops

Post by Bob »

Did you load your custom side in the LUA?
You know,

Code: Select all

     ReadDataFile("dc:SIDE\\yoursidenamehere.lvl",
etc.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Problem: Edits to Troops

Post by thelegend »

Also don't forget to copy the common folder into your side's folder because you didn't mention it in your first post. It's in the same folder as the cis, rep, all...folders.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Problem: Edits to Troops

Post by AnthonyBF2 »

Or in your map script, after scriptpostload, you can add SetClassProperty("cis_inf_rifleman", "WeaponAmmo1", 5)

You don't need to use dc: + plus new side if all you want to do is increase some ammo or swap guns.

You can use SetClassProperty for a ton of things.
TheJynxedOnes
Posts: 3
Joined: Wed Apr 15, 2015 4:05 am
Projects :: No Mod project currently.
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set

Re: Problem: Edits to Troops

Post by TheJynxedOnes »

Bob wrote:Did you load your custom side in the LUA?
You know,

Code: Select all

     ReadDataFile("dc:SIDE\\yoursidenamehere.lvl",
etc.
Turns out I deleted the colon after "dc" and hadn't noticed. Everything is working fine now.
Post Reply