This commit is contained in:
641i130 2023-07-20 22:01:01 -05:00
parent 8523d8bad5
commit 70d70ad22a
4 changed files with 46 additions and 8 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -370,6 +370,13 @@
Online Mode (currently being worked on)
</a>
</li>
<li class="md-nav__item">
<a href="#certificates" class="md-nav__link">
Certificates
</a>
</li>
</ul>
@ -501,6 +508,13 @@
Online Mode (currently being worked on)
</a>
</li>
<li class="md-nav__item">
<a href="#certificates" class="md-nav__link">
Certificates
</a>
</li>
</ul>
@ -589,19 +603,43 @@ ll3.exe -singlemode -sw 1920 -sh 1080 -highquality</code></p>
<p>Usually under:
<code>C:\Windows\System32\drivers\etc\hosts</code></p>
</blockquote>
<pre><code>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
<pre><code>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
</code></pre>
<p>(If its the same PC, just leave it as <code>localhost</code> if its a different PC on your network, replace it with the IP address)</p>
<p>(If its the same PC, just leave it as <code>127.0.0.1</code> if its a different PC on your network, replace it with the IP address)</p>
<p>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.</p>
<p>Run the following file:</p>
<p><a href="../files/runme.reg">../files/runme.reg</a></p>
<p>Finally, you'll need to make nesys an <em>actual</em> Windows service (one that you would find in <code>services.msc</code>). Download and run this command to add it (assuming your <code>service</code> directory is found in <code>D:\</code>). This is all tested for <code>D:\</code>.</p>
<p><a href="../files/nesys.bat">../files/nesys.bat</a></p>
<p>If you don't want to create a service, you're also able to run <code>NesysService.exe</code> in powershell or cmd. Just follow these steps:</p>
<ul>
<li>Make sure you open powershell or cmd as administrator</li>
<li>Run this first (so you can debug it if it gives you an error):</li>
<li><code>chcp 932</code></li>
<li>Then run the exe as so:</li>
<li><code>D:\system\Service\NesysService.exe -app</code></li>
</ul>
<p>If it outputs the following then you're good to go!</p>
<p><img alt="image-20230716133155441" src="../images/nesys-good.png" /></p>
<p>If it outputs something else, then you didn't install the registry values correctly!</p>
<p>(todo, add a picture here as an example)</p>
<h4 id="certificates">Certificates<a class="headerlink" href="#certificates" title="Permanent link">&para;</a></h4>
<p>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.</p>
<p>You can find the script to install the scripts in here:
<a href="https://github.com/asesidaa/LLServer/tree/master/LLServer/Certificates">https://github.com/asesidaa/LLServer/tree/master/LLServer/Certificates</a></p>
<p>Make sure to run the script as administrator. (<a href="https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts#106363">you might need to enable powershell script running exception</a>)</p>
<p>Enter this command in an administrator powershell window:</p>
<p><code>set-executionpolicy remotesigned</code></p>
<p>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).</p>
<p>If the server isn't compiled already, you'll need Visual Studio Community edition, link for easy access <a href="https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&amp;channel=Release&amp;version=VS2022&amp;source=VSLandingPage&amp;cid=2030&amp;passive=false">here</a>.
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).</p>
<p>Then if you haven't already, download the LLServer repo:
<a href="https://github.com/asesidaa/LLServer">https://github.com/asesidaa/LLServer/archive/refs/heads/master.zip</a></p>

Binary file not shown.