[SOLVED] Normal sides as locals?

Started by Snake, May 28, 2012, 03:57:02 PM

Previous topic - Next topic
May 28, 2012, 03:57:02 PM Last Edit: May 28, 2012, 04:06:09 PM by SnΛke
I was wondering if it was possible to use sides like imp, all, rep or cis as locals in a map? I have been trying to make it work but I can't quite figure it out. I will post more about this when I do a little more testing. Anyone done this before?

--EDIT

On my final idea I figured it out :D

Here's some pics:
http://beta.xfire.com/users/aatcsnake/screenshots/123687705?type=user
http://beta.xfire.com/users/aatcsnake/screenshots/123687698?type=user

Here's my .lua:
[spoiler]-- Start sidelvls
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka");
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper");
    ReadDataFile("dc:SIDE\\imp.lvl",
        "imp_fly_destroyer_dome",
        "imp_fly_tiefighter",
        "imp_hover_speederbike",
        "imp_walk_atst",
        "imp_inf_basic_tie",
        "imp_inf_dark_trooper",
        "imp_inf_darthvader")

    SetAttackingTeam(ATT);
--end sidelvls
--start loadouts
SetTeamName(CIS, "CIS")
SetTeamIcon(CIS, "cis_icon")
AddUnitClass(CIS, "cis_inf_battledroid",10)
AddUnitClass(CIS, "cis_inf_assault",1)
AddUnitClass(CIS, "cis_inf_pilotdroid",2)
AddUnitClass(CIS, "cis_inf_assassindroid",2)
AddUnitClass(CIS, "cis_inf_droideka",1)
SetHeroClass(CIS, "cis_inf_countdooku")
SetTeamAsEnemy(ATT,3)
SetTeamName(REP, "Republic")
SetTeamIcon(REP, "rep_icon")
AddUnitClass(REP, "rep_inf_clone_trooper",10)
AddUnitClass(REP, "rep_inf_arc_trooper",1)
AddUnitClass(REP, "rep_inf_clone_pilot",2)
AddUnitClass(REP, "rep_inf_clone_sharpshooter",2)
AddUnitClass(REP, "rep_inf_jet_trooper",1)
SetHeroClass(REP, "rep_inf_macewindu")
SetTeamAsFriend(DEF,3)
--  Local Stats
    SetTeamName(3, "locals")
    AddUnitClass(3, "imp_inf_storm_trooper",5)
    AddUnitClass(3, "imp_inf_shock_trooper",3)
    AddUnitClass(3, "imp_inf_pilottie",2)
    AddUnitClass(3, "imp_inf_scout_trooper",2)
    AddUnitClass(3, "imp_inf_dark_trooper",2)
    SetUnitCount(3, 14)
    SetTeamAsEnemy(3,ATT)
    SetTeamAsFriend(3,DEF)[/spoiler]

Although it needs some tinkering because the allies of the locals could capture their cp.
=AaTc= Forever

SALLY....

-Retired Modder

By that I assume you mean these values in the LUA?

local CIS = 1
local REP = 2


Technically yes. local in LUA defines a local variable for use in tests or to be a variable that is often used, for instance in SWBF were you see CIS LUA is reading it as a 1 there. Thus instead of changing all the instances of it you can simply change local CIS = 1 to local CIS = 2 and all the commands will be updated.

Another thing SWBF uses these for is calling on for the names of infantry soldiers and stuff i.e. Fin Urland, thus why you never change CIS or REP to something else.

So yes you could use CIS as a local by changing it to local CIS = 3, I don't know what this could do to the rest of the game though.

See my LUA for multiple locals for examples, i will try to find it and update this post with links.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

I may make a little "Era Clash" map or something with this. I have a question, would a second locals team be team 4?
=AaTc= Forever

SALLY....

-Retired Modder


Ahhh, It all makes sense now. What is the limit of local teams?
=AaTc= Forever

SALLY....

-Retired Modder

undetermined.

I have had as many as 6 new locals + rebs + imps + jawa
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Given the fact it doesn't seem like Pandemic put a limit on the amount of teams themselves I would wager the limit will be this 4,294,967,296.

May 28, 2012, 07:27:47 PM #8 Last Edit: May 28, 2012, 07:33:22 PM by tirpider
heh
I'd like to see 100 individually tailored local sides in the same map

I think it would look like this:
[spoiler]CRASH[/spoiler]


-edit
I might be dead wrong though.
If everything is nailed down right, it would be impressive to implement.

Even if the teams themselves are nigh infinite, tirpider is right that SWBF probably has no way near enough resources allotted for too many.

I think the real limit would only be on being able to load the sides.  If you just a a couple of units in each, I bet 25-50 local teams would be no problem.  If anyone wants to make a map with 52 CP's (50 locals and 2 regular teams)  I would make a mission.lua file for you  ;)
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

epic
Quote from: Buckler on May 28, 2012, 08:00:45 PM50 locals and 2 regular teams

I love it
Thats a lot of Tuskens

I'm wondering how having so many local teams could strategicly affect the game.
They could be alligned against each other and play out thier own dramas while the player(s) pursue thier goals.

Quote from: Buckler on May 28, 2012, 08:00:45 PM
I think the real limit would only be on being able to load the sides.  If you just a a couple of units in each, I bet 25-50 local teams would be no problem.  If anyone wants to make a map with 52 CP's (50 locals and 2 regular teams)  I would make a mission.lua file for you  ;)

I will try to create a map with 50 vehicular (commandhover and walker) and destructible command posts with 2 ground posts then you can set up the LUA and we can test it in game.

mmm, would that work to spawn local units ?
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

50 destructible bases (rebel thing, the 2 buildings from geonosis, and hoth shield generator) set to spawn locals, then some extra vehicular command posts for players (at-te, at-at, hovernaut, mtt) you could set up a bunch of tuskens and/or other local factions assigned to the destructible bases, i think this would be alot simpler than adding a bunch of capture and control regions for 50 additional posts. rather just one giant control region for the 2 ground cps so tanks can respawn.