Updated SIFAC sorta

This commit is contained in:
641i130 2023-07-20 21:53:29 -05:00
parent 1790284279
commit bed45f12c6
3 changed files with 45 additions and 7 deletions

BIN
docs/files/runme.reg Executable file → Normal file

Binary file not shown.

BIN
docs/images/nesys-good.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -71,14 +71,14 @@ After that step, edit your arcade machine's hosts file:
>Usually under: >Usually under:
`C:\Windows\System32\drivers\etc\hosts` `C:\Windows\System32\drivers\etc\hosts`
``` ```
localhost cert.nesys.jp 127.0.0.1 cert.nesys.jp
localhost cert3.nesys.jp 127.0.0.1 cert3.nesys.jp
localhost data.nesys.jp 127.0.0.1 data.nesys.jp
localhost proxy.nesys.jp 127.0.0.1 proxy.nesys.jp
localhost nesys.taito.co.jp 127.0.0.1 nesys.taito.co.jp
localhost fjm170920zero.nesica.net 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. 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) [../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)