diff --git a/docs/files/runme.reg b/docs/files/runme.reg old mode 100755 new mode 100644 index bb26dc6..9a3b640 Binary files a/docs/files/runme.reg and b/docs/files/runme.reg differ diff --git a/docs/images/nesys-good.png b/docs/images/nesys-good.png new file mode 100644 index 0000000..e4486c0 Binary files /dev/null and b/docs/images/nesys-good.png differ diff --git a/docs/sifac/README.md b/docs/sifac/README.md index ba012e8..ed1b26b 100644 --- a/docs/sifac/README.md +++ b/docs/sifac/README.md @@ -71,14 +71,14 @@ After that step, edit your arcade machine's hosts file: >Usually under: `C:\Windows\System32\drivers\etc\hosts` ``` -localhost cert.nesys.jp -localhost cert3.nesys.jp -localhost data.nesys.jp -localhost proxy.nesys.jp -localhost nesys.taito.co.jp -localhost fjm170920zero.nesica.net +127.0.0.1 cert.nesys.jp +127.0.0.1 cert3.nesys.jp +127.0.0.1 data.nesys.jp +127.0.0.1 proxy.nesys.jp +127.0.0.1 nesys.taito.co.jp +127.0.0.1 fjm170920zero.nesica.net ``` -(If its the same PC, just leave it as `localhost` if its a different PC on your network, replace it with the IP address) +(If its the same PC, just leave it as `127.0.0.1` if its a different PC on your network, replace it with the IP address) Once your computer resolves the domains to where ever you host the game server, we need to add some registry entries to enable the NesysService to run. @@ -90,5 +90,43 @@ Finally, you'll need to make nesys an *actual* Windows service (one that you wou [../files/nesys.bat](../files/nesys.bat) +If you don't want to create a service, you're also able to run `NesysService.exe` in powershell or cmd. Just follow these steps: + +- Make sure you open powershell or cmd as administrator +- Run this first (so you can debug it if it gives you an error): + - `chcp 932` +- Then run the exe as so: + - `D:\system\Service\NesysService.exe -app` + +If it outputs the following then you're good to go! + +![image-20230716133155441](../images/nesys-good.png) + +If it outputs something else, then you didn't install the registry values correctly! + +(todo, add a picture here as an example) + +### Certificates +The last step to this would be adding certificates. It is not an easy process, but asesidaa made a script that should do it for you. + +You can find the script to install the scripts in here: +[https://github.com/asesidaa/LLServer/tree/master/LLServer/Certificates](https://github.com/asesidaa/LLServer/tree/master/LLServer/Certificates) + +Make sure to run the script as administrator. ([you might need to enable powershell script running exception](https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts#106363)) + +Enter this command in an administrator powershell window: + +`set-executionpolicy remotesigned` + +If the script doesn't work, you just need to have the certs in the 'Personal' store and the 'Root Trust ...' store (I forget the full name). After that you shouldn't get any nesys HTTP errors (it should just connect). + +If the server isn't compiled already, you'll need Visual Studio Community edition, link for easy access [here](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false). +Make sure you set it up with basic .NET functionality. (It should install the things it needs if you don't select the right one so don't worry too much). + +Then if you haven't already, download the LLServer repo: +[https://github.com/asesidaa/LLServer/archive/refs/heads/master.zip](https://github.com/asesidaa/LLServer) + + +