Module API & Minigame Bugs |
0 | ||
FFARACE profile bug fix it please |
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
| 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. |
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. |
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
| 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 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
| 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
| 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
| | ||
[Modéré par Shamousey, raison : Please speak English on the EN forums - this isn't the place for ban appeals.] |
Haruhitastic « Censeur » 1444528980000
| 0 | ||
You can't use module commands in servers you're not permitted to speak on; a bit of a pain. |
0 | ||
Imgur images are broken, making minigames like prophunt unplayable |
Famehouse « Citoyen » 1445672100000
| 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
| 0 | ||
Prophunt: Some computers cannot see the human props(not fixed) Domination: Some computers cannot see flags (not fixed) |
Fqwzdjepzwgh « Citoyen » 1449672720000
| 0 | ||
AAAAAA Dernière modification le 1644692760000 |
Mmmmmmmmmmmmmmm « Citoyen » 1449776880000
| 0 | ||
razz1 a dit : |
0 | ||
Minigame: Palette Room: #palette0 What Happened: does not work anymore Expectation: that I can go back to draw |
Cardnel « Citoyen » 1450656060000
| 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) |