#Honkai Star Rail Private Server

14 messages · Page 1 of 1 (latest)

vivid bane
#

YuukiPS uses 1.2.0 so is it possible to have my own local/offline version of it by amending the Fiddler script to:

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(".mihoyo.com") ||
oS.host.EndsWith(".zenlesszonezero.com") ||
oS.host.EndsWith(".honkaiimpact3.com") ||
oS.host.EndsWith(".bhsr.com") ||
oS.host.EndsWith(".starrails.com") ||
oS.uriContains("http://overseauspider.yuanshen.com:8888/log")
) {
oS.host = "127.0.0.1";
}
}
};

Or is there anything specific that I’d need to know to get it to run locally? The initial setup of things such as MongoDB, etc., I know how to do that. Issue would persist from the Fiddler script not running and just getting ‘Connection failed’ in game.

verbal hornet
#

Issue would persist from the Fiddler script not running and just getting ‘Connection failed’ in game.
You already have your own local 1.2.0 server set up? If not then that's your first hurdle to overcome.

#

There is no open source for 1.2.0, and it's also not a Grasscutters problem either way, but star rail >0.70.0 is closed source

#

If you make your own then I would assume you also have the relevant know-how on making a minor change to your Fiddler script

vivid bane
#

I don’t but assumed it would’ve been very similar to the CBT setup. Technically, from what I recall, there wasn’t any source files for that too.

verbal hornet
#

There was in fact source for cbt, and it's still public and available

#

But if you were using an updated source from 0.70.0 then yes it would be the same

restive lantern
#

the fiddlerscript looks good to me, if it doesn't work, try crepe's :

import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;


class Handlers
{
    static function OnBeforeRequest(oS: Session) {
        if (oS.host.Equals("overseauspider.yuanshen.com:8888")) {
            oS.oRequest.FailSession(404, "Not Found", "Not Found");
        }
        else if(oS.host.EndsWith(".yuanshen.com") || oS.host.EndsWith(".starrails.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com")) {
            oS.host = "localhost";
        }
    }
};
vivid bane
verbal hornet
#

it's the same script

vivid bane
verbal hornet
#

It's written the same, yours has the block removed/switched which no script provided anywhere does, so it was likely removed by you or whoever gave it to you. The original script is 100% the exact same

restive lantern