chaoloveicemdboy
Member
For some odd reason, the dedicated server is not included when you iterate the player list by using for player in players.iterate. I originally thought the MapChange and ThinkFrame hooks aren't executing in dedicated servers, but then I tested local variables outside of for player in players.iterate, and the hooks worked perfectly fine, but player is nil if I attempt to use any player variables outside of for player in players.iterate, since player is undefined in the MapChange and ThinkFrame hooks.
Original Version of Thread:
Original Version of Thread:
If you are using the dedicated server, then the MapChange and ThinkFrame hooks never execute; as a result, player.empiralMP is nil for the dedicated server, and it is causing Lua errors. I found this out when I didn't see any messages being printed involving the pre-init, init, and post-init stages for EmpiralMP on the dedicated server's side. I do not know if this is intentional or a bug with SRB2. On integrated servers and clients, there are no Lua errors at all.
Last edited: