×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 20 / 38 › »
Module API FAQ
Safwanrockz
« Censeur »
1381945800000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#381
  0
Shamousey a dit :

oh my god is that cookie clicker.
Shamousey
« Consul »
1382012640000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#382
  0
I updated the FAQ with more information, updated information, and a quick pointer to get people started off.
Sandermr
« Citoyen »
1382019420000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#383
  0
When a scripted module code is activated in the tribehouse and everyone leaves the tribehouse is the code deactivated?
Jordy
« Consul »
1382020080000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#384
  0
Yes when the last person leaves the tribe room the script gets unloaded.
Epinine
« Citoyen »
1382035440000
    • Epinine#0000
    • Profil
    • Derniers messages
    • Tribu
#385
  0
Lua team, i've got an idea for a minigame! Basically, it's when everybody in the whole room is a shaman and they've got all command powers. Commands: .!cheese .!double ffa (double cannons) and those are all. All are limited the same. Nobody can build! In the spawn list they can only spawn runes and cannons, no body can use thier totems. To spawn a !double ffa you've got to duck or press space.You can also fly. but you can only fly to the amount where all the info is ex.:Shamousey - @4384778 | Time left : 02:51 | Mice : 12 | Shaman : Lujil | Mice Left : 11 Bye! HOPE YOU LIKE IT!!! The names ,if you use it the name is Spawnrace
Jsilv
« Citoyen »
1382229240000
    • Jsilv#0000
    • Profil
    • Derniers messages
#386
  0
Jsilv a dit :
Is there some sort of set criteria that Sydoline goes by when she approves of an unofficial module and makes it official? Does she check to see it's popularity, rules, gameplay? Does she ever say 'no' when someone requests their minigame to become official. Just things passing through my mind.

Perhaps I should post this here because it is more Module API - ish. Any of you LUA Devs or anyone else know? :p
Shamousey
« Consul »
1382232540000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#387
  0
Jsilv a dit :
Perhaps I should post this here because it is more Module API - ish. Any of you LUA Devs or anyone else know? :p

There's not any set criteria to go by, but there are several things to note. Any way to abuse the game (getting free cheese or using mod messages, etc.), a game without EN/BR translations or clear gameplay, no gameplay at all, etc. will all result in a "no".

There have been other reasons too, and exceptions. #utility was accepted despite no gameplay, #spiritual was originally declined due to Atelier's plans to make their own shaman minigame, #bafflua was initially accepted and then later made unofficial due to limitations (2 modules per dev) being lifted.
Jsilv
« Citoyen »
1382262000000
    • Jsilv#0000
    • Profil
    • Derniers messages
#388
  0
I never knew that #utility was official but thanks for the clear answer Shamo!

Also, there used to be a rule where you could only have two official modules per LUA dev?
Shamousey
« Consul »
1382276580000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#389
  0
Well the definitions are a little bit flaky right now, but there's a small explanation in the opening post of what official/unofficial/approved/unapproved modules are. #utility is unofficial -by this definition.

a dit :
• Unapproved modules is the name given to scripts ran that aren't approved by an administrator.

• Official modules show up on the /module list ingame, allow players to earn 1 cheese every 2 minutes, can be loaded through /module modulename in the tribe house, and work in any room starting with #modulename.

• Unofficial modules are approved by administrators, can be loaded in the tribe house with /module modulename, and work in any room starting with #modulename.

And yes, each Lua dev only used to be able to have two official modules each, but once unoffical modules were brought out that restriction was lifted.
Sandermr
« Citoyen »
1382291160000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#390
  0
Hi, could someone help me with my Team deathmatch code? http://pastebin.com/6t4FRQVi

There's no error. It's just not working properly, for example, if every red team player dies it doesn't print "Blue team wins!", which is what I want it to do (for now atleast).
Shamousey
« Consul »
1382292960000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#391
  0
Sandermr a dit :
Hi, could someone help me with my Team deathmatch code? http://pastebin.com/6t4FRQVi

There's no error. It's just not working properly, for example, if every red team player dies it doesn't print "Blue team wins!", which is what I want it to do (for now atleast).

The problem here is the tables. You're using table.insert() to put items into the table, which automatically makes a numbered index. You're later looping through with pairs(), which uses key,value, and you're checking if the is a table and has an "isDead" value. This is basically the same as saying "if not Shamousey.isDead then", which is pretty useless. The player's name would have to be parsed through playerList again, try "if not tfm.get.room.playerList[player].isDead then".
Sandermr
« Citoyen »
1382293620000
    • Sandermr#0000
    • Profil
    • Derniers messages
    • Tribu
#392
  0
Shamousey a dit :
The problem here is the tables. You're using table.insert() to put items into the table, which automatically makes a numbered index. You're later looping through with pairs(), which uses key,value, and you're checking if the is a table and has an "isDead" value. This is basically the same as saying "if not Shamousey.isDead then", which is pretty useless. The player's name would have to be parsed through playerList again, try "if not tfm.get.room.playerList[player].isDead then".

Ahhhh thank you soooo much I really appreciate it since I'm still learning
Yapale
« Citoyen »
1382293740000
    • Yapale#0000
    • Profil
    • Derniers messages
    • Tribu
#393
  0
Shamousey a dit :

ily just how did you
Storzl
« Citoyen »
1382379600000
    • Storzl#0000
    • Profil
    • Derniers messages
#394
  0
Wait nvm
Shamousey
« Consul »
1382380020000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#395
  0
Storzl a dit :
Is there anyway to make a lua code NOT stop working if the tribehouse is empty OR even better to make it start running again when a new player enters the tribehouse.

This would really help me since I've created a sort of "utility" for my tribehouse and if the tribehouse has 0 mice it stops and the only way to get it back is if I re run it myself.

This isn't possible and Tig said it's very unlikely to happen in the near future.
Epinine
« Citoyen »
1382383860000
    • Epinine#0000
    • Profil
    • Derniers messages
    • Tribu
#396
  0
Btw , on forums it sais • There is no "Your last message is the same.".
i was in utility and i tried to write the same thing, it turned out like [Epinine] lol
Quiet, thank you.
Your last message is the same.
Your last message is the same.
Your last message is the same.
Shamousey
« Consul »
1382545380000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#398
  0
Epinine a dit :
Btw , on forums it sais • There is no "Your last message is the same.".
i was in utility and i tried to write the same thing, it turned out like [Epinine] lol
Quiet, thank you.
Your last message is the same.
Your last message is the same.
Your last message is the same.

Sorry, I didn't clarify when exactly this happens - it only works in unapproved modules.

Animjarcanin a dit :
Can we play a new game on a specific category map ? For example, P4.
tfm.exec.newGame(#4) ? [It's not working !]

That's a string, so you'd have to do tfm.exec.newGame("#4"), but this doesn't work in the tribe house.
Eliaseeg
« Citoyen »
1382769780000
    • Eliaseeg#0000
    • Profil
    • Derniers messages
    • Tribu
#399
  0
Edit; Fail D:
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 20 / 38 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27