Localstorage error line 17 with no localst events in line 17

0 favourites
  • 7 posts
From the Asset Store
Best soundtracks for any game. High quality and engaging assets.
  • Problem Description

    ____ A concise description of your problem here ____

    Javascript error!

    InvalidStateError

    http://localhost:50000/LocalStorage_plugin.js, line 17 (col 13630)

    It gives this error, but there isn't an event with localstorage in line 17....

    Attach a Capx

    ____ Upload a Capx to this post ____

    Description of Capx

    ____ Concise description of what this CapX does ____

    Sort of colorswitch game

    Steps to Reproduce Bug

    • Step 1 control Localstorage events
    • Step 2 control Localstorage plugin
    • Step 3 control anything on line 17

    Observed Result

    ____ What happens? ____

    It gaves an error of something what isn't wrong

    Expected Result

    ____ What do you expect to happen? ____

    That a smart person can give me a explanation of the error and can give me a way to fix this

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Windows 10

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    construct 2 beta release r226

  • I am running it on Chrome. I do not get an error, but I click, the ball rises, and as soon as it goes through the hole, the game ends with a score of 0?

    One question: what are you trying to do on 37? Setting highscore ttext to Highscore&LocalStorage.ItemValue

    It looks like you are trying to concatenate 2 numbers...the new high score and the old one.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • CDogs1964 yes there are a few more bugs but I can fix them by myself, what I am trying to do on line 37, I have no idea I will look thanks!

  • Bug fixed CDogs1964

  • When u code, you change a lot (obvious, thats coding). Could it be that you retreived in a total other way then you stored ? You should clear the localstorage after recoding the the localstorage. I had errors that way, got solved by clearing.

    Wanneer je programmeert, dan probeer je dingen uit, je verandert veel. Zou het kunnen dat je data opgehaald hebt die op een totaal andere manier opgeslagen zijn ? Omdat je iets verandert hebt in je localstorage code. Dat geeft fouten (zoals ik in het verleden heb moeten vaststellen). Als je grote veranderingen doet in de localstorage code, maak de local storage dan eerst leeg voor het te gebruiken.

  • 99Instances2Go thnx

  • Closing, please see the bug report guidelines. There is nothing we can do about reports like this, they are useless.

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