I'm trying to implement an array of identical tables and mudlet doesn't seem to like it. An array with a list of simple values works fine. The MSDP "specifications" I've found are vague on the topic. Any ideas if mudlet should handle this?
The simple arrays work fine:
[ARRAY OPEN] [VALUE] <string> [ARRAY CLOSE]
[ARRAY OPEN] [VALUE] <string> [VALUE] <string> [ARRAY CLOSE]
etc
A complex array with 1 element works fine:
[ARRAY OPEN][VALUE] [TABLE OPEN] [VARIABLE] <string> [VALUE] <string> [TABLE CLOSE] [ARRAY CLOSE]
A complex array with 2 elements does not work:
[ARRAY OPEN]
[VALUE] [TABLE OPEN] [VARIABLE] <string> [VALUE] <string> [TABLE CLOSE]
[VALUE] [TABLE OPEN] [VARIABLE] <string> [VALUE] <string> [TABLE CLOSE]
[ARRAY CLOSE]
MSDP Arrays
Re: MSDP Arrays
I'm not sure as I'm not a MSDP user at all (just GMCP, which is far simpler) - short on time to investigate this right now, but for anyone looking, this is where Mudlet translates MSDP to Lua: https://github.com/Mudlet/Mudlet/blob/d ... cpp#L11040
Re: MSDP Arrays
I believe I found the underlying issue. I will look into adding the fix to the next release (3.4).
Re: MSDP Arrays
Update: I submitted a bugfix at https://github.com/Mudlet/Mudlet/pull/1221
Re: MSDP Arrays
This is now fixed and will come with the next mudlet version.