How to : Contractor mod - Bring passengers in your truck

User avatar
Miketeg
Posts: 943
Joined: Tue Nov 01, 2016 1:06 pm

How to : Contractor mod - Bring passengers in your truck

Post by Miketeg »

Hi Folks,

Since i'm using this mod, I want to be able to get passenger into my truck. So I made little google search and found out a solution. Though it will be good to share it with you.

PLEASE NOTE : THAT WILL ONLY WORK WITH TRUCKS WHO HAS THE GIANTS PICKUP2014 AS BASE MODEL


Go into your modsetting folder (C:\Users\[...]\Documents\My Games\FarmingSimulator2019\modsSettings
open ContractorMod.xml with editor (notepad++ like)

under the comment line
"<!-- mods can be added here so they won't be overwritten if ContractorMod is updated -->"
Add this :

Code: Select all

<Passenger vehiclesName="$moddir$FS19_5th_Pack/pickup2014.xml" seatIndex="1" x="-0.4" y="0.9" z="0.5" rx="0" ry="0" rz="0"/>
<Passenger vehiclesName="$moddir$FS19_5th_Pack/pickup2014.xml" seatIndex="2" x="0.4" y="0.9" z="-0.4" rx="0" ry="0" rz="0"/>
<Passenger vehiclesName="$moddir$FS19_5th_Pack/pickup2014.xml" seatIndex="3" x="-0.4" y="0.9" z="-0.4" rx="0" ry="0" rz="0"/>
In my scenario, I just added it to my favorite truck, which is the pickup2014 of the 5th_pack.

You can add any vehicule (see the warning above). You just need to enter the path + xml file. You will need little knowledge to figure it out, but that's not hard at all.

You can instead add these into contractormod.xml of the savegame, in case you don't want it on all your save game

Image

Your truck will now have the place for 3 more passengers.
Last edited by Miketeg on Tue May 12, 2020 2:17 pm, edited 1 time in total.
Has been dairy farmer - From Quebec, Canada
French is my first language, please excuse my English :-)
Pict
Posts: 313
Joined: Thu Nov 02, 2017 3:41 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Pict »

That's one way of doing it.

The Contractor mod has a very cool tool for positioning passengers in real time in game, then adding the required lines to the game log file for you to copy into you mod.

It's the FS19_ContractorMod.debug.xml that you can find inside the Contractor mod zip file. The instructions are inside the .xml and it's easy to use.

Code: Select all

<!--
    Simply copy this file in your mods directory to enable ContractorMod debug commands.
    If you want to configure passenger for a new vehicle, add this kind of line to your ContractorMod.xml file.
    Sample are already present in this file to help you understand.

    <Passenger vehiclesName="$moddir$FS19_Mod_Name/FS19_Mod_File.xml" seatIndex="1" x="0.0" y="0.0" z="0.0" rx="0" ry="0" rz="0" />

    Then you can enter the vehicle with 2 characters and move the passenger to position it as you want by using following keys:
        MOVE_PASS_LEFT   : KEY_lctrl KEY_a
        MOVE_PASS_RIGHT  : KEY_lctrl KEY_d
        MOVE_PASS_TOP    : KEY_lctrl KEY_q
        MOVE_PASS_BOTTOM : KEY_lctrl KEY_z
        MOVE_PASS_FRONT  : KEY_lctrl KEY_w
        MOVE_PASS_BACK   : KEY_lctrl KEY_s
    Finally use this key to write in the log the line you will then replace in ContractorMod.xml file located in your mods directory.
        DUMP_PASS        : KEY_lctrl KEY_e
 -->
User avatar
Miketeg
Posts: 943
Joined: Tue Nov 01, 2016 1:06 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Miketeg »

Didn't know that ! Thanks for sharing, will give it a try.
Has been dairy farmer - From Quebec, Canada
French is my first language, please excuse my English :-)
Pict
Posts: 313
Joined: Thu Nov 02, 2017 3:41 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Pict »

You're welcome. I ran across it by chance and had a bit of fun adding passengers to a few wagons, even a bus :)

One thing it doesn't do is give you hot keys to rotate the passenger. But that's easy enough to do in the .xml
User avatar
Miketeg
Posts: 943
Joined: Tue Nov 01, 2016 1:06 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Miketeg »

Pict wrote: Mon May 11, 2020 10:01 pm You're welcome. I ran across it by chance and had a bit of fun adding passengers to a few wagons, even a bus :)

One thing it doesn't do is give you hot keys to rotate the passenger. But that's easy enough to do in the .xml
Just tried it, can't have it working. As soon as I add the .xml into my mod folder, it throws LUA error in my log when I enter vehicule.

Seems to be something related to input binding, but did not have time to debug.
Has been dairy farmer - From Quebec, Canada
French is my first language, please excuse my English :-)
Pict
Posts: 313
Joined: Thu Nov 02, 2017 3:41 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Pict »

Try backing up your inputbindings.xml then delete the working one, the game will build a new one. That way you will quickly know if it in the bindings.
manixx0011
Posts: 1
Joined: Sat May 16, 2020 11:42 am
Contact:

Re: How to : Contractor mod - Bring passengers in your truck

Post by manixx0011 »

as my friend @pict mention in above comment you can try this one

