MSDP Arrays

Post Reply
teker
Posts: 6
Joined: Tue Feb 21, 2017 7:49 pm

MSDP Arrays

Post by teker »

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]

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: MSDP Arrays

Post by Vadi »

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

User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: MSDP Arrays

Post by keneanung »

I believe I found the underlying issue. I will look into adding the fix to the next release (3.4).

User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: MSDP Arrays

Post by keneanung »

Update: I submitted a bugfix at https://github.com/Mudlet/Mudlet/pull/1221

User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: MSDP Arrays

Post by keneanung »

This is now fixed and will come with the next mudlet version.

Post Reply