? Mystery MML command (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Mystery MML command

  • #1 ✎ 1538 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website We found a few MML error messages that reference %: "Missing %" and "Duplicate %" I haven't been able to trigger these errors, or use % without causing another error (usually it's just "Unknown command") I'm guessing that % is part of another command, for example, something like X123,456% because the messages imply that it is required ("Missing %") and you can only use one ("Duplicate %") so it can't just be some option like & or _ (and it's definitely not a valid command on its own). It's not referenced anywhere in the manual (but there are other undocumented MML features), and there is no known MML that uses %. Posted Edited by 12Me21
  • #2 ✎ 892 snail_ Helper Received for being very helpful around SmileBASIC Source Achievements OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! Night Person I like the quiet night and sleep late. Express Yourself Where did you find this string? Do you know it's actually MML, or something else? The occurrence of % reminds me of this but it's unlikely to be related. Posted
  • #3 ✎ 1538 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website https://paste.ee/p/FGHNK Posted
  • #4 ✎ 892 snail_ Helper Received for being very helpful around SmileBASIC Source Achievements OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! Night Person I like the quiet night and sleep late. Express Yourself
    https://paste.ee/p/FGHNK
    Oh, this is a very interesting disassembly! I guess this checks certain characters in MML (suffixes and modifiers I guess) and throws an error if they're bad. Now we just have to find what % is.
    Posted
  • #5 ✎ 880 Y_ack Head Admin Snail: no, this doesn't do any actual checking. It's just a sort of string table. Walking up the call trace leads to another error handling print for display the line and position in the MML, which is then orphaned (presumably by bad decompile into a dynamic call somewhere) Posted
  • #6 ✎ 892 snail_ Helper Received for being very helpful around SmileBASIC Source Achievements OSP Contest 2 Contest Participant I participated in the second SmileBASIC Source OSP Contest! Night Person I like the quiet night and sleep late. Express Yourself It's a table but broken down into a bunch of ifs? Uhh okay. Whatever they fancy. Posted