lisdude / blightmud_mcp

A plugin for Blightmud that implements the MUD Client Protocol (MCP 2.1) and some common packages.
4 stars 1 forks source link

randomseed lua error when connecting #1

Closed anorthall closed 3 years ago

anorthall commented 3 years ago

Hi,

I just installed this plugin (which looks great!) but when I connect to ChatMUD I get the following:

[!!] [Lua] Script error:
[!!]    runtime error: .../share/blightmud/plugins/blightmud_mcp/src/mcp_utils.lua:11: bad argument #1 to 'randomseed' (number has no integer representation)
[!!]    stack traceback:
[!!]            [C]: in function 'math.randomseed'
[!!]            .../share/blightmud/plugins/blightmud_mcp/src/mcp_utils.lua:11: in function 'seed_rng'
[!!]            ...re/blightmud/plugins/blightmud_mcp/src/mcp_negotiate.lua:23: in function 'mcp_register'
[!!]            ...re/blightmud/plugins/blightmud_mcp/src/mcp_negotiate.lua:40: in function 'mcp_register_trigger'
[!!]            [string "?"]:83: in method 'check_line'
[!!]            [string "?"]:158: in method 'check_line'
[!!]            [string "?"]:231: in function <[string "?"]:226>
[!!] [Lua] Script error:
[!!]    runtime error: [string "?"]:179: Trigger callback has been running for +2 seconds. Aborting
[!!]    stack traceback:
[!!]            [C]: in function 'error'
[!!]            [string "?"]:80: in hook '?'
[!!]            [string "?"]:179: in function <[string "?"]:170>

Do you have any ideas? Thank you!

lisdude commented 3 years ago

It looks like this broke when Blightmud updated Lua. I'll have a fix up in a minute, sorry about that.