Transformice Api [ Must See ]
What you want to make (Discord bot, leaderboard site, in-game minigame?) If you need help setting up a development environment
-- This function runs automatically when a mouse joins the room function eventNewPlayer(playerName) print("Welcome to the room, " .. playerName .. "!") tfm.exec.giveCheese(playerName) end Use code with caution. Copied to clipboard 📚 Essential Resources
The Transformice Lua Module API is the built-in programming system inside the multiplayer game Transformice.
Mastering the Transformice API: A Comprehensive Guide for Developers
The "API" for Transformice isn't a single RESTful endpoint like you might find with Twitter or Spotify. Instead, it is a collection of community-driven libraries and official socket-based protocols that allow external programs to communicate with the game servers. Key Capabilities
Developers can create tools to analyze XML code from maps, identify map creators, or showcase top-rated maps on community forums. How to Access and Use the API
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Sending too many command packets per second (e.g., rapidly changing rooms or spamming chat commands) will trigger the game's automated firewall, resulting in an automatic disconnection. Conclusion
Do not spam the servers. High request volumes can lead to IP bans.
Which of those would you like next?
To begin coding, players typically use the /lua command in a room where they have permissions (like a tribe house) to paste and execute their scripts. For those looking for inspiration, the Transformice Wiki maintains an unofficial but detailed guide on event arguments and function descriptions. transformice · GitHub Topics
Click or press enter to execute the engine. Click your mouse on the visual game panel to see the script spawn objects dynamically. Advanced Automation Tools
Transfromage is the most established bot API for Transformice, written in Lua (5.1+) using the Luvit asynchronous runtime environment.