Subspace Hockey/Football Zone Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Group Moderation: To edit access to a group you control, go to the Membergroups interface from the Moderate button. If you don't have that option, contact Kilo Dylie with the names of the moderators who should be on your group.

Author Topic: Doobie made... a game module!  (Read 458 times)

Doobie

  • Local Moderator
  • Inspiration to Trolls Everywhere
  • *****
  • Posts: 2038
Doobie made... a game module!
« on: January 25, 2017, 11:08:18 PM »

Posting here because I still still don't have access to Public Development.  I am still still assuming it will be moved later.

The module can run ANY number of games in an arena, according to a variety of rules, allowing players to independently vote on goals and start games.

Right now most commands only work for players involved in a particular game/rink but I plan on adding parameters to support more later. 

There are also mod/babysitter commands needed to deal with shenanigans/cleanup.

Player commands:
?g
?score
?timeleft
?listgames
?listrinks
?listrules
?s
?startgame

Mod Commands:
?validate

I also have a version of the smallevent arena with goal regions to be uploaded to fit with this

I hope this can be used for Sundays 5v5 tournament, but it needs some testing before then.  So IF it gets put up I will need some volunteers to put things through its paces.  It works in my tests but they are NOT exhaustive.

I can't post the code here because we have officially reached the character limit for this forum:
https://drive.google.com/file/d/0BwWYotrU98BKbWRGUTB0b2hMRjQ/view?usp=sharing
Logged

Doobie

  • Local Moderator
  • Inspiration to Trolls Everywhere
  • *****
  • Posts: 2038
Re: Doobie made... a game module!
« Reply #1 on: January 28, 2017, 09:25:42 PM »

I have uploaded a new version.  My module cleanup when the arena got shot down was leaking arena references.

Also, below is the configuration/settings needed for ?go smallevent to work with this module

Code: [Select]
Rules:Names=Standard,Short

Rules:Standard:GameTime=12
Rules:Standard:MaxScore=5
Rules:Standard:WinBy=2
Rules:Standard:CanTie=False

Rules:Short:GameTime=8
Rules:Short:MaxScore=3
Rules:Short:WinBy=1
Rules:Short:CanTie=True

Rink:Names=Top,Middle-Top,Middle,Middle-Bottom,Bottom

Rink:Top:Team1Frequency=0
Rink:Top:Team2Frequency=1
Rink:Top:Ball=0
Rink:Top:Team1GoalRegion=freq0goal
Rink:Top:Team2GoalRegion=freq1goal
Rink:Top:DropX=512
Rink:Top:DropY=81
Rink:Top:SpawnX=512
Rink:Top:SpawnY=133
Rink:Top:Rules=Standard

Rink:Middle-Top:Team1Frequency=2
Rink:Middle-Top:Team2Frequency=3
Rink:Middle-Top:Ball=1
Rink:Middle-Top:Team1GoalRegion=freq2goal
Rink:Middle-Top:Team2GoalRegion=freq3goal
Rink:Middle-Top:DropX=512
Rink:Middle-Top:DropY=303
Rink:Middle-Top:SpawnX=512
Rink:Middle-Top:SpawnY=355
Rink:Middle-Top:Rules=Standard

Rink:Middle:Team1Frequency=4
Rink:Middle:Team2Frequency=5
Rink:Middle:Ball=2
Rink:Middle:Team1GoalRegion=freq4goal
Rink:Middle:Team2GoalRegion=freq5goal
Rink:Middle:DropX=512
Rink:Middle:DropY=512
Rink:Middle:SpawnX=512
Rink:Middle:SpawnY=562
Rink:Middle:Rules=Standard

Rink:Middle-Bottom:Team1Frequency=6
Rink:Middle-Bottom:Team2Frequency=7
Rink:Middle-Bottom:Ball=3
Rink:Middle-Bottom:Team1GoalRegion=freq6goal
Rink:Middle-Bottom:Team2GoalRegion=freq7goal
Rink:Middle-Bottom:DropX=512
Rink:Middle-Bottom:DropY=721
Rink:Middle-Bottom:SpawnX=512
Rink:Middle-Bottom:SpawnY=774
Rink:Middle-Bottom:Rules=Standard

Rink:Bottom:Team1Frequency=8
Rink:Bottom:Team2Frequency=9
Rink:Bottom:Ball=4
Rink:Bottom:Team1GoalRegion=freq8goal
Rink:Bottom:Team2GoalRegion=freq9goal
Rink:Bottom:DropX=512
Rink:Bottom:DropY=928
Rink:Bottom:SpawnX=512
Rink:Bottom:SpawnY=980
Rink:Bottom:Rules=Standard

Soccer:BallCount = 5

Logged

Doobie

  • Local Moderator
  • Inspiration to Trolls Everywhere
  • *****
  • Posts: 2038
Re: Doobie made... a game module!
« Reply #2 on: January 29, 2017, 02:25:02 PM »

Updated the script again fixing some bugs.
Logged

Doobie

  • Local Moderator
  • Inspiration to Trolls Everywhere
  • *****
  • Posts: 2038
Re: Doobie made... a game module!
« Reply #3 on: January 29, 2017, 07:18:40 PM »

I have loaded the game module into ?go small  Hopefully it can be used for tonights 5v5.

TL:DR Enter the game in one of the rinks, type ?begingame to trigger a start game vote.  The rest is standard/obvious I hope.

Commands that work from spec/anytime:
?listgames
?listrinks
?listrules

Commands that work when in a rink
?g
?score
?timeleft
?s
?begingame
Logged
 

Page created in 0.053 seconds with 19 queries.