Skip to content

Setting up

Saku edited this page Aug 4, 2022 · 3 revisions

SECTION 1 - Setting up everything

PART 0: Prerequisites

You need to download the following:

PART 1: Setting up sakuPS and the Proxy

Step 1: Download MongoDB Compass from the link above. Afterwards start the app and click on the "Connect" button. You can minimized the app afterwards.

Step 2: Download CrepeSR from the link above and press on the green button called "Code" then press "Download ZIP" do the same for the CrepeSR-Resources link.

Step 3: Extract the "CrepeSR-main" folder and head into the src folder and create a new folder called "data"

Step 4: Then extract the "CrepeSR-Resources-main" folder and click on it and copy everything (except the README.md) into "CrepeSR-main\src\data"

Step 5: After you've done that go to Fiddler Classic link and install it then run it then go to Tools > Options > Connections > Fiddler Classic listens on port and set the port to 8080

Step 6: Afterwards go to the right of the screen and press on FiddlerScript and paste this script this:

import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
var list = [
    "https://api-os-takumi.mihoyo.com/", //1
    "https://hk4e-api-os-static.mihoyo.com/", //2
    "https://hk4e-sdk-os.mihoyo.com/",
    "https://dispatchosglobal.yuanshen.com/",
    "https://osusadispatch.yuanshen.com/", // 5
    "https://account.mihoyo.com/",
    "https://log-upload-os.mihoyo.com/",
    "https://dispatchcntest.yuanshen.com/",
    "https://devlog-upload.mihoyo.com/",
    "https://webstatic.mihoyo.com/", // 10
    "https://log-upload.mihoyo.com/",
    "https://hk4e-sdk.mihoyo.com/",
    "https://api-beta-sdk.mihoyo.com/",
    "https://api-beta-sdk-os.mihoyo.com/",
    "https://cnbeta01dispatch.yuanshen.com/", // 15
    "https://dispatchcnglobal.yuanshen.com/",
    "https://cnbeta02dispatch.yuanshen.com/",
    "https://sdk-os-static.mihoyo.com/",
    "https://webstatic-sea.mihoyo.com/",
    "https://webstatic-sea.hoyoverse.com/", // 20
    "https://hk4e-sdk-os-static.hoyoverse.com/",
    "https://sdk-os-static.hoyoverse.com/",
    "https://api-account-os.hoyoverse.com/",
    "https://hk4e-sdk-os.hoyoverse.com/",
    "http://overseauspider.yuanshen.com",
    "https://abtest-api-data-sg.hoyoverse.com/",
    "https://account.hoyoverse.com",
    "https://log-upload-os.hoyoverse.com",
    "https://webapi-os.account.hoyoverse.com",
    "http://log-upload-os.hoyoverse.com", // 30
    "https://hkrpg-sdk-os-static.hoyoverse.com",
    "https://hkrpg-sdk-os.hoyoverse.com",
    "https://globaldp-prod-os01.starrails.com"
    ];

class Handlers
{
    static function OnBeforeRequest(oS: Session) {
        var active = true;
        
        if(active) {
            for(var i = 0; i < 33; i++) {
                if(oS.uriContains(list[i])) {
                    oS.host = "localhost"; // This can also be replaced with another IP address.
                    break;
                }
            }
        }
    }
};

Step 7: Click on "Save Script"

PART 2: Starting the Private Server

Step 1: Install NodeJS from the link above

Step 2: Then go to your private server folder and hold shift and press right click and click on "Open PowerShell window here" (Or on Windows 11 "Open in Terminal")

Step 3: in the terminal window type "npm install" (You need to make sure you ABSOLUTELY HAVE Visual Code Studio with the Desktop development with C++ plugin installed it will be one of the options after you install it)

Step 4: After the "npm install" command has finished type "npm run start" and crepeSR should start.

PART 3: Starting & Playing the Game

Step 1: Within the CrepeSR command prompt, create an account with the command:

account create [username] [uid]

e.g. account create GigaChad 420

Step 2: Open StarRail.exe and have fun!