Factorio 0.18.x breaks pollution in Yuoki mods

Energy production, weapons, handling fluids and much more - excellent graphics.

Moderator: YuokiTani

User avatar
ChurchOrganist
Filter Inserter
Filter Inserter
Posts: 256
Joined: Sun Apr 17, 2016 12:45 pm
Contact:

Factorio 0.18.x breaks pollution in Yuoki mods

Post by ChurchOrganist »

A couple of Saturdays ago, during my Yuoki Frostworld Twitch stream I noticed that the Yuoki miners on the coal outpost I had just built weren't producing pollution.

After the stream was over i did some investigation, and discovered in the 0.18.0 patch notes the following lines......
Removed EntityPrototype::emissions_per_tick, it is replaced by emissions_per_second.
Removed EnergySourcePrototype::emissions_per_second_per_watt and emissions, they are replaced by emissions_per_minute.
Now I knew that there could be a problem with this because I had contacted Yuoki about a list of warnings which appeared in the log file in 0.17 regarding the use of the emissions EnergySourcePrototype, and on checking the Yuoki 0.8.x code I discovered that it was still using emissions to give pollution values, and consequently the Factorio API was ignoring pollution values for the Yuoki machines.

Using the warnings list from Factorio 0.17.x as a guide I tracked down each one of the emissions uses in the prototypes and replaced them with a suitable value of emissions_per_minute.

I have tested this over the last couple of weeks and it all seems to be working OK.

The following ZIP files contain the code changes to restore normal pollution behaviour to the Yuoki mod suite.
yi_engines.zip
Fixes pllution in Yuoki Industries - Engines (Addon)
(11.69 KiB) Downloaded 158 times
yi_railway.zip
Fixes pollution in Yuoki Industries - Railways
(2.19 KiB) Downloaded 166 times
Yuoki.zip
Fixes pollution in the main Yuoki mod
(20.26 KiB) Downloaded 155 times
Only attempt to change the existing mods if you know what you are doing.
Want to know where the biters chewing your power plant have come from??
Wondering where your next iron is going to come from??
You need Long Range Radar
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Re: Factorio 0.18.x breaks pollution in Yuoki mods

Post by YuokiTani »

Thanks ChurchOrganist !
I have included into the mod and uploaded with your corrections.
Post Reply

Return to “Yuoki Industries”