Help Getting Started

Started by Red Boi, June 11, 2019, 01:57:21 PM

Previous topic - Next topic
Howdy, I'm new here and I only just discovered earlier today that Battlefront 1 is on Steam, I immediately got it and I really want to mess around and see what I can do. However, these tools are a lot different than what I'm used to and I couldn't understand the tutorials. All I really want to do are simple changes, like I've always really wanted to play as the Tusken Raiders on the dune sea map and leave everything else unchanged. I'd appreciate if anyone could help me with just that, cheers!

June 11, 2019, 03:46:54 PM #1 Last Edit: June 11, 2019, 03:48:45 PM by Led
Welcome   :cheers:


There are a lot of ways to get into modding. 


This tutorial will give a nice overview:
https://www.swbfgamers.com/index.php?topic=8.0

What you want to do is pretty easy with a mission mod.

For instant action, you will need to create a new mission.lvl file.
It is pretty easy to do.

You will need this download:
https://www.swbfgamers.com/index.php?action=downloads;sa=view;down=319

which will create a mission.lvl file from map lua files.


Here are some lines from the tat1i.lua file
(original)


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

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

--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 250)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)

--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 250)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

--  Local Stats
    SetTeamName(3, "locals")
    AddUnitClass(3, "tat_inf_tuskenraider", 5);
    AddUnitClass(3, "tat_inf_tuskenhunter", 2);
    SetUnitCount(3, 14)

---------------------------------------

if you want to play as TuskenRaider, simply make this change (and munge and use the new mission.lvl file)

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




see these posts to learn more about mission.lvl modding
https://www.swbfgamers.com/index.php?topic=13375.msg121027#msg121027



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

I've been trying for a while to get this to work, and I thought I had it down but when I launched my map, the tusken classes weren't there and all I had were the remaining 2 droid classes I left. The actual tusken faction was gone for whatever reason too, leaving their CP's red and owned by an 'undefined team'. Also, I've been trying to make this a separate version from the Dune Sea map, I looked up the guide on how to copy it and managed to do that easily enough, but there's multiple ways to edit the sides and I'm not sure which one it is. Lastly, this isn't necessary but I'd like to be able to play as the actual native faction with the yellow CP's, and instead have either the Republic or CIS purely AI controlled.

For the method I showed, you just had to change one line.  Note that the selection screen will show a trooper unit, but it will be a tusken in game play.

What you want is certainly possible (although maybe not the yellow cps) but you will have to learn how to mod or get someone else to make it for you.

If you are interested in modding, start with the first tutorial and keep trying things and learning with each attempt.  There are no shortcuts, but it can be very rewarding once you get it figured out.

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

Okay, so after starting over a few times I managed to get it to work, I still don't really know how I did it, but I'm not gonna question it.

You can change around the team structure so that the tuskens are team 1 or 2 (selectable) instead of team 3 (unselectable except with some Cheat Engine wizardry).  However, this will also change the cp alignments, since the CPs are set to team numbers, not the actual team.  A side effect of this is that you should get a yellow CP if you change the team numbers because the game will not know that you are on the Rebs or Imps, so it just makes it Yellow, no matter the team number.

It's kind of confusing, but once you get the hang of it, it's fun.

@Led, in Single Player it actually shows the correct unit.  In Multiplayer it will show the client's unit, even if the server is different.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.