Skip to content

Commit acd4e10

Browse files
committed
Moved error codes to error_codes.json
1 parent 45b6b67 commit acd4e10

2 files changed

Lines changed: 177 additions & 74 deletions

File tree

error_codes.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
[
2+
{
3+
"error_codes": [
4+
{
5+
"__comment": "undefined errors",
6+
"keywords": [
7+
"4201",
8+
"4202",
9+
"4203",
10+
"4204",
11+
"4205",
12+
"4207",
13+
"4208",
14+
"4209",
15+
"4210",
16+
"4211",
17+
"4212",
18+
"4213",
19+
"4301",
20+
"4302",
21+
"4303",
22+
"4304",
23+
"4305",
24+
"4306",
25+
"4307",
26+
"4308"
27+
],
28+
"action": "There are no fix yet for this error code. Check out <https://doc.yuuki.me/docs/troubleshooting/pc/error-codes#client-errors> for more info"
29+
},
30+
{
31+
"keywords": [
32+
"4206"
33+
],
34+
"action": "Your device isn't connecting to the server properly. Check your proxy settings (Fiddler, mitm, etc) and try again.",
35+
"action_cn": "你的设备并没有正常连接到服务器,检查你的代理设置(Fiddler, mitm, 等)然后重试。"
36+
},
37+
{
38+
"keywords": [
39+
"4214"
40+
],
41+
"action": "This error occured when:\n\n1. You haven't patched your game.\n2. You already patched your game, but proxy isn't running\n\nTry:\n- Check if your game is patched and the proxy is running properly "
42+
},
43+
{
44+
"keywords": [
45+
"500"
46+
],
47+
"action": "This error caused by server side when the server set the `EXPERIMENTAL_RealPassword = true` and you are running a client without a metadata patch (which no longer works in 3.1>)"
48+
},
49+
{
50+
"keywords": [
51+
"502"
52+
],
53+
"action": "The server address you are trying to connect doesn't exist or it's down. Check the [Status](<https://stats.uptimerobot.com/L8Nx6FL4V>) page. Or check real-time status in <#1051149545779777586>."
54+
},
55+
{
56+
"__comment": "Mitmproxy issue",
57+
"keywords": [
58+
"10048"
59+
],
60+
"action": "Port is either being used by another instance of mitm, or other application that is running and using this port. To fix it, simply check the app that is using the port and close it. Or you can start mitm with other port by using the `-p PORTNUMBER` command-line when launching it."
61+
}
62+
]
63+
}
64+
]

source.json

