Results 1 to 2 of 2

Thread: Spelling error within code of save file .json

  1. #1

    Spelling error within code of save file .json

    At line 28 there is a spelling error with one of the keywords, in the beginning of the section for Hands, I'm assuming it's supposed to be "Hiding" or "Hidden", instead of "Hidding".

    (The save file is just an empty table.)
    Code:
    {
      "SaveName": "name text test",
      "GameMode": "None",
      "Date": "3/13/2016 5:11:08 PM",
      "Table": "Table_Octagon",
      "Sky": "Sky_Museum",
      "Note": "",
      "Rules": "",
      "PlayerTurn": "",
      "LuaScript": "--[[ Lua code. See documentation: http://berserk-games.com/knowledgebase/scripting/ --]]\n\n--[[ The OnLoad function. This is called after everything in the game save finishes loading.\nMost of your script code goes here. --]]\nfunction onload()\n    --[[ print('Onload!') --]]\nend\n\n--[[ The Update function. This is called once per frame. --]]\nfunction update ()\n    --[[ print('Update loop!') --]]\nend\n\n--[[ The OnPlayerChangedColor function. This is mostly used when a player joins the game and chooses a color. --]]\nfunction onPlayerChangedColor(color)\n    --[[ print('Player changed color! ' .. color .. ' ' .. colorToPlayerName(color)) --]]\nend",
      "Grid": {
        "Type": 0,
        "Lines": false,
        "Snapping": false,
        "Offset": false,
        "BothSnapping": false,
        "xSize": 0.0,
        "ySize": 0.0,
        "PosOffset": {
          "x": 0.0,
          "y": 1.0,
          "z": 0.0
        }
      },
      "Hands": {
        "Enable": true,
        "DisableUnused": false,
        "Hidding": 0,
        "HandTransforms": [
          {
            "Color": "Red",
            "Transform": {
              "posX": -12.3078938,
              "posY": 3.66349745,
              "posZ": -12.4467287,
              "rotX": 6.701448E-07,
              "rotY": 44.9999962,
              "rotZ": -1.004373E-06,
              "scaleX": 9.413993,
              "scaleY": 8.961139,
              "scaleZ": 5.46584558
            }
          },
          {
            "Color": "Yellow",
            "Transform": {
              "posX": -12.3997478,
              "posY": 3.663498,
              "posZ": 12.1996861,
              "rotX": 1.004373E-06,
              "rotY": 134.999985,
              "rotZ": 6.70144743E-07,
              "scaleX": 9.413993,
              "scaleY": 8.961139,
              "scaleZ": 5.465842
            }
          },
          {
            "Color": "Purple",
            "Transform": {
              "posX": 17.39027,
              "posY": 3.6636343,
              "posZ": 0.04493778,
              "rotX": -1.184063E-06,
              "rotY": 270.0,
              "rotZ": 2.36334913E-07,
              "scaleX": 9.413988,
              "scaleY": 8.961139,
              "scaleZ": 5.46583939
            }
          },
          {
            "Color": "Blue",
            "Transform": {
              "posX": 12.3691378,
              "posY": 3.66356516,
              "posZ": 12.2303028,
              "rotX": -6.701448E-07,
              "rotY": 225.0,
              "rotZ": 1.004373E-06,
              "scaleX": 9.413986,
              "scaleY": 8.961139,
              "scaleZ": 5.465842
            }
          },
          {
            "Color": "White",
            "Transform": {
              "posX": 4.074421E-06,
              "posY": 3.663497,
              "posZ": -17.3454037,
              "rotX": -2.36334913E-07,
              "rotY": -3.55218845E-06,
              "rotZ": -1.18406285E-06,
              "scaleX": 9.413987,
              "scaleY": 8.961141,
              "scaleZ": 5.46584
            }
          },
          {
            "Color": "Green",
            "Transform": {
              "posX": 9.919539E-06,
              "posY": 3.663498,
              "posZ": 17.1985416,
              "rotX": 2.40466534E-07,
              "rotY": 179.8,
              "rotZ": 1.18323078E-06,
              "scaleX": 9.413986,
              "scaleY": 8.961139,
              "scaleZ": 5.46592045
            }
          },
          {
            "Color": "Pink",
            "Transform": {
              "posX": 12.36913,
              "posY": 3.663497,
              "posZ": -12.1405706,
              "rotX": -1.004373E-06,
              "rotY": 315.0,
              "rotZ": -6.70144743E-07,
              "scaleX": 9.413985,
              "scaleY": 8.961139,
              "scaleZ": 5.46583843
            }
          },
          {
            "Color": "Orange",
            "Transform": {
              "posX": -17.4208832,
              "posY": 3.66349745,
              "posZ": -0.169388324,
              "rotX": 1.184063E-06,
              "rotY": 90.00001,
              "rotZ": -2.36334913E-07,
              "scaleX": 9.413998,
              "scaleY": 8.961139,
              "scaleZ": 5.46584558
            }
          }
        ]
      },
      "DrawImage": "iVBORw0KGgoAAAANSUhEUgAAAWAAAADQCAYAAAA53LuNAAAFFElEQVR4Ae3QgQAAA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EDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgwYMGDAgAEDBgy8DQx5DAABHyNK3wAAAABJRU5ErkJggg==",
      "VectorLines": [],
      "ObjectStates": [],
      "TabStates": {
        "0": {
          "title": "Rules",
          "body": "",
          "visibleColor": {
            "r": 0.5,
            "g": 0.5,
            "b": 0.5
          },
          "id": 0
        },
        "1": {
          "title": "White",
          "body": "",
          "visibleColor": {
            "r": 1.0,
            "g": 1.0,
            "b": 1.0
          },
          "id": 1
        },
        "2": {
          "title": "Brown",
          "body": "",
          "visibleColor": {
            "r": 0.443,
            "g": 0.231,
            "b": 0.09
          },
          "id": 2
        },
        "3": {
          "title": "Red",
          "body": "",
          "visibleColor": {
            "r": 0.856,
            "g": 0.1,
            "b": 0.094
          },
          "id": 3
        },
        "4": {
          "title": "Orange",
          "body": "",
          "visibleColor": {
            "r": 0.956,
            "g": 0.392,
            "b": 0.113
          },
          "id": 4
        },
        "5": {
          "title": "Yellow",
          "body": "",
          "visibleColor": {
            "r": 0.905,
            "g": 0.898,
            "b": 0.172
          },
          "id": 5
        },
        "6": {
          "title": "Green",
          "body": "",
          "visibleColor": {
            "r": 0.192,
            "g": 0.701,
            "b": 0.168
          },
          "id": 6
        },
        "7": {
          "title": "Blue",
          "body": "",
          "visibleColor": {
            "r": 0.118,
            "g": 0.53,
            "b": 1.0
          },
          "id": 7
        },
        "8": {
          "title": "Teal",
          "body": "",
          "visibleColor": {
            "r": 0.129,
            "g": 0.694,
            "b": 0.607
          },
          "id": 8
        },
        "9": {
          "title": "Purple",
          "body": "",
          "visibleColor": {
            "r": 0.627,
            "g": 0.125,
            "b": 0.941
          },
          "id": 9
        },
        "10": {
          "title": "Pink",
          "body": "",
          "visibleColor": {
            "r": 0.96,
            "g": 0.439,
            "b": 0.807
          },
          "id": 10
        },
        "11": {
          "title": "Black",
          "body": "",
          "visibleColor": {
            "r": 0.1,
            "g": 0.1,
            "b": 0.1
          },
          "id": 11
        }
      }
    }

  2. #2
    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 would break everything that relies on the current (mis-)spelling.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •