ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Source Codes

GTA V - Complete server source code (RageMP)

Submitted by kreygasmLV at 29-08-2022, 11:35 PM


GTA V - Complete server source code (RageMP)
2.710 Views
kreygasmLV's Avatar'
kreygasmLV
Offline
#1
How do I get it set up?
Generating Events
The script uses generated RAGE events (network & UI) via JSON manifest files. These files are located in \EventDescriptors\Network\ and \EventDescriptors\UI\

Any time you add or modify an event, you must run the GenerateEvents.bat file.
Adding New Scripts & Resources
All content in OwlV is cooked into archive files which are validated during cooker time, and loaded by the server. This cook/validation step helps avoid runtime issues and makes deployment easier.

Anytime you add, remove or modify (the file name, not contents), you must update the associated JSON descriptor in \Descriptors\
Files are defined by providing their filename, and type (e.g. ClientScript, ServerScript, etc) - please refer to existing descriptors for reference.
Using the Cooker
By default, the cooker uses symbolic links to allow for fast / near-instant iteration times. In 'Debug Full Cook' and 'Release' targets, a full cook, including code analysis, archive and unarchive are performed.

OwlV requires Windows Developer Mode to be enabled. This can be enabled by going to Start -> Developer Mode -> and checking the first checkbox.
Build Configurations
Debug x64 - Recommended for development, also enables 'fast iteration mode' for faster dev times
Debug Full Cook x64 - Simulates a release style cook, but uses debug binaries. Only recommended for diagnosing cook issues
Release x64 - Recommended for your server build
For running in debugger, you should start the Boot project as your startup project.

What variables should be I be changing?
You can search the code base for "TODO_GITHUB" for variables which you will want to update.

Please also refer to the environment variables below, which are required.
Database Configuration
The database connections must be configured before running the server. Set the following environment variables:

GAME_DATABASE_IP
GAME_DATABASE_NAME
GAME_DATABASE_USERNAME
GAME_DATABASE_PASSWORD
GAME_DATABASE_PORT
AUTH_DATABASE_IP
AUTH_DATABASE_NAME
AUTH_DATABASE_USERNAME
AUTH_DATABASE_PASSWORD
AUTH_DATABASE_PORT
Web Server Configuration
The game server runs a web server for remote UCP calls. The user is always ucp. Calling URL is http://IP:9001/RequestString

By default this will only bind to 127.0.0.1. Set the environment variable below to bind to an external IP (required for LIVE server):
HTTP_SERVER_BIND_IP
HTTP_SERVER_PASS
HTTP_SERVER_WHITELIST The IP that will be making calls
Configuration
The following environment variables can be used to tweak settings:

Required
GAME_DATABASE_IP
GAME_DATABASE_NAME
GAME_DATABASE_USERNAME
GAME_DATABASE_PASSWORD
GAME_DATABASE_PORT
AUTH_DATABASE_IP
AUTH_DATABASE_NAME
AUTH_DATABASE_USERNAME
AUTH_DATABASE_PASSWORD
AUTH_DATABASE_PORT
Required for LIVE, Optional for Dev
Variable Default Description
HTTP_SERVER_BIND_IP 127.0.0.1 The IP for the HTTP server to bind to
HTTP_SERVER_PASS 0E0CECB2B6808B3BECDF28936DE54AE6481 The authentication key for the HTTP API
SENTRY_DSN Disabled Sentry DSN
DISCORD_BOT_TOKEN Disabled Discord Bot Token
DISCORD_CLIENT_ID Disabled Discord Application Client ID
ELASTICSEARCH_HOSTS http://localhost:9200 The hosts for the ElasticSearch server, delimited by spaces
ELASTICSEARCH_USERNAME `` The authentication username for the ElasticSearch server
ELASTICSEARCH_PASSWORD `` The authentication password for the ElasticSearch server
Obtaining RAGE
You can obtain a verified working version of Rage server from the Releases page on GitHub. Please choose the highest revision and extract it into Owl -> V -> Output -> .

Alternatively, you can deploy any version of RAGE you wish by simply copying the server binaries from your rage server folder and copying in the C# Bridge which is found on the forums (www.rage.mp).
After copying in your binaries, you will have to compile the source code which runs the cooker, which will copy all server output into the folder above.
Not working!This leak has been rated as not working 0 times this week. (1 in total)
6
Reply
Haixer's Avatar'
Haixer
Offline
#2
I didnt understand any of that
0
Reply
Summer's Avatar'
Summer
Offline
#3
Nice release, thanks.
[Image: olympus.gif]
0
Reply
Missing's Avatar'
Missing
Offline
#4
theres nothing here
0
Reply
xokenir242's Avatar'
xokenir242
Offline
#5
thank you
0
Reply
dsrida's Avatar'
dsrida
Offline
#6
thank you
0
Reply
Hydra04's Avatar'
Hydra04
Offline
#7
Appreciated your work
0
Reply
carmuzo's Avatar'
carmuzo
Offline
#8
thank you
0
Reply
SebiZZZ's Avatar'
SebiZZZ
Offline
#9
thank you
0
Reply



Users browsing this thread: