Hi,
what's the easiest way to make a new side for a map? For example, my side is called JediMasters, how can I get them work, that is loaded in my map? I know, it is something in the mission scripts, but don't know exactly how.
If I make a new Side, all folders are blank. Is there a way to use some Assets like the luke skywalker or mace windu? Or better, how can I currectly copy and paste assests that they will be munged?
Thanks in advance!
Make a new Side?
Moderator: Moderators
-
deagle
- Private Second Class
- Posts: 60
- Joined: Wed Mar 10, 2010 4:03 pm
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: Make a new Side?
I think you need to read this topic.
http://www.gametoast.com/forums/viewtop ... 27&t=12729
It's for BF2 but it's basically the same for BF1, or look at the sides folder in DataMod1 that has GAM as an example, and the scripts here: DataMod1/Common/Scripts/MOD/mod1a.lua for loading a side in your map.
This tutorial will help you further:
http://starwarsbattlefront.filefront.co ... rial;46828
http://www.gametoast.com/forums/viewtop ... 27&t=12729
It's for BF2 but it's basically the same for BF1, or look at the sides folder in DataMod1 that has GAM as an example, and the scripts here: DataMod1/Common/Scripts/MOD/mod1a.lua for loading a side in your map.
This tutorial will help you further:
http://starwarsbattlefront.filefront.co ... rial;46828
-
deagle
- Private Second Class
- Posts: 60
- Joined: Wed Mar 10, 2010 4:03 pm
Re: Make a new Side?
Hey, thanks for your reply!
I've followed the tutorial and made my side, but the map always crashs during loading. I was a bit confused about edit the lua's, and thats it where the errors come from:
And here is my lua gcw script:
I think there are many things wrong, but I don't know how to fix them
Does somebody has an idea?
I've followed the tutorial and made my side, but the map always crashs during loading. I was a bit confused about edit the lua's, and thats it where the errors come from:
Code: Select all
Message Severity: 3
.\source\LuaCallbacks_Mission.cpp(195)
Lua ReadDataFile: Could not open SIDE\forcejedi.lvl
Message Severity: 3
.\source\LuaScript.cpp(1951)
error: bad argument sent to Lua API function
stack traceback:
1: function `AddUnitClass' [C]
2: function `ScriptInit' [(none)]
Message Severity: 3
.\source\Team.cpp(166)
AddUnitClass lua script command specifies too many units for team !Code: Select all
-- Start sidelvls
ReadDataFile("SIDE\\all.lvl",
"all_inf_basicdesert",
"all_inf_lukeskywalker",
"all_inf_smuggler");
ReadDataFile("SIDE\\forcejedi.lvl");
--end sidelvls
--start loadouts
SetTeamName(ALL, "Alliance")
SetTeamIcon(ALL, "all_icon")
AddUnitClass(ALL, "all_inf_soldierdesert",10)
AddUnitClass(ALL, "all_inf_vanguard",1)
AddUnitClass(ALL, "all_inf_pilot",2)
AddUnitClass(ALL, "all_inf_marksman",2)
AddUnitClass(ALL, "all_inf_smuggler",1)
SetHeroClass(ALL, "all_inf_lukeskywalker")
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(ForceJedi, "rep_hero_anakin",1)
AddUnitClass(ForceJedi, "rep_hero_kiyadimundi",2)
AddUnitClass(ForceJedi, "rep_hero_macewindu",2)
AddUnitClass(ForceJedi, "rep_hero_obiwan",1)
AddUnitClass(ForceJedi, "rep_hero_yoda",1)
SetHeroClass(ForceJedi, "rep_hero_obiwan")Does somebody has an idea?
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: Make a new Side?
For one, you need to put the prefix "dc" before ReadDataFile("SIDE\\forcejedi.lvl"); so it looks like this:
ReadDataFile("dc:SIDE\\forcejedi.lvl",
"rep_hero_anakin",
"rep_hero_kiyadimundi",
"rep_hero_macewindu",
"rep_hero_obiwan",
"rep_hero_yoda",
"rep_hero_obiwan");
Plus you have specified two many units for your custom team. It should look like this:
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "rep_hero_anakin",1)
AddUnitClass(IMP, "rep_hero_kiyadimundi",2)
AddUnitClass(IMP, "rep_hero_macewindu",2)
AddUnitClass(IMP, "rep_hero_obiwan",1)
AddUnitClass(IMP, "rep_hero_yoda",1)
SetHeroClass(IMP, "rep_hero_obiwan")
... and there is no scriptInit function
All in all, it should look something like this:
You really should take time to read the documentation in the BFbuilder, and the tuts that I pointed you too. You will understand everything more clearly if you take your time , and do one section at a time.
Anyway, I hope that helps
Another problem why your map crashes is probably because BF1 can't take all those jedi animations which are mainly for BF2.
You might be better off buying BF2 and modding that instead.
ReadDataFile("dc:SIDE\\forcejedi.lvl",
"rep_hero_anakin",
"rep_hero_kiyadimundi",
"rep_hero_macewindu",
"rep_hero_obiwan",
"rep_hero_yoda",
"rep_hero_obiwan");
Plus you have specified two many units for your custom team. It should look like this:
SetTeamName(IMP, "Empire")
SetTeamIcon(IMP, "imp_icon")
AddUnitClass(IMP, "rep_hero_anakin",1)
AddUnitClass(IMP, "rep_hero_kiyadimundi",2)
AddUnitClass(IMP, "rep_hero_macewindu",2)
AddUnitClass(IMP, "rep_hero_obiwan",1)
AddUnitClass(IMP, "rep_hero_yoda",1)
SetHeroClass(IMP, "rep_hero_obiwan")
... and there is no scriptInit function
All in all, it should look something like this:
Hidden/Spoiler:
You really should take time to read the documentation in the BFbuilder, and the tuts that I pointed you too. You will understand everything more clearly if you take your time , and do one section at a time.
Anyway, I hope that helps
Another problem why your map crashes is probably because BF1 can't take all those jedi animations which are mainly for BF2.
You might be better off buying BF2 and modding that instead.
-
deagle
- Private Second Class
- Posts: 60
- Joined: Wed Mar 10, 2010 4:03 pm
Re: Make a new Side?
Thanks, the side works now!
All hero's are working for swbf1 aswell.
I already have swbf2, but I like number one more
All hero's are working for swbf1 aswell.
I already have swbf2, but I like number one more
- Jendo7
- Sith

- Posts: 1304
- Joined: Wed Apr 01, 2009 6:37 pm
- Location: Cambridge, England.
- Contact:
Re: Make a new Side?
True, you can't beat it 