<!--
copy this file in your mods directory to enable ContractorMod debug commands.
If you want to configure passenger for a new vehicle, add this kind of line to your ContractorMod.xml file.
Sample are already present in this file to help you understand.

<Passenger vehiclesName="$moddir$FS19_Mod_Name/FS19_Mod_File.xml" seatIndex="1" x="0.0" y="0.0" z="0.0" rx="0" ry="0" rz="0" />

Then you can enter the vehicle with 2 characters and move the passenger to position it as you want by using following keys:
MOVE_PASS_LEFT : KEY_lctrl KEY_a
MOVE_PASS_RIGHT : KEY_lctrl KEY_d
MOVE_PASS_TOP : KEY_lctrl KEY_q
MOVE_PASS_BOTTOM : KEY_lctrl KEY_z
MOVE_PASS_FRONT : KEY_lctrl KEY_w
MOVE_PASS_BACK : KEY_lctrl KEY_s
and in last use this key to write in the log the line you will then replace in ContractorMod.xml file located in mods directory.
DUMP_PASS : KEY_lctrl KEY_e
-->

this worked for me i got the same in a techblog
User avatar
Miketeg
Posts: 943
Joined: Tue Nov 01, 2016 1:06 pm

Re: How to : Contractor mod - Bring passengers in your truck

Post by Miketeg »

Pict wrote: Tue May 12, 2020 10:12 pm Try backing up your inputbindings.xml then delete the working one, the game will build a new one. That way you will quickly know if it in the bindings.
I have deleted my inputbinding.

I have removed most of the mod out of my mod folder to keep only few tractors + contractor mods

As soon as I enter in ANY tractor, I got this error :
2020-05-20 09:25 ContractorMod:registerActionEvents() for DEBUG
2020-05-20 09:25 Error: Running LUA method 'update'.
2020-05-20 09:25 dataS/scripts/input/InputBinding.lua(778) : attempt to index local 'testAction' (a nil value)

If I remove the .debug.xml I can enter in vehicule, but can't edit passenger position.

Tractors has been added into contractormod.xml file (to add passenger)
Has been dairy farmer - From Quebec, Canada
French is my first language, please excuse my English :-)
User avatar
blue_painted
Posts: 1688
Joined: Wed Jan 31, 2018 3:50 pm
Location: UK

Re: How to : Contractor mod - Bring passengers in your truck

Post by blue_painted »

I'm trying to add a passenger to the Zetor Crystal mod but with no success:

This is my ContractorMod.xml file from the saveGame folder:-

Code: Select all

<ContractorMod>
    <workers numWorkers="2" enableSeveralDrivers="true" displayOnFootWorker="true">
        <worker name="Tomek" gender="male" playerColorIndex="0" playerBodyIndex="1" playerHatIndex="0" playerAccessoryIndex="0" playerHairIndex="1" playerJacketIndex="0" currentSeat="0" position="835.27618408203 111.50834655762 364.88961791992" rotation="-0.99398982524872 0.0014503002166748 -0.10946332663298" vehicleID="5"/>
        <worker name="Natalia" gender="female" playerColorIndex="13" playerBodyIndex="2" playerHatIndex="0" playerAccessoryIndex="0" playerHairIndex="2" playerJacketIndex="0" currentSeat="0" position="838.11383056641 110.25525665283 360.63946533203" rotation="-0.99119848012924 -0.043575905263424 -0.12500731647015" vehicleID="2"/>
    </workers>
    <displaySettings>
        <characterName x="0.982800" y="0.900000" size="0.024000"/>
        <playerName displayPlayerNames="true"/>
    </displaySettings>
	<passengerSeats displayWarning="false">
		<Passenger vehiclesName="$moddir$FS19_zetorCrystal8011/zetorCrystal8011.xml" seatIndex="1" x="0.4500" y="2.1000" z="-0.5000" rx="0" ry="0" rz="0" />
		<Passenger vehiclesName="$moddir$FS19_zetorCrystal8011/zetorCrystal.xml" seatIndex="1" x="0.4500" y="2.1000" z="-0.5000" rx="0" ry="0" rz="0" />
	</passengerSeats>	
</ContractorMod>
I have tried with without the Passenger nodes being enclosed in a parent <passengerSeats> node but in both cases, trying to make a second character enter the Zetor gives the message "No more space for a passenger in this vehicle". I can get a passenger to ride in the in-game pickup.

Any help gratefully received.
Playing new "Beest" Intel i7-11700F with GeForce GTX 3060 and XBOX controller
also £600 laptop - AMD Ryzen 5600H with GeForce GTX 3050 XBOX controller

Dairydeere's A Guide to Finding Farming Simulator Mods - Please give this a read and help spread awareness for respectful mod downloads
User avatar
blue_painted
Posts: 1688
Joined: Wed Jan 31, 2018 3:50 pm
Location: UK

Re: How to : Contractor mod - Bring passengers in your truck

Post by blue_painted »

It turns out to be related to my mods folder not being in the default location. I've got around it, so far, by making a modSettings folder two levels up.

I still can't get the move passengers to work though-- that's probably key bindings.
Playing new "Beest" Intel i7-11700F with GeForce GTX 3060 and XBOX controller
also £600 laptop - AMD Ryzen 5600H with GeForce GTX 3050 XBOX controller

Dairydeere's A Guide to Finding Farming Simulator Mods - Please give this a read and help spread awareness for respectful mod downloads
Post Reply