Lines changed: 113 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,162 +1,201 @@
11
[
22
{
3-
"keywords": ["Address already in use", "java.net.BindException"],
3+
"keywords": [
4+
"Address already in use",
5+
"java.net.BindException"
6+
],
47
"action": "Check if something is running in these ports: `8888, 443, 80, 22102`. It's likely that is the thing stopping your server from starting. \n Run `netstat -aon | find /i \"listening\"` to see what ports are listening. Then kill the process with `taskkill /PID <PID>`",
58
"action_cn": "检查是否有其他程序占用了这些端口: `8888, 443, 80, 22102`. 看起来这些占用端口的程序程序阻止了你的程序启动. \n 执行 `netstat -aon | find /i \"listening\"` 来查看占用端口的程序,然后通过执行`taskkill /PID <PID>`来终结它们"
69
},
7-
8-
910
{
10-
"keywords": ["not recognized as an internal or external command"],
11+
"keywords": [
12+
"not recognized as an internal or external command"
13+
],
1114
"action": "You don't have java in your PATH. Make sure you have java installed or add it to PATH manually: https://www.java.com/en/download/help/path.html",
1215
"action_cn": "你的PATH路径中并没有java,确保你已经安装了java并且手动将其加入PATH中: https://www.java.com/en/download/help/path.html"
1316
},
14-
15-
1617
{
17-
"keywords": ["unable to access jarfile"],
18+
"keywords": [
19+
"unable to access jarfile"
20+
],
1821
"action": "Build grasscutter first with `gradlew jar`. Make sure to follow the installation instructions in the README/Wiki properly.",
1922
"action_cn": "先通过执行命令`gradlew jar`来构建GrassCutter: 确保你的操作都是正确对照着README和Wiki的安装步骤来的"
2023
},
21-
22-
2324
{
24-
"keywords": ["not have permission"],
25+
"keywords": [
26+
"not have permission"
27+
],
2528
"action": "Enter `/permission add <username> *` in your console",
2629
"action_cn": "在你正在运行服务端的终端里输入 `/permission add <username> *`并回车"
2730
},
28-
29-
3031
{
31-
"keywords": ["java.lang.IllegalStateException"],
32+
"keywords": [
33+
"java.lang.IllegalStateException"
34+
],
3235
"action": "Your JSON is not valid. Check your ExcelConfigData and try again.",
3336
"action_cn": "你的JSON格式不正确,检查你的ExcelConfigData然后重试"
3437
},
35-
36-
3738
{
38-
"keywords": ["JsonSyntaxException", "binoutput issue"],
39+
"keywords": [
40+
"JsonSyntaxException",
41+
"binoutput issue"
42+
],
3943
"action": "Use the BinOutput from radioegor146 instead: <https://github.com/Koko-boya/Grasscutter_Resources>",
4044
"action_cn": "将BinOutput替换成radioegor146的: <https://github.com/Koko-boya/Grasscutter_Resources>"
4145
},
42-
43-
4446
{
45-
"keywords": ["MongoSocketOpenException", "Connection refused", "Exception opening socket", "ECONNREFUSED"],
47+
"keywords": [
48+
"MongoSocketOpenException",
49+
"Connection refused",
50+
"Exception opening socket",
51+
"ECONNREFUSED"
52+
],
4653
"action": "Start `mongod.exe` in `C:\\Program Files\\MongoDB\\Server\\<version>\\bin`",
4754
"action_cn": "启动在目录`C:\\Program Files\\MongoDB\\Server\\<version>\\bin`中的 `mongod.exe`"
4855
},
49-
50-
5156
{
52-
"keywords": ["TypeAnnotationsScanner"],
57+
"keywords": [
58+
"TypeAnnotationsScanner"
59+
],
5360
"action": "Edit the reflection version in `build.gradle` to: \n\n `implementation group: 'org.reflections', name: 'reflections', version: '0.10.2'`",
5461
"action_cn": "更改`build.gradle`中的reflection版本为: \n\n `implementation group: 'org.reflections', name: 'reflections', version: '0.10.2'`"
5562
},
56-
57-
5863
{
59-
"keywords": ["missing weights"],
64+
"keywords": [
65+
"missing weights"
66+
],
6067
"action": "Replace these in your resources/ExcelBinOutput folder:\n\nhttps://github.com/Koko-boya/Grasscutter_Resources/blob/main/Resources/ExcelBinOutput/ReliquaryMainPropExcelConfigData.json\n\nhttps://github.com/Koko-boya/Grasscutter_Resources/blob/main/Resources/ExcelBinOutput/ReliquaryAffixExcelConfigData.json",
6168
"action_cn": "替换resources/ExcelBinOutput目录里的这些文件:\n\nhttps://github.com/Koko-boya/Grasscutter_Resources/blob/main/Resources/ExcelBinOutput/ReliquaryMainPropExcelConfigData.json\n\nhttps://github.com/Koko-boya/Grasscutter_Resources/blob/main/Resources/ExcelBinOutput/ReliquaryAffixExcelConfigData.json"
6269
},
63-
6470
{
65-
"keywords": ["internal server error"],
71+
"keywords": [
72+
"internal server error"
73+
],
6674
"action": "The feature is probably not yet implemented :pensive:",
6775
"action_cn": "该功能可能在目前并没有实现:pensive:"
6876
},
6977
{
70-
"keywords": ["服务器内部错误"],
78+
"keywords": [
79+
"服务器内部错误"
80+
],
7181
"action": "The feature is probably not yet implemented :pensive:",
7282
"action_cn": "该功能可能在目前并没有实现:pensive:"
7383
},
74-
75-
7684
{
77-
"keywords": ["4206"],
78-
"action": "Your device isn't connecting to the server properly. Check your proxy settings (Fiddler, mitm, etc) and try again.",
79-
"action_cn": "你的设备并没有正常连接到服务器,检查你的代理设置(Fiddler, mitm, 等)然后重试。"
80-
},
81-
82-
{
83-
"keywords": ["where can i find ExcelBinOutput", "where can i find BinOutput", "where is ExcelBinOutput", "where is BinOutput", "where can i find the ExcelBinOutput", "where can i find the BinOutput", "where is the ExcelBinOutput", "where is the BinOutput", "where can i download ExcelBinOutput", "where can i download BinOutput"],
85+
"keywords": [
86+
"where can i find ExcelBinOutput",
87+
"where can i find BinOutput",
88+
"where is ExcelBinOutput",
89+
"where is BinOutput",
90+
"where can i find the ExcelBinOutput",
91+
"where can i find the BinOutput",
92+
"where is the ExcelBinOutput",
93+
"where is the BinOutput",
94+
"where can i download ExcelBinOutput",
95+
"where can i download BinOutput"
96+
],
8497
"action": "You can get them all from here: \n<https://gitlab.com/YuukiPS/GC-Resources/>"
8598
},
8699
{
87-
"keywords": ["ExcelBinOutput在哪里", "BinOutput在哪里", "ExcelBinOutput哪里找", " BinOutput哪里找", "哪里能找到ExcelBinOutput", "哪里能找到BinOutput", "该去哪里找ExcelBinOutput", "该去哪里找BinOutput", "ExcelBinOutput哪里下载", "BinOutput哪里下载","ExcelBinOutput哪里有", "BinOutput哪里有"],
100+
"keywords": [
101+
"ExcelBinOutput在哪里",
102+
"BinOutput在哪里",
103+
"ExcelBinOutput哪里找",
104+
" BinOutput哪里找",
105+
"哪里能找到ExcelBinOutput",
106+
"哪里能找到BinOutput",
107+
"该去哪里找ExcelBinOutput",
108+
"该去哪里找BinOutput",
109+
"ExcelBinOutput哪里下载",
110+
"BinOutput哪里下载",
111+
"ExcelBinOutput哪里有",
112+
"BinOutput哪里有"
113+
],
88114
"action": "ExcelBinOutput: \n<https://gitlab.com/YuukiPS/GC-Resources/>"
89115
},
90-
91-
92116
{
93-
"keywords": ["item id", "char id", "character id", "artifact id", "reliquary id"],
117+
"keywords": [
118+
"item id",
119+
"char id",
120+
"character id",
121+
"artifact id",
122+
"reliquary id"
123+
],
94124
"action": "Generate the GM handbook using `java -jar grasscutter.jar -handbook`\n\nOR\n\nUse the Discord command `/gm <query>`"
95125
},
96126
{
97-
"keywords": ["物品id", "人物id", "制造品id", "圣遗物id"],
127+
"keywords": [
128+
"物品id",
129+
"人物id",
130+
"制造品id",
131+
"圣遗物id"
132+
],
98133
"action": "通过执行命令`java -jar grasscutter.jar -handbook`生成\"游戏数据大全\"\n或者\n\n使用Discord命令`/gm <query>`"
99134
},
100-
101135
{
102-
"keywords": ["scene ids"],
136+
"keywords": [
137+
"scene ids"
138+
],
103139
"action": "You can find them in your ExcelBinOutput folder (SceneExcelConfigData.json)"
104140
},
105141
{
106-
"keywords": ["场景id"],
142+
"keywords": [
143+
"场景id"
144+
],
107145
"action": "在ExcelBinOutput目录里你能找到它们 (SceneExcelConfigData.json)"
108146
},
109147
{
110-
"keywords": ["Conv inconsistency"],
148+
"keywords": [
149+
"Conv inconsistency"
150+
],
111151
"action": "This usually happens when you restart the server with active connections, but receiving packets fail because the server doesn't recognise the session. It should go away after a while when the client tries to reconnect",
112152
"action_cn": "这个错误通常在你有活跃的客户端连接着服务端的同时重启了服务端所导致,服务端接收的包错误的原因是无法识别会话,这个错误会在客户端尝试重新连接后消失。"
113153
},
114-
{
115-
"keywords": ["4214"],
116-
"action": "You haven't patched your game correctly. Check https://canary.discord.com/channels/964119462188040202/1049101257933066322 for more information."
117-
},
118-
{
119-
"keywords": ["500", "Error 500", "Code 500"],
120-
"action": "This error caused by server side when the server set the `EXPERIMENTAL_RealPassword = true` and you are running a client without a metadata patch (which no longer works in 3.1>)"
121-
},
122-
{
123-
"keywords": ["502", "Error 502", "Code 502"],
124-
"action": "The server address you are trying to connect doesn't exist or it's down. Check the [Status](<https://stats.uptimerobot.com/L8Nx6FL4V>) page. Or check real-time status in <#1051149545779777586>."
125-
},
126154
{
127155
"__comment": "YuukiPS Launcher Issues",
128-
"keywords": ["launcher closed", "yuuki launcher crash"],
156+
"keywords": [
157+
"launcher closed",
158+
"yuuki launcher crash"
159+
],
129160
"action": "Make sure you have installed [.NET Runtime 6.0 (Desktop).](https://dotnet.microsoft.com/en-us/download/dotnet/6.0/runtime). Either the x64, x84 or arm64 depends on ur CPU architecture. [Click here for how to check ur CPU architecture](<https://pcguide101.com/cpu/what-is-my-processor-architecture/>)"
130161
},
131162
{
132-
"keywords": ["no game file config found", "config not found", "No support game with MD5"],
163+
"keywords": [
164+
"no game file config found",
165+
"config not found",
166+
"No support game with MD5"
167+
],
133168
"action": "Your game version is not supported by the launcher (AKA you have newer version of the game or a client that is not supported by the MD5 API)\nPlease wait until the launcher is up-to-date"
134169
},
135170
{
136171
"__comment": "Mitmproxy Issues",
137-
"keywords": ["cannot be loaded because running scripts is disabled on this system", "running scripts"],
172+
"keywords": [
173+
"cannot be loaded because running scripts is disabled on this system",
174+
"running scripts"
175+
],
138176
"action": "- Manual Fix (For Advanced)\n1. Open powershell as administrator\n2. Type `Get-ExecutionPolicy` to check the current ExecutionPolicy applied\n3. If it says `Restricted` change it to `RemoteSigned` by using the `Set-ExecutionPolicy`. Read [here](https://www.sharepointdiary.com/2014/03/fix-for-powershell-script-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system.html) for more info\n\n- Using Windows Settings (Recommended)\n1. Open windows settings and find Powershell (Make sure you have enabled Developer Mode)\n2. Enable `Change execution policy to allow local powershell scripts to run without signing. Require signing for remote scripts.` https://doc.yuuki.me/assets/images/powershell-settings-be5bce04f18ff8070230b02c93ad0277.png "
139177
},
140178
{
141-
"keywords": ["My PC can't connect to the Internet", "no internet", "can't connect to internet"],
179+
"keywords": [
180+
"My PC can't connect to the Internet",
181+
"no internet",
182+
"can't connect to internet"
183+
],
142184
"action": "Turn off your windows proxy"
143185
},
144-
{
145-
"keywords": ["Errno 10048", "Error 10048", "code 10048", "10048"],
146-
"action": "Port is either being used by another instance of mitm, or other application that is running and using this port. To fix it, simply check the app that is using the port and close it. Or you can start mitm with other port by using the `-p PORTNUMBER` command-line when launching it."
147-
},
148186
{
149187
"__comment": "Cultivation Issues",
150-
"keywords": ["Game excecutable not set!", "executable not set"],
188+
"keywords": [
189+
"Game excecutable not set!",
190+
"executable not set"
191+
],
151192
"action": "You haven't set the game path, Go to Cultivation settings -> Set Game Install Path https://doc.yuuki.me/assets/images/game-path-culti-36a2ac989648dea98fa0640e732330d7.png"
152193
},
153194
{
154-
"keywords": ["System Error. Please try again later.", "System Error"],
195+
"keywords": [
196+
"System Error. Please try again later.",
197+
"System Error"
198+
],
155199
"action": "Make sure you have \"**Toggle Encryption**\" Disabled on the Cultivation settings, and unchecked \"**Use HTTPS**\". This error occurs usually on localhost server"
156-
},
157-
{
158-
"__comment": "undefined errors",
159-
"keywords": ["4201", "4202", "4203", "4205", "4207", "4208", "4209", "4210", "4211", "4212", "4213", "4301", "4302", "4303", "4304", "4305", "4306", "4307", "4308"],
160-
"action": "There are no fix yet for this error code. Check out <https://doc.yuuki.me/docs/troubleshooting/pc/error-codes#client-errors> for more info"
161200
}
162-
]
201+
]

0 commit comments

Comments
 (0)