[Solved]Triple Axle trailer tire config problem...

Your forum for all discussions around Modding.
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

[Solved]Triple Axle trailer tire config problem...

Post by ThaFarmer »

Hi all,

I don't know if anyone can help me... I'm trying to make my 1rst mod, a low-bed based on the in-game Goldhofer StzVP3, but I'm stuck on the back wheels config, whi I want to have 2 configs, duals and single broad but I get a meaningless error once in-game...

I copied the in-game version in a folder and took bits of stuff and configs here and there(probly a dozen of different mods) to make my mod...

If anyone wants to test the config, It can be tested:
- go in "FS17 install folder"\data\vehicles\trailers\goldhofer
- Copy all files in a folder: "My Documents"\My FS17 Mods\STZ-VP_3
- Replace the StoreData and WheelConfigurations content by the following:

Here's the config:

Code: Select all

    <storeData>
        <name>STZ VP 3 Back</name>
        <functions>
            <function>$l10n_function_lowLoader</function>
        </functions>
        <image>texturen/store_goldhoferStzVp3Back.png</image>
        <price>12000</price>
        <dailyUpkeep>20</dailyUpkeep>
        <lifetime>600</lifetime>
        <rotation>0</rotation>
        <brand>GOLDHOFER</brand>
        <category>lowloaders</category>
        <vertexBufferMemoryUsage>0</vertexBufferMemoryUsage>
        <indexBufferMemoryUsage>0</indexBufferMemoryUsage>
        <textureMemoryUsage>0</textureMemoryUsage>
        <instanceVertexBufferMemoryUsage>0</instanceVertexBufferMemoryUsage>
        <instanceIndexBufferMemoryUsage>0</instanceIndexBufferMemoryUsage>
    </storeData>

    <typeDesc>$l10n_typeDesc_lowLoader</typeDesc>
    <filename>goldhoferStzVp3Back.i3d</filename>

    <size width="3.5" length="12" />
	
	<wheelConfigurations>
   
		 <wheelConfiguration name="$l10n_configuration_valueDefault" price="0">
			<wheels>
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|0" driveNode="0>0|2|1|0|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|1" driveNode="0>0|2|1|1|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|2" driveNode="0>0|2|1|2|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.5" steeringAxleRotMax="40" steeringAxleRotMin="-40" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|3" driveNode="0>0|2|1|3|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.5" steeringAxleRotMax="40" steeringAxleRotMin="-40" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|4" driveNode="0>0|2|1|4|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="60" steeringAxleRotMin="-60" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0"  restLoad="0.7" repr="0>0|2|0|5" driveNode="0>0|2|1|5|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.7" steeringAxleRotMax="60" steeringAxleRotMin="-60" >
							<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />
						</wheel>
			</wheels>
		</wheelConfiguration>

		<wheelConfiguration name="$l10n_configuration_valueWheelBroad" price="600" icon="$dataS2/menu/hud/configurations/config_wheel_broad.png">
			<wheels>
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|0" driveNode="0>0|2|1|0|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" />
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|1" driveNode="0>0|2|1|1|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" />
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|2" driveNode="0>0|2|1|2|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.5" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|3" driveNode="0>0|2|1|3|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.5" steeringAxleRotMax="40" steeringAxleRotMin="-40" />
				<wheel tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|4" driveNode="0>0|2|1|4|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="true"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.7" steeringAxleRotMax="60" steeringAxleRotMin="-60" />
				<wheel tipOcclusionAreaGroupId="2" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|5" driveNode="0>0|2|1|5|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/T404_600_50R22_5.xml" isLeft="false"  initialCompression="20" suspTravel="0.25" spring="55"  damper="20" hasParticles="true" hasTireTracks="true" steeringAxleScale="-0.7" steeringAxleRotMax="60" steeringAxleRotMin="-60" />
			</wheels>
		</wheelConfiguration>
	</wheelConfigurations>
	
and here's the error I have during the game's loading...
Error: D:/Userss/User/Documents/My Games/FarmingSimulator2017/mods/ModdedGoldhofer/goldhoferStzVp3Back.xml. tipOcclusionAreaGroupId. steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" >

<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />

</wheel>

<wheel tipOcclusionAreaGroupId="2" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|1" driveNode="0>0|2|1|1|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" initialCompression="20" suspTravel="0.25" spring="55" damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.3" steeringAxleRotMax="20" steeringAxleRotMin="-20" >

