How I create a campaign for Battlefront 2? [Solved]
Moderator: Moderators
-
- Private Third Class
- Posts: 52
- Joined: Thu Apr 05, 2018 11:48 am
- Projects :: Kashyyyk Droid Invasion
- xbox live or psn: DaviidHL_
How I create a campaign for Battlefront 2? [Solved]
I have Battlefront 2 Mod tools and I have some experience creating maps with Zeroeditor. But, how I can create a campaign in a space map?
Last edited by DaviidHL on Sun Apr 15, 2018 9:01 am, edited 1 time in total.
-
- Command Sergeant Major
- Posts: 260
- Joined: Mon Apr 18, 2011 2:53 pm
- Projects :: Underground City The Complex [WIP]
Re: How I create a campaign for Battlefront 2?
To create a campaign mission you need some knowledge of LUA and the BF2 scripts. I recommend checking out some tutorials such as this: http://www.gametoast.com/viewtopic.php?f=27&t=9323 and looking at the stock campaign maps' scripts in "BF2_ModTools/assets/scripts".
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: How I create a campaign for Battlefront 2?
To add onto what hunpeter said, I also recommend reading through the "official" scripting system guide: https://sites.google.com/site/swbf2modt ... ing_system
Additionally, I recommend setting up a proper SWBF2 scripting environment to make your scripting experience easier. I recommend using either Visual Studio Code or Lua Development Tools for your IDE, paired with my Lua API, which can be found HERE (for Visual Studio Code) and HERE (for LDT), that way you'll have things like auto-complete like so!
With that said, if you choose to go with Visual Studio Code, I recommend getting the LuaCoderAssist extension and vscode-lua extension so you can have proper syntax highlighting, linting, etc. The default settings for LuaCoderAssist are pretty annoying, so I recommend using these ones:
Additionally, I recommend setting up a proper SWBF2 scripting environment to make your scripting experience easier. I recommend using either Visual Studio Code or Lua Development Tools for your IDE, paired with my Lua API, which can be found HERE (for Visual Studio Code) and HERE (for LDT), that way you'll have things like auto-complete like so!
With that said, if you choose to go with Visual Studio Code, I recommend getting the LuaCoderAssist extension and vscode-lua extension so you can have proper syntax highlighting, linting, etc. The default settings for LuaCoderAssist are pretty annoying, so I recommend using these ones:
Code: Select all
"LuaCoderAssist.luacheck.enable": false,
"LuaCoderAssist.metric.enable": false,
"LuaCoderAssist.format.lineWidth": 250,