Hey there

Started by dkeighobadi, April 12, 2016, 12:43:33 PM

Previous topic - Next topic
Welcome to myself, I guess.

I was actually wondering, is there a way, or more realistically, a mod to make heroes playable in SWBF?
Any suggestions welcome.

There most definitely is! I believe there's a couple mods around here already that make heroes playable. If you're looking to do it yourself, check out the thread here:

http://www.swbfgamers.com/index.php?topic=979.0

It's a guide to understanding the LUA. That's the file you'll need to edit to make heroes playable in any map you make.
"Birth, pain, fear, death; the cycle of existence." -Dread Master Calphayus.

SWBF1 Maps: Tatooine: Mos Anek, Kashyyyk: Village, Naboo: Province, Tatooine: Gulch.

SWBF2 Maps: Space Carida.

April 12, 2016, 02:55:18 PM #2 Last Edit: April 12, 2016, 03:06:19 PM by Led
What this requires is something called a "mission.lvl" mod.  It is my favorite thing to mod for SWBF1 and also the easiest.

I will show you how this is done for one map, and you can change the others if you want.

First, you need this download:

http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=319


Download file, extract it (you may need to get the 7zip extractor), go into the scripts folder, then BES folder, and open BES1a.lua with notepad.

You will see a section like this:

--  Alliance Stats
      SetTeamName(ALL, "Alliance")
      SetTeamIcon(ALL, "all_icon")
      AddUnitClass(ALL, "all_inf_soldierurban",11)
      AddUnitClass(ALL, "all_inf_vanguard",5)
      AddUnitClass(ALL, "all_inf_pilot",5)
      AddUnitClass(ALL, "all_inf_marksman",4)
      AddUnitClass(ALL, "all_inf_smuggler",3)
    SetHeroClass(ALL, "all_inf_lukeskywalker")

--    Imperial Stats
      SetTeamName(IMP, "Empire")
      SetTeamIcon(IMP, "imp_icon")
      AddUnitClass(IMP, "imp_inf_storm_trooper",11)
      AddUnitClass(IMP, "imp_inf_shock_trooper",5)
      AddUnitClass(IMP, "imp_inf_pilottie",5)
      AddUnitClass(IMP, "imp_inf_scout_trooper",4)
      AddUnitClass(IMP, "imp_inf_dark_trooper",3)
    SetHeroClass(IMP, "imp_inf_darthvader")



Now, make it look like this:


--  Alliance Stats
      SetTeamName(ALL, "Alliance")
      SetTeamIcon(ALL, "all_icon")
      AddUnitClass(ALL, "all_inf_lukeskywalker",11)
      AddUnitClass(ALL, "all_inf_vanguard",5)
      AddUnitClass(ALL, "all_inf_pilot",5)
      AddUnitClass(ALL, "all_inf_marksman",4)
      AddUnitClass(ALL, "all_inf_smuggler",3)
    SetHeroClass(ALL, "all_inf_lukeskywalker")

--    Imperial Stats
      SetTeamName(IMP, "Empire")
      SetTeamIcon(IMP, "imp_icon")
      AddUnitClass(IMP, "imp_inf_darthvader",11)
      AddUnitClass(IMP, "imp_inf_shock_trooper",5)
      AddUnitClass(IMP, "imp_inf_pilottie",5)
      AddUnitClass(IMP, "imp_inf_scout_trooper",4)
      AddUnitClass(IMP, "imp_inf_dark_trooper",3)
    SetHeroClass(IMP, "imp_inf_darthvader")



save the file, and double click on "munge.bat" then look in the folder LVL_PC.

replace your "mission.lvl" file with the newly created "mission.lvl" file in LVL_PC.
(back up your original mission.lvl file before over-writing it)



Now, start your game and for BES1a map (platforms, I think) you can select a soldier unit to play, but it will really be a hero.

Easy as that!   :cheers:


Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet