Giter Club home page Giter Club logo

Comments (6)

Anuken avatar Anuken commented on May 5, 2024 1

From the first log, it seems to be failing to save the preferences to your browsers' local storage. Maybe you have an extension that's blocking it somehow?
Seeing as this error is being thrown from the back-end of the library I'm using, there isn't much I can do besides catch the error and disable preferences altogether.

...as for the second error, I have no idea what the problem is. Seems to be an issue with itch.io's site rather than my game's code, although it's very hard to tell, since the problematic source files are obfuscated.

It's also worth mentioning that the HTML5 version of Mindustry does not use Java; it uses a tool (GWT) to transpile Java code to JavaScript-- no Java applets or plugins are used.

For now, I would recommend using the PC/Linux/Mac versions instead.

from mindustry.

erikbsap avatar erikbsap commented on May 5, 2024

I'd say all library errors should be caught and handled and the user should only face an exception if there's really no way to handle it in code. In this case giving the user a warning that his data is lost with closing the tab should be enough, right? The game itself should not be blocked by having no persistent storage.

from mindustry.

Anuken avatar Anuken commented on May 5, 2024

Alright, a warning should be displayed now, although there's no way I can test to be absolutely sure. I'll upload the fix to itch.io soon.

from mindustry.

erikbsap avatar erikbsap commented on May 5, 2024

Okay, I see the commit 0decc18. Thanks. I can try again after it's uploaded.

Btw, in your commit message you can also write #3 and then github will automatically add links between commit and github issue number three for you.

from mindustry.

Anuken avatar Anuken commented on May 5, 2024

Should be live now. This took a while to finish, since I wanted to implement a tutorial in the same release.

from mindustry.

erikbsap avatar erikbsap commented on May 5, 2024

I could confirm it works, even with uBlock Origin activated. The notification is also there and understandable. Thanks!

from mindustry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.