Search:

Type: Posts; User: Kinithin

Search: Search took 0.01 seconds.

  1. Thread: Color.fromHex

    by Kinithin
    Replies
    3
    Views
    803

    It seems the alpha isn't optional, despite what...

    It seems the alpha isn't optional, despite what the docs (patch notes) say.

    As a workaround, just use `f9d77eff` instead of `f9d77e`
  2. [BUG][SCRIPT] Global.script_state survives load

    Global.script_state is not reset to "" on load. This means the script_state from one mod can leak into another mod.

    This issue can very easily be demonstrated using the following:



    ...
  3. yeah, it's weird. Something to do with the fact...

    yeah, it's weird. Something to do with the fact that it's a Physics engine, I bet.

    But it's not really a problem. You shouldn't be comparing floating points numbers for equality anyway. (0.1 + 0.2...
  4. It's unfortunate, but fixing this could break...

    It's unfortunate, but fixing this could break code.

    Famously, there's an HTTP header field called "http-referer". Of course, the word is spelled referrer, but it's can't be fixed now because it...
  5. [BUG][SCRIPT][JSON] JSON.encode can't encode some math symbols (∅ ∞)

    JSON.encode can handle latin-1 characters.



    /execute local s = string.char(0xE9); print(s); print(JSON.encode(s))

    ""


    JSON.encode can handle characters across the Unicode BMP.
  6. [BUG][SCRIPT][JSON] JSON.decode produces garbage for \u sequences

    /execute local json = '"\\u00E9"'; print(json); local s = JSON.decode(json); print(s);


    produces



    "\u00E9"
    é
Results 1 to 6 of 6