<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />

</wheel>

<wheel tipOcclusionAreaGroupId="1" rotSpeed="0" restLoad="0.7" repr="0>0|2|0|2" driveNode="0>0|2|1|2|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" initialCompression="20" suspTravel="0.25" spring="55" damper="20" hasParticles="true" hasTireTracks="true" hasParticles="true" steeringAxleScale="-0.5" steeringAxleRotMax="40" steeringAxleRotMin="-40" >

<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="-0.38" configIndex="truckBack" addRaycast="true" hasParticles="true" hasTireTracks="true" />

</wheel>
If anyone could tell me what's the problem, I'd be very happy...
Last edited by ThaFarmer on Tue Aug 08, 2017 6:17 pm, edited 1 time in total.
User avatar
Smith Modding
Posts: 2996
Joined: Sat May 14, 2016 12:42 pm
Location: Harris County, Georgia

Re: Need Help... Triple Axle trailer tire config problem...

Post by Smith Modding »

Those errors pop up when you made a possible typo... did you change anything at all when you copied and pasted it? Did you copy and paste everything that was in the xml?
Smith Modding Co.
Christian Based Modding
Isaiah 30:23- He will also send you rain for the seed you sow in the ground, and the food that comes from the land will be rich and plentiful. In that day your cattle will graze in broad meadows.:
Playing FS15-19 on PC
Playing too much FS19 :mrgreen:
Specs-
i5-7300HQ|NVIDIA GTX 1050ti|16GB DDR4 RAM|1TB/500GB SSD/256GB M.2|Windows 10
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

Re: Need Help... Triple Axle trailer tire config problem...

Post by ThaFarmer »

I finally fixed it myself, by changing the tires config for a "semi-wide" trelleborg T404_400_55 as default and TT404_500_45 as wide tires...

Whatever dual-tire configs I tried(and I must have tested 20 different combinations), I had errors, so I bypassed the proble with those configs...

And after doing a few tests, I gotta say it gives a really good looking to this tailer :wink:
User avatar
Smith Modding
Posts: 2996
Joined: Sat May 14, 2016 12:42 pm
Location: Harris County, Georgia

Re: Need Help... Triple Axle trailer tire config problem...

Post by Smith Modding »

You got pics?
Smith Modding Co.
Christian Based Modding
Isaiah 30:23- He will also send you rain for the seed you sow in the ground, and the food that comes from the land will be rich and plentiful. In that day your cattle will graze in broad meadows.:
Playing FS15-19 on PC
Playing too much FS19 :mrgreen:
Specs-
i5-7300HQ|NVIDIA GTX 1050ti|16GB DDR4 RAM|1TB/500GB SSD/256GB M.2|Windows 10
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

Re: Need Help... Triple Axle trailer tire config problem...

Post by ThaFarmer »

Smith Modding wrote:You got pics?
I've also found a script to raise up the back wheels one to lock the load , and extentions that widens the low-bed. I also added a back-attacher for hauling more stuff Check this:
Image
Image
Image
Image

It's good looking, and will be Very useful on my main farm on RattleSnake Valley :P
I've figured out most of the stuff, no stuttering when extending or lifting the back end.
Only 2 things remains:
- Why the hell once it's attached, I can't detach the back end anymore? :confusednew: I must have f*** up something somewhere...
- How to get the back wheels turn when extending the back end...

Whit thos two things, I am pretty sure I'll figure out by comparing with the stock model...

BTW the truck I used isn't the one I'm working on... It's coming from WoosMeadows Modding Farm
BigC92
Posts: 4833
Joined: Tue Mar 17, 2015 5:25 pm

Re: Need Help... Triple Axle trailer tire config problem...

Post by BigC92 »

Was that script already ingame? I would like to know how you did what you did, cause its not on console, that i can see.
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

Re: Need Help... Triple Axle trailer tire config problem...

Post by ThaFarmer »

And to those who might wonder if I will submit this and/or my truck to ModHub once finished, the answer is no.

Maybe(very slim chances) I'll openly share it direcly on the forum with either G-Drive or Dropbox links. It'll be OpenSource mods, free to use and modify. It'll be a real headache to trace back and contact every author of all the bits I found here and there(The authors will be mentionned, but most comes from Giants BTW)...
The problem is, that those bits I used come from modhoster, but the versions I found are heavily bugged...
Examples:
- The back-end lifting and extenting were stuttering like hell even went all hell loose jumping... I fixed it(secret fix! I worked many hours on this)
- The tires weren't behaving correctly under load, I fixed it by changing them(f*** like hell from 8am 'till ~7pm on this)

