Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Message
| There is a bug in the serialize module, used to export the corpus.
Edit the file "serialize.lua" in the "lua" subdirectory of where you installed MUSHclient.
Find these lines around line 112 in that file:
for _, v in ipairs ({
"and", "break", "do", "else", "elseif", "end",
"for", "function", "if", "in", "local", "nil", "not", "or",
"repeat", "return", "then", "until", "while"
}) do lua_reserved_words [v] = true end
Add "true" and "false" (with commas) so it looks like this:
for _, v in ipairs ({
"and", "break", "do", "else", "elseif", "end",
"for", "function", "if", "in", "local", "nil", "not", "or",
"repeat", "return", "then", "until", "while", "true", "false"
}) do lua_reserved_words [v] = true end
In other words, add this to the end of the line starting with the word "repeat":
Then it should serialize correctly, and thus load correctly next time.
The raw file contents is here, if you want to use that:
https://raw.githubusercontent.com/nickgammon/mushclient/master/lua/serialize.lua |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|