×

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
  • /
  • Bugs
  • /
  • Module API & Minigame Bugs
« ‹ 12 / 16 › »
Module API & Minigame Bugs
Xxx
« Citoyen »
1440335160000
    • Xxx#6197
    • Profil
    • Derniers messages
    • Tribu
#221
  0
FFARACE profile bug fix it please
Jeeka
« Citoyen »
1440708360000
    • Jeeka#0000
    • Profil
    • Derniers messages
    • Tribu
#222
  0
In lua script you can't get any coordinates via tfm.get.room.objectList after you spawn more than 50 objects on the same map, even if these objects have already been deleted. This code, for example, runs perfectly until you've spawned anything more than 50 times:
direction = 0
tmpID = 0
function eventKeyboard(pName, keyCode, down, xPlayerPosition, yPlayerPosition)
if keyCode==37 then -- if player is running left save his direction
direction = -1
end
if keyCode==39 then -- if player is running right save his direction
direction = 1
end
if keyCode==32 then -- Cannonball on spacebar
local tmpID = tfm.exec.addShamanObject(17,xPlayerPosition+30*direction,yPlayerPosition+10,90*direction,20*direction,0,false)
print(tmpID)
end
if keyCode==88 then -- Ball spawn on X key
tmpID = tfm.exec.addShamanObject(6,400,300,0,0,0,false)
print(tmpID)
end
if keyCode==67 then -- Teleport to ball on C key
tfm.exec.movePlayer(pName,tfm.get.room.objectList[tmpID].x,tfm.get.room.objectList[tmpID].y,false,0,0,false)
print(tmpID)
end
end

playerName = 'Jeeka'

tfm.exec.bindKeyboard(playerName, 67, true, true)
tfm.exec.bindKeyboard(playerName, 37, true, true)
tfm.exec.bindKeyboard(playerName, 39, true, true)
tfm.exec.bindKeyboard(playerName, 32, true, true)
tfm.exec.bindKeyboard(playerName, 88, true, true)

And after reaching limit of 50 items "objectList" gives you only strange coordinates in the corner of the map instead of required object's coordinates.
Edit: these broken coordinates seem to be object spawn position divided by 3.(3). But even if it is possible to multiply numbers by 3, the problem is that they are still not being updated after spawn.

Dernière modification le 1440709380000
Shamousey
« Consul »
1440708900000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#223
  0
^ I can confirm this and it's a big pain for a lot of different modules I've wanted to create in the past, it'd be great to be fixed.
Esh
« Censeur »
1440719520000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#224
  0
The same problem occurs with players sometimes, the lua script doesn't recognize the player, making the player "invisible" to scripts/giving wrong positions and events.
Vvv
« Citoyen »
1441051380000
    • Vvv#4666
    • Profil
    • Derniers messages
    • Tribu
#225
  0
im not sure if like #control i just bugged or completely down???
but its been down and out and only showing the silly transforcow "minigame" for some time now
)^: i miss #control
Velspar
« Citoyen »
1442922720000
    • Velspar#0000
    • Profil
    • Derniers messages
    • Tribu
#226
  0
Not sure if this is wrong:
tfm.exec.bindKeyboard('Velspar', 65, true, true) --A
tfm.exec.bindKeyboard('Velspar', 68, true, true) --D
tfm.exec.bindKeyboard('Velspar', 83, true, true) --S
tfm.exec.bindKeyboard('Velspar', 87, true, true) --W
tfm.exec.bindKeyboard('Velspar', 32, true, true) --Space

function eventKeyboard(playerName, keyCode, down, xPlayerPosition, yPlayerPosition)
print('Key #'..keyCode) --Print if pressed.
end
Though Im pretty sure its correct, and should work.

Some keys arent being binded, or they arent registering in the eventKeyboard function.
I only cared for the wasd keys, so the only keys I Know arent working are A and W. (Codes 65 and 87)
Everything else seems fine, If Im somehow wrong Id like to know.
Hiumee
« Citoyen »
1442924700000
    • Hiumee#9737
    • Profil
    • Derniers messages
    • Tribu
#227
  0
If you use an AZERTY keyboard the W and A are switched with Z and Q. Try to bind all of them.
Shamousey
« Consul »
1442924700000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#228
  0
^This isn't really a bug, just something not being accounted for in the API. While we might be using QWERTY keyboards, some countries use a slightly different keyboard layout (AZERTY) where the key layout is a bit different. This means that some keys are swapped around (A/Q and W/Z if I recall correctly), so your best bet for now is likely to just bind both of those keys for your purposes to suit everyone.

Hopefully one day we'll get something like tfm.get.room.playerList["Velspar"].keyboard = "qwerty" or "azerty" so we can make our code act accordingly.

Edit: Ninja Alexunutrei
Davidovk
1442961060000
    • Davidovk#0000
    • Profil
    • Derniers messages
#229
[Modéré par Shamousey, raison : Please speak English on the EN forums - this isn't the place for ban appeals.]
Haruhitastic
« Censeur »
1444528980000
    • Haruhitastic#0000
    • Profil
    • Derniers messages
    • Tribu
#231
  0
You can't use module commands in servers you're not permitted to speak on; a bit of a pain.
Esh
« Censeur »
1444604460000
    • Esh#0095
    • Profil
    • Derniers messages
    • Tribu
#232
  0
Imgur images are broken, making minigames like prophunt unplayable
Famehouse
« Citoyen »
1445672100000
    • Famehouse#0000
    • Profil
    • Derniers messages
    • Tribu
#233
  0
#prophunt
if you go to #prophunt100 when hide is well instaley invisible and it can t pop up the shaman healthy does not apperare in #prophunt100
Cutecup
« Citoyen »
1448635860000
    • Cutecup#0000
    • Profil
    • Derniers messages
#234
  0
Prophunt: Some computers cannot see the human props(not fixed)
Domination: Some computers cannot see flags (not fixed)
Fqwzdjepzwgh
« Citoyen »
1449672720000
    • Fqwzdjepzwgh#4615
    • Profil
    • Derniers messages
#235
  0
AAAAAA

Dernière modification le 1644692760000
Mmmmmmmmmmmmmmm
« Citoyen »
1449776880000
    • Mmmmmmmmmmmmmmm#4582
    • Profil
    • Derniers messages
    • Tribu
#236
  0
razz1 a dit :
Hello, i run #infected in the tribehouse (801 map), the map didnt changed, all mouses got "meep" ability but the vampire didnt appears, what am i doing wrong?
Shali
« Citoyen »
1450113060000
    • Shali#8501
    • Profil
    • Derniers messages
    • Tribu
#237
  0
Minigame: Palette
Room: #palette0
What Happened: does not work anymore
Expectation: that I can go back to draw
Cardnel
« Citoyen »
1450656060000
    • Cardnel#0000
    • Profil
    • Derniers messages
#239
  0
Everytime i press E to turn into an object, i become invisible. This bug has been going on for 1 month now, please help!

(EDIT) Thos happens tol everyone when they press E to turn into an object.
(in prophunt)
  • Forums
  • /
  • Transformice
  • /
  • Bugs
  • /
  • Module API & Minigame Bugs
« ‹ 12 / 16 › »
© Atelier801 2018

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

Version 1.27