Game Modes

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Guest

Game Modes

Post by Guest »

Hey its Arty (again) and this time I'm wandering how you Make new game modes. Because I've got several ideas, and I want to actually make them! :D

-Arty-

8)
-_-
Gametoast Staff
Gametoast Staff
Posts: 2678
Joined: Sat May 07, 2005 1:22 pm

Post by -_- »

script objectives of the mode in a .lua, and run it with a custom map.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Yup. Game modes are scripted via lua. Not many guys know the ins and outs of LUA aside from the scripts for a level, but you might talk to [RDH]Zerted and XWingGuy. They're the only ones who know LUA really well.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

There are a lot of little, easy steps to get a new game mode working. The first thing you want to do is create the game mode inside another mode (lets say conquest). This way, you can focus on creating the game mode and not all the little steps trying to get it to work/showup.

To get started:
1) Create a new map with a conquest game mode.
2) Edit the map's Lua (ex: XXXg_con.lua)
2b) Remove all the ScriptCB_DoFile()s except ScriptCB_DoFile("setup_teams")
2c) Delete everything inside the function ScriptPostLoad()
Now get going on your game mode.


You can take a look at: http://www.gametoast.com/index.php?name ... 76&start=0
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

Wow! I just tried your new shell (hehe, mod maps are purple now :D ), and I have to say, you rock!!:D I've always wanted to play campaign whenever I wanted. I like those new Icons as well.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Teancum did all the new icons. The mod maps being purple is faster for the computer to process, then if I had coded them to be the same as the normal game. I think the colors are going to change though...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Btw Zerted, I have all the code set up so that mod maps are orange. It's not yellow, it's better :P
xwingguy

Post by xwingguy »

Zerted, objective mode was ideally supposed to be a campaign-ish mode design for multiplayer. Mygeeto campaign was written somewhat with this in mind.
Post Reply