Mod Request: Water tanker

BCRancher
Posts: 73
Joined: Fri Dec 14, 2012 7:01 pm

Mod Request: Water tanker

Post by BCRancher »

Preferably a semi-tractor sized one :) There's a Russian fuel truck mod that could provide the model (reskin, change product type).

Please and thank you.
User avatar
zanarkin
Posts: 120
Joined: Sun Nov 11, 2012 10:40 pm

Re: Mod Request: Water tanker

Post by zanarkin »

BCRancher
Posts: 73
Joined: Fri Dec 14, 2012 7:01 pm

Re: Mod Request: Water tanker

Post by BCRancher »

Wow that's awesome thanks for the link.

If anyone feels inclined, the truck linked could use some work. Max speed is 15mph and the reverse beeping doesnt work. (I think it should probably be re-skinned as well for mass consumption.. with permissions of course) It does however .. haul water and fill greenhouses so that's 90% of it done.
User avatar
zanarkin
Posts: 120
Joined: Sun Nov 11, 2012 10:40 pm

Re: Mod Request: Water tanker

Post by zanarkin »

BCRancher wrote:Wow that's awesome thanks for the link.

If anyone feels inclined, the truck linked could use some work. Max speed is 15mph and the reverse beeping doesnt work. (I think it should probably be re-skinned as well for mass consumption.. with permissions of course) It does however .. haul water and fill greenhouses so that's 90% of it done.
I hope to get time this week to work on the handling and speed. It drives like a bicycle with square wheels at the moment. If someone else wants to tackle the handling, by all means.
Col.Neville
Posts: 108
Joined: Mon Dec 10, 2012 8:06 pm

Re: Mod Request: Water tanker

Post by Col.Neville »

http://fs-uk.com/forum/index.php?topic=60537.0 here is a link to the handling section decoded for the xml. so lower the center of gravity, increase the lateral stiffness. right now you have <component1 centerOfMass="0 0.01 0.1" should probably be like 0 -0.6 0 for that instead. and lateralStiffness="2" should probably be more like 20.
User avatar
zanarkin
Posts: 120
Joined: Sun Nov 11, 2012 10:40 pm

Re: Mod Request: Water tanker

Post by zanarkin »

Col.Neville wrote:http://fs-uk.com/forum/index.php?topic=60537.0 here is a link to the handling section decoded for the xml. so lower the center of gravity, increase the lateral stiffness. right now you have <component1 centerOfMass="0 0.01 0.1" should probably be like 0 -0.6 0 for that instead. and lateralStiffness="2" should probably be more like 20.
Thanks for this. I didn't make the mod but just found it online and made it handle water. This will be a big help as I am clueless with the handling and speed codes and what they mean. I believe the biggest issue with this mod in the original modder built this truck on top of a small tractor so the truck is far larger than the actual hit box. I can easily make it go faster but faster = flips over constantly so showing me those mass and other codes will be a big help.
Nina
Posts: 327
Joined: Thu Nov 15, 2012 7:20 pm

Re: Mod Request: Water tanker

Post by Nina »

when you get a final version working, please post it in it's own thread so we can all download it. or mabey submit it to the main site to see if they add it to their mods list
Col.Neville
Posts: 108
Joined: Mon Dec 10, 2012 8:06 pm

Re: Mod Request: Water tanker

Post by Col.Neville »

try this. replace the wheels section with the following and inside the components section of that scaniadieseltank.xml file
<wheels autoRotateBackSpeed="2">
<wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>37" driveNode="0>37" radius="0.692" deltaY="0.20" suspTravel="0.2" spring="100" damper="50" mass="0.16" longitudalStiffness="1" lateralStiffness="8" />
<wheel rotSpeed="70" rotMax="30" rotMin="-30" driveMode="2" repr="0>38" driveNode="0>38" radius="0.692" deltaY="0.20" suspTravel="0.2" spring="100" damper="50" mass="0.16" longitudalStiffness="1" lateralStiffness="8" />
<wheel rotSpeed="-70" rotMax="30" rotMin="-30" driveMode="1" repr="0>39" radius="0.673" deltaY="0.1" suspTravel="0.2" spring="100" damper="50" mass="0.4185" longitudalStiffness="1" lateralStiffness="2" />
<wheel rotSpeed="-70" rotMax="30" rotMin="-30" driveMode="1" repr="0>40" radius="0.673" deltaY="0.1" suspTravel="0.2" spring="100" damper="50" mass="0.4185" longitudalStiffness="1" lateralStiffness="2" />
<wheel rotSpeed="0" driveMode="1" repr="0>41" radius="0.673" deltaY="0.1" suspTravel="0.2" spring="100" damper="50" mass="0.4185" longitudalStiffness="0.9" lateralStiffness=".2" />
<wheel rotSpeed="0" driveMode="1" repr="0>42" radius="0.673" deltaY="0.1" suspTravel="0.2" spring="100" damper="50" mass="0.4185" longitudalStiffness="0.9" lateralStiffness=".2" />
</wheels>

and

<component1 centerOfMass="0 -0.6 0" solverIterationCount="10" />

changed it so its 4wheel steering now as well. the lateralstiffness is really lateral grip of the tires so you have to loosen it up in rear to get them to slide instead of grab in a turn. now you can do a full lock turn at 50 mph without flipping. tested it fully loaded but there shouldnt be that big a difference between loaded and empty. moved the center of mass down as well.
BCRancher
Posts: 73
Joined: Fri Dec 14, 2012 7:01 pm

