Is a third team possible?

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
User avatar
brant777
Private Third Class
Posts: 52
Joined: Thu Mar 22, 2012 9:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: Why? PS3 is better
Location: pennsylvania
Contact:

Is a third team possible?

Post by brant777 »

hi again, as you all know in bf2 there are two sides to pick, usually alliance (side 1) vs. empire (side 2) or cis (side 1) vs. republic (side 2). but i was wandering if it is possible to add a third side to my map (right now it is hero and villains), but i would like to add a third side called "Jensaarai". i have a few ideas how to do so such as
Hidden/Spoiler:
SetupTeams{
(rename this to jensaarai) hero = {
team = ALL, (don't know how to change this to whatever)
units = 12,
reinforcements = -1,
soldier = { "all_hero_hansolo_tat",1,2},
assault = { "all_hero_chewbacca", 1,2},
engineer= { "all_hero_luke_jedi", 1,2},
sniper = { "rep_hero_obiwan", 1,2}, (just change these to my characters)
officer = { "rep_hero_yoda", 1,2},
special = { "rep_hero_macewindu", 1,2},
},
}
that is my main idea so if anyone can help me out i would be very appreciative
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Is a third team possible?

Post by CressAlbane »

You can make a third local side, but you can't make a 3rd playable team.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Is a third team possible?

Post by ARCTroopaNate »

This is not possible. You can add up to nine teams but only TWO can be playable at any time. There are third party teams such as Jawas on Tatooine and Geonosians on Geonosis. This tutorial will help you set up locals.

http://www.gametoast.com/forums/viewtop ... =27&t=6088

EDIT: Ninja'd by Cress.
User avatar
brant777
Private Third Class
Posts: 52
Joined: Thu Mar 22, 2012 9:05 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: Why? PS3 is better
Location: pennsylvania
Contact:

Re: Is a third team possible?

Post by brant777 »

ARCTroopaNate wrote:This is not possible. You can add up to nine teams but only TWO can be playable at any time. There are third party teams such as Jawas on Tatooine and Geonosians on Geonosis. This tutorial will help you set up locals.

http://www.gametoast.com/forums/viewtop ... =27&t=6088

EDIT: Ninja'd by Cress.
thanks but i already have locals. thanks for both of yalls help, i guess ill change one of the sides to jensaarai (probably heros since they suck anyways) but thanks.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Is a third team possible?

Post by Fiodis »

You can only have two teams selectable at the start of a round, but it's possible through LUA to put any unit (including the player's) on a third team. See this post. It requires some knowledge of LUA coding, though, so it's probably best if you go with the stock two-team setup and rename one of them.
Garuda95
Recruit Womprat Killer
Posts: 7
Joined: Fri Nov 25, 2011 10:03 pm
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2 EaW EaW FoC
xbox live or psn: No gamertag set
Contact:

Re: Is a third team possible?

Post by Garuda95 »

brant, ive been on the map, but bfor u want to put locals, plz giv teh AI some movements (they just stand there until you attack them), then u kno how to use the locals effectively
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:

Re: Is a third team possible?

Post by [RDH]Zerted »

Possible, yes. Easy, no. Doable by a mid-skilled in Lua modder, yes.

You can hack in support for as many teams as the game will let you create (check the limits topic for the max local team #). However, there can only be 18 human playable units (9 per real team).

Look at the Multi-Team Support (2nd listed Mod) source+demo here: http://zerted.getmyip.com/swbf2.xhtml It was my hacky attempt at supporting 3+ playable teams. It works, but I didn't polish it or update the stats screen for the extra teams (can be done if you really want to).

To clean the mod up into a general/common usable form for multiple modders, it needs logic to force spawn (or remake the CP spawn selection code) the 3+ teams' units near their team CPs. You aren't on a 3+ team until the unit spawns, so you can only select the CPs of the original team (1 or 2) you joined the game on. For personal use, you can simple hard-code where you want the extra teams to spawn and ignore the CP issue. Just make sure to handle when all the CPs are no longer controlled by teams 1 or 2 (or prevent the 3+ teams from being able to capture CPs).

@Fiodis' reference to an eariler post of mine: I got around not being able to disable sections of the unit selection screen by upping the unlock points on every unit not linked to your playable team. This works client side, so every player has different units locked out depending on which team they selected.

I wanted to fix this up and build it in for v1.4, but I haven't worked on that in months.
Post Reply