Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Command line

in0finite edited this pageMar 6, 2021 ·7 revisions

Configuration file

Before running the application from command line, you need to create configuration file in the same folder where the executable file is located. The configuration file should be namedconfig.user.json. This file should contain path to GTA installation. Here is an example of the file:

{  "game_dir": "/home/username/gtasa",}

Starting dedicated server from command line

./SanAndreasUnity.x86_64 -batchmode -nographics -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40 "-gameMode:Deathmatch Area 69"

scene represents the scene to load. There are 2 scenes: Main and Demo.portNum is the port number that server will use.maxNumPlayers is the maximum number of players that can connect to the server.gameMode specifies the name ofgame mode to use. It's optional and can be omitted.

Starting client from command line

./SanAndreasUnity.x86_64 -batchmode -nographics -startClient: -serverIp:127.0.0.1 -portNum:7777

serverIp is IP address of the server.portNum is port number of the server.

Skip texture loading

When running in command line, it can be useful to skip loading textures. Textures are not visible when running in command line and they do not affect game logic. This can be done by adding parameter inconfig.user.json:

"dontLoadTextures": true,

This will result in lower memory usage and faster world loading.


Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp