Skip to content

Instantly share code, notes, and snippets.

@w1lla
w1lla / gist:c0e383e08787c4f64e7fc62dae408b1e
Created June 1, 2022 08:24
XmlRpc Callbacks 2022-03-21 3.7.0
('XmlRpc.Documentation', ['{\n\t"responseid": "true"\n}', '\nXmlRpc scripted callbacks and methods\n=====================================\n\nCallbacks\n---------\n\n### XmlRpc.CallbacksList\n\n* Name: XmlRpc.CallbacksList\n* Type: CallbackArray\n* Description: A list with the names of all registered callbacks.\n* Data:\n\t- Version >=2.0.0:\n\t```\n\t[\n\t\t{\n\t\t\t"responseid": "xyz", //< Facultative id passed by a script event \n\t\t\t"callbacks": ["Callback1", "Callback2", "Callback3", ..., "CallbackN"] //< List of callbacks names \n\t\t}\n\t]\n\t```\n\n### XmlRpc.CallbacksList_Enabled\n\n* Name: XmlRpc.CallbacksList_Enabled\n* Type: CallbackArray\n* Description: A list with the names of all enabled callbacks.\n* Data:\n\t- Version >=2.0.0:\n\t```\n\t[\n\t\t"{\n\t\t\t"responseid": "xyz", //< Facultative id passed by a script event\n\t\t\t"callbacks": ["Callback1", "Callback2", "Callback3", ..., "CallbackN"] //< List of callbacks names\n\t\t}"\n\t]\n\t```\n\n### XmlRpc.CallbacksList_Disabled\n\n* Name: X
@w1lla
w1lla / gist:535db9be5f41b11c63eea010a203baf6
Created June 1, 2022 08:21
XmlRpc Callbacks 2022-03-21 3.3.0
('XmlRpc.Documentation', ['{\n\t"responseid": "true"\n}', '\nXmlRpc scripted callbacks and methods\n=====================================\n\nCallbacks\n---------\n\n### XmlRpc.CallbacksList\n\n* Name: XmlRpc.CallbacksList\n* Type: CallbackArray\n* Description: A list with the names of all registered callbacks.\n* Data:\n\t- Version >=2.0.0:\n\t```\n\t[\n\t\t{\n\t\t\t"responseid": "xyz", //< Facultative id passed by a script event \n\t\t\t"callbacks": ["Callback1", "Callback2", "Callback3", ..., "CallbackN"] //< List of callbacks names \n\t\t}\n\t]\n\t```\n\n### XmlRpc.CallbacksList_Enabled\n\n* Name: XmlRpc.CallbacksList_Enabled\n* Type: CallbackArray\n* Description: A list with the names of all enabled callbacks.\n* Data:\n\t- Version >=2.0.0:\n\t```\n\t[\n\t\t"{\n\t\t\t"responseid": "xyz", //< Facultative id passed by a script event\n\t\t\t"callbacks": ["Callback1", "Callback2", "Callback3", ..., "CallbackN"] //< List of callbacks names\n\t\t}"\n\t]\n\t```\n\n### XmlRpc.CallbacksList_Disabled\n\n* Name: X
@w1lla
w1lla / map.py
Created July 28, 2020 08:10
Map.py pyplanet Read mode_script_settings in matchsettings file and implement them straight away.
## W1lla edit: This is needed if a map list was edited for ModeSetting Changes...
map_dir = await self.instance.gbx('GetMapsDirectory')
tree = ET.parse(map_dir+file_path)
root = tree.getroot()
for entry in root.findall('mode_script_settings'):
param = entry.find('setting').attrib['name']
settings_modescript_name = dict()
settings_modescript_type = entry.find('setting').attrib['type']
settings_modescript_value = entry.find('setting').attrib['value']
print(settings_modescript_name)
@w1lla
w1lla / DoubleDown Script
Created December 23, 2014 18:38
DoubleDown ShootMania ManiaScript
//***********************************************************
//-| Mode: Double Down (Meltdown)
//-| Author: SMTRAK.Kadaz.Knight
//-| Contact: straightcue@gmail.com
//-| Aid Contribute: steeffeen\kak0\lethan\djhubertus\w1lla\
//***********************************************************
#Extends "Modes/ShootMania/ModeBase.Script.txt"
#Const CompatibleMapTypes "MeleeArena"
private function joinChannels() {
$key = "";
if (!empty($this->config->channelKey)) {
$key = " " . $this->config->channelKey;
$channel = $this->config->channel . $key;
$this->sendCommand("JOIN", $channel);
$this->isJoinedToChannel = true;
}
else{
$channel = $this->config->channel;
<?php
/**
* @copyright Copyright (c) 2009-2013 NADEO (http://www.nadeo.com)
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
* @version $Revision: $:
* @author $Author: $:
* @date $Date: $:
*/
namespace ManiaLivePlugins\MatchMakingLobby\MatchSettings;
<?php
/**
Name: Willem 'W1lla' van den Munckhof
Date: 15/11/2013
Project Name: ESWC Elite Statistics
What to do:
/**
@w1lla
w1lla / spectator.php
Last active December 28, 2015 02:59
Spectator Plugin pre alpha stuff
<?php
/**
Name: Willem 'W1lla' van den Munckhof
Date: 11/11/2013
Project Name: ESWC Elite Statistics
What to do:
/**
@w1lla
w1lla / gist:7388657
Created November 9, 2013 19:06
log file ESWC ShootMania
<?php
namespace ManiaLivePlugins\Shootmania\Elite\Classes;
class Log {
private $serverLogin;
function __construct($serverLogin) {
<?php
$login = $_GET['login'];
if (!$login) $login = '';
/**
* Maniaplanet Web Services SDK for PHP
*
* @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
* @author $Author: maximeraoust $:
* @version $Revision: 2 $: