![]() |
![]() ![]() « Censeur » Membre 1482249360000
| 0 | ||
![]() Modules are minigames built into Transformice with a variety of different gameplay options, and the developers of them have complete control. They are coded in the lightweight Lua scripting language. What are the different types of modules?
What are all of the official modules? Below you can find a list of all of the official modules, and who developed them. You can also find a list of official modules ingame by typing "/module" or going to the "Game Mode" window from the menu.
What's different about modules compared to normal rooms? Other than modules each having their own unique gameplay and features, there's a few other things to note.
How can I play a module? You can play any official module by going to its room, for example "/room #ModuleName", or running it in your tribe house with the command "/module #ModuleName" if you have the power to load maps there. You can play unofficial modules by loading the script yourself, or having someone else load it for you. How do I run a script? In order to execute your own script, you need to fit a couple of requirements; be in your tribe house, have the appropriate permissions to use the "/np" command, have over 1,000 cheese, and never be banned for hacking. You can then type the command "/lua" and a window will pop up with an area to type in or paste code. Pressing the "Submit" button will launch the script in your room ![]() Where can I suggest something or report a bug? If you've come up with an idea you'd like to see implemented in either the Module API itself or an individual module, you can post it in the Module Suggestions Thread. If you've noticed a bug with the Module API or a specific module, you can report it in the Module Bugs Thread. I've developed a module, how can it be made official? Only members of the Module Team can manage an official module. You should consider applying for the team yourself (see the "Module Team" section of this thread for instructions on how to do that), or alternatively ask an existing member of the team to look at it on your behalf. All official modules need to be approved by an administrator, and these modules should have several things such as; fun gameplay, replay value, clear help/rules, translations to the most popular languages in the communities, and efficient coding that won't use too many server resources or crash. I ran a script and a $lua chat tab opened, what is this? The $lua chat tab is used to house all information about your currently running scripts. Any printed strings will display here, as well as any errors, warnings for high runtime, or anything else of the sort. Closing this tab will result in these messages going to your main chat channel, and you won't be able to reopen the $lua tab without reloading your client. Where can I get help coding a module? If you need help in developing something, there are several places you can go. If you're experiencing an error, you can visit the errors thread for information on how to fix it, or post your code for someone else to fix for you. If you need a function or some code written for you, the Script Requests thread is the place to ask. If you need to talk to someone one-on-one, you can talk to any of the members listed in the "Module Team" section of this thread, join "/chat Lua" ingame, or the #tmlua IRC channel on Rizon. ![]() Is there anything else I should take note of when developing a module? There are a few quirks and useful bits of information that will help you out when developing with the Module API.
Lua Resources Where can I learn Lua? There are several places throughout the internet where Lua is well documented, and there are a lot of tutorials on learning to use it from being a total beginner.
What programs can I use to write Lua code? The built in text box in the /lua window isn't particularly good for coding anything longer than a few lines. Tabs don't look right, it's not wide enough to see a lot of code and it doesn't have syntax highlighting, just to mention a few things. While any text editor will do, some external third party text editors or integrated development environments can do a good job of this.
Collaborative Text Editors If you wish to collaborate and code alongside someone else in realtime, there are several tools available to do just that.
Lua Minifiers As there is a 64k character limit imposed when running code with the Module API, any long script may have to be minified. Minification makes the code smaller through practises such as removing linebreaks, whitespace, renaming functions and local variables to shorter alternatives, and the such to help reduce the overall size.
Miscellaneous Resources
Module API Changelog
The Module Team is a group of developers who create minigames for the community to enjoy playing, by using the Module API. Members of the team have access to a few additional functions to create modules, some of which are more resource intensive on the server than other functions so are limited - these functions are marked in the documentation in this thread. Some of the features available to the module team exclusively are:
The full list of team members is kept private as some members wish to remain anonymous or not handle whispers, however the following people listed are public members of the team, you may contact them for help developing your module, getting your module made official, or ask them any other questions you may have. The Module Team is looking for dedicated members of the community with bright ideas for games that know Lua well and are willing to create fantastic modules for the whole community to enjoy. Before considering applying for this position, there are several things that you should take note of: • All applicants must speak some level of English in order to communicate with the rest of the team. • This is not a staff position, there is no age limit or additional benefits. • After your application, you will get a notification when you are accepted. • Maturity is required from all members of the team, even if they're not public members. • All members of the team must know Lua and how to use the Module API. Practising in the tribe house is a good way to ensure you know how it works. If you are ready to apply, feel free to fill out the following form in English. Apply Here This section contains a variety of different pieces of information that can be useful when developing a module, such as enums, color codes, IDs, and more. Color Codes The color codes listed here are commonly used in Transformice, both the game and interface. For a more complete list of color codes used in the game, please visit this thread. #6A7495 Game background. #324650 Game UI. #465a6e Lighter game UI. These are color tags that can be used within strings displayed ingame, such as within tfm.exec.chatMessage() and ui.addTextArea(). They don't need to be ended like HTML tags, and will color all of the text in the string after the code, for example "<J>Help me". #2F7FCC <BV> Map Crew names. #CB546B <R> Errors. #6C77C1 <BL> Default system messages. #BABD2F <J> Help & other information. #C2C2DA <N> Regular chat. #606090 <G> Offline friends. #009D9D <V> Chat names. #2ECF73 <VP> Tutorial keywords. #C53DFF <VI> No usage found. #ED67EA <ROSE> Moderation and server messages. #98E2EB <CH> Blue shaman text. #A4CF9E <T> Tribe chat. Emote IDs This is a list of emotes and their corresponding enums. Bare in mind that the tfm.enum.emote table has a list of all emote names and enums. 0 - Dance 1 - Laugh 2 - Cry 3 - Kiss 4 - Rage 5 - Clap 6 - Sleep 7 - Facepaw 8 - Sit 9 - Confetti 10 - Flag Waving Shaman Object IDs While tfm.enum.shamanObject is an easy-to-access list of most shaman objects, it doesn't list every object available in Transformice. Here is a list of all shaman objects that can be spawned in with tfm.exec.addShamanObject. Note that some of them can't be spawned properly in modules, so are crossed out. 0 - Arrow 1 - Small Box 2 - Large Box 3 - Small Plank 4 - Large Plank 5 - Heavy Ball 6 - Ball 7 - Trampoline 8 - Small Rough Plank 9 - Large Rough Plank 10 - Anvil 11 - Red Anchor 12 - Red Anchor Rotating Clockwise 13 - Red Anchor Rotating Counter-Clockwise 14 - Green Anchor 15 - Green Anchor Rotating Clockwise 16 - Green Anchor Rotating Counter-Clockwise 17 - Cannon (Up) 18 - Cannon (Down) 19 - Cannon (Right) 20 - Cannon (Left) 21 - Sticky Ball 22 - Yellow Anchor 23 - Bomb 24 - Spirit 25 - Fake Cheese 26 - Blue Portal 27 - Orange Portal 28 - Balloon 29 - Static Red Balloon 30 - Static Green Balloon 31 - Static Yellow Balloon 32 - Rune 33 - Chicken 34 - Snowball 35 - Valentine's Arrow 39 - Apple 40 - Sheep 41 - Demolition Worker Skill 42 - Spring 43 - Speed Boost 44 - Totem 45 - Ice Plank 46 - Choco Plank 48 - Transformed Mouse Small Box 49 - Transformed Mouse Large Box 50 - Transformed Mouse Anvil 51 - Transformed Mouse Small Plank 52 - Transformed Mouse Large Plank 53 - Transformed Mouse 54 - Frozen Mouse 57 - Cloud 58 - Architect Skill 59 - Bubble 60 - Tiny Plank 61 - Companion Crate 62 - Stable Rune 65 - Pufferfish 66 - Balloon Anchor 67 - Very Long Plank 68 - Triangle Box 69 - S-Shaped Plank 70 - Cobweb Skill 71 - Roll Skill 72 - Recycling Skill 73 - Small Mouse Skill 74 - Leaf Skill 75 - Nature's Return Skill 76 - Booster Skill 77 - Handymouse Skill 78 - Restorative Skill 79 - Stop Skill 80 - Mouse in Bubble 81 - Gravitational Anomaly Skill 82 - Antigravity Skill 83 - Meep Skill 84 - Grapnel Skill 85 - Controlled Disintegration Skill 86 - Campfire Skill 87 - Shameow Skill (Broken) 88 - Conjuration Anchor 89 - Pumpkin 90 - Tombstone 91 - Snowman 92 - Renewal Skill 93 - Small Cloud 94 - Shameow Skill 100, 103-199, 20000-29999 - Invisible Small Box 101 - Small Heart Box 102 - Small Mechanical Box 103 - Small Christmas Box 104 - Small Cake Box 200, 204-299, 30000-32767 - Invisible Large Box 201 - Large Heart Box 202 - Large Mechanical Box 203 - Large Bubble Box 204 - large Pumpkin Box 205 - Large Christmas Box 206 - Large Shaman Box 207 - Large Cake Box 300, 303-399 - Invisible Small Plank 301 - Small Heart Plank 302 - Small Mechanical Plank 400, 404-499 - Invisible Large Plank 401 - Large Heart Plank 402 - Large Mechanical Plank 403 - Large Alligator Plank 600, 602-699 - Invisible Ball 601 - Pokéball 602 - Skull Ball 700, 702-799 - Invisible Trampoline 701 - Leafy Trampoline 1000, 1001, 1004-1099 - Invisible Anvil 1002 - Mechanical Anvil 1003 - Rock Anvil 1700, 1702-1799 - Invisible Cannon (Up) 1701 - Bubble Cannon (Up) 1800-1899 - Invisible Cannon (Down) 1900-1999 - Invisible Cannon (Right) 2000-2099 - Invisible Cannon (Left) 2801 - Cat Balloon 2802 - Mechanical Balloon 2803 - Striped Balloon 2804 - Spiky Balloon 2805 - Frog Balloon 2806 - Heart Balloon 2807 - Bubble Balloon 2800, 2808-3199 - Invisible Balloon 3200-3299 - Invisible Rune 3500-3599 - Invisible Valentine's Arrow 3900-3999 - Invisible Apple 4000-4099 - Invisible Sheep 4500-4599 - Invisible Ice Plank 4600-4699 - Invisible Choco Plank 5700-5799 - Invisible Cloud 5900-5999 - Invisible Bubble 6000-6099 - Invisible Tiny Plank 6100-6199 - Invisible Companion Crate 6200-6299 - Invisible Stable Rune 6500-6599 - Invisible Pufferfish 65536 - Arrow (repeats back from 0) Key Codes This is a list of characters that Lua supports, and their corresponding key codes. These are the numbers that the second argument of eventKeyboard returns and bindKeyboard requires. 8 - Backspace 9 - Tab 13 - Enter 16 - Shift 17 - Control 18 - Alt 19 - Pause 20 - Caps Lock 27 - Escape 32 - Spacebar 33 - Page Up 34 - Page Down 35 - End 36 - Home 37 - Left Arrow 38 - Up Arrow 39 - Right Arrow 40 - Down Arrow 45 - Insert 46 - Delete 48 - 0 49 - 1 50 - 2 51 - 3 52 - 4 53 - 5 54 - 6 55 - 7 56 - 8 57 - 9 65 - A 66 - B 67 - C 68 - D 69 - E 70 - F 71 - G 72 - H 73 - I 74 - K 75 - J 76 - L 77 - M 78 - N 79 - O 80 - P 81 - Q 82 - R 83 - S 84 - T 85 - U 86 - V 87 - W 88 - X 89 - Y 90 - Z 91 - Windows (Left) 92 - Windows (Right) 93 - Application Key 97 - 1 (Numbpad) 98 - 2 (Numbpad) 99 - 3 (Numbpad) 100 - 4 (Numbpad) 101 - 5 (Numbpad) 102 - 6 (Numbpad) 103 - 7 (Numbpad) 104 - 8 (Numbpad) 105 - 9 (Numbpad) 106 - * Asterix (Numbpad) 107 - + Plus (Numbpad) 109 - - Minus (Numbpad) 110 - \ Forward Slash (Numbpad) 112 - F1 113 - F2 114 - F3 115 - F4 116 - F5 117 - F6 118 - F7 119 - F8 120 - F9 121 - F10 122 - F11 123 - F12 144 - Numlock 145 - Scroll Lock 186 - ; Semicolon 187 - = Equals 188 - , Comma 189 - - Hyphen 190 - . Period 191 - / Forward Slash 192 - ` Apostrophe 219 - [ Left Square Bracket 220 - \ Backslash 221 - ] Right Square Bracket Ground IDs Here is a list of grounds and their corresponding IDs that a map's XML uses. 0 - Wood 1 - Ice 2 - Trampoline 3 - Lava 4 - Chocolate 5 - Earth 6 - Grass 7 - Sand 8 - Cloud 9 - Water 10 - Stone 11 - Snow 12 - Rectangle 13 - Circle Perm Categories This section contains a list of all perm categories, for use in tfm.exec.newGame() and returned by tfm.get.room.xmlMapInfo.permCode. You can read the Map Rotation Guidelines thread for a more thorough explanation of each category. P0 - Regular Rotation P1 - Protected P2 - Prime Perm (now redundant) P3 - Prime Bootcamp P4 - Shaman P5 - Art P6 - Mechanism & Cooperation P7 - No-Shaman P8 - Dual Shaman P9 - Miscelleneous P10 - Survivor P11 - Vampire Survivor P13 - Bootcamp P17 - Racing P18 - Defilante P19 - Music P21 - Vampire Survivor Testing P22 - Tribe House P32 - Dual Shaman Testing P41 - Module/Minigame P42 - Racing Testing P43 - Deleted (Inappropriate) P44 - Deleted Emoticons This section contains a list of emoticons that can be used, they are listed in tfm.get.enum.emotes and returned by eventEmotePlayed(). 0 - Dance 1 - Laugh 2 - Cry 3 - Kiss 4 - Mad 5 - Clap 6 - Sleep 7 - Facepaw 8 - Sit 9 - Confetti Throw 10 - Flag Wave Decoration IDs This is a list of decoration IDs for player-made maps from the map editor. 0 - Bush 1 - Tree 2 - Fern 3 - Blue Flower 4 - Sign 5 - Grass 6 - Coconut Tree 7 - Umbrella 8 - Sand Castle 9 - Shovel 10 - Sand Bucket 11 - Red Flower 12 - Thorns 13 - Fence 14 - Window 15 - Sofa 16 - Chair 17 - Table 1 18 - Vase of Flowers 1 19 - Sofa with 1 Place 20 - Vase of Flowers 2 21 - Roast Chicken 22 - Bookcase 23 - Poster 24 - Bed 25 - Radio 26 - Teddy 27 - Abajour 28 - Refrigerator 29 - Wardrobes 30 - TV with Stand 31 - Soda 32 - Vase of Flowers 3 33 - Nightstand 34 - Fund 1 35 - range of Halloween 1 36 - range of Halloween 2 37 - Broom 38 - Skeleton 39 - Halloween Poster 40 - Balloons Halloween 41 - Web with Spider 42 - Autumn Tree 43 - Bats 44 - Torch 45 - Fund Cemetery 46 - Torch 2 47 - About Grades 48 - Pumpkin 1 49 - Pumpkin 2 50 - Snowmouse 51 - Snowy Tree 52 - Cookies with Milk 53 - Garland 54 - Half Hanging 55 - Candle 1 56 - Band Christmas 57 - Christmas Tree 58 - Ice Stalactites 59 - Mistletoe 60 - Ball Christmas Tree 61 - Lights Natalinas 62 - Present 63 - Gifts 64 - Santa 65 - Loop 66 - Valentine's Umbrella 67 - Valentine's Chair 68 - Valentine's Table 69 - Valentine's Plate 70 - Valentine's Day Gift 71 - Candle 2 72 - Vase of Flowers 4 73 - Flower in Vase 74 - Ribbons with Hearts 75 - Balloon Heart 76 - Valentine's Window 77 - Heart Pendant 78 - Stones with Algae 79 - Algae 1 80 - Chest 81 - Starfish 82 - Shell 83 - Stones 84 - Stones with Algae 2 85 - Coral 1 86 - Coral 2 87 - Algae 2 88 - Broken Vase 89 - Big Screen 90 - Small Screen 91 - Alchemy Pot 92 - Objects of Alchemy 1 93 - Objects of Alchemy 2 94 - Bookshelf 2 95 - Piano 96 - Fireplace 97 - Candelebra 98 - Coffin 99 - Paper Holder 100 - Bottle with Substance 1 101 - Bottle with Substance 2 102 - Buff 103 - Barrel 104 - Table 2 105 - Chair 2 106 - Skull Mouse 107 - Cobweb 1 108 - Cobweb 2 109 - Cobweb 3 110 - Cobweb 4 111 - Cobweb 5 112 - Vampire Portrait 113 - Support with Fruits 114 - Mirror 115 - Tombstone of Elise 116 - Crucifix 117 - Background 2 118 - RIP Tombstone 119 - Toilet 120 - Bath & Curtains 121 - Sink/Faucet 122 - Mirror 123 - Pots & Pans 124 - Oven 125 - Rocking Chair 126 - Pot 127 - Bar Stool 128 - Kitchen Cabinet 129 - Kitchen Drawers 130 - Lava Lamp 131 - Bootcamp Checkpoint Clothing IDs This is a list of all clothing and outfit IDs that tfm.get.room.playerList[playerName].look returns. Note that .look doesn't return the ID of a fur colour if the player is wearing one. You can also access these IDs by typing /infoshop ingame, then opening the shop window. Furs 1 - Default Fur 2 - Cow Fur 3 - Siamese Cat Fur 4 - Rabbit Fur 5 - Cow Fur v2 6 - White-Brown Fur 7 - Black-White Cat Fur 8 - Tiger Fur 9 - Fox Fur 10 - Skeleton Costume 11 - Black-Grey Fur 12 - Black-Brown Fur 13 - Racoon Fur 14 - Snow Fur 15 - Red Panda 16 - Bunny Fur 17 - Zebra Fur 18 - Panda Fur 19 - Moon Fur 20 - Sun Fur 21 - Leopard Fur 22 - Deer Fur 23 - Skeleton Suit Fur 24 - White Leopard Fur 25 - Valentines Day Fur 27 - Toucan Fur 26 - St. Patrick's Day Fur 28 - Valentines Day Fur v2 29 - Ankh Fur 30 - 2014 FIFA World Cup Brazil Fur 31 - Giraffe Fur 32 - Cloud Fur Head 0 - Nothing 1 - Helicopter Hat 2 - Straw Hat 3 - Helmet 4 - Top Hat 5 - Sun Hat 6 - Fedora 7 - Soldier Helmet 8 - Miner Hat 9 - General's Cap 10 - Beret 11 - Ninja Headband 12 - Horns 13 - Halo 14 - Viking Hat 15 - Bandit Mask 16 - Pirate Hat 17 - Witch Hat 18 - Riding Helmet 19 - Nurse Cap 20 - Police Cap 21 - Santa Hat 22 - Chef's Hat 23 - Bunny Ears 24 - Shower Cap 25 - Cow Boy Hat 26 - Lemon Hat 27 - Mandarin Hat 28 - Palm Hairstyle 29 - Uncle Sam Hat 30 - Marge Simpson Hair 31 - Mario Hat 32 - Super Sayen Hat 33 - Party Hat 34 - Asterix Hat 35 - Crown 36 - Dreadlocks 37 - Afro 38 - Pharaoh Hat 39 - Pumpkin Head 40 - Skull Mask 41 - Antlers 42 - Snowman Head 43 - Blonde Hair 44 - Campaign Hat 45 - Quiff Hair 46 - Coolie Hat 47 - Indian Headress 48 - Panama Hat 49 - Jester Hat 50 - Deadmau5 Hat 51 - Pilot Hat 52 - Megaman Hat 53 - Viewtiful Joe Hat 54 - Eggshell 55 - Cocked Hat 56 - Fish Hat 57 - Cat Hat 58 - Fish Bowl 59 - Bow 60 - Egg Basket 61 - Orange Hair Hat 62 - Luffy Hat 63 - Sonic Hair 64 - Turkish Hat 65 - Brunette Hair 66 - Link Hat 67 - Shark Hat 68 - Rainbow Dash's Mane 69 - Twillight Sparkle's Mane 70 - AppleJack's Mane 71 - Pinkie Pie's Mane 72 - Rarity's Mane 73 - Fluttershy's Mane 74 - Ushanka 75 - Coonskin Hat 76 - Paper Bag 77 - Sombrero 78 - Ash's Hat 79 - Sleep Cap 80 - Knife In Head 81 - Ghost Sheet 82 - Bat Wings 83 - Turban 84 - Christmas Tree 85 - Stocking 86 - Krissim's Cockatrice Head 87 - Banana Leaf Headdress 88 - Straw Panache 89 - Fisherman Hat 90 - Fishing Rod 91 - Shell 92 - Captain Cap 93 - Sailor Cap 94 - Chicken 95 - Cake Hat 96 - Shadow Hat 97 - Ice Hat 98 - Lion Hat 99 - Tiara 100 - Break 101 - Hokage Hat 102 - Spartan Helmet 103 - Candle Hat 104 - Ice Cube 105 - Frog Beanie 106 - Chick Hat 107 - Panda Beanie 108 - Graduate Hat 109 - Coconut Shell 110 - Underpants 111 - Ram Horns 112 - Wreath 113 - Beanie 114 - Angel Bear Hat 115 - Senhor do Bofim ribbons 116 - Comb 117 - Bell Hat 118 - Pschent 119 - Octopus Eyes 0 - Nothing 1 - Sunglasses 2 - Heart Glasses 3 - Evil Sunglasses 4 - Monocle 5 - Eyepatch 6 - Tuba 7 - 3D Glasses 8 - Glasses 9 - Make Up 10 - Shutter Glasses 11 - Cyclops Glasses 12 - Kitsune Mask 13 - Disguise 14 - Carnival Mask 15 - Creeper Mask 16 - Japanese Headband 17 - Bandages 18 - Eyes Crazy 19 - Skull Mouth 0 - Nothing 1 - Moustache 2 - Straw 3 - Bowtie 4 - Pipe 5 - Rose 6 - Green Lightsaber 7 - Red Lightsaber 8 - Knife 9 - Gas Mask 10 - Clover 11 - Fish Bones 12 - Pacifier 13 - Lollipop 14 - Surgeon Mask 15 - Pumpkin Basket 16 - Red Nose 17 - Buck Teeth 18 - Minecraft Pickaxe 19 - Strawberry 20 - Paint Brush 21 - Ice Lolly 22 - Bone 23 - Donut 24 - Vampire Teeth 25 - Chocolate 26 - Gingerbread Cookie 27 - Chocolate Box 28 - Bouquet 29 - Carrot 30 - Turkish Cake 31 - Bamboo 32 - Japanese Fan 33 - Diploma 34 - Sardine 35 - Candy 36 - Candy Cane 38 - Heart Shaped Lolipop 39 - Tambourine 40 - Beak 41 - Whistle Ear 0 - Nothing 1 - Bow 2 - Spider Earring 3 - Bauble Earring 4 - Flower in Hair 5 - Headphones 6 - Heart Earring 7 - Poisson Earring 8 - Star Earring 9 - Cheese Earring 10 - Lenneth Helm 11 - Earmuffs 12 - Candy Cane Earring 13 - Rose Headband 14 - Anglish Bunny Headband 15 - Holldine Mask 16 - Fish Earring 17 - Spy Glass 18 - Hoop Earrings 19 - Rin Kagamine Hairband 20 - Frankstein Screws 21 - Arrow in the Head 22 - Skull Earring 23 - Frozen Ear 24 - Bunny Earring 25 - Frangipani Neck 0 - Nothing 1 - Tri Coloured Scarf 2 - Bandana 3 - Beard 4 - Flowers 5 - Tie 6 - Green and Grey Scarf 7 - Bell Necklace 8 - Barrel Necklace 9 - Halloween Scarf 10 - Red Wreath 11 - Bowtie 12 - Umbrella 13 - Camera 14 - Striped Tie 15 - Medal 16 - Nazar Hair 0 - Nothing 1 - Punk Hairstyle 2 - Windswept Hairstyle 3 - Normal Male Hair 4 - Fringe 5 - Chanel 6 - Applebloom's Mane 7 - Scootaloox's Mane 8 - Sweetiebell's Mane 9 - Hatsune Miku's Hairstyle 10 - Rin Kagamine's Hairstyle 13 - Golden Curls 14 - Forelock 16 - Levi's hair Tail 0 - Nothing 1 - Diamond 2 - Star 3 - Bow 4 - Heart 5 - Easter Egg 6 - Sun 7 - Moon 8 - Some Chinese Coin Amulet 9 - Halloween Lantern 10 - Bell 11 - Rings 12 - Clover 13 - Berimbau 14 - Winged Scarab 15 - Football 16 - Seashell Particle IDs This section contains a list of particles and their associated IDs, for use in tfm.exec.displayParticle. 0 - White Glitter 1 - Purple Glitter 2 - Orange Glitter 3 - Spawn Dust 4 - Soft White Glitter 5 - Hearts 6 - Bubbles 7 - Bubbles 8 - Bubbles 9 - Teal Glitter 10 - Spirit 11 - Yellow Glitter 12 - Super Spirit 13 - Red Glitter 14 - Water Bubbles 15 - Plus 1 16 - Plus 10 17 - Plus 12 18 - Plus 14 19 - Plus 16 20 - Meep Sign 21 - Red Confetti 22 - Green Confetti 23 - Blue Confetti 24 - Yellow Confetti 25 - Rain 26 - Wind 27 - Wind 28 - Lightning 29 - Yellow Stars 30 - Small Red Hearts 31 - Small Pink Hearts 32 - Flowers 33 - Bell 34 - Water Drops 35 - 36 - 37 - Titles For a complete and updated list of titles, you can visit this CheeseForMice page. _G
ui
removeTextArea addPopup addTextArea math
fmod random asin max modf log10 floor cosh ldexp log pow randomseed frexp abs tanh acos atan2 tan min ceil sinh sqrt huge rad sin exp cos atan pi pcall assert tonumber rawequal table tfm
snow disableAutoNewGame setShaman addImage removeJoint respawnPlayer newGame disableAllShamanSkills setGameTime movePlayer removeImage chatMessage setVampirePlayer explosion moveObject disableAutoScore giveCheese addPhysicObject giveMeep displayParticle removePhysicObject disableAutoTimeLeft setPlayerScore killPlayer addJoint setRoomMaxPlayers setNameColor disableAfkDeath removeObject addConjuration setUIMapName setUIShamanName playerVictory bindKeyboard disableAutoShaman enum
laugh : 1 cry : 2 kiss : 3 angry : 4 clap : 5 sleep : 6 facepaw : 7 sit : 8 confetti : 9 shamanObject
littleBox : 1 box : 2 littleBoard : 3 board : 4 ball : 6 trampoline : 7 anvil : 10 cannon : 19 bomb : 23 balloon : 28 rune : 32 snowBall : 34 iceCube : 54 get
transformiceVersion : 2.69 apiVersion : 0.19 room
currentMap : 0 maxPlayers : 50 objectList
x : 0 y : 0 angle : 0 ghost : false type : 10 name : - playerList
title : 0 y : 0 x : 0 isDead : false look : 1;0,0,0,0,0,0,0,0,0 isShaman : false vx : 0 score : 0 inHardMode : 0 vy : 0 movingRight : true hasCheese : true registrationDate : 0 playerName : Tigrounette movingLeft : false isFacingRight : true isVampire : false tribeName : Les Populaires xmlMapInfo
mapCode : 630022 author : Tigrounette xml : <C><P /><Z><S /><D /><O /></Z></C> pairs os xpcall type error string debug
disableTimerLog tostring next system
newTimer savePlayerData bindMouse giveEventGift exit removeTimer loadPlayerData loadFile saveFile |
![]() Membre 1482249540000
| | ||
[Modéré par Montesquieu, raison : done!] |
| ||
[Modéré par Montesquieu, raison : in prog] |
| ||
[Modéré par Montesquieu, raison : ver depois] |
![]() ![]() « Censeur » Membre 1482439980000
| 0 | ||||||
![]() Modules são minigames desenvolvidos no Transformice com uma variada opção de jogabilidade, onde os desenvolvedores desses jogos tem o completo controle sobre eles. Esses minigames são codificados em Lua, de forma eficiente e leve. Quais são os diferentes tipos de modules?
Quais são os modules oficiais? Abaixo, você pode ver a lista de todos os minigames oficiais e quem os desenvolveu. Você poderá encontrar a lista com todos minigames oficiais no jogo, digitando "/module" ou indo na lista de salas, menu "Module". [lista dos minigames in prog] O que tem de diferente nas salas modules se comparadas as salas normais?
Como posso jogar num minigame? É bem simples. Para jogar em qualquer module oficial basta ir na sala do module desejado, digitando o nome da sala, como por exemplo: "/sala #NomeDoMinigame" ou caso você tenha algum cargo dentro da tribo com a permissão de mudar mapas, basta carregá-lo cafofo da sua tribo, digitando o comando "/module #NomeDoMinigame". Ainda, se preferir, você tem sempre a lista de salas do jogo à sua disposição. Como posso executar um script? Para executar o seu próprio script você precisará dos seguintes requisitos: I. estar no cafofo da sua tribo, II. ter a permissão para que possa usar o comando "/np", III. ter mais de 1.000 queijos coletados em seu perfil e IV. nunca ser banido por hack. Após conferido todos estes requesitos, você poderá então usar o comando "/lua". Quando usado, uma janela se abre com uma area para digitar ou colar algo. Pressionando o botão "Enviar" fará com que o script seja carregado em sua sala.
Onde posso sugerir algo ou reportar um bug? Se você tem alguma ideia que gostaria que fosse implementada na própria documentação lua (API) ou em algum minigame específico, você poderá postá-la no no tópico de sugestões para a API Lua & Minigames. (falta o topico de bugs) Desenvolvi um minigame, como posso torná-lo oficial? Somente membros da equipe lua pode gerenciar um minigame oficial. Considere enviar um formulário para a equipe por conta própria (clique na aba "Equipe" para maiores informações). Para que um minigame se torne oficial é preciso que ele seja aprovado por um administrador do jogo e além disso, esses jogos devem seguir algumas normas que são requeridas, dentre as quais são: jogabilidade divertida/interessante, repley value (?), regras e informações úteis e de fácil compreensão, tradução para os idiomas mais falados no jogo e codificação eficiente, que não use tantos recursos do servidor. Eu executei um script e uma pequena janela de bate-papo chamada $lua abriu. O que é isso? A janela $lua é usada para reunir todas as informaões sobre o script que está sendo executado no momento. Quaisquer strings imprimidas irão aparecer nesse chat, assim como também avisos em relação as falhas no script, avisos sobre runtime alto, coisas do tipo. Ao fechar esse chat, as mensagens irão aparecer diretamente no chat da sala, e você não poderá abri-lo novamente até que reentre no jogo.
Onde posso conseguir ajuda para desenvolver um minigame? Existem vários lugares onde você pode pedir ajuda para desenvolver algo. Se você está tendo dificuldades para solucionar um erro em seu script, [url=]você pode visitar o tópico de erros[/url] para saber como corrigi-lo ou se preferir, postar o script no tópico para que alguém possa corrigir por você. Mas se você precisa falar com algum membro da equipe de forma rápida, clique na aba "Equipe" para ver a lista de membros da equipe lua, que você pode sempre entrar em contato quando necessário. Ainda existem também dois chats; um in-game, "/chat Lua" e outro no IRC, o #tmlua. Sinta-se livre para acessa-los sempre que necessário. Tem algo a mais que eu levar em conta ao desenvolver um minigame?
A equipe lua é um grupo de desenvolvedores que criam minigames para a comunidade divertir-se jogando, usando a Module API. Os membros da equipe lua tem acesso a algumas funções adicionais dentro do jogo para desenvolver seus minigames, algumas das quais fazem um uso mais intensivo dos recursos do servidor e, por isso, são limitadas. Todas essas funções estão listadas na aba "Documentação Lua". Dentre os recursos exclusivos para a equipe lua, destacam-se:
A lista completa com os membros da equipe é secreta, pois alguns membros preferem permanecer em anonimato ou por não quererem lidar com cochichos. Entretanto, as pessoas listadas abaixo são membros públicos da equipe e você pode contatá-los para ajudar a desenvolver o seu minigame, fazer com que ele se torne oficial ou para tirar alguma dúvida que você possa ter. ![]() ![]() Como posso entrar para a equipe lua?
Documentação Lua
└─ Mudanças:
├─ Foi adicionado um segundo argumento a função tfm.exec.newGame, que diz se o mapa vai rodar invertido ou não. ├─ Uma nova propriedade foi adicionada: tfm.get.room.mirroredMap, que diz quando um mapa é invertido ou não. ├─ A propriedade tfm.get.room.passwordProtected diz quando há senha na sala. └─ Agora não é mais possível colocar senhas em salas modules oficiais, a função tfm.exec.setRoomPassword permite colocar senha agora, apenas disponível para desenvolvedores Lua.
Dernière modification le 1483490460000 |
| ||
[Modéré par Mankttem] |
![]() Membre 1482454620000
| | ||
[Modéré par Mankttem] |
![]() Membre 1482513960000
| | ||
[Modéré par Mankttem] |
![]() Membre 1482515580000
| | ||
[Modéré par Mankttem] |
![]() Membre 1482516060000
| | ||
[Modéré par Montesquieu, raison : adicionado. conferir dps pra possiveis correçoes] Dernière modification le 1482780780000 |
![]() ![]() « Censeur » Membre 1482791460000
| 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Esse aba contêm uma variedade de informações que lhes pode ser útil ao desenvolver um module. Cores As cores listadas aqui são as comumente utilizadas no Transformice. Tanto do jogo, quanto da sua interface. Para uma lista completa com a lista de cores usadas no jogo, por favor acesse este tópico. #6A7495 cor de fundo do jogo. #324650 cor do chat do Transformice. #465a6e cor mais aparente do chat do Transformice. As cores abaixo podem ser usadas dentro strings que serão exibidas no jogo, como dentro de funções tfm.exec.chatMessage () e ui.add.TextArea (). Não precisam ser escritas como tags em HTML e irão colorir todo o texto da string após a tag, como por exemplo "<J>Ajuda".
Emoções 0 - Dançar 1 - Rir 2 - Chorar 3 - Beijar 4 - Irritado 5 - Bater palmas 6 - Dormir 7 - Facepalm 8 - Sentar 9 - Confete 10 - Bandeira 11 - Marshmallow 12 - Self 13 - Mão pra cima 14 - Hive Five 15 - Hive Five 16 - Lingua de sogra Objetos do shaman Essa lista contêm os IDs dos objetos do shaman, assim como também os IDs das suas variações e customizações. 0 - Seta
24 - Spirit 26 - Portal azul 27 - Portal laranja
80 - Avião de papel 85 - Pedra (árvore Selvagem)
95 - Bola de papel Teclado Teclado
Números
Letras
Outros¹
Numbpad (teclado numérico)
F
Outros²
Caracteres
Pisos 0 - Madeira 1 - Gelo 2 - Trampolim 3 - Lava 4 - Chocolate 5 - Terra 6 - Grama 7 - Areia 8 - Nuvem 9 - Água 10 - Pedra 11 - Neve 12 - Piso retangular 13 - Piso circular 14 - Piso invisível 15 - Teia Categorias dos mapas P0 - Normal P1 - Protegido P2 - Prime Perm (redundante) P3 - Prime Bootcamp P4 - Shaman P5 - Arte P6 - Mecanismo P7 - Sem shaman P8 - Cooperação P9 - Variados P10 - Survivor P11 - Survivor vampiro P13 - Bootcamp P17 - Racing P18 - Defilante P19 - Musica P21 - Testes para survivor vampiro P22 - Cafofo da tribo P32 - Testes para P8 P41 - Module/minigame P42 - Teste para racing P43 - Mapa deletado por ser inapropriado P44 - Mapa deletado ???? Decorações
Roupas mto extenso fazer depois Partículas 0 - Luz branca amarelada 1 - Luz lilás 2 - Luz amarela 3 - Fumaça (da emoção de nervoso) 4 - Luz branca 5 - Coração 6 - Bolhas 7 - Bolhas também 8 - Bolhas também 9 - Luz azul 10 - Explosão 11 - Outra luz amarela (igual à 2) 12 - Explosão roxa 13 - Luz vermelha 14 - Bloquinho de água 15 - +1 16 - +10 17 - +12 18 - +14 19 - +16 20 - meep! 21 - Confetes vermelhos 22 - Confetes verdes 23 - Confetes azuis 24 - Confetes amarelos 25 - Chuva (linhas retas da diagonal direita superior para a diagonal esquerda inferior) 26 - Vento circular 27 - Vento mais reto 28 - Chuva reta (de cima pra baixo) 29 - Estrelas 30 - Corações pequenos vermelhos 31 - Corações pequenos rosas 32 - Flor 33 - Sino 34 - Gotas azuis (eu acho que é gotas) 35 - Linha reta que se retorce 36 - Magia de teleporte 37 - Magia de teleporte azul 38 - Bala (do evento de páscoa) 39 - Pirulitos roxos 40 - Doce vermelho (do evento de Halloween de 2013) Títulos Acesse essa página para visualizar a lista completa dos títulos no jogo. Dernière modification le 1482825480000 |
![]() Membre 1482791640000
| | ||
[Modéré par Mankttem] Dernière modification le 1482795540000 |
![]() Membre 1483415820000
| | ||
[Modéré par Mankttem] |