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)
- Crashes on ios ( quits app whenever i join community servers) HOT 1
- Crashes on ios ( whenever join community server) HOT 6
- Crashes on ios ( whenever join community server) HOT 2
- Nova units are slowed down when the first unit attacks HOT 3
- Weather Sense logic hint doesn't show up
- Server: `pause` command toggles pause regardless of the arguments HOT 1
- Assembler Module HOT 1
- Unit assembler
- Power reading mismatch HOT 2
- Crash
- Inconsistent Block Info for Erekir HOT 2
- Cannot complete Aegis normally HOT 1
- Unit Command keybindings are missing .name inside the bundles HOT 2
- Unit Cargo Loader Build Cost HOT 2
- Invalid LOC Header... Can't import Data game HOT 11
- Mindustry keeps crashing HOT 2
- Powered Block Bug HOT 2
- Various minor issues HOT 3
- Electrolyzer and Atmospheric Concentrator having itemCapacity
- Can't properly import Github version's game data from the Steam version HOT 4
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.