[GUIDE] Console commands extended

Modding school: Learn it from the masters
Post Reply
User avatar
OMNI du 31
Developer
Posts: 369
Joined: 20 May 2020 11:57
Location: Toulouse, France

18 Mar 2022 13:30

Hello everyone,

After finding some spare time, I would like to make a small guide to make a small list of commands I know till now which you can use for a better gameplay or simply, make it a little bit customised. For the sake of a better guide, I decided to split them into 3 categories. These are Beginner, Intermediate and Advanced. The Beginner section includes, in my humble opinion, the commands you can most frequently use whereas the Advanced section is reserved for the commands that you may rarely need or rather for experienced modders.

Before starting, I would like to give a huge thanks and credits to Wombat Trucker who helped me 2 years ago and thousands of players out there to get into flying, teleportation and the console itself.



Important note: Although all the instructions given in this video are still valid, due to the Open Player feature brought in 1.41, it is required to use CTRL+F9 to land the truck as only F9 itself opens the convoy chat.


Beginner

  • goto : This command works in 3 ways.

    The first method is with the localized city name. To roughly explain, it is is a single-word internal name of a city. Let's take a popular destination, Kirkenes, as an example for the first method:

    Code: Select all

    goto kirkenes
    and

    Code: Select all

    goto Kirkenes
    The second method is by the city name itself without any special characters. For this method, let's take somewhere from the Finnmark region as an example, Tana Bru:

    Code: Select all

    goto tanabru
    and

    Code: Select all

    goto tana bru
    As you can see, tanabru is the localized city name which is no big secret since ProMods definition files are open to everyone (and I am personally glad they are :) ). On the other hand, tana bru is the displayed name. Now, do you think that the second one will work? The answer to this question is a big fat NO! Because due to the space between Tana and Bru, the game will interpret it as if you want to go to Tana and if the city exists, the game will teleport you to Tana. Otherwise, the console will give an error. So, in this case, the right format should be:

    Code: Select all

    goto "Tana Bru"
