uberserver icon indicating copy to clipboard operation
uberserver copied to clipboard

allow autohosts to open multiple battles

Open abma opened this issue 11 years ago • 7 comments

it should be possible for bots to open multiple battle at once.

migration path:

  • handle battles similar to channels
  • distingish battle / channel by channel name, numbers only = battle, name with chars = channel
  • in battle, channel owner = host
  • battle update commands needs channel name as param

commands needed to be changed:

REMOVESCRIPTTAGS SETSCRIPTTAGS SCRIPTSTART SCRIPTEND ADDSTARTRECT REMOVESTARTRECT UPDATEBOT REMOVEBOT ENABLEUNITS ENABLEALLUNITS DISABLEUNITS FORCESPECTATORMODE FORCEALLYNO FORCETEAMNO KICKFROMBATTLE HANDICAP MYBATTLESTATUS LEAVEBATTLE

...

(ugh, list is larger than i thought)

abma avatar Dec 29 '13 11:12 abma

related to #57

abma avatar Dec 29 '13 11:12 abma

can be easily done after #135 is implemented

abma avatar Jan 17 '15 04:01 abma

n2s, since channels save stuff to db, can't use battle_id for channel name

silentwings avatar Oct 07 '18 11:10 silentwings

add the attribute battle_id to channels? :-P

abma avatar Oct 07 '18 15:10 abma

I'm working on making Battle a derived class of Channel!

silentwings avatar Oct 07 '18 16:10 silentwings

n2s ideas:

FORCETEAMNO, FORCEALLYNO, FORCETEAMCOLOR, FORCESPECTATORMODE, HANDICAP should be deprecated/combined into a single key=value command e.g. SETUSERBATTLESTATUS

this leaves the following commands needing changes: JOINBATTLE LEAVEBATTLE KICKFROMBATTLE SETSCRIPTTAGS REMOVESCRIPTTAGS ADDBOT UPDATEBOT REMOVEBOT RING plus the following which should probably be subsumed into *SCRIPTTAGS ADDSTARTRECT REMOVESTARTRECT ENABLEUNITS ENABLEALLUNITS DISABLEUNITS

silentwings avatar Oct 08 '18 07:10 silentwings

https://github.com/spring/uberserver/pull/282/commits/a1c0e8591fdadeeb5f828803edfc0654c221fc53

silentwings avatar Oct 10 '18 16:10 silentwings