American Eagles Modding Forums

Modding => Modding Help => Topic started by: seriousmods on August 02, 2014, 11:11:47 PM

Title: Chopped Straw Questions
Post by: seriousmods on August 02, 2014, 11:11:47 PM
Hey guys.

So for those of you who have installed chopped straw on your maps, what value do you use for the height and also, have you experienced any combines that don't seem to leave it behind?

I'm currently running it in my edit of Knutson, and some combines don't leave it behind.

I would love to know why?
Title: Re: Chopped Straw Questions
Post by: westmorgan on August 02, 2014, 11:26:23 PM
The combine has to use the ChopperSwitcher.lua or be in the titanium dlc. I'm still trying to figure out how to get the chopperSwitcher to work in combines that didn't come with it. I used the wheat windrow value for height.
Title: Re: Chopped Straw Questions
Post by: Jd s690 on August 02, 2014, 11:48:20 PM
do you just put a folder into your mods folder to get this to work?
Title: Re: Chopped Straw Questions
Post by: westmorgan on August 03, 2014, 12:00:33 AM
Part goes into your mod folder, the rest must be inserted into your map with notepad. It's not difficult and the directions are pretty good.
Title: Re: Chopped Straw Questions
Post by: seriousmods on August 03, 2014, 12:25:59 AM
Yes, I was able to get it to work with ease, but only my Claas Lexions from Petorious seem to blow it out of the back.

I'll have to look into that.

Thanks!
Title: Re: Chopped Straw Questions
Post by: westmorgan on August 03, 2014, 01:26:54 AM
The lexions use at least 3 scripts that work together and may be needed to make the straw mode work with other combines.

1 GrainTankAnimation.lua
2 ChopperSwitcher.lua
3 Lexion780.lua or Lexion770.lua depending on source combine.

I edited ChopperSwicher.lua to remove the dependence on GrainTankAnimation.lua and got the edited combine to work. The problem is that the straw is spread to the same width as a windrow instead of across the entire cut. So I think that the Lexion780.lua needs to be used as well, I just haven't had time to read thru it or try to implement it. 
Title: Re: Chopped Straw Questions
Post by: seriousmods on August 03, 2014, 01:31:32 AM
The lexions use at least 3 scripts that work together and may be needed to make the straw mode work with other combines.

1 GrainTankAnimation.lua
2 ChopperSwitcher.lua
3 Lexion780.lua or Lexion770.lua depending on source combine.

I edited ChopperSwicher.lua to remove the dependence on GrainTankAnimation.lua and got the edited combine to work. The problem is that the straw is spread to the same width as a windrow instead of across the entire cut. So I think that the Lexion780.lua needs to be used as well, I just haven't had time to read thru it or try to implement it.

Ok, cool!

It's really an awesome feature, so please let me know if you figure out what causes it to work.

I'm going to go asking around to some of my scripting buddies to see if they can help as well. :)

Thanks!
Title: Re: Chopped Straw Questions
Post by: Jd s690 on August 03, 2014, 01:34:39 AM
what does this mod actually do. the mod description is in another language on the download page
Title: Re: Chopped Straw Questions
Post by: seriousmods on August 03, 2014, 01:36:29 AM
what does this mod actually do. the mod description is in another language on the download page

It gives the appearance of chopped straw behind the combine.

So if you are doing no-till seeding where you just chop up the straw as it is blown out of the combine and then plant directly, it gives the game a more realistic appearance.

Here's an ok view of what it looks like.

