How do I make locked units available immediately? [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
1234567890
Recruit Womprat Killer
Posts: 12
Joined: Tue Aug 27, 2013 10:32 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

How do I make locked units available immediately? [Solved]

Post by 1234567890 »

Hi,
I tried searching for an answer, and did not find one. How do i make the jet trooper available immediately in the game without getting the points to unlock. I am making a map with only the jet trooper. any answers would be appreciated thanks,
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: making locked units available immediately in game

Post by Lorul1 »

Okay
Your new so I'm figuring you'll need a custom side to edit your trooper.
Whenever your Editing any kind of class weather it's giving a sniper rifle to a heavy trooper or in your case removing the "points to unlock" from a unit you'll need to make a custom side for those troopers to edit them. sadly you cant edit the troopers from the "assets/sides" folder so don't even try that.

so first follow this tutorial here but completely copy the side folder you want from the "assets/side" and paste it in your "Data_ABC/Sides" then open the odf folder (in Data_ABC) Find the odf of the trooper with points, and delete the line that says something like "points to unlock = ?" save and continue the tutorial from

" Last step adding your unit to the lua script."

But instead of using "pms" use "rep" ( or "imp" I don't know what kind of jet trooper you mean)
Hope that helped
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: making locked units available immediately in game

Post by AQT »

kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: making locked units available immediately in game

Post by kinetosimpetus »

If you're using the Phase 1 from geonosis, there is also a separate version with 0 points to unlock in the stock sides called rep_inf_ep2_jettrooper_training, or is it rep_inf_ep2jettrooper_training...

If Phase II from the rest of the maps, what AQT linked is simplest.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: making locked units available immediately in game

Post by nobody3 »

rep_inf_default_jettrooper.odf

Code: Select all

PointsToUnlock      = 12
self explaining
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

Re: making locked units available immediately in game

Post by Lorul1 »

I always thought you had to make a custom side to edit ANY kind of unit. :shock:
sorry if I confused you earlier
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: making locked units available immediately in game

Post by AnthonyBF2 »

Getting free specials isnt hard, you don't even need mod tools, just open the dafault side.lvl's in a hex editor and search for something like all_inf_default_officer (this is code for bothan) and look for
c$Kq8 and over write 0 on the 8, then hit F3 to find next instance of the code, until the hex faces
you with "no pattern found" and do the same for other specials, look for c$Kq8 or 12(easy)

all.lvl:

all_inf_default_officer
all_inf_default_wookiee

rep.lvl

rep_inf_default_jettrooper
rep_inf_default_officer

cis.lvl

cis_inf_default_droideka
cis_inf_default_officer

imp.lvl

imp_inf_default_dark_trooper
imp_inf_default_officer

This few edits takes me like 2 minutes :D
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: making locked units available immediately in game

Post by Anakin »

After he sayed that he wants to make an own map with only jet trooper i think that's not that what he's looking for.

but nice trick :mrgreen:
1234567890
Recruit Womprat Killer
Posts: 12
Joined: Tue Aug 27, 2013 10:32 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: making locked units available immediately in game

Post by 1234567890 »

Thanks guys, I just used the training jettrooper. one more problem, the ai jet troopers are dying when falling from a height, but when i fall, i dont die. Is there anyway to keep the ai from dying. there is no death region
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: making locked units available immediately in game

Post by nobody3 »

try add this in the unit's odf
CollisionScale = "0.0 0.0 0.0"
Post Reply