A little help here....

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
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

A little help here....

Post by Karnage »

Ok i'm new at this modding stuff for BF2 (just bought it yesterday), and i've looked alot of the threads here and I can't find alot on editing the original sides like imp.lvl or rep.lvl. Any help here?
Fiminopter
Sergeant Major
Sergeant Major
Posts: 221
Joined: Sat Apr 29, 2006 11:20 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Fiminopter »

What you do is go to the folder called
C:\BF2_ModTools\assets\sides
and copy the side you want to change (I chose rep). Paste it in the folder called
C:\BF2_ModTools\data_MAP\Sides (
where MAP is the three letter name of the map). Then go to C:\BF2_ModTools\data_MAP\Common\scripts\MAP
and open the script of your choosing (whether it be for conquest or whatever) and then scroll down to where it says:

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_hero_anakin")

and put in a dc: before SIDE so it looks like this

ReadDataFile("dc: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_hero_anakin")

Now, you're done with the scripts.

Let's say I wanted to change the weapon of a clone trooper. For example, I want to give the Jet Trooper a Rifle and the EMP Launcher. So I go to
C:\BF2_ModTools\data_MAP\Sides\rep\odf
and open a file called
rep_inf_default_jettrooper.
The bottom half of the odf should be something like this

[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_emp_launcher"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "rep_weap_award_pistol"
WeaponAmmo = 6


I change it so it looks like this:

[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_emp_launcher
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

Then I add this after so I can enable the AWARD rifle.

WEAPONSECTION = 4
WeaponName = "rep_weap_award_rifle"
WeaponAmmo = 4

Save, munge, and play!
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Post by Karnage »

Thanks, I know how to mod I just wanted to know how to add the original sides.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Are you saying you want to create new sides?
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 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: In An Epic Space Battle!
Contact:

Post by Hebes24 »

When I copy the Alliance to my sides folder, in game I lose the Vanguard, sniper, and wookie!!:cry: It makes no sense, because I copied the alliance directly from assets!!! This happens only with the alliance, every other side is fine.:?

OK, I got the Vanguard working :) . But the sniper and wookie are still missing!!:evil:

Sorry, But this is getting quite frustrating!:evil:

EDIT: Never mind. I got it to work!!!:D YAY!!

@Karnage: do this:
Fiminopter wrote:What you do is go to the folder called
C:\BF2_ModTools\assets\sides
and copy the side you want to change (I chose rep). Paste it in the folder called
C:\BF2_ModTools\data_MAP\Sides (
where MAP is the three letter name of the map).
however, I think you need to munge the side you copy before you can play the game with it.
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Post by Karnage »

Okay this is what I did.

1. Copied the rep side from BF2_ModTools/assets/sides into BF2_ModTools/data_NEW/Sides.

2. Edited the NEWc_con.lua in BF2_ModTools\data_NEW\Common\scripts\NEW to look like this...

ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc: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")
3. Cleaned everything then Munged everything and tested the map. It crashed. What's up?
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 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: In An Epic Space Battle!
Contact:

Post by Hebes24 »

Munge the new side, unless that's what you meant by "Munged everything"... otherwise you did everything right. in fact, that's exactly what I did.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

You have to copy /assets/sides/common over so you have /data_123/sides/common. The game is probably looking for the common files and can't find them.
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Post by Karnage »

Yep that did it. Thanks for all the help.
Post Reply