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

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Mystery MML command

  • #1 ✎ 1755 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself 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 ✎ 991 snail_ QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements 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 ✎ 1755 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself https://paste.ee/p/FGHNK Posted
  • #4 ✎ 991 snail_ QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements
    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 ✎ 1000 Yttria 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 ✎ 991 snail_ QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Helper Received for being very helpful around SmileBASIC Source Achievements Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements It's a table but broken down into a bunch of ifs? Uhh okay. Whatever they fancy. Posted