SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Snake on March 07, 2013, 02:53:55 PM

Title: Crossing Eras
Post by: Snake on March 07, 2013, 02:53:55 PM
Is it possible, if a map has REP, IMP, and ALL in the same side file, to cross Alliance so that it fights both the Imps and the Republic, depending on what era the person chooses to play by editing it in the .lua?
Title: Re: Crossing Eras
Post by: RepComm on March 07, 2013, 03:00:13 PM
Couldn't you just tell the mission lua of the specific map to read all 4 sides, then fill in the units with the troops you want?
I don't understand why you would need a...I guess 'merged' side.lvl to accomplish it, that sounds like too much effort.

    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
"rep_inf_macewindu",
        "rep_inf_jet_trooper");

    ReadDataFile("SIDE\\cis.lvl",
        "cis_inf_basic",
"cis_inf_countdooku",
        "cis_inf_droideka");
----------------------------------------
    ReadDataFile("SIDE\\all.lvl",
        "all_inf_basicdesert",
"all_inf_lukeskywalker",
        "all_inf_smuggler");

    ReadDataFile("SIDE\\imp.lvl",
        "imp_inf_basic_tie",
"imp_inf_darthvader",
        "imp_inf_dark_trooper");

You could add that to the LUA, then replace the spawning units with what ever trooper from what ever class you wanted, and without munging new combined sides.

Title: Re: Crossing Eras
Post by: Phobos on March 07, 2013, 03:23:37 PM
repcom is right , you don't need to change any side LVLs if all you want to do is add units from both eras just make the appropriate changes to mission lua
Title: Re: Crossing Eras
Post by: Snake on March 07, 2013, 04:40:05 PM
Alright, thats what I was hoping but I wasn't quite sure. Thanks!
EhPortal 1.34 © 2025, WebDev