For the Lifting, if it's a script(I'm pretty sure it's simple physics), it's a "Free-To-Use" common script I found and managed to make it work by studying other mods that are using it...

Code: Select all

Script: toggleAnimParts.lua
26/10/16 : convert for Farming Simulator 17 by Frabel ls modding 
frei verwendbar - keine erlaubnis nötig  |  free for use - no permission needed.
And as I use this script As-Is(and will mention its author in credits if I share this mod), I am respecting it's usage.
BTW... I ain't a snitch, but none of the other mods(not made by ls-modding) that I studied and are using this script are mentionning its author in the credits...
How do I determine the real author of the script "ObjectAttacher.lua"(to lock stuff on trailer) when I found at least 4 different versions of it, but with only minor differences?

All the textures I used are extracted from in-game stuff.

Do I have to mention authors of XML config lines I studied and adapted to my trailer(when in fact the configs are originally coming from Giants)?
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

[Solved]Re: Triple Axle trailer tire config problem...

Post by ThaFarmer »

BigC92 wrote:Was that script already ingame? I would like to know how you did what you did, cause its not on console, that i can see.
I digged into the lifting/lowering mechanics of the back-end, and I'm pretty sure it's an added combination of physics already implemented in the game, as the extending and the turning wheels.

Finally figured out my back-end detach problem and a behaving details that were bothering me...
I can't give details, it would give out too much about my mod...
One minor glitch I can't figure out: the wheels don't turn when extending the back-end, but my guess is that it's related to the tire config change, as it's no more loaded as dynamic objects...
User avatar
Smith Modding
Posts: 2996
Joined: Sat May 14, 2016 12:42 pm
Location: Harris County, Georgia

Re: [Solved]Triple Axle trailer tire config problem...

Post by Smith Modding »

toggleAnimatedParts.lua is an ingame script, so that's good. The locking script isn't, but the dynamicMountAttacher is. So you could use that instead
Smith Modding Co.
Christian Based Modding
Isaiah 30:23- He will also send you rain for the seed you sow in the ground, and the food that comes from the land will be rich and plentiful. In that day your cattle will graze in broad meadows.:
Playing FS15-19 on PC
Playing too much FS19 :mrgreen:
Specs-
i5-7300HQ|NVIDIA GTX 1050ti|16GB DDR4 RAM|1TB/500GB SSD/256GB M.2|Windows 10
BigC92
Posts: 4833
Joined: Tue Mar 17, 2015 5:25 pm

Re: [Solved]Re: Triple Axle trailer tire config problem...

Post by BigC92 »

ThaFarmer wrote:
BigC92 wrote:Was that script already ingame? I would like to know how you did what you did, cause its not on console, that i can see.
I digged into the lifting/lowering mechanics of the back-end, and I'm pretty sure it's an added combination of physics already implemented in the game, as the extending and the turning wheels.

Finally figured out my back-end detach problem and a behaving details that were bothering me...
I can't give details, it would give out too much about my mod...
One minor glitch I can't figure out: the wheels don't turn when extending the back-end, but my guess is that it's related to the tire config change, as it's no more loaded as dynamic objects...
It'd be super useful on GCV, i have a little shortcut from sheep to the cows, and i have to go over railroad tracks to get there, its sad to get high centered on 1 track line, I've searched on my trailer, and its nowhere to be seen.
ThaFarmer
Posts: 337
Joined: Fri Jun 09, 2017 4:14 am

Re: [Solved]Triple Axle trailer tire config problem...

Post by ThaFarmer »

Sadly as you're on console(if I understood well)... As I haven't published any mods on modhub yet, it won't pass, and for many other reasons...
If you were on PC, I'd offer you to pm you a private link... And still, it needs some more work before I could share it...
BigC92
Posts: 4833
Joined: Tue Mar 17, 2015 5:25 pm

Re: [Solved]Triple Axle trailer tire config problem...

Post by BigC92 »

No no no, if Giants had that script already ingame for console and PC, it'd be perfect, but i wonder why its not ingame though. Ik you haven't published anything, but if Giants wants to make everything to the real deal, then why didnt the include all these scripts for all these trailers, i wouldn't think it'd be hard to do.
Post Reply