I'm using Grasscutter fork 3.4 to start my own local private GI server. I had to change the port because port 443 was used and I couldn't identify the process which use that port 443. So I changed to port 1234 and the server works fine without any error message. MongoDB is running and also compass is started. Fiddle is running too with listening at port 1234 as the server.
I wasn't sure whether I should activate manually the Proxy or not so I tried both variants - with Proxy on and without Proxy. Proxy is btw set to the same port as the server (1234)
I didn't exactly know if I should patch the game with the RSA-Patch so I tried already with patching (version.dll) and without patching. I created a new account via server console and the command was quitted with "INFO:CommandHandler Account created with UID 1234."
In the login-windows from the game I used the same username as for account creating. Unfortunately I get all the time the error 400 - server is busy. I tried already so often and so much different configuration but I always get the same error. 😦
#login error 400
119 messages · Page 1 of 1 (latest)
You've made a bit of a mess, so lets clear some things up.
What do you mean Fiddler is listening on 1234?
What do you mean tried with and without proxy?
Also this "Proxy is btw set to the same port as the server (1234)" be specific about what you did
Sounds like you have made a few serious mistakes about what proxy port is vs server port
- Fiddler is listening on 1234 means that in Fiddler Menü > Tools > Options > Connections > Fiddler Classicfication on port: is set to 1234
- In the Windows Network and Internet settings I configured the proxy manually and switch it on by using it and switching off while running without proxy.
- As I wrote in my support request I had to change the port which grasscutter server uses to port 1234 because port 443 is used on my system. So the proxy in the Windows Network and Internet settings is set to port 1234 too.
Maybe I did something wrong because I am actually not familar with all this stuff.
However, setting the port for grasscutter server to 1234 in the config.json solved the error in the server console windows which said that port 443 is already in use.
So if I change the server port in config.json to 1234 do I have another things to change?
-
This is a mistake. Change it back to 8080.
-
Don't turn it on or off manually. Let Fiddler handle it.
-
That's also wrong. Don't change the port for your windows proxy. Let Fiddler set it.
You have one big misunderstanding we need to clear up
The port that your proxy is on, and the port that your server is on are two different ports. Do not make them the same thing
Making them the same thing is making it so your traffic cannot be directed properly
The only thing you needed to change was the server port in your config.json, and the port in your Fiddler script
Your request to the server won't be processed because you're trying to send traffic not to the server but back to the proxy when you have them on the same port
thus error 400
Return your Fiddler to original settings, and don't change your windows proxy settings. Then restart fiddler
Alright I got. Fiddler's port is set back to 8080. What I not did was to change the port in the fiddler script. So I have to change in the fiddler-script the line 9 from "if (oS.host.Equals("overseauspider.yuanshen.com:8888")) {" to "if (oS.host.Equals("overseauspider.yuanshen.com:1234")) {"?
No
That's not the port traffic is being directed to, that's what port that specific request being blocked uses
Go down to your actual address in the script, localhost
add :1234 to it
In which line I can find the actual address?
the one that says localhost and that you can replace it with another ip
it's like literally 3 lines below what you put here
Ok found it.
the script is only something like 10 lines long it's not hard to find
Now I have to add ":1234" after localhost?
sure do
but to the address, not after the quotes
not adding more quotes
localhost:1234
Yep I changed to "localhost:1234"
then as long as you've fixed your fiddler and restarted it, you're good to go
Ok, I will give it a new try. Thx.
Sure thing
Unfornulately the test wasn't successful. I logged in with the account username I had created in the server console before. But I got an error which said "Connection failed. Try again later."
So what all was done:
- MongoDB is started
- MongoDB Compass is started and also connected with localhost:27017
- Fiddler is started: HOST-File is imported, JScript changed to "localhost:1234" is installed and saved, in the HTTPS-setting "Decrypt HTTPS traffic" and "Ignore server certificate errors" is both activated
- RSA-Patch is installed (version.dll, but without PublicKey.txt)
- grasscutter.jar set at port 1234 is started without any error messages
- server account was created and confirmed
- Game was started via GenshinImpact.exe
- I logged in with the same username I used for creating the account
- but I didn't know which password I should use so I just used a random one - I'm not sure if that was correct.
- after a short loading animation I got the error "Connection failed. Try again later."
Did I something wrong? Which password I should use while logging in?
- Compass doesn't need to be open or connected
- You don't need hosts file, also make sure you're using the FiddlerScript tab not something else
- Password can be anything
Check your grasscutter console
Are you reaching the server? Is there any log info?
Where I can see the log-info?
In the grasscutter console
That's all.
So you're not reaching the server.
Also when providing info from the console, copy and paste the contents with ``` before and after ``` instead of screenshotting
Screenshot your FiddlerScript tab and provide it here, as well as the logs on the left side of fiddler for your game traffic
If you haven't changed the fiddler port to 8080 in settings yet or haven't restarted fiddler after doing so, you still need to do that
Port in Fiddler is set back to 8080 and Fiddler was restarted too before last test.
ok and this is from after you tried connecting, no restart of fiddler between then and now right
Your system traffic isn't going to fiddler
Would be expected if, for example, your windows proxy settings had been changed off of what fiddler uses
if you open your windows proxy settings, is the proxy on and if so what is it set to
Proxy is switched to off
Ok so it needs to be on
which Fiddler would have set it to
But if for some reason it isn't, it needs to be
Should I shutting down all and restart for a new test?
The game needs to be closed and reopened at the minimum, the rest is up to you
I just tried to start the game again and logged in but got an Account Error.
I will all shut down and try again. Just a moment pls.
BTW, what is actually the correct load order of the tools. I start programs in that order:
1st - MongoDB
2nd - Fiddler
3rd - grasscutter.jar
4th - GI
Grasscutter > Fiddler > Game
mongodb runs as a service, if you're opening an app (like compass) that's irrelevant
Ok test is done - now I got error 4201.
Once more, check grasscutter console and fiddler logs (left side of fiddler)
L:\Games\Grasscutter-fork-3.4>"C:\Program Files\Java\jdk-17\bin\java.exe" -jar grasscutter.jar
22:09:48 INFO:Grasscutter Starting Grasscutter...
22:09:49 INFO:Grasscutter Game version: 3.4.0
22:09:49 INFO:Grasscutter Grasscutter version: 1.4.6-
22:09:49 INFO:ResourceLoader Loading resources...
22:09:50 INFO:ResourceLoader Finished loading resources.
22:09:51 INFO:Language Loading cached 'TextMaps'...
22:09:52 INFO:PluginManager Loading plugin: AttackModifier
22:09:52 INFO:ConfigParser [AttackModifier] Config Loaded!
22:09:52 INFO:ConfigParser [AttackModifier] Plugin loaded successfully!
22:09:52 INFO:AttackModifier Loaded yay
22:09:52 INFO:PluginManager Loading plugin: CharacterBuilder
22:09:52 INFO:PluginManager Loading plugin: MobWave
22:09:52 INFO:PluginManager Loading plugin: QuickER
22:09:52 INFO:PluginManager Loading plugin: setLevel
22:09:52 INFO:PluginManager Loading plugin: Switch Element Plugin
22:09:52 INFO:Switchele The SwitchElement has been loaded.
22:09:53 INFO:HttpServer [Dispatch] Dispatch server started at 127.0.0.1:1234
22:09:53 INFO:GameServer Grasscutter is FREE software. If you have paid for this, you may have been scammed. Homepage: https://github.com/Grasscutters/Grasscutter
22:09:53 INFO:GameServer Game Server started at 127.0.0.1:22102
22:09:53 INFO:PluginManager Enabling plugin: AttackModifier
22:09:53 INFO:AttackModifier The Attack Modifier plugin has been enabled.
22:09:53 INFO:PluginManager Enabling plugin: CharacterBuilder
22:09:53 INFO:CharacterBuilder The CharacterBuilder plugin has been enabled.
22:09:53 INFO:PluginManager Enabling plugin: MobWave
22:09:53 INFO:MobWave The MobWave plugin has been enabled.
22:09:53 INFO:PluginManager Enabling plugin: QuickER
22:09:53 INFO:QuickER QuickER has been enabled
22:09:53 INFO:PluginManager Enabling plugin: setLevel
22:09:53 INFO:setLevel The setLevel plugin has been enabled.
22:09:53 INFO:PluginManager Enabling plugin: Switch Element Plugin
22:09:53 INFO:Switchele The SwitchElement has been enabled.
22:09:53 INFO:Grasscutter Done! For help, type "help"
"
Your system traffic isn't going to Fiddler.
Either your windows proxy is off, or you have it set to something else
your proxy is off
That'
That's what written in the address field: http=127.0.0.1:8080;https=127.0.0.1:8080
It doesn't matter what is there right now because it is off
Until you turn it on, the address there is irrelevant
ok
Also that address is fine
should I restart my PC? Maybe that could help.
So I should manually switch on the proxy?
So I think I will switch on the proxy manually and try again before I restart my PC.
That would be the right thing to do
one moment pls
I got now the error 502 - Server is busy.
Grasscutter gave no new log but Fiddler is throwing logs like mad. Most of it is the traffic from my music stream via VLC , twitch stream in Brave browser. and traffic from Discord.
But there are also some red log lines from Genshin Impact.
You didn't happen to disable encryption on the server did you
Yes is disabled
"useEncryption": false,
"useInRouting": false,
I read it here in this channel in another support thread.
So I will have to set both values set back to true?
Yes
You read it in a solution for Cultivation
Cultivation has different settings than Fiddler
It's enabled by default because every proxy other than Cultivation needs it enabled
That can be. Sry my bad. Maybe I got it in a wrong relation.
It's also why if you look in your grasscutter folder, there's one called "CULTIVATION USE THIS CONFIG" which has them disabled
It's only for Cultivation, so you'll need to set those to true and restart grasscutter
then you can connect and will be good to go
ok
Now I could log in without error and I did agree all the agreements. After doing that I got error 4214 - Connection to server not possible. I quit GI and startet again and then I got the error 4214 before I had the chance to log-in.
That's what grasscutter console says: ""22:41:13 INFO:RegionHandler [Dispatch] Client [0:0:0:0:0:0:0:1] request: query_region_list
22:41:27 INFO:DefaultAuthenticators$PasswordAuthenticator [Dispatch] Client [0:0:0:0:0:0:0:1] logged in as 10001.
22:41:27 INFO:DispatchHandler [Dispatch] Client [0:0:0:0:0:0:0:1] is trying to log in.
22:41:27 INFO:DefaultAuthenticators$SessionKeyAuthenticator [Dispatch] Client [0:0:0:0:0:0:0:1] succeed to exchange combo token.
22:41:27 INFO:DispatchHandler [Dispatch] Client [0:0:0:0:0:0:0:1] is trying to log in.
22:41:31 INFO:RegionHandler Client 127.0.0.1 request: query_cur_region/os_usa
22:44:33 INFO:RegionHandler [Dispatch] Client [0:0:0:0:0:0:0:1] request: query_region_list
22:44:34 INFO:DefaultAuthenticators$TokenAuthenticator [Dispatch] Client [0:0:0:0:0:0:0:1] is trying to log in via token.
22:44:34 INFO:DefaultAuthenticators$TokenAuthenticator [Dispatch] Client [0:0:0:0:0:0:0:1] logged in via token as 10001.
22:44:34 INFO:DispatchHandler [Dispatch] Client [0:0:0:0:0:0:0:1] is trying to log in.
22:44:34 INFO:DefaultAuthenticators$SessionKeyAuthenticator [Dispatch] Client [0:0:0:0:0:0:0:1] succeed to exchange combo token.
22:44:34 INFO:DispatchHandler [Dispatch] Client [0:0:0:0:0:0:0:1] is trying to log in.
22:44:34 INFO:RegionHandler Client 127.0.0.1 request: query_cur_region/os_usa""
Yeeeeaaaah, now it works. OMG, thousand thanx. That is so awesome. You are my held and made my day. Many many thanx again. 🙂
Did there anything I have still to know? I mean like leveling or so?
Commands are in the GM Handbook in your Grasscutter folder, send them in chat in-game
full usage information on them can be found in /help (all commands) or for the specific command, e.g. /help give
also no problem
Ok, thank you soooooo very much. I wish you all the best. 🥰
No problem and thanks