(https://farm6.staticflickr.com/5594/14618825070_aea313071c_b.jpg)

I'm still working on getting some better pictures of it.
Title: Re: Chopped Straw Questions
Post by: Jd s690 on August 03, 2014, 01:41:13 AM
okay i am looking forward to better pics
Title: Re: Chopped Straw Questions
Post by: Xentro on August 03, 2014, 02:26:29 AM
Havent really looked all to deep where the problem is but based on whats written here and from what I know then what you are asking for is for it to spread an even windrow? why dont all combines do it?

Lets break it down a bit.

First the mod must have one of these to allow that ChoppedStraw is added by the global script
ChopperSwitcher or strawSpec

part 2
This part activate the feature
Code: [Select]
<strawAreas count="1">
        <strawArea1 startIndex="8|8|2" widthIndex="8|8|1" heightIndex="8|8|0" />
    </strawAreas>

part 3
Next part would be the spreading I guess and that would be this part
Code: [Select]
<chopperRotatingParts degreePerSecond="7">
<rotationPart node="8|14|0|0|0|0" speed="-0.5" />
<rotationPart node="8|14|0|0|0|1" speed="0.5" />
<chopperPart node="8|14|0|0|0|2">
<state minRot="0" maxRot="-67" speed="0.5" i18n="LEXION_12M" />
<state minRot="0" maxRot="-53" speed="0.5" i18n="LEXION_8M" />
<state minRot="0" maxRot="-45" speed="0.5" i18n="LEXION_6M" />
</chopperPart>
<chopperPart node="8|14|0|0|0|3" inverse="true">
<state minRot="0"  maxRot="67" speed="0.5" i18n="LEXION_12M" />
<state minRot="0"  maxRot="53" speed="0.5" i18n="LEXION_8M" />
<state minRot="0"  maxRot="45" speed="0.5" i18n="LEXION_6M" />
</chopperPart>
</chopperRotatingParts>
this part needs an new lua whit the name Lexion770.lua

That should be all I think but cant confirm it working as I dont have an sample of an working map. (too lazy to look for one :D)
Title: Re: Chopped Straw Questions
Post by: Rafazr on August 03, 2014, 11:59:05 AM
I would like to add this mod in my Case combine edited.
But this only works on titanium addon Lexions and combines.  :(
is a pity there is not any way to add strawSpec?
Title: Re: Chopped Straw Questions
Post by: Xentro on August 03, 2014, 02:21:39 PM
I would like to add this mod in my Case combine edited.
But this only works on titanium addon Lexions and combines.  :(
is a pity there is not any way to add strawSpec?

If I would pick then I would pick the ChopperSwitcher script as thats better scripted.
It works on other combines too but it comes down to minor stuff to get that little extra that people forget in the end.

If someone can provide me whit an map and 2 combines (1 working and 1 not working) then I shall have a better look where it all goes wrong and you get 2 working combines.  ;D
Title: Re: Chopped Straw Questions
Post by: seriousmods on August 03, 2014, 05:58:44 PM
If I would pick then I would pick the ChopperSwitcher script as thats better scripted.
It works on other combines too but it comes down to minor stuff to get that little extra that people forget in the end.

If someone can provide me whit an map and 2 combines (1 working and 1 not working) then I shall have a better look where it all goes wrong and you get 2 working combines.  ;D

You got it.

Map with straw chopper installed

http://www.mediafire.com/download/tkspr1b71bsfis9/MAP_KnustonFarm.zip

Working combines

http://www.mediafire.com/download/9c1pshw57ek0cea/COMB_ClaasLexion7series.zip

Non-working combines

http://www.americaneaglesmodding.com/index.php?action=downloads;sa=view;down=896

Thanks, Xentro!
Title: Re: Chopped Straw Questions
Post by: Xentro on August 04, 2014, 09:42:45 PM
Step 1

Make sure you got the chopper script implanted. Must be one of these!
"ChopperSwitcher", "chopperSwitcher" or "strawSpec"

Note: its case sensitive!


If you use any other script like "strawChopper" then it wont work as the name is wrong for obvious reasons if you havent implanted the global "ChoppedStraw" that is.

There is an work around thought and that is to rename the script in modDesc file to fool the global script

this is before
<specialization name="strawChopper"  className="strawChopper"  filename="scripts/strawChopper.lua" />

and after
<specialization name="ChopperSwitcher"  className="strawChopper"  filename="scripts/strawChopper.lua" />


make sure you change all corresponding parts needed as this line

<specialization name="strawChopper" />

to this

<specialization name="ChopperSwitcher" />   


Step 2
"ChoppedStraw" should now be implanted in your mod (confirmation look in log.txt)

This part must be added (Edit index!)
    <strawAreas count="1">
        <strawArea1 startIndex="8|8|2" widthIndex="8|8|1" heightIndex="8|8|0" />
    </strawAreas>


Notes:
The "spread" of straw is based on the cutter.(cant be adjusted as the size is based on cuttingArea)
Its important that you use an cutter that not throws error at you. (combine too)
Do not use class cutter with other combines then the class it was made for!


Follow these simple step and it will work if it do not and you got one single line of straw layed then there is an problem with the cutter, might be an error in log also.

Title: Re: Chopped Straw Questions
Post by: seriousmods on August 04, 2014, 09:44:58 PM
Step 1

Make sure you got the chopper script implanted. Must be one of these!
"ChopperSwitcher", "chopperSwitcher" or "strawSpec"

Note: its case sensitive!


If you use any other script like "strawChopper" then it wont work as the name is wrong for obvious reasons if you havent implanted the global "ChoppedStraw" that is.

There is an work around thought and that is to rename the script in modDesc file to fool the global script

this is before
<specialization name="strawChopper"  className="strawChopper"  filename="scripts/strawChopper.lua" />

and after
<specialization name="ChopperSwitcher"  className="strawChopper"  filename="scripts/strawChopper.lua" />


make sure you change all corresponding parts needed as this line

<specialization name="strawChopper" />

to this

<specialization name="ChopperSwitcher" />   


Step 2
"ChoppedStraw" should now be implanted in your mod (confirmation look in log.txt)

This part must be added (Edit index!)
    <strawAreas count="1">
        <strawArea1 startIndex="8|8|2" widthIndex="8|8|1" heightIndex="8|8|0" />
    </strawAreas>


Notes:
The "spread" of straw is based on the cutter.(cant be adjusted as the size is based on cuttingArea)
Its important that you use an cutter that not throws error at you. (combine too)
Do not use class cutter with other combines then the class it was made for!


Follow these simple step and it will work if it do not and you got one single line of straw layed then there is an problem with the cutter, might be an error in log also.

Thank you!

Will try this very soon.
Title: Re: Chopped Straw Questions
Post by: westmorgan on August 06, 2014, 10:18:17 PM
I couldn't get xentro's solution to work, but I got my combine to work using GrainTankAnimation.lua and ChopperSwitcher.lua together. GrainTankAnimation.lua replaces Foldable.lua, but the grain tank animation may need adjustments depending on mod and has to be renamed to openGraintank.