Adding a PTO to front of atriculated tractor....
Re: Adding a PTO to front of atriculated tractor....
Upload the full XML with the latest tested setup - and add some info which I3D nodes are located at front and back. We need to get a "full picture" about what's going on.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
The general structure in the XML concerning the attachers seems to be OK to me and all required items appear to be available.
I guess the numerous duplicated trailer attachers are for testing purposes only and will be considerably reduced in the final version?
So, we have the following indexes defined:
That means for the connectors, we would need a setup as follows:
<powerTakeOffs>
Index 1 cannot be included here! Only indexes starting #2 and higher are for the back connections!
This must be index #1 for front!
<connectionHoses>
Index 1 cannot be included here! Only indexes starting #2 and higher are for the back connections!
This must be index #1 for front!
If your different configurations require some specific assignments of back connectors, you can additionally specify them individually through powerTakeOffConfigurations and connectionHoseConfigurations.
I've tested a setup very similar to this sequence (not so many duplicated trailer attachers though) and it works perfectly as intended!
So, I have no more clue what else could be wrong - all my tests simulating your setup did succeed. It is weird that is doesn't work that way for you.
If you still don't get this working, try to upload the full mod somewhere for ingame debugging. There may be some small glitch hidden somewhere that is hard to find without interactive testing.
I guess the numerous duplicated trailer attachers are for testing purposes only and will be considerably reduced in the final version?
So, we have the following indexes defined:
- individual attacher "attacherJointFront" is index #1
- configuration "$l10n_configuration_valueDefault" contains index #2 to #11
- configuration "PTO" contains index #2 to #7
- configuration "$l10n_configuration_inputAttacher3Point" contains index #2 to #7
That means for the connectors, we would need a setup as follows:
<powerTakeOffs>
Code: Select all
<output attacherJointIndices="1 2 5 6" outputNode="ptoBack"/>
Code: Select all
<output attacherJointIndices="7" outputNode="ptoOutputFront"/>
<connectionHoses>
Code: Select all
<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="hydraulicOut" node="hydraulic04_out">
<objectChange node="hydraulic04_out_cover" rotationActive="0 0 90" rotationInactive="0 0 0"/>
</target>
Code: Select all
<target attacherJointIndices="7" type="hydraulicIn" node="hydraulic06_in"/>
<target attacherJointIndices="7" type="hydraulicOut" node="hydraulic06_out"/>
<target attacherJointIndices="7" type="electric" node="frontElectric" socket="electric"/>
If your different configurations require some specific assignments of back connectors, you can additionally specify them individually through powerTakeOffConfigurations and connectionHoseConfigurations.
I've tested a setup very similar to this sequence (not so many duplicated trailer attachers though) and it works perfectly as intended!
So, I have no more clue what else could be wrong - all my tests simulating your setup did succeed. It is weird that is doesn't work that way for you.
If you still don't get this working, try to upload the full mod somewhere for ingame debugging. There may be some small glitch hidden somewhere that is hard to find without interactive testing.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
I am not very sure how to apply powerTakeOffConfigurations or connectionHosesConfigurations
Also, that last bit of code is the one that is set for the front PTO attacherJoint index, which is marked as "7" currently. All the connections for the back work 100%, no need for adjustment there. It's only the front PTO and hose connections that are not working correctly. As in, when attach something to the front, the PTO and hoses decide to connect to the back for some reason. This has lead to this whole discussion as to whether there is needed a special line of code (or specialization) to have a front PTO and hoses connections. Still not even sure if that is needed based on what you have just told me?
Also, that last bit of code is the one that is set for the front PTO attacherJoint index, which is marked as "7" currently. All the connections for the back work 100%, no need for adjustment there. It's only the front PTO and hose connections that are not working correctly. As in, when attach something to the front, the PTO and hoses decide to connect to the back for some reason. This has lead to this whole discussion as to whether there is needed a special line of code (or specialization) to have a front PTO and hoses connections. Still not even sure if that is needed based on what you have just told me?
Re: Adding a PTO to front of atriculated tractor....
That would be some add-on to think about later - it is not mandatory to solve your actual main issue.I am not very sure how to apply powerTakeOffConfigurations or connectionHosesConfigurations
It would give you the opportunity to further distinuish connections to the same index between different configurations.
I'm still perfectly convinced (and it was proven by my test) that your front PTO is index #1. So, if you have this targeted in your back connectors, connection will go there.Also, that last bit of code is the one that is set for the front PTO attacherJoint index, which is marked as "7" currently. All the connections for the back work 100%, no need for adjustment there. It's only the front PTO and hose connections that are not working correctly. As in, when attach something to the front, the PTO and hoses decide to connect to the back for some reason.
How did you actually verify that index #1 is really related to one of the numerous back attachers - and if so, to which one does it belong exactly according to your verification?
What happens if you remove it or only use that one? Is the function then as expected?
A procedure to definitely identify the front PTO index is, to set the attacherJointIndices element for the back PTO empty and then start changing the front PTO from 1 upwards. This is quickly done ingame by reloading the vehicle (console or EDC mod) after each change and then attaching some front implement.
No, there is nothing "special" to be done. Just have a look at Giants tractors with front attachers and you will see it works just like at the back.This has lead to this whole discussion as to whether there is needed a special line of code (or specialization) to have a front PTO and hoses connections. Still not even sure if that is needed based on what you have just told me?
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
Have looked at plenty of Giants' tractors and this why am even attempting to apply a front PTO to an articulating tractor since there isn't one to compare with. Wanted to have an articulating tractor with a front attacher with appropriate PTO and hose connections. Didn't realize would be this difficult. Seemed pretty straight forward.
As far as the back attachers, I had got them functioning first of and then attempted to apply a front attacher with PTO, etc.... and that is where came to this hurdle have been dealing with
I have not tried, yet, to isolate just the front attachers and remove the back attachers and see what result that has.
As far as the back attachers, I had got them functioning first of and then attempted to apply a front attacher with PTO, etc.... and that is where came to this hurdle have been dealing with
I have not tried, yet, to isolate just the front attachers and remove the back attachers and see what result that has.
Re: Adding a PTO to front of atriculated tractor....
Have tested by only having the front attacherJoints and basically negating all the back attacherJoints with setting the front attacherJoints to an index of "1" and in doing so this has allowed the PTO and hose connections to attach to the front instead of the back. The question still remains as to what index numbers need to used in order to maintain the back attacherJoints to be separate from the front??
Re: Adding a PTO to front of atriculated tractor....
Good, so it works just as expected !
The indexes for the back attachers are starting at #2 and up, currently going up to #7 or #11, depending on which configuration is active.
I recommend you first remove all those duplicated and testing attachers, bringing your mod down to the actual useful ones.
That will probably end up with two trailer attachers (normal and low), one 3-point and that specific tank attacher. So this would give you 4 attachers, i.e. index #2 to #4, assigned in top-down sequence inside each configuration. Make sure you have the same sequence inside each configuration to avoid further confusion.
To double-check that, you can again use the same procedure as before, but now setting the front PTO JointIndices elements empty and change the index for the back. You should test each of the 3 configurations with each possible attaching vehicle type.
The indexes for the back attachers are starting at #2 and up, currently going up to #7 or #11, depending on which configuration is active.
I recommend you first remove all those duplicated and testing attachers, bringing your mod down to the actual useful ones.
That will probably end up with two trailer attachers (normal and low), one 3-point and that specific tank attacher. So this would give you 4 attachers, i.e. index #2 to #4, assigned in top-down sequence inside each configuration. Make sure you have the same sequence inside each configuration to avoid further confusion.
To double-check that, you can again use the same procedure as before, but now setting the front PTO JointIndices elements empty and change the index for the back. You should test each of the 3 configurations with each possible attaching vehicle type.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
Here is the latest XML revision:
https://www.mediafire.com/file/m8iyjfzk ... t.xml/file
The only indexes that seem to work are 1 2 4 5 6 ... the rest don't seem to work
Also, taking a look at the error log, presents these findings which never got before:
https://www.mediafire.com/file/m8iyjfzk ... t.xml/file
The only indexes that seem to work are 1 2 4 5 6 ... the rest don't seem to work
Also, taking a look at the error log, presents these findings which never got before:
Code: Select all
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '7' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '8' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '9' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '11' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '12' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '13' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '14' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '16' for powerTakeOff output '1' can't be resolved into a valid attacherJoint
Warning (C:/Users/Admin/Documents/My Games/FarmingSimulator2022/mods/FS22_JohnDeere8900series_edit/JohnDeere8960.xml): The given attacherJointIndex '17' for powerTakeOff output '2' can't be resolved into a valid attacherJoint
Re: Adding a PTO to front of atriculated tractor....
The log warnings make sense, because there are no indexes above 7 now, but you still reference to them in your XML.
Your XML indicates:
Probably 1st or 2nd? That would make sense, because there is no index #7 in those.
Attaching something to the front and the connectors go to the back should be what happens with that current XML setup.
Did you actually validate each individual connector index for each configuration?
I do not understand why you still put index #1 into the back attacher targets and #17 into the front attacher.
You have already proven by your own test, that index #1 is the front attacher!
Also, the sequence of you attachers in the configurations is not consistent:
The "ChemFarmTank" joint is located between the two trailer attachers in the 1st configurations, making it index #4.
But in your 2nd and 3rd configuration, you put it behind the two trailer attachers, making it index #6.
Make your life easy and keep the same sequence! What is that thing at all? It must be some custom joint type.
Physically, it is located at the front component of the tractor.
Your XML indicates:
- configuration "$l10n_configuration_valueDefault" contains index #2 to #6
- configuration "PTO" contains index #2 to #6
- configuration "$l10n_configuration_inputAttacher3Point" contains index #2 to #7
Probably 1st or 2nd? That would make sense, because there is no index #7 in those.
In which configuration was this tested and what does it mean that index 1 seems to work?
Attaching something to the front and the connectors go to the back should be what happens with that current XML setup.
Did you actually validate each individual connector index for each configuration?
I do not understand why you still put index #1 into the back attacher targets and #17 into the front attacher.
You have already proven by your own test, that index #1 is the front attacher!
Also, the sequence of you attachers in the configurations is not consistent:
The "ChemFarmTank" joint is located between the two trailer attachers in the 1st configurations, making it index #4.
But in your 2nd and 3rd configuration, you put it behind the two trailer attachers, making it index #6.
Make your life easy and keep the same sequence! What is that thing at all? It must be some custom joint type.
Physically, it is located at the front component of the tractor.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
I had added the back attachers in again to remove the "repetitive" ones and simply re-indexed, least I thoughtIn which configuration was this tested and what does it mean that index 1 seems to work?
Attaching something to the front and the connectors go to the back should be what happens with that current XML setup.
No, not each individually. Figured since testing the front attacher by itself confirmed that it does work, then only to redo the back attachers so that the indexes lined up and made sense....Did you actually validate each individual connector index for each configuration?
That only worked in the one test because the back attachers were completely removed. With this redone XML the front attacher is the last index.I do not understand why you still put index #1 into the back attacher targets and #17 into the front attacher.
You have already proven by your own test, that index #1 is the front attacher!
Only reason that was done was when count the individual attacherJoints (even within each configuration) concludes that should be the number?
I can see the error in my sequence having the ChemFarmTank in the wrong line. But even with that shouldn't those be index #3 and #5, respectively??Also, the sequence of you attachers in the configurations is not consistent:
The "ChemFarmTank" joint is located between the two trailer attachers in the 1st configurations, making it index #4.
But in your 2nd and 3rd configuration, you put it behind the two trailer attachers, making it index #6.
Make your life easy and keep the same sequence! What is that thing at all? It must be some custom joint type.
Physically, it is located at the front component of the tractor.
Re: Adding a PTO to front of atriculated tractor....
TBH, I can no longer understand what you are actually doing there and why - there is too much contradicting information.
There's still the option to upload the full mod somewhere and send to me by PM.
There's still the option to upload the full mod somewhere and send to me by PM.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor:
Re: Adding a PTO to front of atriculated tractor....
I get the sense that are no longer wanting to assist and this type of thing is just way over my head (quite noticeably). I'm sure someone might know something as far as the attacher indexes and how they work, so possibly someone can chime in and shed some light on this. I feel that have put enough information here for it to be clarified. I appreciate the insight so far!! Feel that have figured some things out at least
As far as uploading this mod, I have been burned before with sharing things of this nature. Things being released without consent, etc...sorry, but am just not falling for that. Nothing personal, just can't allow that. Hope that is understandable?
Re: Adding a PTO to front of atriculated tractor....
I'd be glad to assist and "solve the mystery", but it's just no possible this way.
In fact the indexing is very simple. You have already been told how the indexes work: your front attacher is index #1 and the back attachers are index #2 to #7.
This is proven to be fully functional exactly as expected on two models with almost identical setup as in your XML (with the exception of that chemTank left out).
You even confirmed by testing your front attacher index yourself.
But apparently you didn't even finally test that setting, did you?
I have given you recommendations how to identify all your indexes, but you don't follow them nor do you answer all questions precisely.
Unfortunately I don't see people how people would find the solution based on this inconsistent procedure.
In fact the indexing is very simple. You have already been told how the indexes work: your front attacher is index #1 and the back attachers are index #2 to #7.
This is proven to be fully functional exactly as expected on two models with almost identical setup as in your XML (with the exception of that chemTank left out).
You even confirmed by testing your front attacher index yourself.
But apparently you didn't even finally test that setting, did you?
I have given you recommendations how to identify all your indexes, but you don't follow them nor do you answer all questions precisely.
Unfortunately I don't see people how people would find the solution based on this inconsistent procedure.
Der Sinn des Lebens ist:
Mein Traktor:
Mein Traktor: