Hi,
Will it make a difference if you use a variable instead of string for the receiver of msg.post()?
Example:
local hashes = require("lib.hashes")
--THIS
msg.post("/asteroid#asteroid_factory_script", hashes.MESSAGE_FACTORY_CREATE_ASTEROID)
-- OR THIS
msg.post(hashes.ASTEROID_FACTORY_SCRIPT, hashes.MESSAGE_FACTORY_CREATE_ASTEROID)
Hashes.lua:
local M = {}
M.ASTEROID_FACTORY_SCRIPT = "/asteroid#asteroid_factory_script"
end