Inserting .lvl's through a lua

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
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Inserting .lvl's through a lua

Post by DarthXeon »

Hey i was wondering how to add rep_hero_fisto through a pre-munged .lvl into my lua im completely clueless what to do :?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Inserting .lvl's through a lua

Post by AQT »

Try looking here:
Except skip through the side-creating parts and directly to the unit-lua-loading sections.
User avatar
DarthXeon
Banned
Posts: 84
Joined: Mon Sep 19, 2011 5:41 pm
Projects :: I move fast... Lightning fast...
Games I'm Playing :: Hmm... I wonder...
Location: In A Nearby Solar System

Re: Inserting .lvl's through a lua

Post by DarthXeon »

:? Dosent help. What i mean is: I downloaded kit fisto as a .lvl and i want to put him in a
un-finished map. would i have to put the .lvl in the Data_Ren/Sides/*** Folder?
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Inserting .lvl's through a lua

Post by CressAlbane »

You would put the lvl you downloaded in the munged directory, such as C:\Program Files\LucasArts\StarWars Battlefront 2\GameData\addon\ABC\_LVL_PC\SIDE.

You're also going to need to edit the .LUA file to call Kit Fisto.

In ABC*_con, (I'm assuming this is conquest) browse to:

Code: Select all

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_hover_fightertank",
                             "rep_hero_anakin",
                             "rep_hover_barcspeeder")
Copy it.

Get rid of this part in the copy:

Code: Select all

                    "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"
Add a line to read kit fisto from the lvl you downloaded. (eg. "rep_hero_kitfisto",)

Then, edit this line:

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
to be:

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl",
This tells the game to read from your addon map's SIDE folder.

So, the final result would be

Code: Select all

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_hover_fightertank",
                             "rep_hero_anakin",
                             "rep_hover_barcspeeder")

ReadDataFile("dc:SIDE\\rep.lvl",
                             "rep_hero_kitfisto")
Hope this helps! Remember, you'll need to replace "rep_hero_kitfisto" with whatever the name is in the .lvl you downloaded.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Inserting .lvl's through a lua

Post by DarthD.U.C.K. »

DarthXeon wrote::? Dosent help.
wrong attitude, please try again...
you have to copy the .lvl into gamedata\addon\XXX\data\_lvl_pc\side.
you might aswell copy it into data_XXX\_lvl_pc\side and visualmunge will copy it into the maps folder in addon, but im not sure.

edit:ok, it might have taken me a little tong to write my reply (3/4 hour) and im a little late but i hope my post is valuable aswell.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Inserting .lvl's through a lua

Post by AQT »

DarthXeon wrote: :? Dosent help. What i mean is: I downloaded kit fisto as a .lvl and i want to put him in a
un-finished map.
Doesn't help who now? I knew what you meant, and that was why I posted the link for you.
would i have to put the .lvl in the Data_Ren/Sides/*** Folder?
Had you actually read and understood that tutorial, you wouldn't be asking this. What CressAlbane and DarthD.U.C.K. posted are reiterated portions of said tutorial.
Post Reply