Note: Normally, using apostrophes instead of quotation marks would also do but I recommend you to get used to using quotation marks because when a city name consists an apostrophe (e.g. - goto 'Coeur d'Alene' ), the game gets confused. On the other hand, there might also be some cases where you have to know the localized city name by heart. For instance, the internal name of Munich is munchen instead of munich; that of Andorra-la-Vella is only andorra and last but not least, that of Vancouver, BC is vancouver_bc given that there is already another Vancouver in Washington DLC.
  • The third way is by coordinates. As many of you know, when you press F11, your bug report will be saved in bugs.txt with your note; date and time; map sector and; coordinates as you can see in the image below which is a very very random report.

    Image

    all you have to do is to copy the highlighted area and type,

    Code: Select all

    goto 80874;-3.67767;69485.1;-1.85065;-0.122753
    This will teleport you to the exact point with the same exact camera angle.
  • g_traffic : The command that enables you to modify the traffic density. It takes values between 0 and 10 and keep in mind that the base value is 1. Please consider this value as a spawn ratio which does not have to be an integer. If you set it to 2, the traffic will be doubled. If you set it to 3, it will be tripled and so on and so forth. On the other hand, if you set it to 0.7, for instance, the spawn ratio will be reduced to 70% whereas if you set it to 1.5, it will be increased to 150%.
Note: I would recommend you not yo go beyond 3 because first of all, many people ignore that traffic density is one of the main factors that affects the fps and depending on your specs, this might have a hard impact on your fps. Secondly, the more you increase the traffic density, the more the AI traffic goes nuts. I.e. - more traffic jams, accidents... You may not even find an opportunity to take a turn or exit which drives you away from realism.
  • g_set_weather : The command that enables you to change the weather. It takes an integer value and simply, if you enter an even value, the weather gets sunny. On the other hand, if you type an odd value, the weather gets rainy.
  • g_set_skybox : As the name indicates, the command that enables you to change the skybox. Thanks to the feature coming to the camera mode with version 1.41, we know that both games have 7 different skyboxes for the sunny weather and 4 different skyboxes for the rainy weather. Therefore, this command takes integer values between 1-7 when the weather is sunny whereas it takes integer values between 1-4 when it is rainy unless you use a graphics mod which adds more than 7 skyboxes.
  • g_set_time : The command that enables you to move forward the time. Please note that there is absolutely no way to go back in time in the game. Given that a day consists of 24 hours, it takes values between 0 and 24. Now, in order to explain what I said in the beginning, assume that we are on Wednesday in the game and it is 14:23. If you type:

    Code: Select all

    g_set_time 14
    this will not take you to Wednesday, 14:00 (2 P.M.). Instead, this will take you to Thursday, 14:00 (2 P.M.). There is also another way to use this command but I prefered not to mention it. Because it is longer and less useful than this method.

Intermediate


For the first three commands that I will provide in this section, I owe many thanks to Squirrel for literally saving me from the truck physics mods and letting me to customise my entire physics settings.


  • g_truck_stability : As you can understand from the name, it is the command that enables you to decide how much you want your truck to be sensitive to steering. I.e. - how much you want it to shake. The base value is 0.5 and keep in mind that the more you go under this value, the more the truck will shake whereas the more you go over this value, the more the truck will be stable in response to steering.
  • g_trailer_stability : The trailer version of the command above.
  • g_suspension_stiffness : Compared to the 2 commands above, this command is relatively need more attention as it is the main one that affects the physics and your driving experience. Plus, a bit more sensitive. Keep in mind that unlike the other 2, the base value in here is 1 and as you can understand from the word suspension, you decide how you want your truck to react to any encounter with bumpers, crashes, manoeuvres and so on and so forth.
Note: For these 3 above, I recommend you to take your time in order to find the best settings for your taste. Because firstly, I believe that physics settings are completely subjective. Secondly, most of you will probably knock your truck over in the first attempt on a sharp motorway exit or a national road with sharp curves.
  • warp : The command that enables you to modify the game "velocity". Also, the one which underlies almost every single mod showcase on YouTube. I.e. - the command that enables you to put the game in slow-motion or in time-lapse. Keep in mind that the base value is "1" and the value does not have to be an integer. E.g. - if you set it to 0.8, the game will be slowed down by 20% whereas if you set it to 1.2, the game will be speeded up by 20%.
Note: The strange thing with warp is that this is the only command in this guide that the game does not remember at every launch. For instance, let's assume that you prefer it to be 0.8/80% ; well, the game will automatically set it to 1 in the next launch anyway.
  • g_remove_missing accessories : I must admit that this one is a bit tricky to explain. Assume that you activated a tuning/accessories mod and modified one or more trucks with the accessories provided by this mod. But in the end, you decided to deactivate the mod for some reason without selling all of them first. And because of that, your game crashed. To overcome this problem,

    -> you can load your profile first.
    -> type

    Code: Select all

    g_remove_missing_accessories 1
    -> reload the save game
    -> type

    Code: Select all

    g_remove_missing_accessories 0
  • g_cam_window_block : The command that enables you to block the driver window. I.e. - when you move your head in camera 1 to the left (or to the right in case of RHD), the camera will stick out and act in a similar way to camera 5 no matter if the window is shut or not. Now, if you type

    Code: Select all

    g_cam_window_block 1
    on console, you won't be able to stick your head out through the window while it is shut anymore. Therefore, to check the rear, you will have to open the window just like in real life. As you may have noticed, you can change it back to 0. Thanks to SiSL for teaching that command in his Ford FMAX showcase video.
  • g_show_game_blockers : The command that enables you to hide all the barriers from XXXX barriers to arrow pointing barriers. The base value is 1 and in order to hide them, you have to change the value to 0.
Note: Pay attention that I used the word hide instead of remove which has got a rock-solid reason. The reason is that this command does not allow you to remove those barriers and when you drive through those hidden barriers, they will be omnipresent but invisible.
  • g_show_game_elements : The command that enables you to hide all types of floating icons you can imagine from weight station icons to white floating delivery icons. Like the command above, type 0 to hide and type 1 to reveal them.

Advanced

  • g_minicon : As a matter of fact, this one is not that "advanced". When you type

    Code: Select all

    g_minicon 1
    on console, a small horizontal area will pop up above the screen. However, I decided to put this in the advanced section because it provides essential data for mainly, modders such as the fps count, the triangle count (TC), the draw call (DC) and the last 5 lines from the console. In addition, if you type

    Code: Select all

    g_minicon 2 
    on console, you will obtain data in more detail.

    g_minicon 1 :

    Image

    g_minicon 2 :

    Image
  • g_colbox : The command that enables you to see the vectors in game. Honestly, I am not that much of an expert with this command. However, from a mapping point of view, you can consider most of the green vectors you will see as some sort of a skeleton of a structure. I personally use this to confirm the presence of an invisible wall. And here is how an invisible wall may look like when this command is set to 1:

    Image

    Source: https://promods.net/viewtopic.php?t=40808
Note: The vectors will be visible only within the range of your truck.
  • g_delete_uid : The command that enables you to get rid of the problematic UID in the map editor. When an UID is invalid, the map editor will pop up a separate window which shows the problemaic UID(s) as you can see in the image below.

    Image

    To overcome this problem; you right click on the concerning UID and select Copy UID. Then, close the window, open console, type g_delete_uid and paste the copied UID from the warning window. Hit Enter and that UID will be gone.

Hints

  • You do not have to know all the long commands by heart. When you click on TAB, the list of all the commands corresponding to your research will show up. The TAB key is literally the CTRL+F of console and my saviour for always forgetting g_cam_window_block :D

    Image
  • When you type a command that takes a numerical value alone and press ENTER, an info line indicating the current setting and the default value will show up.

    Image
  • By the up and down buttons of your keyboard, you can consult the previous commands you typed on console so that you do not have to retype them. Even if they are from the previous session...


That's all folks! Thank you very much for reading and if you wish to correct an information or add another command, please feel free to give me a feedback.
Last edited by OMNI du 31 on 19 Mar 2022 12:55, edited 2 times in total.
Yellow ranger since 2.60
Developer since 2.63

olaf28
Posts: 382
Joined: 25 Dec 2018 00:57

18 Mar 2022 15:52

Very nice work OMNI
I will keep this in my bookmarks
TerraMaps Administration, COO
Red Sea Map I Caribbean Map | Road to Asia Map | Corfu Map I Pacific Map
https://terramaps.net/forum/
https://www.facebook.com/TerraMapsOfficial

Proc: i7-9750H 2,6 GHz (max. 4,5 GHz)
Mem: 16GB
Grap: ASUS ROG -STRIX-RTX2060-O6G-GAMING 6 GB GDDR6

User avatar
Trucker2223
Moderator
Posts: 6605
Joined: 16 Apr 2017 13:17
Donation rank:

18 Mar 2022 17:39

Great guide.

Added some glue.
No. 4 forum spammer

No Support via PM!!

ProMods Senior Beta Tester since 2.30
ProMods Moderator since 1. January 2019

User avatar
OMNI du 31
Developer
Posts: 369
Joined: 20 May 2020 11:57
Location: Toulouse, France

18 Mar 2022 17:48

Thank you guys!
Yellow ranger since 2.60
Developer since 2.63

attom01
Posts: 4
Joined: 04 Nov 2020 16:10

15 Apr 2022 01:49

Thanks OMNI, could you do another on Triggers, when you have time, I can not find any guides.

User avatar
LudoDiabolo
Posts: 427
Joined: 08 Nov 2018 20:11
Donation rank:
Location: Nord France

23 Apr 2022 23:09

FR:
Vraiment un Guide essentiel , bravo a son auteur , je sais pas si cela peut aidez a mettre a jour et si certains s'en serve , mais il y a aussi c'est lignes de code qui sont pas mal .

g_bloom ( Enlevez l'effet Bloom ) 1 remet l'effet

g_brake_light_all 1 ( pour que les feux stop s'allume même avec le Jake break ou le ralentisseur et le cruiser a chaque diminution de la vitesse du cruiser les feux s'allume ) 0 pour désactivé .

g_auto_traffic_headlights 1 ( Pour que les feux s'allume automatiquement quand le soir tombe ) 0 désactive la ligne de code A TESTEZ CELUI CI CAR PAS ENCORE TEST

EN:
Really an essential Guide, congratulations to its author, I don't know if it can help to update and if some people use it, but there are also lines of code that are not bad. 0 for disabled. g_auto_traffic_headlights 1 (So that the lights turn on automatically when night falls) 0 deactivates the line of code A TEST THIS BECAUSE NOT YET TEST
Last edited by bmwGTR on 24 Apr 2022 12:46, edited 1 time in total.
Reason: added english translation - only english on the main forum!
ETS2 1.48 : Promods + Middle-East Add-On + TGS
ATS 1.48 : Promods Canada

shuttercox
Posts: 1
Joined: 20 Oct 2022 20:17

21 Sep 2023 07:27

will the skyboxes change overtime? or remain the same?



Post Reply

Return to “ProMods Academy”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests