Adding a PTO to front of atriculated tractor....
Adding a PTO to front of atriculated tractor....
Am curious to know if anyone knows if possible to added a front PTO (with connection hoses, etc...) to the front of an articulated tractor??
Have attempted to do this, but the problem is that the PTO and hydraulic hose connections always seem to want to attach to the rear of the tractor instead of the front. This happens no matter if set the attacher joint indexes and/or the attachment nodes properly in the vehicle XML.
There seems to be a needed/specific line of code or specialization to allow the proper connection of a PTO and hydraulic hoses to the front of an articulated tractor??
Have attempted to do this, but the problem is that the PTO and hydraulic hose connections always seem to want to attach to the rear of the tractor instead of the front. This happens no matter if set the attacher joint indexes and/or the attachment nodes properly in the vehicle XML.
There seems to be a needed/specific line of code or specialization to allow the proper connection of a PTO and hydraulic hoses to the front of an articulated tractor??
Re: Adding a PTO to front of atriculated tractor....
There are no "special items" to consider for an articulated tractor - it is just the same as with any other tractor's front attacher.
I assume you have created all your attach points and corresponding connector items inside the vehicle's I3D file and assigned unique node identifications for the i3dMapping in the vehicle's XML? Did you choose the correct attacherJointIndices - those should be representing the nodes at the front attacher.
Which tractor are you trying to adapt? I've just done some "quick&dirty" test on the basegame Steiger Quadtrac and it is working as expected without issues.
I assume you have created all your attach points and corresponding connector items inside the vehicle's I3D file and assigned unique node identifications for the i3dMapping in the vehicle's XML? Did you choose the correct attacherJointIndices - those should be representing the nodes at the front attacher.
Which tractor are you trying to adapt? I've just done some "quick&dirty" test on the basegame Steiger Quadtrac and it is working as expected without issues.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
The way have always understood it for attacher joint configs is that the indexes are the order in which the are sequentially.LS-Lara wrote: ↑Tue Jul 30, 2024 2:25 pm There are no "special items" to consider for an articulated tractor - it is just the same as with any other tractor's front attacher.
I assume you have created all your attach points and corresponding connector items inside the vehicle's I3D file and assigned unique node identifications for the i3dMapping in the vehicle's XML? Did you choose the correct attacherJointIndices - those should be representing the nodes at the front attacher.
Which tractor are you trying to adapt? I've just done some "quick&dirty" test on the basegame Steiger Quadtrac and it is working as expected without issues.
Now, with what you describe, the approach I've taken would be incorrect in that an articulated tractor has at least two distinct components, that of the front half and then the back half of the tractor. So, with that, do the indexes start back at ONE between the front and back component?
Re: Adding a PTO to front of atriculated tractor....
That is indeed correct, but for the attacherJointIndices that are referenced as targets for the hoses etc. you have to consider each individual attacherJoint node.
So, in your example the pink area actually holds two indexes: "trailerAttacherJointBack" is index 2 and "trailerAttacherJointBackLow" is index 3.
The blue area then continues with index 4 and 5. Those should be referenced to for your hoses connections at the front. Maybe this could already resolve the issue ?
I'm not fully sure ATM how jointConfigurations might interfere with the counting, but they shouldn't at all.
Also, the tractor components / halves have no influence. No matter "where" the attachers are actually located, the indexing is always continuous.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
So, the focus is more on the NODE for an attacher joint is an attacher index, not that EACH <attacherJoint> is ONE index?? I ask this only because if use the same node for an <attacherJoint> in an effort to apply a different attacher TYPE.LS-Lara wrote: ↑Wed Jul 31, 2024 9:16 amThat is indeed correct, but for the attacherJointIndices that are referenced as targets for the hoses etc. you have to consider each individual attacherJoint node.
So, in your example the pink area actually holds two indexes: "trailerAttacherJointBack" is index 2 and "trailerAttacherJointBackLow" is index 3.
The blue area then continues with index 4 and 5. Those should be referenced to for your hoses connections at the front. Maybe this could already resolve the issue ?
I'm not fully sure ATM how jointConfigurations might interfere with the counting, but they shouldn't at all.
Also, the tractor components / halves have no influence. No matter "where" the attachers are actually located, the indexing is always continuous.
With that said, the NODE for the use of "trailerAttacherJointBack" would always be considered the same INDEX ??
Re: Adding a PTO to front of atriculated tractor....
No, no ... my wording seems to be a bit misleading here.JRock wrote: ↑Thu Aug 01, 2024 4:52 am So, the focus is more on the NODE for an attacher joint is an attacher index, not that EACH <attacherJoint> is ONE index?? I ask this only because if use the same node for an <attacherJoint> in an effort to apply a different attacher TYPE.
With that said, the NODE for the use of "trailerAttacherJointBack" would always be considered the same INDEX ??
With "node" I was trying to reference to the "XML node" itself (should rather call this "element" instead), not the "node"-attribute inside the "attacherJoint" tag.
Everything is exactly just as simple as you have imagined before: the indexes are counted in top-down sequence for each "attacherJoint" element, irrespective of attributes and enclosed elements.
Any block like this
Code: Select all
<attacherJoint ... >
<some />
<more />
<child />
<elements />
</attacherJoint>
So, if you re-use the same mapping node as an attribute in another attacherJoint element, it will be a new index.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
If the attacher indexes are indeed reliant upon EACH <attacherJoint></attacherJoint> entry in sequence, then I am not sure what else would be causing the PTO and connection hoses on the front to only want to want to connect to the rear/back indexes?? No matter if I am to follow that logic and apply it to the vehicle XML it insists on always connecting to the back. The other attaching points work just fine on the front, just the doggone PTO and hoses
Re: Adding a PTO to front of atriculated tractor....
Double-check all your assignments you applied for attacherJointIndices and nodes in the <connectionHoses> and <powerTakeOffs> sections.
Can you post the relevant sections corresponding to your above example or attach the complete XML?
Is this for a custom vehicle or some adaptation of an existing basegame one?
Can you post the relevant sections corresponding to your above example or attach the complete XML?
Is this for a custom vehicle or some adaptation of an existing basegame one?
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
Here is the attacherjoints in question:
It is particularly the attacherJointFront entry that has the problem with not wanting to attach the PTO and hoses to the front, but rather the back.
It is particularly the attacherJointFront entry that has the problem with not wanting to attach the PTO and hoses to the front, but rather the back.
Re: Adding a PTO to front of atriculated tractor....
Now, this is a different (and way more complex!) setup than the one previously posted, isn't it?
The image in post #3 has been overwritten with this new one also.
You have only shown the attacherJoints, but we need to check that the parameters assigned in the <connectionHoses> and <powerTakeOffs> sections are correctly corresponding to the indexes.
Maybe you should consider downsizing your example to a more simple one and verify the general function, before adding more configurations.
The image in post #3 has been overwritten with this new one also.
You have only shown the attacherJoints, but we need to check that the parameters assigned in the <connectionHoses> and <powerTakeOffs> sections are correctly corresponding to the indexes.
Maybe you should consider downsizing your example to a more simple one and verify the general function, before adding more configurations.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
So what I had simply done was to put some test <attacherJoints> in to understand how the indexes work. No matter what I do or what configuration, the front PTO or connection hoses always want to connect to the back....so confusing Regardless of the two posts have shown an example of, neither one works correctly when apply what should be the appropriate attacher joint indexesLS-Lara wrote: ↑Tue Aug 06, 2024 1:19 pm Now, this is a different (and way more complex!) setup than the one previously posted, isn't it?
The image in post #3 has been overwritten with this new one also.
You have only shown the attacherJoints, but we need to check that the parameters assigned in the <connectionHoses> and <powerTakeOffs> sections are correctly corresponding to the indexes.
Maybe you should consider downsizing your example to a more simple one and verify the general function, before adding more configurations.
Re: Adding a PTO to front of atriculated tractor....
Adding more complexity is not really a good idea in resolving the issue.
You still haven't given us any information on how you implemented the attacherJoint index in the <connectionHoses> and <powerTakeOffs> sections. So, without a full picture, nobody can assist properly.
Also, including attacherJointConfigurations is another step ahead of standard setup. Looking at how Giants handles this, you may need to consider defining powerTakeOffConfigurations and connectionHoseConfigurations as well.
For a simple working template, you should take a basegame tractor without configurations, duplicate the back attacher to the front and adapt the XML accordingly.
Quick and dirty example of CASE Steiger Quadtrac works without any issues for me and pto/hoses/cables attach correctly to the front:
I3D file
XML mapping
XML attacher joints
XML connection hoses
XML power take offs
You still haven't given us any information on how you implemented the attacherJoint index in the <connectionHoses> and <powerTakeOffs> sections. So, without a full picture, nobody can assist properly.
Also, including attacherJointConfigurations is another step ahead of standard setup. Looking at how Giants handles this, you may need to consider defining powerTakeOffConfigurations and connectionHoseConfigurations as well.
For a simple working template, you should take a basegame tractor without configurations, duplicate the back attacher to the front and adapt the XML accordingly.
Quick and dirty example of CASE Steiger Quadtrac works without any issues for me and pto/hoses/cables attach correctly to the front:
I3D file
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
What is confirmed to work on the back attacherJoints with the last example I shared are these indexes:
So, with all this functional for the back attacherJoints would stand to reason that the next sequential attacher index for the front connections should be 12, no? That being the case, this still doesn't seem to allow the PTO and hose connections to go to the front attacherJoints.
Code: Select all
<connectionHoses>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="airDoubleRed" node="airDoubleStorage">
<objectChange node="airDoubleStorageVis" rotationActive="130 0 0" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="airDoubleYellow" node="airDoubleControl">
<objectChange node="airDoubleControlVis" rotationActive="130 0 0" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="electric" node="backElectric"/>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicIn" node="hydraulic01_in">
<objectChange node="hydraulic01_in_cover" rotationActive="0 0 -90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicOut" node="hydraulic01_out">
<objectChange node="hydraulic01_out_cover" rotationActive="0 0 90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicIn" node="hydraulic02_in">
<objectChange node="hydraulic02_in_cover" rotationActive="0 0 -90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicOut" node="hydraulic02_out">
<objectChange node="hydraulic02_out_cover" rotationActive="0 0 90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicIn" node="hydraulic03_in">
<objectChange node="hydraulic03_in_cover" rotationActive="0 0 -90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicOut" node="hydraulic03_out">
<objectChange node="hydraulic03_out_cover" rotationActive="0 0 90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicIn" node="hydraulic04_in">
<objectChange node="hydraulic04_in_cover" rotationActive="0 0 -90" rotationInactive="0 0 0"/>
</target>
<target attacherJointIndices="1 2 5 6 7 8 9 10 11" type="hydraulicOut" node="hydraulic04_out">
<objectChange node="hydraulic04_out_cover" rotationActive="0 0 90" rotationInactive="0 0 0"/>
</target>
</connectionHoses>
Code: Select all
<powerTakeOffs>
<output attacherJointIndices="1 2 5 6" outputNode="ptoBack"/>
</powerTakeOffs>
Re: Adding a PTO to front of atriculated tractor....
Which ones are the attacherJoints at the front at all ? Only the very last one at the bottom ?
That one should probably be index #1.
By some testing I noticed that apparently the single attacherJoints are considered in advance of those included inside configurations.
This would also explain, why your PTO and hoses attach to the back.
If that still doesn't resolve the issue, try to attach the full XML so we can have a look at the complete code context.
That one should probably be index #1.
By some testing I noticed that apparently the single attacherJoints are considered in advance of those included inside configurations.
This would also explain, why your PTO and hoses attach to the back.
If that still doesn't resolve the issue, try to attach the full XML so we can have a look at the complete code context.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
Yes, the attacherJoints at the very bottom are indeed the ones for the front. I have tried to put that as index#1 also as #4, #7, and #12 as of last and in all cases the front PTO and hose connections will only connect to the back.LS-Lara wrote: ↑Thu Aug 08, 2024 5:20 pm Which ones are the attacherJoints at the front at all ? Only the very last one at the bottom ?
That one should probably be index #1.
By some testing I noticed that apparently the single attacherJoints are considered in advance of those included inside configurations.
This would also explain, why your PTO and hoses attach to the back.
If that still doesn't resolve the issue, try to attach the full XML so we can have a look at the complete code context.
Simply just not understanding how the attacher indexes are being read