To turn a machine into a game server, you need to do the following:

Step 1: Provision the game server binaries

There are two ways to accomplish this:

  1. Automatically via the Bootstrapper. Refer to this: http://wartothecore.com/blog/2017/06/17/how-to-use-server-agent-bootstrapper/
  2. Manually.
    1. Copy the server binaries to the machine. Get them from Jenkins: http://build.forgottenmines.com:8080/job/Ballistic/lastSuccessfulBuild/artifact/Ballistic/Server/Photon/Server/deploy/deploy.zip.
    2. Put a server ID for the server in the registry key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Forgotten Mines\GameServer under an “ID” String value. Put a GUID in that value.
    3. Launch the photon socket server either directly via the command line or via Photon Control.

Step 2: Setting Networking

  1. Open up port 5055 (or whichever port you configured for the server) in the Windows firewall in public domain, assign it to the Photon Socket Server executable.
  2. If the server is behind a router, then open the same port and forward the target port (which could be anything) to the server’s IP internal address to port 5055 for UDP & TCP.
  3. If you want to make the server available to others easily then it needs a static IP or hostname. If you don’t have a static IP, then use No-IP or another Dynamic DNS server to give it a fixed name that resolves to the IP. See http://wartothecore.com/blog/2018/07/17/adjusting-local-server-to-work-over-the-internet-public-using-no-ip/ for more details.

Step 3: Exposing it in the game

If you want to make the server show up in the game’s servers list, then you need to add it to our API (WebApiHost\Controllers\ServerInfoController.cs at the time of this writing). Then publish the API. This should make it accessible via http://api.wartothecore.com/api/ServerInfo.

Step 4: Test your server

Launch the game and try to connect to the new server or use the Test Client to test it.

Comments

comments

Author Lotus
Published
Categories Internal
Views 204
War to the Core

Recent Comments

Latest Updates

  • Solo missions

    Solo missions

    Hey guys, here are the specifics of the first two solo missions, those are sketches of the first two missions. First mission: A harvester is placed near the ship, generating supply caches. The player collects energy caches and escapes a ring of mines. No supply links allowed. The sensor component is introduced by one of […]Read More »
  • We made it to the Top 100!

    We made it to the Top 100!

    We are stoked that we managed to land on IndieDB’s Indie of the Year’s Top 100 list! We are also the only MOBA that made it to the list! The support we got from the community was overwhelming, and we would like to thank each and every person that helped us get this far. Whether […]Read More »
  • Full Campaign Series, Version 3

    Full Campaign Series, Version 3

    Characters: Daniel Blaze. Protagonist, player-character. Headstrong and rebellious. Ambiguous loyalty to the Shepherd Coalition. Joseph Blaze. Father of Daniel Blaze. Commander of the Leviathan mothership until executed for treason by the Shepherd Coalition. Sylvia. AI assistant. Provides intel, advice, mission objectives. Captain Zhukov. Cyborg commander assigned to hunt down player during the first several missions. […]Read More »
  • Story: Episode 1, Version 2

    Story: Episode 1, Version 2

    The Blaze family had long been controversial. They supported the Shepherds, but continually frustrated the Orthodox elements of their faction. Joseph Blaze was especially known for his tolerance of the weakling families that used genetic engineering to alleviate the sicknesses that exposure to the Earth’s surface had inflicted on them. Such tensions between orthodoxy and […]Read More »
  • Story: Episode 1

    Story: Episode 1

    Location: The Pole Base. When Daniel Blaze passed his final test and became the primary candidate to pilot the Leviathan, the Shepherds’ newest ship, he caused a quite a stir. Not because he’s the youngest member of the Pole fleet to be nominated for admiralship, the faction had already made peace with this as a […]Read More »
Skip to toolbar