• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

How-to: Servers

How-to: Servers

Table of content
  • 1. What is a server?
  • 2. What can a P3D server do (and what can't it do)?
  • 3. Setting up a server (LAN)
  • 4. Setting up a server (Internet)
  • 5. Servers settings
  • 6. Server commands (Client and Server)
1. What is a server?
A Pokémon3D server is a program, that hosts a TCP server. This allows multiple people to connect to this server from their game and play together through a network, for example a LAN or the internet.
The latest version of the server application can be downloaded here: Downloads page.

The "Protocol Version" of the server application and the clients (the games) have to match up for a connection to be successful. Otherwise, the server will refuse the connection. You can find the protocol version in the start up screen of the server application and the "Join Server" screen of the game, in the bottom right corner.

2. What can a P3D server do (and what can't it do)?

The servers allow players to walk around the world together and text-chat with each other. They also allow Pokémon trading and Pokémon battles ("PVP" battles). Trading only works, if the same types of profiles are used. GameJolt players can only trade with GameJolt players, and the same applies to non-GameJolt players.
The server is not responsible for any maps or scripts the player's game runs, these are stored locally. It also has nothing to do with any GameJolt connections or GameJolt server interactions, like Achievements and cloud save storage. The P3D server purely hosts the game sessions and distributes the player information amongst connected players.

------------------------------------------------------------------------------------
Before setting up a server, you need to know how players want to connect to it. If you want players around the world to connect to your server, read step 4. If you only want players that are in your LAN to connect to it, read this step.
------------------------------------------------------------------------------------

3. Setting up a Server (LAN, "Local Area Network")
This is a step by step tutorial on how to set up your server for a LAN:
  • Open the settings file (properties.dat) with Notepad and enter "127.0.0.1" for IP-Address and any port that has not been used yet on your computer as Port. The default is "15124".
upload_2015-1-3_17-45-37.png

  • Run the server with these settings and wait for it to finish loading.
  • You now need to get the IP address of your computer. Press [Win] + [R] to open the Run window, and type "cmd" there. Press [Enter]. The Windows Command Prompt opens. Enter "ipconfig" and press [Enter]. Now, in the listing, find your computer's network interface that is connected to your Router or networking device. There should be an entry called "IPv4 Address". Copy the IP address from there. It's most likely one that starts with 192.168.
upload_2015-1-3_17-45-17.png

  • On any other computer, start the game and add a new server in the "Join server" screen. Now enter the IP address from the last step and the port you set in the first step like so: xxx.xxx.xxx.xxx:xxxxx, IP Address : Port, for example: 192.168.2.101:15124
  • Tip: On your own computer, you can also use 127.0.0.1 as the IP address.
upload_2015-1-3_17-47-28.png


4. Setting up a Server (Internet)
If you want to set up your server so that people can access it via the internet, you need to forward the connection from your router to your computer. This is done via a technique called "Port forwarding". Setting this up is a little more complicated and varies depending on the router model.
  • First, you need the IP address of your router that it uses to connect to the internet. To do this, go to Google and enter "IP" there. It will show you which IP address you (and therefore your router) used to connect to it. Copy that IP address.
  • Next, paste that IP address into the "IP-Address" field of the properties.dat file of your server. Also fill in the Port field with whatever port you like that is larger than 1024 and smaller than 64535. The default is 15124. Save and close the properties file.
  • Now, you need to create the port forward. To do this, you might need your computer's IP address. To get that, see step 3 of the above instructions on how to set up a LAN server.
  • Open your routers settings. This is done by entering its LAN IP address into your browsers web address field. To get the LAN IP address of your router, open cmd again and search for the "Default Gateway" entry. It should be something similar to 192.168.0.1.
  • When you opened the settings, search for the Port Forwarding section. Depending on the router, you can either directly select your computer from the list there, or you have to enter the IP address there. Take the IP address from step 3 and enter it. For the port, enter the port you decided for in step 2. The settings might require you to enter a port range, in that case, tell it to forward port 15124 - 15124, or whichever port you took.
    See this FAQ on how to set up a Port Forward.
  • Save the routers settings and exit them. You might need to restart your router afterwards, depending on the model.
  • Afterwards, start the server application on your computer. You can still connect to this server the same way you did when setting up a LAN server from within your LAN.
  • For anyone not in your LAN, you need to give them your router's IP address that you acquired in step 1 and also tell them the port. They enter them in this scheme in their games: IP : Port
  • If any problems occur, try to also restart the client computers.
5. Server settings
Before starting to host your server, you need to take care of certain settings. The server settings are present in a file called "properties.dat", which is in the same directory as the server's exe file.

Here is a list of them and how they work:
  • ServerName | The name as it appears in the list of the client's game.
  • IP-Address | The IP address you are hosting this server on.
  • Port | The Port you are hosting this server on.
  • MaxPlayers | The maximum amount of players that can be connected to the server at the same time
  • BlackList | If the blacklist is active. When a player is listed there, they cannot enter the server.
  • WhiteList | If the whitelist is active. Only players that are listed there can connect to the server.
  • OfflineMode | If set to 0, only players that are logged in to GameJolt can enter the server.
  • ServerMessage | The message that appears below the server name on the "Join Server" screen.
  • Weather | If not empty, the weather that is present on all maps of the server.
Weathers:
0 = Clear
1 = Rain
2 = Snow
3 = Underwater
4 = Sunny
5 = Fog
6 = Thunderstorm (not implemented)
7 = Sandstorm
8 = Ash
9 = Blizzard
  • Season | If not empty, the season of the server.
Seasons:
0 = Winter
1 = Spring
2 = Summer
3 = Fall
  • DoDayCycle | When set to 1, the normal day cycle appears. If not, the sun will stay centered
  • GameMode | The GameMode required for players to join. GameJolt players always use the "Pokemon 3D" GameMode.
  • NoPingKickTime | The seconds before a player gets kicked because the player didn't receive any package from them. This feature can be disabled when set to 0. The minimum is 20.
  • WelcomeMessage | The message that appears when a client successfully connects to the server.
  • AllowOP | If operators that are listed on the opeartors list can change settings of the server or stop it from running by entering commands in their games.
  • AFKKickTime | The seconds before a player gets kicked because they have been inactive for a longer time. This feature can be disabled when set to 0. The default is 600.
6. Server commands (Client and Server)
This is a list of commands that can be used to manipulate server settings while the server is running. Those that can be used by clients in the chat as well are colored green. Only operators can use those commands, and the AllowOP setting of the server has to be activated.

  • stop | Closes the server.
  • restart | Restarts the server.
  • kick <playername> | Kicks a player from the server. Players cannot kick themselves.
  • servermessage <message> | Sets the server message.
  • weather <weatherid> | Sets the weather.
  • season <seasonid> | Sets the season
  • list <add|remove|toggle> <whitelist|blacklist|operators|mutelist> <playername> | Performs an action on a list.
  • pm <playername> <message> | Sends a personal message to a player.
  • allowop | Sets if operators are allowed to issue commands.
  • say | Sends a chat message to everyone.
  • world update | Updates the world, containing weather and season settings.
Author
nilllzz
Views
1,962
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from nilllzz

Top