colPart & objectChange

Your forum for all discussions around Modding.
User avatar
Vanquish081
Posts: 329
Joined: Wed Apr 19, 2017 10:29 am

colPart & objectChange

Post by Vanquish081 »

Hi, I use this option in xml for hide colPart, but no work

Code: Select all

    <objectChanges>
        <objectChange node="0>14|10" visibilityActive="false"/>
    </objectChanges>
Doesn't it work or do I something wrong?
BigC92
Posts: 4833
Joined: Tue Mar 17, 2015 5:25 pm

Re: colPart & objectChange

Post by BigC92 »

Your computers gonna blow up! Hit the deck, no shouldn't that false be true? Ive seen eustace pharmer with these weirdo mods, and everytime he wants to use something, he types in true and it works, maybe try that?
User avatar
TSM
Posts: 670
Joined: Thu Nov 06, 2014 7:45 pm
Location: Lancashire, UK
Contact:

Re: colPart & objectChange

Post by TSM »

Vanquish081 wrote:Hi, I use this option in xml for hide colPart, but no work

Code: Select all

    <objectChanges>
        <objectChange node="0>14|10" visibilityActive="false"/>
    </objectChanges>
Doesn't it work or do I something wrong?
This is an example of how I got spare wheel to change on one of my mods. every true needs a false (like BigC92 said :P)

Code: Select all

    <wheelConfigurations>
        <wheelConfiguration name="Standard" price="0">
            <wheels autoRotateBackSpeed="1.7">
                <wheel rotSpeed="1" restLoad="3.3" repr="0>0|0|0" driveNode="0>0|0|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" configIndex="manFront" isLeft="true" initialCompression="30" suspTravel="0.32" spring="32" damper="50" hasTireTracks="true" hasParticles="true"/>
                <wheel rotSpeed="1" restLoad="3.3" repr="0>0|1|0" driveNode="0>0|1|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/trelleborg/TwinRadial_500_60R22_5.xml" configIndex="manFront" isLeft="false" initialCompression="30" suspTravel="0.32" spring="32" damper="50" hasTireTracks="true" hasParticles="true"/>
                <wheel rotSpeed="0" restLoad="1.6" repr="0>0|2" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" configIndex="manBack" isLeft="true" initialCompression="10" suspTravel="0.22" spring="62" damper="50" hasTireTracks="true" hasParticles="true"/>
                <wheel rotSpeed="0" restLoad="1.6" repr="0>0|3" forcePointRatio="0.3" filename="$data/vehicles/wheels/trelleborg/TwinRadial_600_50R22_5.xml" configIndex="manBack" isLeft="false" initialCompression="10" suspTravel="0.22" spring="62" damper="50" hasTireTracks="true" hasParticles="true"/>
            </wheels>
			 <objectChange node="0>0|4|0" visibilityActive="true" />
			 <objectChange node="0>0|4|1" visibilityActive="false" />
		</wheelConfiguration>
        <wheelConfiguration name="road" price="600" icon="$dataS2/menu/hud/configurations/config_wheel_broad.png" >
            <wheels autoRotateBackSpeed="1.7">
                <wheel rotSpeed="1" restLoad="3.3" repr="0>0|0|0" driveNode="0>0|0|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckFront" isLeft="true"  initialCompression="30" suspTravel="0.32" spring="32" damper="50" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="1" restLoad="3.3" repr="0>0|1|0" driveNode="0>0|1|0|0|0" forcePointRatio="0.2" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckFront" isLeft="false" initialCompression="30" suspTravel="0.32" spring="32" damper="50" hasTireTracks="true" hasParticles="true" />
                <wheel rotSpeed="0" restLoad="1.6" repr="0>0|2" forcePointRatio="0.3" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="true" initialCompression="10" suspTravel="0.22" spring="62" damper="50" hasTireTracks="true" hasParticles="true" >
				<additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="true" offset="0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
                </wheel>
                <wheel rotSpeed="0" restLoad="1.6" repr="0>0|3" forcePointRatio="0.3" filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" configIndex="truckBack"  isLeft="false" initialCompression="10" suspTravel="0.22" spring="62" damper="50" hasTireTracks="true" hasParticles="true" >
	            <additionalWheel filename="$data/vehicles/wheels/lizard/315_80R22_5.xml" isLeft="false" offset="0.38" configIndex="truckBack" addRaycast="true" hasTireTracks="true" />
				</wheel>
            </wheels>
			<objectChange node="0>0|4|0" visibilityActive="false" />
			<objectChange node="0>0|4|1" visibilityActive="true" />
			<objectChange node="0>0|2" translationActive="0.7 0.525 -3.668" />
            <objectChange node="0>0|3" translationActive="-0.7 0.525 -3.668" />
		    </wheelConfiguration>
		</wheelConfigurations>
User avatar
Vanquish081
Posts: 329
Joined: Wed Apr 19, 2017 10:29 am

Re: colPart & objectChange

Post by Vanquish081 »

Yes, there are more lines:

Code: Select all

    <objectChanges>
        <objectChange node="0>14|10" visibilityActive="true"/>
        <objectChange node="0>17" visibilityActive="true"/>
        <objectChange node="0>14|2" visibilityActive="false"/>
        <objectChange node="0>15" visibilityActive="false"/>
    </objectChanges>
but isn't hidden xD
User avatar
TSM
Posts: 670
Joined: Thu Nov 06, 2014 7:45 pm
Location: Lancashire, UK
Contact:

Re: colPart & objectChange

Post by TSM »

you using config system in the shop or trying to do it with a key press?
User avatar
Vanquish081
Posts: 329
Joined: Wed Apr 19, 2017 10:29 am

Re: colPart & objectChange

Post by Vanquish081 »

in the shop, are options for a model or other, the two models use the same i3d, but need some parts and others no. No is in wheels, is out in xml.

In FS15 used "spareParts" and in FS17 use "objectChange".
User avatar
TSM
Posts: 670
Joined: Thu Nov 06, 2014 7:45 pm
Location: Lancashire, UK
Contact:

Re: colPart & objectChange

Post by TSM »

option one

Code: Select all

<objectChange node="0>0|4|0" visibilityActive="true" />
 <objectChange node="0>0|4|1" visibilityActive="false" />
option two

Code: Select all

<objectChange node="0>0|4|0" visibilityActive="false" />
 <objectChange node="0>0|4|1" visibilityActive="true" />
Can't be defined in the same config option, if that makes any sense.
Post Reply