Skip to content

Instantly share code, notes, and snippets.

@xDeda
xDeda / p1Sorter.lua
Created June 26, 2026 20:14
sort p1 maps into categories
-- click category up top to put the map in the bin
-- click print to print out all sorted so far
maps = {1121345,1170748,1180637,1406777,1451107,1583395,1615095,1648676,1771248,1801218,1863140,1869887,1960482,1971455,2059472,2101434,2205190,2230090,2238442,2538612,2712448,2739697,2782039,2913746,2952484,2953143,2954141,3052551,3385539,3489036,3536539,3549686,3562108,3569448,3583410,3586920,3591443,3619335,3620493,3623250,3663013,3666747,3708762,3717518,3827116,3847602,3878078,3908930,3977560,3978302,3980048,4009090,4056746,4058006,4166043,4187625,4231620,4242670,4260278,4272457,4328665,4343711,4390118,445166,4453084,4506450,4547800,4574648,4636013,4642082,4643856,4680427,4725148,4763576,4797308,4808370,4860245,4885091,4902795,4903650,4935178,4937165,4950821,4955735,4979276,4980774,4999920,5000360,5010050,5041541,5054728,5060806,5070777,5073613,5078122,5078438,5088121,5091466,5098693,5103965,5111180,5116976,5165203,5178110,5230388,5269771,5290200,5296535,5310019,5314169,5318080,5364059,5364888,5374261,5403032
@xDeda
xDeda / sortMapsByPerms.lua
Last active June 26, 2026 18:34
sort transformice maps into their perm codes
-- !showPerms | shows popup with perms so far
-- !printOut | prints out maps and their perms
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAfkDeath(true)
maps = {5060806,5078438,5084927,5091466,5098693,5165203,5000032,2161166,5269771,4902795,4328665,4808370,5310019,3431537,5374110,3881440,1610895,5296535,916534,5474528,5483891,5483656,5489621,5484110,5499938,5478255,5494460,5403032,5528024,2953143,5318080,5513487,4254851,1869887,4798580,5545276,1451107,5551832,5555494,2205190,5559459,5374261,5522923,5572113,5569598,5577716,4142153,677995,5544024,5551443,5575432,5611481,4417558,5626178,5605031,4343711,5678048,4166043,5314169,5686106,1863140,5178110,5425532,5754428,1960482,4009090,5770709,5814899,2101970,5822857,4848564,5774310,5031759,5863256,5865287,5870559,5873071,5835908,4914110,5876840,5805015,679507,5230388,5842221,4187625,5882598,5883229,5866430,5880681,5887169,5492042,5735700,5887144,5913190,5936437,5961814,6000007,6019904,5041541
@xDeda
xDeda / monobridge.lua
Last active March 8, 2025 13:03
monobridge grav 0 module for Transformice
-- #monobridge by Tactcat#0000
-- 2 minutes of no gravity, 30 seconds of gravity
-- !go to turn on gravity early
-- shift+click to tp on
-- Command system by Shinsetsu: https://gitlab.com/shinsetsu-projects/tfm-modules
players={}
KEYS={
@xDeda
xDeda / tfmaps.py
Last active April 22, 2021 16:20
Saves images of maps!
# Map image downloader by Tactcat!
# Never forget to save a code!
# 1 Creates /maps folder in your tfmplugins folder
# 2 Map plays
# 3 XML sent to entibo's Map Renderer (ty entibo)
# 4 Downloads return imgur image of map
# 5 Saves image in /maps map category subfolder with filename mapcode_author.png
# If the map perm subfolder doesn't exist, it'll create it
#normal offset (upper left corner is 0,0)
meowsies = [13, 185], [0, 79], [53, 138], [73, 48], [91, 109], [113, 155], [93, 180], [71, 119], [58, 157], [24, 124], [41, 195], [13, 184], 5000, [199, 123], [205, 155], [190, 177], [169, 190], [147, 188], [129, 176], [118, 163], [111, 144], [108, 129], [107, 104], [113, 80], [125, 61], [139, 57], [154, 59], [169, 68], [183, 85], [122, 136], [129, 155], [142, 166], [162, 171], [180, 162], [193, 140], [199, 125], 5000, [206, 11], [231, 1], [256, 0], [278, 4], [300, 15], [315, 26], [331, 60], [340, 93], [348, 115], [335, 142], [315, 166], [283, 188], [244, 190], [216, 184], [202, 178], [196, 173], 5000, [179, 160], [163, 143], [152, 126], [149, 116], 5000, [159, 83], [120, 120], [123, 96], [129, 80], [138, 73], [147, 73], [161, 83], 5000, [163, 62], [163, 45], [169, 27], [178, 11], [188, 4], [199, 10], [213, 16], 5000, [314, 23], [331, 20], [347, 21], [354, 24], [350, 47], [345, 69], [339, 84], 5000, [259, 182], [241, 177], [225, 164], [214, 144], [210, 126], [209, 10
@xDeda
xDeda / hangman.lua
Created January 2, 2020 15:54
transformice hangman
tfm.exec.disableAfkDeath(true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAutoTimeLeft(true)
chars = {"&","é","~","\"","{","|","è","`","_","à","@","]","+","=","}","¨","ë","ä","ü","ö","£","<",">","0","1","2","3","4","5","6","7","8","9"}
lang = {}
@xDeda
xDeda / colorify.php
Last active November 5, 2019 00:16
Finding color in TFM chat
<?
function Colorify($q) {
$q = explode("<br />", $q);
foreach ($q as $qq) {
if (strpos($qq, "just connected.") || strpos($qq, "has disconnected.") || strpos($qq, "No cheese for you! ^_^") !== false) {
echo "<span class=\"connect\">" . $qq . "</span><br />";
} elseif (strpos($qq, "< [") !== false) {
echo "<span class=\"wout\">" . $qq . "</span><br />";
} elseif (strpos($qq, "is now your shaman, follow her!") !== false) {
echo "<span class=\"bluesham\">" . $qq . "</span><br />";
function Colorify($q) {
$q = explode("<br />", $q);
foreach ($q as $qq) {
if (strpos($qq, "just connected.") || strpos($qq, "has disconnected.") || strpos($qq, "No cheese for you! ^_^") !== false) {
echo "<span class=\"connect\">" . $qq . "</span><br />";
} elseif (strpos($qq, "< [") !== false) {
echo "<span class=\"wout\">" . $qq . "</span><br />";
} elseif (strpos($qq, "is now your shaman, follow her!") !== false) {
echo "<span class=\"bluesham\">" . $qq . "</span><br />";
} elseif (strpos($qq, "name is already taken") !== false) {
toDespawn={} -- define a table variable that you can put spawned items into
--
function eventMouse(name,xco,yco) -- name = name of clicker, xco = x cord of click, yco = y cord of click
ax = tfm.get.room.playerList[name].x -- x cord of mouse that clicked
by = tfm.get.room.playerList[name].y -- y cord of mouse that clicked
x = ax - xco -- x cord of mouse minus x cord of click
y = by - yco -- y cord of mouse minus y cord of click
toDespawn={} -- define a table variable that you can put spawned items into
--
function eventMouse(name,xco,yco) -- name = name of clicker, xco = x cord of click, yco = y cord of click
ax = tfm.get.room.playerList[name].x -- x cord of mouse that clicked
by = tfm.get.room.playerList[name].y -- y cord of mouse that clicked
x = ax - xco -- x cord of mouse minus x cord of click
y = by - yco -- y cord of mouse minus y cord of click