Re: Mod Request: Water tanker

Post by BCRancher »

I tried those values. The 4 wheel steering looks odd. I got it up to 11mph and tried to turn and ended up with 1/4 of the truck stuck in the ground on it's side with the rear wheels in the air spinning.

I've removed the mod from my game until it's more stable.
Col.Neville
Posts: 108
Joined: Mon Dec 10, 2012 8:06 pm

Re: Mod Request: Water tanker

Post by Col.Neville »

BCRancher wrote:I tried those values. The 4 wheel steering looks odd. I got it up to 11mph and tried to turn and ended up with 1/4 of the truck stuck in the ground on it's side with the rear wheels in the air spinning.

I've removed the mod from my game until it's more stable.
lemme guess using the keyboard to drive? if so turn down the wheel rotSpeed="70" to 35 instead that will slow down rate the wheels turn the max deflection. with the keyboard its either off or on. that will make it so the transition isnt so sudden. that doesnt show up using a wheel since you are slowly feeding in deflection instead of going from 0 to full in an instant. all of the rot values are steering not rpm
BCRancher
Posts: 73
Joined: Fri Dec 14, 2012 7:01 pm

Re: Mod Request: Water tanker

Post by BCRancher »

Code: Select all

<wheels autoRotateBackSpeed="2.5">
        <wheel rotSpeed="60" rotMax="40" rotMin="-40" driveMode="2" repr="0>37" driveNode="0>37" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="90" mass="0.3" lateralStiffness="14"/>
        <wheel rotSpeed="60" rotMax="40" rotMin="-40" driveMode="2" repr="0>38" driveNode="0>38" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="90" mass="0.3" lateralStiffness="14"/>
        <wheel rotSpeed="0" driveMode="1" repr="0>39" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="95" mass="0.3" lateralStiffness="14"/>
        <wheel rotSpeed="0" driveMode="1" repr="0>40" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="95" mass="0.3" lateralStiffness="14"/>
        <wheel rotSpeed="0" driveMode="1" repr="0>41" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="95" mass="0.3" lateralStiffness="14"/>
        <wheel rotSpeed="0" driveMode="1" repr="0>42" radius="0.55" deltaY="0.1" suspTravel="0.2" spring="100" damper="95" mass="0.3" lateralStiffness="14"/>
    </wheels>
    <motor minRpm="100" maxRpm="840 1300 4250 700" maxTorques="4.95 7 -1 4.25" brakeForce="25" lowBrakeForceScale="0.5" lowBrakeForceSpeedLimit="1" accelerations="0.4 1 1 1" forwardGearRatio="11.5"backwardGearRatio="8" differentialRatio="1" rpmFadeOutRange="20">
		<torque rpm="2250" torque="15"/>

		<backwardTorque rpm="250" torque="7.5"/>
		<backwardTorque rpm="450" torque="4.3"/>
    </motor>

    <accelerationSpeed maxAcceleration="0.12" deceleration="0.25" backwardDeceleration="0.7" />

    <fuelCapacity>340</fuelCapacity>
    <fuelUsage>0.0029</fuelUsage>
    <downForce>80</downForce> 
Fixed: When i cut/pasted from another Scania truck I over-wrote the repr tags. This truck now performs *close* to acceptable. It still tips a little but it is more useable than before. Edit: Ha ! fixed again driveNode same problem as repr :D
User avatar
zanarkin
Posts: 120
Joined: Sun Nov 11, 2012 10:40 pm

Re: Mod Request: Water tanker

Post by zanarkin »

Cool, thanks. Can't wait to try it out tonight :)

If you really want to tackle a impossible issue, try to make this into a fuel truck. A fuel truck that is not simply a gas station trigger with limitless fuel (easy) but instead just like the water truck - you fill it up and then drive around filling up tractors with it's payload.

I got the truck code correct and in game it says 'fill implement' and shows a payload of 0%. The problem presents itself when you try to fill it however as the game insists on filling the gas tank and not the payload. I think this is something the game just cannot do without a custom lua.
KMVastro
Posts: 69
Joined: Sat Nov 24, 2012 12:26 am

Re: Mod Request: Water tanker

Post by KMVastro »

I tried the code that BCRancher posted, but now the tanker moves with a stuttering/jerky motion. I am currently undecided as to whether I will just live with the stuttering, or revert the code to the earlier poor handling.
BCRancher
Posts: 73
Joined: Fri Dec 14, 2012 7:01 pm

Re: Mod Request: Water tanker

Post by BCRancher »

odd, I know the deltaY arguments still need to be fixed, the image of the tires sink into the ground because the measurement is too small but i put this truck on the back burner after starting a new map. You could try reducing the value for lateralStiffness; I got annoyed with this field because you have to reload every time and I couldnt nail it down to just the right effect.

In any case, this is definitely alpha work; and it will probably never make it to a beta much less a final upload anywhere unless Zanarkin fixes/publishes it. I do not have image/model editing software and it's skinned with his Black Diamond Farms logo.
KMVastro
Posts: 69
Joined: Sat Nov 24, 2012 12:26 am

Re: Mod Request: Water tanker

Post by KMVastro »

Yes, tweaking numbers is painfully slow, with having to constantly reload.

I don't mind the texture. I think he did a decent job with it.
Post Reply