Assertion Failure : No project JSON model availabl

0 favourites
  • 3 posts
From the Asset Store
A pack of 250 robotic sounds, including glitches, movement, devices, interfaces, charges, failures, launches, and more.
  • C2 r53; Windows XP SP3; FireFox 6.0.1; ATI Radeon HD 4870

    I was working on a project in construct2. (the demo for my pathfinder behavior)

    Saved it as a project folder, saved two versions in new folders.

    Adds some stuff about testing text objects' opacity.

    On preview I get a jQuery type of window message:

    Assertion failure: No project JSON model available
    
    Stack trace: 
    assert2((void 0),"No project JSON model available")@http://localhost:50000/preview_prelude.js:12
    ()@http://localhost:50000/preview.js:104
    ([object HTMLCanvasElement])@http://localhost:50000/preview.js:87
    ("c2canvas")@http://localhost:50000/preview.js:10
    ((function (a, b) {return new e.fn.init(a, b, h);}))@http://localhost:50000/preview.html:87
    ([object HTMLDocument],[object Array])@http://localhost:50000/jquery-1.6.2.min.js:16
    ()@http://localhost:50000/jquery-1.6.2.min.js:16
    ([object Event])@http://localhost:50000/jquery-1.6.2.min.js:16
    

    As well as an error in firebug:

    missing ] after element list ""stop"" in data.js (line 3846)

    After having clicked OK on the message firebug points to

    line 105 in preview.html

    "var pm = cr.getProjectModel();

    And gives the message:

    cr.getProjectModel is not a function 

    Indeed, cr.getProjectModel is undefined.

    Also.

    I tried to make a capx out of the current folder, just to see.

    And it seems I get the same error shinkan reported.

    Loading the file raises a check failure:

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Cannot find project file for animation frame
    
    Condition: FileExists(GetProjectPath().c_str())
    File: Projects\AnimationFrame.cpp
    Line: 186
    Function: void __thiscall AnimationFrame::Load(const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &)
    Build: release 53 (32-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 3)
    
    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way.  Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports!  Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
    ---------------------------
    Abandonner   Recommencer   Ignorer   
    ---------------------------
    

    Ignoring (several times, turning into fail to load texture error) allows to finaly open the project.

    And gets the same assertion JSON error as above.

    Get the zip containing:

    * demobug: the last version of the project saved as "project folder" and triggering the JSON assertion error.

    * democlean: the previous version of the project saved as "project folder" and executing as intended.

    * pathfinder: the behavior itself

    *demo pf.capx: the capx I saved from the demobug project.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's because you have a global text variable dirframe initialised to "stop". You don't need the double quotes around it - if you remove them, it works. It breaks because the string isn't correctly escaped when put in to javascript. Fixed for next build.

  • Nice. Thank you.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)