Stock locomotives have very clean exhausts.
How can I give older SD40, SD45, etc. more clag? Now the engine simulation is scripted in obfuscated lua, there is no access to the emitters anymore.

_o_OOOO_oo-Kanawha wrote:Yes, but I only want clag when the prime mover is throttled up quickly or under heavy load. I believe that can only be done thru the engine script.
I'll check the clag mods over at UKTS, these apply to UK Diesels but the principle should be the same for US Diesels.
mrennie wrote:_o_OOOO_oo-Kanawha wrote:Yes, but I only want clag when the prime mover is throttled up quickly or under heavy load. I believe that can only be done thru the engine script.
I'll check the clag mods over at UKTS, these apply to UK Diesels but the principle should be the same for US Diesels.
That's right, it's done in the engine script, with calls to SetEmitterRate (keeping in mind that "rate" is badly named, because what they call rate is actually an interval, so the rate, or frequency, is the inverse of the value you set). Besides changing the rate, you can also adjust the colour, by calling SetEmitterColour with the three RGB values.
_o_OOOO_oo-Kanawha wrote:mrennie wrote:_o_OOOO_oo-Kanawha wrote:Yes, but I only want clag when the prime mover is throttled up quickly or under heavy load. I believe that can only be done thru the engine script.
I'll check the clag mods over at UKTS, these apply to UK Diesels but the principle should be the same for US Diesels.
That's right, it's done in the engine script, with calls to SetEmitterRate (keeping in mind that "rate" is badly named, because what they call rate is actually an interval, so the rate, or frequency, is the inverse of the value you set). Besides changing the rate, you can also adjust the colour, by calling SetEmitterColour with the three RGB values.
Unfortunately, most engine scripts are now in .out format. Can a wrapper in normal .lua be used to have its function take precedence over the same name function in the .out file?
I had a very nice looking IMO exhaust mod for the old IHH Big Boy that has its two stacks emit black smoke linked to the rate of firing and white steam linked to the throttle and cutoff. Emitter velocity was linked to the back pressure so the column would rise when the engine was worked hard.
Unfortunately, the chuff was only available for one exhaust emitter, the main one. Since the Big Boy is two steam engines under the same boiler in Railworks, I thought I was being very clever when I gave to front stack main exhaust to the forward frame and the rear stack main exhaust to the main frame. I was hoping for independent chuffs and the possibility that one frame slipping would be noticeable from the exhaust. Alas, too ambitious.
_o_OOOO_oo-Kanawha wrote:Yes, but I only want clag when the prime mover is throttled up quickly or under heavy load. I believe that can only be done thru the engine script.
I'll check the clag mods over at UKTS, these apply to UK Diesels but the principle should be the same for US Diesels.

mrennie wrote:_o_OOOO_oo-Kanawha wrote:mrennie wrote:_o_OOOO_oo-Kanawha wrote:Yes, but I only want clag when the prime mover is throttled up quickly or under heavy load. I believe that can only be done thru the engine script.
I'll check the clag mods over at UKTS, these apply to UK Diesels but the principle should be the same for US Diesels.
That's right, it's done in the engine script, with calls to SetEmitterRate (keeping in mind that "rate" is badly named, because what they call rate is actually an interval, so the rate, or frequency, is the inverse of the value you set). Besides changing the rate, you can also adjust the colour, by calling SetEmitterColour with the three RGB values.
Unfortunately, most engine scripts are now in .out format. Can a wrapper in normal .lua be used to have its function take precedence over the same name function in the .out file?
I had a very nice looking IMO exhaust mod for the old IHH Big Boy that has its two stacks emit black smoke linked to the rate of firing and white steam linked to the throttle and cutoff. Emitter velocity was linked to the back pressure so the column would rise when the engine was worked hard.
Unfortunately, the chuff was only available for one exhaust emitter, the main one. Since the Big Boy is two steam engines under the same boiler in Railworks, I thought I was being very clever when I gave to front stack main exhaust to the forward frame and the rear stack main exhaust to the main frame. I was hoping for independent chuffs and the possibility that one frame slipping would be noticeable from the exhaust. Alas, too ambitious.
You can indeed write a wrapper so that your own functions take precedence. I haven't done it myself (never needed to) but I think I read a post by someone who's done that, and the "Update" function in both scripts (the original .out file and his own script) get called on each cycle.
As for having separately controlled exhaust emitters linked to the actual wheel rotation, that's also possible to do in script. You can even completely replace the core code control of the wheel rotation with your own scripted control of the wheel and gear animation, along with accurate wheelslip simulation, and then add in the control of the chuffing so that it's in sync with the pistons even when the drivers are slipping. But then you'd be into FEF-3/Connie territory (and for an articulated, one step beyond that).

Return to Rolling-Stock Design
Users browsing this forum: No registered users and 1 guest