Fuel Pucks


Converts any burnable fuel into stackable pucks with the same fuel value at convenient ratios and stack sizes for whatever insane logistics ideas you might have, so you don't need to keep a stock of different types of fuels whenever vanilla or mods create them. Variation version of Delta Alpha Engineer's Processed Fuel.

Tweaks
12 days ago
2.0
148
Logistics Manufacturing

b Minor fix- remove recipe ingredient overflow

30 days ago

I've been seeing errors with how this mod interacts with other mods, specifically when a mod has items with an incredibly low fuel value (as in the Cubium mod, where a few items give 1J when burned). data-updates tries to calculate how many items to make into a puck and finds 1,000,000, which is higher than the game's hard limit on a number of ingredients, 65,535. A very simple fix to resolve this edge case is to change line 35 (in the for _, item in pairs(data.raw.item) do block) to

if item.name ~= "processed-fuel" and string.sub(item.name, 1, 3) ~= "ee-" and item.fuel_value ~= nil and item.fuel_category == "chemical" and (util.parse_energy(item.fuel_value) > 20) then

The check here passes by all items with a fuel value that would overflow the logic. (Which, why would you be stockpiling around sixty thousand copies of an item...)

28 days ago

o that is cool, I didn't know anyone had even made anything like that :O I'll try it and see what happens and upload it, looks fair.

28 days ago

Should be updated now

New response