×

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
  • /
  • Modules
  • /
  • Module FAQ & Documentation
« ‹ 14 / 19 › »
Module FAQ & Documentation
Bolodefchoco
« Sénateur »
1517458920000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#261
  0
Indika123 a dit :
How to get the list of the players in a room?

Use tfm.get.room.playerList

Example:
Code Lua

1
2
3
for name, data in next, tfm.get.room.playerList do
print(name .. "'s X position: " data.X)
end
Koruto
« Citoyen »
1517459040000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#262
  0
Can anyone give me the list of modules with their script?
please use the table to give the code and name

please use that url bb code because I can't copy from lage on mobile so I want click on option


Thanks a lot if you do it .
:D
Bolodefchoco
« Sénateur »
1517460540000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#263
  0
Hemant2002 a dit :
Can anyone give me the list of modules with their script?
please use the table to give the code and name

please use that url bb code because I can't copy from lage on mobile so I want click on option


Thanks a lot if you do it .
:D

The developers rarely share the code, but i have written a list in portuguese;
Read it here, in the first spoiler
Koruto
« Citoyen »
1517463600000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#264
  0
There are 2 things .
1. That's in other Lang I can't read it I need the en version.
2. Actually I just wanted a list of modules (both official and unofficial) and minigames with their script in the manner of a table . Can you please make it for me.
Bolodefchoco
« Sénateur »
1517497560000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#265
  1
Hemant2002 a dit :
There are 2 things .
1. That's in other Lang I can't read it I need the en version.
2. Actually I just wanted a list of modules (both official and unofficial) and minigames with their script in the manner of a table . Can you please make it for me.

It's in another language but the names of the modules are there, man.
https://image.prntscr.com/image/R3WnjCJUQ-mhUVw95NevmA.pnghttps://image.prntscr.com/image/g5VegJG1QFCOKfUQ0aL_DA.png

You can search for the unofficial scripts, but you won't find any, or many, official scripts and I won't do that :/
Koruto
« Citoyen »
1517540100000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#266
  0
I didnt need the name of games i needed scripts to learn and its hard to find so i thought u will do :/
Bolodefchoco
« Sénateur »
1517541540000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#267
  0
Hemant2002 a dit :
I didnt need the name of games i needed scripts to learn and its hard to find so i thought u will do :/

Look the unofficial scripts. You can find them in this section.
Koruto
« Citoyen »
1517545080000
    • Koruto#2851
    • Profil
    • Derniers messages
    • Tribu
#268
  0
Bolodefchoco a dit :
Look the unofficial scripts. You can find them in this section.

I know where to find them but i need is that i cant copy link on mobile from this page so please make a table with name of module and the link to script.
Please make it
Acer
« Citoyen »
1517898000000
    • Acer#0095
    • Profil
    • Derniers messages
    • Tribu
#269
  0
Indika123 a dit :
How to get the list of the players in a room?

The following returns a table with all the players in the room.
1
tfm.get.room.playerList

You can loop through the table to get the list of all the players.
1
2
3
for player in pairs(tfm.get.room.playerList) do
print(player)
end
Honorabilis
« Consul »
1517930160000
    • Honorabilis#0000
    • Profil
    • Derniers messages
    • Tribu
#270
  0
Hemant2002 a dit :
Bolodefchoco a dit :
Look the unofficial scripts. You can find them in this section.

I know where to find them but i need is that i cant copy link on mobile from this page so please make a table with name of module and the link to script.
Please make it

People can steal the codes. So they are not sharing them, if I were the dev, I would do that too.

Dernière modification le 1517930280000
King_seniru
« Censeur »
1518161700000
    • King_seniru#5890
    • Profil
    • Derniers messages
    • Tribu
#271
  1
Hemant2002 a dit :
Can anyone give me the list of modules with their script?
please use the table to give the code and name

please use that url bb code because I can't copy from lage on mobile so I want click on option


Thanks a lot if you do it .
:D

I made a list of modules | Here |
Bolodefchoco
« Sénateur »
1518730140000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#272
  0
#SNIPER IS THE NEW SEMI-OFFICIAL MODULE!
King_seniru
« Censeur »
1519730280000
    • King_seniru#5890
    • Profil
    • Derniers messages
    • Tribu
#273
  1
how to play an emote automatically?
Bolodefchoco
« Sénateur »
1519749960000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#274
  0
Indika123 a dit :
how to play an emote automatically?

tfm.exec.playEmote(name, emoteID)
Tocutoeltuco
« Censeur »
1520111400000
    • Tocutoeltuco#0000
    • Profil
    • Derniers messages
#275
  0
When in the last 4 seconds the runtime is ~40ms, lua throws a warning:
https://image.prntscr.com/image/sdgu4Q6ySq_bJ2MxrayFKg.png
But when in the last 4 seconds the runtime is higher than 40ms, lua don't says anything.

The code that i've used to test this:
You must write something in the chat to crash the script.

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
startTime = os.time()
totalMS = 0

func = function(ms)
local start = os.time()
while (os.time() - start) < ms do
end
totalMS = totalMS + (os.time() - start)
end

function eventLoop(n, m)
local co = coroutine.create(func)
coroutine.resume(co, 1)
if os.time() - startTime > 3999 then
print("In the last 4 seconds have been registered " .. totalMS .. "ms.")
startTime, totalMS = os.time(), 0
end
end

function eventChatMessage(n, m)
co = coroutine.create(func)
coroutine.resume(co, 35)
end
Heniyengui
« Citoyen »
1520186340000
    • Heniyengui#0000
    • Profil
    • Derniers messages
#276
  0
Tocutoeltuco a dit :
When in the last 4 seconds the runtime is ~40ms, lua throws a warning:
But when in the last 4 seconds the runtime is higher than 40ms, lua don't says anything.

The code that i've used to test this:
You must write something in the chat to crash the script.

Code Lua

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
startTime = os.time()
totalMS = 0

func = function(ms)
local start = os.time()
while (os.time() - start) < ms do
end
totalMS = totalMS + (os.time() - start)
end

function eventLoop(n, m)
local co = coroutine.create(func)
coroutine.resume(co, 1)
if os.time() - startTime > 3999 then
print("In the last 4 seconds have been registered " .. totalMS .. "ms.")
startTime, totalMS = os.time(), 0
end
end

function eventChatMessage(n, m)
co = coroutine.create(func)
coroutine.resume(co, 35)
end

Yeah, that happened to me too. Sometimes it stops without even giving a warning.
Overjoy06
« Citoyen »
1520650020000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#277
  0
is it possible to display a particle effect on a loop?
Overjoy06
« Citoyen »
1520650380000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#278
  0
is it possible to let everyone do a emote?
Bolodefchoco
« Sénateur »
1520650440000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#279
  0
Overjoy06 a dit :
is it possible to let everyone do a emote?

Code Lua

1
tfm.exec.playEmote(nil, emote_id)

Overjoy06 a dit :
is it possible to display a particle effect on a loop?

yes, use eventLoop
Overjoy06
« Citoyen »
1520662020000
    • Overjoy06#0000
    • Profil
    • Derniers messages
    • Tribu
#280
  0
function eventPlayerGetCheese(playerName)
function eventChatCommand(playerName, command)
if message == "win" then
tfm.exec.playerVictory(playerName)
end
end
end

Why won't it work? i tried fixing it but never works.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Module FAQ & Documentation
« ‹ 14 / 19 › »
© Atelier801 2018

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

Version 1.27