Add Connecting

Raven_Diesel 2024-02-18 13:44:10 +00:00
parent 7e5ddccbc0
commit 3490d96243
1 changed files with 52 additions and 0 deletions

52
Connecting.md Normal file

@ -0,0 +1,52 @@
# Setting everything up
## Fiddler
- Download and install [Fiddler Classic](https://www.telerik.com/fiddler/fiddler-classic)
- Open Fiddler Classic and go to the `FiddlerScript` tab
- Paste in this script
```
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
class Handlers
{
static function OnBeforeRequest(oS: Session) {
if(oS.host.EndsWith(".yuanshen.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".starrails.com") || oS.host.EndsWith(".bhsr.com") || oS.host.EndsWith(".kurogame.net") || oS.host.EndsWith(".kurogame.com") || oS.host.EndsWith(".zenlesszonezero.com") || oS.host.EndsWith(".g3.proletariat.com") || oS.host.EndsWith("west.honkaiimpact3.com") || oS.host.EndsWith("westglobal01.honkaiimpact3.com") || oS.host.EndsWith(".os.honkaiimpact3.com") || oS.host.EndsWith("overseas01-appsflyer-report.honkaiimpact3.com") || oS.host.EndsWith(".mihoyo.com") || oS.host.EndsWith("global1.bh3.com")) {
oS.host = "127.0.0.1";
}
}
};
```
- Click `Save Script`
You need Fiddler to be enabled at all times while using private server, since it captures outgoing traffic from PGR and connects it to localhost instead of official servers.
## AscNet server
- Download and unpack, then launch AscNet.exe
- Most errors will show up in it's terminal window if something happens
In some cases you'll need to run a command `dotnet dev-certs https --trust` in Command Prompt to install required certificate to use the server.
## MongoDB
- Download and install community server together with Compass
- Run Compass and hit `Connect`
You need MongoDB to create the database, which gonna keep your local account together with items, characters, equipment and so on.
In case of seeing ECONNREFUSED when trying to connect to the DB, there's following solutions as for now:
- Check if the server was properly installed in your control panel; if it isn't, then use repair function in downloaded installer package
- Check the MongoDB service in Task Manager, if it's not working, then simply click it with right mouse button and hit `Start`
## KRSDK
If everything is properly set up, you should see a blue pop-up window after logo and disclaimer screens. Create local account by filling the fields with anything you want.
**Important!**
Don't forget to disable all other overlay programs like MSI Afterburner, GeForce Now etc., since they can interfere with IMGUI.
At this point everything is left to do is just confirm the prompted in-game update and enter into account.