hunternet93 / oneshot-dialog-transcript Goto Github PK
View Code? Open in Web Editor NEWA datamined transcript of the dialog of the game OneShot
A datamined transcript of the dialog of the game OneShot
I know this is probably really old, but I'm not really seeing things like the part where Niko ask's about the name of your planet in this transcript. That and some others might be missing?
I've done the best I can to track down and attempt to fix the problem, but I'm not very well versed with hashes and working with JSON in ruby, so I'll just post my findings here.
This error is caused by line 73 at JSON.dump(output)
. The JSON library is trying to parse the hash, but is incorrectly assuming the encoding is ASCII-8, and complaining about finding non-ascii characters along the way. You can't really blame the JSON gem anyway, since the string encoding is set to ASCII-8BIT
.
Now, the strings inside the hash are actually encoded in UTF-8, but are incorrectly marked to be ASCII-8. Forcing it manually doesn't appear to work as every level of hash forces their encoding to be ASCII-8
.
Checking puts output[:maps][0][:events][0][:name].encoding
outputs ASCII-8BIT
but checking the exact same string at line 48 with puts e.name.encoding
outputs UTF-8
.
There are a couple of workarounds I have found and tried.
"w"
to "wb+"
, but doesn't actually fix anything.UTF-8
or ASCII-8
has no effect, my guess is it has to do with my lack of hashMost of the workarounds/solutions I have found either aren't applicable or just don't work. Note that this isn't actually a vanilla oneshot issue, but an issue with mods. (More specifically OSAM and OSFM.) It doesn't need to be fixed per se, but it is an actual issue nonetheless, even though it doesn't effect "intended" behavior/usage.
Would be useful to know as I'd like to make an up-to-date version of this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.