ocapmod / ocap-legacy

OCAP is a game-changing tool that allows the recording and playback of operations on an interactive (web-based) map.
Other
38 stars 42 forks source link

Error: "XXXoperation.json" could not be found #30

Closed bux closed 8 years ago

bux commented 8 years ago

OCAP: Version 0.5.0.1 Beta http://itsbux.com/ocap/

When trying to play back a 1h 40min operation the web part shows an error, that the json is file could not be found. (Note: Had to manually fix #18 and escape some of the strings) error

When looking at the web developer tools, one can see that the json file is actually trying to be loaded as an XHR request. xhr

Though this request seems to fail after a few ms.

bux commented 8 years ago

We had another instance of an unescaped string in the json file [4933,"hit",537,[578,"Noreen "Bad News" ULR (Sand)"],"547"],

bux commented 8 years ago

Used a small WinForms program to find the error in the json file (using Json.Net)

var path = "operation.json";
using (var streamReader = new StreamReader(path)) {
    using (var reader = new JsonTextReader(streamReader)) {
        var schema1 = JsonSchema.Read(reader);
    }
}
Hawke442 commented 8 years ago

Care to share the program? Would like to check a json file i'm having a problem with.

bux commented 8 years ago

@Hawke442 https://github.com/bux578/QuickJsonValidator/releases/tag/init

The *.exe is not signed. So Windows might alert you. Feel free to build from source.

Hawke442 commented 8 years ago

@bux578 Awesome! Cheers.