Evil tournament patch

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Evil tournament patch

Post by Z-Man »

Err. I was bored and wanted to write a truly evil hack. Here it is. Don't learn from it. Its adds the command

Code: Select all

GAME_START <match limit>
To start a tornament game where the team first to reach <match limit> wins. The winner is then eliminated and runners up are determined, a total of TEAMS_MAX/2. Games can be aborted via GAME_ABORT, or just restarted with another GAME_START. Match counts are evilly appended to the team name in network syncs.

It's especially evil because it uses composed console commands to send stuff from eTeam to gGame. I hope smoothice is doing this thing the proper way :)
Attachments
evil_tournament_0.1.patch.bz2
Patch
(2.17 KiB) Downloaded 190 times
XzL.Smart
Round Winner
Posts: 216
Joined: Sun Apr 30, 2006 4:21 am
Location: Arizona

Post by XzL.Smart »

neat
User avatar
smoothice
On Lightcycle Grid
Posts: 45
Joined: Sun Nov 09, 2008 7:54 pm

Post by smoothice »

A good follow up to the shutdown on development of 0.2.8-armagetronad-sty+pvp. :? This sums up everything I wanted to do in less than 100 lines of code. Done much better than my crud.. :)
Image
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Evil tournament patch

Post by Z-Man »

compguygene wrote:I have been trying to figure out, based on what I find in the forums and the wiki, how to apply the Evil Tournament Patch. http://forums.armagetronad.net/viewtopic.php?t=19057 Could you please explain how to patch this?
Sure. Like every patch, you unpack the regular source (or fetch it from bzr), cd into it on a console and type

Code: Select all

bzcat <path_to_patch> | patch -p 0
(The -p 0 parameter can also be -p 1 for other patches. I do mine via 'bzr/svn diff' usually, though, so my patches always have to be applied with -p 0.) Check the output, if it contains anything like "Hunk #x failed", things went wrong and you need to resolve conflicts manually. Then you build from the result as usual.
compguygene wrote:Also, it is unclear to me how to change my Armathentication Setup to allow this to be used by Team Captains.
Could you please explain that as well?
In the config, add

Code: Select all

ACCESS_LEVEL GAME_START 7
ACCESS_LEVEL_ADMIN 7
The second line allows team leaders to use /admin in general (but not actually any commands), the first unlocks the GAME_START command for them. Of course, you also need

Code: Select all

USER_LEVEL <GID of team leader> 7
for every team leader.

(Edited for compatibility with other patch programs)
Last edited by Z-Man on Tue May 05, 2009 3:07 pm, edited 2 times in total.
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Evil tournament patch

Post by compguygene »

Ty z-man. I guess that was kind of silly of me. I will try to do a good search b4 posting. Ty for the info, I will be using this in my ladle servers. Your explanation is just what I needed. I have already informed my Ww friends that in the next ladle, I will be functioning more as a server administrator. Also, I will be recording Ww's matches so I can review them and coach them accordingly in practices!
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Evil tournament patch

Post by Z-Man »

A patch to the patch. Fixes the bug where when you unlock your team, it gets destroyed.
Attachments
evilpatch_teamkillfix.patch.gz
Patch patch. Apply after the patch from the first post.
(303 Bytes) Downloaded 129 times
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Evil tournament patch

Post by Z-Man »

Another fix. Prevents a match win in the round the game was started in to count.
Attachments
evilpatch_earlymatchwinfix.patch.bz2
Just the fix.
(614 Bytes) Downloaded 141 times
evil_tournament_0.2.patch.bz2
New complete patch with the two fixes included.
(2.27 KiB) Downloaded 153 times
Post Reply