Comments (6)
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.
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.
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.
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.
Should be live now. This took a while to finish, since I wanted to implement a tutorial in the same release.
from mindustry.
I could confirm it works, even with uBlock Origin activated. The notification is also there and understandable. Thanks!
from mindustry.
Related Issues (20)
- Container Payloads only pick up less than 10 items
- Logic @speed inaccurate HOT 1
- Logic @rotation inaccurate HOT 1
- ItemTurrets can't shoot HOT 1
- Continuation with save for 9739 HOT 2
- Control keybind issue HOT 1
- Youtube + mindustry = pain HOT 2
- Bitwise operation error HOT 1
- Lose connection after the screen is turned off HOT 6
- Blend filter and Path to Spawn filter don't have an icon
- Crash when attempting to change rules in a map HOT 3
- OutOfMemory error HOT 6
- L-alt Bug HOT 2
- Thorium in Erekir before you actually unlock it HOT 1
- Mindustry crash when i go online HOT 2
- Bug HOT 8
- servers and modifications are not working HOT 2
- A problem cause shield takes no time to cool down HOT 3
- Weird distortion/scaling with non-standard screen resolution HOT 2
- problem in mindustry github HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mindustry.