Difference between revisions of "Code hacks"

From Armagetron
(added my racer script)
Line 33: Line 33:
  
 
[[:Image:mazer.zip|Download this script]]
 
[[:Image:mazer.zip|Download this script]]
 +
 +
==== Racer Script ====
 +
 +
This script generates racer maps with walls and deathzones and obstacles. You can configure the look of the obstacles and the average amount of obstacles to be put onto the map. It requires PHP and probably runs best on linux, though it doesn't use any system- specific calls, it just prints to stdout.
 +
 +
The script is quite hacky and lacking any proper documentation, but not very complex, so it shouldn't be hard to hack it some more. [[:Image:Racer-php.gz|Download the script]]
  
 
=== Map Rotation ===
 
=== Map Rotation ===

Revision as of 05:37, 27 August 2006

From time to time people do various hacks to the code or write various scripts and programs to support the game. We'll try to collect them here so you can use them too. If you have a hack you'd like to add, just add it here. For it to format correctly, put

<nowiki> 
"<pre> 
Copy paste your script here, in the space inbetween the code and pre commands.

" </nowiki>

Alternatively just copy and paste the script as it is, but add a space in front of every line.

Note: there is no <code> in front of the script.

Modifications to Armagetron Advanced

These usually require actually applying a patch to Armagetron Advanced source and recompiling. Not for the faint of heart!

Styball Patch

groundpig's infamous ball/shooter work. Apply this patch to 0.2.8.2 source and build it.

Download the patch

External Scripts and Programs

These are programs and scripts people have written that modify the game without requiring compiling the game.

Generators

These are scripts used to generate maps.

Labyrinth Script

This is the script that generates mazes. It requires python and almost certainly requires a Linux installation. It's never been tested in windows. It's also available in Lucifer's private area of the SVN repository. Patches should be made against that and sent to Lucifer.

Download this script

Racer Script

This script generates racer maps with walls and deathzones and obstacles. You can configure the look of the obstacles and the average amount of obstacles to be put onto the map. It requires PHP and probably runs best on linux, though it doesn't use any system- specific calls, it just prints to stdout.

The script is quite hacky and lacking any proper documentation, but not very complex, so it shouldn't be hard to hack it some more. Download the script

Map Rotation

People have worked up good map rotation programs, hopefully they'll put them here.

Lucifer's Map Rotator

This is the rotator that used to power Swamplords on Crack before it was taken down. It includes the mazer.py script listed in Generators on this page. Probably requires Linux, it's not known to work in Windows.

Download the file