Page 1 of 1

Inserting .lvl's through a lua

Posted: Fri Oct 14, 2011 7:53 pm
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 :?

Re: Inserting .lvl's through a lua

Posted: Fri Oct 14, 2011 8:20 pm
by AQT
Try looking here:
Except skip through the side-creating parts and directly to the unit-lua-loading sections.

Re: Inserting .lvl's through a lua

Posted: Sat Oct 15, 2011 12:06 pm
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?

Re: Inserting .lvl's through a lua

Posted: Sat Oct 15, 2011 4:02 pm
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.

Re: Inserting .lvl's through a lua

Posted: Sat Oct 15, 2011 4:49 pm
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.

Re: Inserting .lvl's through a lua

Posted: Sat Oct 15, 2011 7:28 pm
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.