Skip to content

Instantly share code, notes, and snippets.

@leper
leper / commands.txt
Created February 12, 2014 23:44
aegis r14764 + #67 not expanding on bactria
start {"settings":{"PlayerData":[{"Name":"Spieler 1","AI":"","AIDiff":2,"Civ":"athen","Team":-1},{"Name":"Xanthippos","AI":"aegis","AIDiff":2,"Civ":"cart","Team":-1}],"Seed":5987,"CheatsEnabled":true,"CircularMap":true,"Description":"Die trockenen und steinigen Gegenden von Baktrien (im Gebiet des heutige Afghanistan) am Fuße des Hindukusch-Gebirges.\u000a\u000aIn der Mitte der Karte befindet sich ein vegetationsloser Berg. Dieser wird beidseitig von Gebirgen und Hügelland umgrenzt, welche von trügerischen Pässen und alten Handelsstraßen durchzogen sind.","GameType":"conquest","Keywords":[],"LockTeams":false,"Name":"Baktrien (2)","Preview":"bactria_2.png","RevealMap":false,"PopulationCap":300,"StartingResources":300,"Size":128,"mapType":"skirmish"},"mapFilter":"default","map":"maps/skirmishes/Bactria (2)","mapType":"skirmish","mapPath":"maps/skirmishes/","matchID":"F83EE1EF15C0B8FF","gameSpeed":1}
turn 0 200
end
turn 1 200
end
turn 2 200
end
turn 3 200
end
turn 4 200
@leper
leper / wip1207.patch
Created January 21, 2014 20:52
on top of r14114 (possibly broken)
diff --git a/binaries/data/mods/public/gui/session/input.js b/binaries/data/mods/public/gui/session/input.js
index dd7eff3..73f69c6 100644
--- a/binaries/data/mods/public/gui/session/input.js
+++ b/binaries/data/mods/public/gui/session/input.js
@@ -1381,7 +1381,7 @@ function doAction(action, ev)
return true;
case "setup-trade-route":
- Engine.PostNetworkCommand({"type": "setup-trade-route", "entities": selection, "target": action.target});
+ Engine.PostNetworkCommand({"type": "setup-trade-route", "entities": selection, "target": action.target, "queued": queued});
@leper
leper / commands.txt
Created December 9, 2013 14:33
The Persian AI player caused the errors some time after the CC was destroyed, and they stopped when the AI was defeated.
start {"settings":{"PlayerData":[{"Name":"Player 1","AI":"","AIDiff":2,"Civ":"gaul","Team":0},{"Name":"Player 2","AI":"","AIDiff":2,"Civ":"pers","Team":0},{"Name":"Darayavahush II","AI":"aegis","AIDiff":4,"Civ":"pers","Team":1},{"Name":"Ptolemy Philometor","AI":"aegis","AIDiff":4,"Civ":"ptol","Team":1}],"Seed":8949,"CircularMap":false,"Description":"The African savanna is chocked full of animal life for hunting, while the nearby mineral deposits are plentiful. The dry season is approaching and the watering holes are drying up.\u000a\u000aNote: This is a very small \"fast and furious\" map. Iberians do not start with their custom circuit walls.","GameType":"conquest","Keywords":[],"LockTeams":false,"Name":"Watering Holes (4)","Preview":"watering_holes_skirmish.png","RevealMap":false,"Size":128,"PopulationCap":10000,"StartingResources":300,"mapType":"skirmish"},"mapFilter":"Default","map":"maps/skirmishes/Watering Holes (4)","mapType":"skirmish","mapPath":"maps/skirmishes/","matchID":"D506A608D1EDB7CE","gameSpe
WARNING Timed out waiting for IqWait_2cd2f66a-70ba-4c12-a346-80b3cc259477-A5C
ERROR Error processing event handler: <bound method XpartaMuPP.start of <__main__.XpartaMuPP object at 0xb5cb24d0>>
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1659, in _event_runner
func(*args)
File "XpartaMuPP.py", line 417, in start
self.get_roster()
File "/usr/lib/python3.3/site-packages/sleekxmpp/clientxmpp.py", line 248, in get_roster
response = iq.send(block, timeout, callback)
File "/usr/lib/python3.3/site-packages/sleekxmpp/stanza/iq.py", line 219, in send
@leper
leper / gist:7519731
Created November 17, 2013 23:24
More lobby bot errors
func(*args)
File "XpartaMuPP.py", line 447, in muc_offline
del self.nicks[str(presence['muc']['jid'])]
KeyError: ''
ERROR Error processing event handler: <bound method XpartaMuPP.muc_offline of <__main__.XpartaMuPP object at 0xb5c70410>>
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1659, in _event_runner
func(*args)
File "XpartaMuPP.py", line 447, in muc_offline
del self.nicks[str(presence['muc']['jid'])]
@leper
leper / gist:7508698
Created November 17, 2013 03:31
random excerpt
if g['state'] == 'init' or (g['state'] == 'waiting' and self.nicks[str(to)] in g['players-init']):
KeyError: 'josh@lobby.wildfiregames.com/0ad'
ERROR Failed to process changestate data
Traceback (most recent call last):
File "XpartaMuPP.py", line 504, in iqhandler
self.sendGameList()
File "XpartaMuPP.py", line 562, in sendGameList
self.sendGameList(JID)
File "XpartaMuPP.py", line 546, in sendGameList
if g['state'] == 'init' or (g['state'] == 'waiting' and self.nicks[str(to)] in g['players-init']):
# Linked objects and binaries
*.so
*.a
*.so.1
*.so.1.0
binaries/system/ActorEditor
binaries/system/pyrogenesis
binaries/system/test
# Debug binaries
binaries/system/ActorEditor_dbg
@leper
leper / gist:6844238
Created October 5, 2013 18:07
files causing libpng warnings
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/stupa_big_gate.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/spart_siege_ram.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/stupa_gate_norm.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/siege_tower.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/siege_walls_wood.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/celt_roof_round_norm.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP: known incorrect sRGB profile `./art/textures/skins/structural/sambuca.png' @ warning/png.c/MagickPNGWarningHandler/1830.
identify: iCCP:
Index: binaries/data/mods/public/gui/session/input.js
===================================================================
--- binaries/data/mods/public/gui/session/input.js (revision 13428)
+++ binaries/data/mods/public/gui/session/input.js (working copy)
@@ -616,7 +616,7 @@
if (hasWallSegment)
{
Engine.PostNetworkCommand(cmd);
- Engine.GuiInterfaceCall("PlaySound", {"name": "order_repair", "entity": selection[0] });
+ Engine.GuiInterfaceCall("PlaySound", {"name": "order_build", "entity": selection[0] });
@leper
leper / PKGBUILD
Created April 14, 2013 23:40
gloox 1.0 svn pkgbuild
pkgname=gloox
pkgver=1.0
pkgrel=4
pkgdesc="C++ libraries for development of Jabber client/component/server"
arch=('i686' 'x86_64')
url="http://camaya.net/gloox"
options=('!libtool')
license=("GPL")
depends=('libidn' 'gnutls')
source=('gloox::svn+svn://svn.camaya.net/gloox/branches/1.0')