R151 Array load as JSON from webstorage bug

0 favourites
  • 4 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • Link to .capx file (required!):

    https//dl.dropboxusercontent.com/u/65841566/R151NewJSONwithArrayLoadBug.capx

    Steps to reproduce:

    1. (I already labelled the button base on step). Must run in debug mode.

    2. Create Array (10,3,1) and webstorage

    3. Clear Array and Webstorage

    4. Init Array with values and save it to webstorage as JSON

    5. Clear Array

    6. Try load back the saved value from webstorage to Array.

    Observed result:

    R151 failed to load back the JSON saved

    R150 able to load back. (same event or codes)

    I noticed that JSON string is different between R151 and R150, the "size:" is included as data. I think this is incorrect right ?

    R151 {"c2":true,"data":{"size":[10,3,1],"data":[[[100],["nom"],[0]],[[200],["nom"],[0]],[[300],["nom"],[0]],[[400],["nom"],[0]],[[500],["nom"],[0]],[[600],["nom"],[0]],[[700],["nom"],[0]],[[800],["nom"],[0]],[[900],["nom"],[0]],[[1000],["nom"],[0]]]}}

    R150 {"c2array":true,"size":[10,3,1],"data":[[[100],["nom"],[0]],[[200],["nom"],[0]],[[300],["nom"],[0]],[[400],["nom"],[0]],[[500],["nom"],[0]],[[600],["nom"],[0]],[[700],["nom"],[0]],[[800],["nom"],[0]],[[900],["nom"],[0]],[[1000],["nom"],[0]]]}

    Expected result:

    Array should be loaded fine. (Before this R150 and below the codes is working ok)

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Win8.1

    Construct 2 version:

    R151

  • Oops, the new AsJSON expressions conflict with the old one. Removed the conflicting expressions for the next build, which should fix it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Looks like it's still a bug in R155..?

  • Hi gerris

    I just tested my previous capx with R155 and it seems working.

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