<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Command line</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>Recent changes to Command line</description><atom:link href="https://sourceforge.net/p/sanandreasunity/wiki/Command%20line/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 24 Aug 2023 01:36:53 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sanandreasunity/wiki/Command%20line/feed" rel="self" type="application/rss+xml"/><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -14,7 +14,7 @@

     ./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 of game mode to use. It's optional and can be omitted.
+`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 of [game mode](https://github.com/GTA-ASM/SanAndreasUnity/wiki/Plugins-(Game-modes)) to use. It's optional and can be omitted.


 ### Starting client from command line
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.net098b4d2856eb6c40bb35af404bed480dce43d0c7</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -14,7 +14,7 @@

     ./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 of game mode to use.
+`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 of game mode to use. It's optional and can be omitted.


 ### Starting client from command line
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.net37511fd3e7b9c4968455f0c5af6b0740ec1cd26d</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -12,9 +12,9 @@

 ### Starting dedicated server from command line

-    ./SanAndreasUnity.x86_64 -batchmode -nographics -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40
+    ./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.
+`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 of game mode to use.


 ### Starting client from command line
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.netd93464a4cf900ce8bad55e03417762a5de895084</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -12,14 +12,14 @@

 ### Starting dedicated server from command line

-    ./SanAndreasUnity.x86_64 -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40
+    ./SanAndreasUnity.x86_64 -batchmode -nographics -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40

 `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.


 ### Starting client from command line

-    ./SanAndreasUnity.x86_64 -startClient: -serverIp:127.0.0.1 -portNum:7777
+    ./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.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.net2fd93d478cf44dfaf2ea507c3d0e7f649a7f5d83</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -12,14 +12,14 @@

 ### Starting dedicated server from command line

-    ./SAU.x86_64 -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40 &amp;gt; server_$(date '+%Y-%m-%d_%H.%M.%S').log &amp;amp;
+    ./SanAndreasUnity.x86_64 -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40

 `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.


 ### Starting client from command line

-    ./SAU.x86_64 -startClient: -serverIp:127.0.0.1 -portNum:7777 &amp;gt; client.log &amp;amp;
+    ./SanAndreasUnity.x86_64 -startClient: -serverIp:127.0.0.1 -portNum:7777

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

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.netd95f83e352e7171fdc117e710a0d5456a68cad5f</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,4 +1,13 @@
 &lt;br/&gt;
+
+
+### 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 named `config.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
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:53 -0000</pubDate><guid>https://sourceforge.netf88af0bbb88a5332f0a1d19716ebd1b591b4c091</guid></item><item><title>Command line modified by john lemmon</title><link>https://sourceforge.net/p/sanandreasunity/wiki/Command%2520line/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;
&lt;h3 id="starting-dedicated-server-from-command-line"&gt;Starting dedicated server from command line&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;./SAU.x86_64 -startServer: -scene:Main -portNum:7777 -maxNumPlayers:40 &amp;gt; server_$(date '+%Y-%m-%d_%H.%M.%S').log &amp;amp;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;scene&lt;/code&gt; represents the scene to load. There are 2 scenes: Main and Demo. &lt;code&gt;portNum&lt;/code&gt; is the port number that server will use. &lt;code&gt;maxNumPlayers&lt;/code&gt; is the maximum number of players that can connect to the server.&lt;/p&gt;
&lt;h3 id="starting-client-from-command-line"&gt;Starting client from command line&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;./SAU.x86_64 -startClient: -serverIp:127.0.0.1 -portNum:7777 &amp;gt; client.log &amp;amp;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;serverIp&lt;/code&gt; is IP address of the server. &lt;code&gt;portNum&lt;/code&gt; is port number of the server.&lt;/p&gt;
&lt;h3 id="skip-texture-loading"&gt;Skip texture loading&lt;/h3&gt;
&lt;p&gt;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 in &lt;code&gt;config.user.json&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;"dontLoadTextures": true,
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This will result in lower memory usage and faster world loading.&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john lemmon</dc:creator><pubDate>Thu, 24 Aug 2023 01:36:52 -0000</pubDate><guid>https://sourceforge.neta242e54a589f8758371682dbdc8bab8effe2f3c1</guid></item></channel></rss>