2 Connecting
rfi edited this page 2024-04-06 00:49:20 +00:00

Setting everything up

Fiddler

  • Download and install 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 pop-up window for logging in, it looks like an old windows application, it should be somewhere in the screen, just create a new account first, this requires the AscNet server to be started first.