Code Monkey home page Code Monkey logo

Comments (11)

34736384 avatar 34736384 commented on April 27, 2024 5

I got the same problem and I'm not sure if it applies to you but I solved it by converting the file to ansi

from grasscutter.

lwd-temp avatar lwd-temp commented on April 27, 2024 2

Got the same with https://github.com/Dimbreath/GenshinData/tree/master/BinOutput

Exception in thread "main" com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 103744 column 451 path $.
        at com.google.gson.Gson.fromJson(Gson.java:947)
        at com.google.gson.Gson.fromJson(Gson.java:897)
        at emu.grasscutter.tools.Tools.createGmHandbook(Tools.java:34)
        at emu.grasscutter.Grasscutter.main(Grasscutter.java:62)
Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 103744 column 451 path $.
        at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1562)
        at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:490)
        at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:413)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:184)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:145)
        at com.google.gson.Gson.fromJson(Gson.java:932)
        ... 3 more

Solved by save the TextMap\TextMapEN.json with ISO 8859-1 with VSCode.

from grasscutter.

KingRainbow44 avatar KingRainbow44 commented on April 27, 2024

this might be a user error but ill have to check

from grasscutter.

KingRainbow44 avatar KingRainbow44 commented on April 27, 2024

i dont even know what json its reading from

from grasscutter.

memetrollsXD avatar memetrollsXD commented on April 27, 2024

Looks like one of your JSON files are misformed

from grasscutter.

MlgmXyysd avatar MlgmXyysd commented on April 27, 2024

Looks like one of your JSON files are misformed

but all contents are from https://github.com/Dimbreath/GenshinData & https://github.com/radioegor146/gi-bin-output

from grasscutter.

w4123 avatar w4123 commented on April 27, 2024

I encountered the same issue.
So the file is TextMap\TextMapEN.json
Line 22442 is

"3606571930": "Fatui Advance Team Handbook, Appendix 4-4, Article 3:\"Sharing food and intel at the right moment is conducive to silencing a curious mouth.\" You're welcome.",

and the character S after the escaped quotation mark is column 76
Not sure why though

from grasscutter.

w4123 avatar w4123 commented on April 27, 2024

After some testing, I suspect that the problem is related to the UTF-8 ":" character. Once I remove this character the error disappears.

from grasscutter.

memetrollsXD avatar memetrollsXD commented on April 27, 2024

from grasscutter.

lwd-temp avatar lwd-temp commented on April 27, 2024

Please use the 2.6 version from https://github.com/radioegor146/gi-bin-output

Thanks, sincerely.

from grasscutter.

PasserbyAlpha avatar PasserbyAlpha commented on April 27, 2024

It's because of the default charset that applied in different location. This bug should have been fixed in the latest stable branch, setting utf8 as the input and output charset for handbook.

from grasscutter.

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.