Comments (11)
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.
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.
this might be a user error but ill have to check
from grasscutter.
i dont even know what json its reading from
from grasscutter.
Looks like one of your JSON files are misformed
from grasscutter.
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.
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.
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.
from grasscutter.
Please use the 2.6 version from https://github.com/radioegor146/gi-bin-output
Thanks, sincerely.
from grasscutter.
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)
- [Bug] /spawn生成的怪物不掉落东西 HOT 2
- [Bug] 4214错误 HOT 6
- [Bug] 获取数组元素时候,未检测数组是否为空,导致越界访问 HOT 1
- [Bug] The download path has been DMCA...T_T HOT 5
- Plot cannot be played while running on the server[Bug] HOT 1
- White screen after updating Grasscutter to 1.7.4 HOT 7
- [Bug] 登录界面超时
- [Bug] 一直准备下载资源,并报错4206
- 游戏服务器端口拒绝连接 HOT 1
- 版本更新请求 HOT 12
- [Bug] Missing Scripts HOT 1
- [Bug] 烹饪j界面看不到任何食材,核心1.7.4 HOT 1
- [Bug] ley line is missing in the game
- [Bug] 怎么在多个IP上启动服务器
- [Bug] Can’t change language to Japanese-Jp
- [Bug] Newly registered accounts play the opening storyline twice.新注册的账号会播放两遍开场剧情
- 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
- 流明石触媒无法升级。 HOT 1
- [Bug] Memory leak 内存泄露
- [Bug] 如何重置珍珠纪行奖励和时间,重新新的一轮奖励获取? How to reset the Pearl Battle Pass rewards and time, and obtain a new round of rewards?
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 grasscutter.