Comments (3)
I'm not sure what's precisely going on here, but it seems that the game uses wrong parser function for reading the saved integer back from JSON. It saves a 64-bit integer, but tries to load it back as a 32-bit integer, so it doesn't fit and throws a parse error.
Uploading Cridersville.zip…
It seems you have submitted the issue form before waiting for the upload to finish (the text changes to file name once that happens).
from cataclysm-bn.
On further thought, in code that number means count of references, which in theory should stay far, far, far below limits of 32-bit unsigned int.
Cataclysm-BN/src/safe_reference.cpp
Lines 23 to 26 in 5ab65d5
But in the screenshot, it seems that the count has reached -1
for some reason, which caused overflow and had it appear as 2^32-1 = 4294967295, which got saved, and then promptly failed to be loaded.
So the root of the issue is more likely somewhere inside reference tracking code.
from cataclysm-bn.
For archival purposes, here's the save file from the issue:
Cridersville.zip
And the problematic snippet:
"safe_references": { "items": [ 11602, 4294967295 ] },
Another save file from same user:
Boulder.zip
Different values this time - this doesn't even look like integer overflow, maybe memory corruption?
"safe_references": { "items": [ 18446744073709551615, 2636248448, 11322597028362325620, 2636247792, 98784247841, 50559 ] },
As a note, those numbers don't repeat anywhere else in the save folder.
from cataclysm-bn.
Related Issues (20)
- Latest experimental fails to launch on MacOS Sonoma (14.3) HOT 1
- Segmentation Fault crash on trying to fertilize the plant
- Multicooker not working
- Negative values when looking at this watch HOT 1
- Same objects don't seem to stack HOT 7
- Game does not start - Linux Mint HOT 5
- IME not supported on linux (again)
- invalid monster flag: "CAN_BE_ORDERED" HOT 3
- Add larger funnels to vehicles HOT 3
- Butchering wasp larva gives human flesh.
- Killing a zombie on top of rubble buries the zombie and its drops under the rubble
- roasted edamame and roasted Soja beans are labeled nuts
- Eatable stuff with zero calories gets auto eaten HOT 3
- Butchery yield needs to be capped HOT 3
- Infinite rags exploit at tailoring lvl 7 (wedding dress)
- Port a very small fix for cursor positioning interaction with screen readers along with SDL builds
- Port Request: "Dash" Spell Effect
- "Chop Trees" Zone action provides less wood than chopping down trees manually
- Stretchy arm dragonfly naiad.
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 cataclysm-bn.