emailconfirmed
93
edits
No edit summary |
PerikiyoXD (talk | contribs) m (PerikiyoXD moved page GettingStarted to Servers/GettingStarted: Namespacing) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Getting Started}} | {{DISPLAYTITLE:Getting Started}} | ||
{{BlueInformationBox|1=This guide | {{BlueInformationBox|1=This guide explains how to '''create and run a server'''. If you only want to join and play on an existing server, this page is not required.}} | ||
= Getting Started = | |||
== | == Overview == | ||
Setting up a server involves four main steps: | |||
== | # Download the server package from the [https://gtaconnected.com/downloads Downloads] page. | ||
# Extract the files to a new, empty folder. | |||
# Configure your server settings in <code>server.xml</code> (see [[ServerConfiguration|Server Configuration]]). | |||
# Start the server executable. | |||
Executable names: | |||
* '''Windows:''' <code>Server.exe</code> | |||
* '''Linux:''' See [[LinuxServer|Linux Server]] for available launch methods and instructions. | |||
Once started successfully, the server will begin listening for incoming connections. | |||
== Server Configuration == | |||
All core settings are stored in <code>server.xml</code>. This includes: | |||
* Server name | |||
* Port settings | |||
* Resource loading | |||
* Player limits | |||
* Networking options | |||
Refer to [[ServerConfiguration|Server Configuration]] for a full list of available settings and explanations. | |||
After modifying the configuration, restart the server for changes to take effect. | |||
== Game Mode Setup == | |||
=== GTA IV (Rockstar Modes) === | |||
To use Rockstar’s built-in game modes (Party Mode sessions): | |||
# Navigate to the <code>resources</code> folder. | |||
# Delete the <code>freeroam</code> folder. | |||
# Open <code>server.xml</code>. | |||
# Remove the line: | |||
<pre><resource src="freeroam" /></pre> | |||
Start the server normally. | |||
Players who connect will enter a generic rendezvous lobby using Party Mode. From there: | |||
* Players can use the in-game phone. | |||
* Sessions can be created or joined directly. | |||
=== GTA III, Vice City, San Andreas, and IV (Custom / Scripted Modes) === | |||
For scripted servers: | |||
* Example scripts are available here: | |||
[https://github.com/VortrexFTW/v-essentials v-essentials examples] | |||
If creating your own scripts, you must at minimum: | |||
* Spawn the player. | |||
* Fade in the camera using [[gta.fadeCamera|gta.fadeCamera]]. | |||
* Trigger this logic in an appropriate event, such as [[OnPlayerJoined|onPlayerJoined]]. | |||
The default <code>freeroam</code> resource: | |||
* Handles spawning and camera fade. | |||
* Is designed for GTA III. | |||
* May require modification for other games. | |||
We also provide a [[MinimalResourceSkeleton|Minimal Resource Skeleton]] that you can use to start on your own. | |||
== Resources == | == Resources == | ||
Resources control gameplay logic, scripts, and custom functionality. | |||
See [[Resources|Resources]] for: | |||
* Resource structure | |||
* Loading and unloading | |||
* Script organization | |||
* Best practices | |||
== Modules == | == Modules == | ||
Modules extend | |||
Modules extend server functionality with native integrations such as: | |||
* MySQL | |||
* SQLite | |||
* INI file handling | |||
* Additional system-level features | |||
See [[Modules|Modules]] for usage instructions. | |||
Additional modules are available on the forum: | |||
[https://forum.gtaconnected.com/index.php?board=24.0 Modules Board] | |||
Developers with C or C++ experience can create custom modules using the: | |||
[https://gtaconnected.com/downloads/ModuleSDK.7z Module SDK] | |||
== Server Manual == | |||
For in-depth documentation covering commands, configuration, scripting, and advanced topics, see the [[ServerManual|Server Manual]]. | |||
== Next Steps == | |||
After your server is running: | |||
* Verify connectivity (see port forwarding documentation if hosting from home). | |||
* Test resource loading. | |||
* Confirm players can join successfully. | |||
* Begin developing or installing additional resources and modules. | |||