Compare commits

...

2 Commits

Author SHA1 Message Date
Diego Esaa 1ba6352ef2 Fix broken server names
Prior to this commit, some of the player's names would have 'rqcid' prefixed
to them.
2022-01-08 21:46:53 +01:00
Diego Esaa dc24f21852 add backwards compatibility for unpack() 2022-01-08 21:46:24 +01:00
3 changed files with 3 additions and 1 deletions

1
compat.lua Normal file
View File

@ -0,0 +1 @@
table.unpack = table.unpack or unpack

View File

@ -51,7 +51,7 @@ while true do
if i ~= clientCount .."" then
print("Introducing client[" .. i .. "] and client[" .. clientCount.."]")
-- to Existing client
local payload = util.unit("poppyV001", clientCount, "player", "join", result.record)
local payload = util.unit("poppyV001", clientCount, "player", "join", name)
print("Payload1 : " ..payload)
server:sendto(payload, client.ip, client.port)
-- to New client

View File

@ -1,6 +1,7 @@
local constants = require("constants")
local util = require("utils")
local rpc = require("rpc")
require("compat")
return function(commands)
commands.move = {}