ServerManual: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
== General Information ==
== General Information ==
GTA Connected is designed as an empty sandbox, so minimal content is provided by default.
GTA Connected is designed as an empty sandbox, so minimal content is provided by default.
At the very minimum, you'll need to have a resource that fades in the camera and spawns a player. This resource is already provided (called "freeroam") within the default server package on the main downloads page.
At the very minimum, you'll need to have a resource that fades in the camera. This resource is already provided (called "freeroam") within the default server package on the main downloads page.


== Resources ==
== Resources ==
GTA Connected scripts and server-provided content are called "resources" and are located in the resources folder of your server's directory. Information on creating and using resources can be found on the [[Resources|resource info]] page. If you need scripting functions, the [[Main_Page|main page]] provides information on scripting functions and ID references. Example resources can be found [https://github.com/VortrexFTW/gtac_vortrex here]
GTA Connected scripts and server-provided content are called [[Resources|resources]] and are located in the resources folder of your server's directory. Information on creating and using resources can be found on the [[Resources|resource info]] page. If you need scripting functions, the [[Main_Page|main page]] provides information on scripting functions and ID references. Example resources can be found [https://github.com/VortrexFTW/gtac_vortrex here]


== Server Configuration ==
== Server Configuration ==
The server.xml file stores the basic configuration for your server. This file tells your server what resources to load, what port to run on, etc. There are lots of configurable options here. More information on the server.xml file can be found on the [[ServerConfiguration|server configuration]] page.
The ''server.xml'' file stores the basic [[ServerConfiguration|server configuration]] for your server. This file tells your server what [[Resources|resources]] to load, what port to run on, etc. There are lots of [[ServerConfiguration|configurable options]]. You can also use a different file for your server config by starting the server with the ''-config'' option


== Port Forwarding ==
== Port Forwarding ==
Servers hosted from PC's at home will need to have ports forwarded on their LAN network. This is usually done within the router's configuration. The instructions for port forwarding vary per router so they won't be listed here, but here's a webpage with plenty of information: [https://portforward.com/ portforward.com] ... You'll need to open UDP and TCP ports for the server and HTTP connections. The default ports are 22000 for both, but these can be different depending on server configuration.
Servers hosted from PC's at home will most likely need to [[PortForward|port forward]]. This is usually done within the router's configuration. The instructions for port forwarding vary per router so they won't be listed here, but you can find instructions [https://portforward.com/ here] ... You'll need to open '''both''' UDP and TCP ports for the server and HTTP connections. Some routers have an option to open both in the same forwarding rule. The default ports are 22000 for both, but these can be different depending on server configuration.


== Linux Server ==
== Linux ==
Instructions for setting this up can be found on the [[LinuxServer|linux server]] page.
Instructions for setting this up can be found on the [[LinuxServer|linux server]] page.


== Windows Server ==
== Windows ==
The windows server comes in both 32 and 64 bit architectures, so choose the one that corresponds to the host. More information on setting this up can be found on the [[WindowsServer|windows server]] page.
The windows server is made for x64 systems, however an x86 build can be provided on request. More information on setting up the server can be found on the [[WindowsServer|windows server]] page.

Latest revision as of 07:54, 20 April 2023

General Information

GTA Connected is designed as an empty sandbox, so minimal content is provided by default. At the very minimum, you'll need to have a resource that fades in the camera. This resource is already provided (called "freeroam") within the default server package on the main downloads page.

Resources

GTA Connected scripts and server-provided content are called resources and are located in the resources folder of your server's directory. Information on creating and using resources can be found on the resource info page. If you need scripting functions, the main page provides information on scripting functions and ID references. Example resources can be found here

Server Configuration

The server.xml file stores the basic server configuration for your server. This file tells your server what resources to load, what port to run on, etc. There are lots of configurable options. You can also use a different file for your server config by starting the server with the -config option

Port Forwarding

Servers hosted from PC's at home will most likely need to port forward. This is usually done within the router's configuration. The instructions for port forwarding vary per router so they won't be listed here, but you can find instructions here ... You'll need to open both UDP and TCP ports for the server and HTTP connections. Some routers have an option to open both in the same forwarding rule. The default ports are 22000 for both, but these can be different depending on server configuration.

Linux

Instructions for setting this up can be found on the linux server page.

Windows

The windows server is made for x64 systems, however an x86 build can be provided on request. More information on setting up the server can be found on the windows server page.