Page 1 of 1

The best ever tiny mod [request]

Posted: Fri Aug 31, 2018 8:41 pm
by Vasiam
Hi every one!
I am sure that namely tiny mods are changing our life deeper than monster ones. An there is no need to knock down the player with dozens of new tehcnologies and hundreds of 80th level furnances.

There is one small small fraud entity with biggest cheating effect in game... offshore pump.
How many pumps do you have, dosen? two dozen? Just imagine how many hours it operates in game. How many solid fuel stored on belts without proper use. And how many undiscovered coal patcheis lies under biter despoty?

So the mod I've been dreaming for all that time is to have offshore pump which eats some fuel and still needs to be placed off-shore.

The trap is that those two definitions are incompactible. I spent many hours to push the offshore-pump entity to eat some coal. Or Watt of electricity. It works If use Pumpjack or Miner prototypes, but then I loose offshore positioning check.
I tried to use insertion of other entityies like it made in some mods (like Miner Inserter or AAi tech), but also failed.

Now I recognised thai I am a player, not a coder. :cry: And I am begging you to bring me a peace. :roll: :roll: :roll:

The idea is to have non breacking of vanilla balance but more pragmatic offshore pump in few modiffication - burner (new, slow), electric (like it now but with logic connectors) and advanced electric (new) with modules slots.

Could some one do it? For me? For all of us? Pleeeese :oops:

Re: The best ever tiny mod [request]

Posted: Sat Sep 01, 2018 8:34 am
by eradicator
You can listen to the on_build_* event for the offshore pump and simply replace it with a fixed_recipe assembling machine using surface.create_entity. Assembling machines support burner/electricity just fine. (No, i'm not gonna write that mod for you :p.)

Re: The best ever tiny mod [request]

Posted: Sat Sep 01, 2018 10:09 am
by Vasiam
Could you please link the mod where it implemented?

Re: The best ever tiny mod [request]

Posted: Sun Sep 02, 2018 10:46 am
by darkfrei
First: Making new prototypes, it must be new assembling machine, but with size of offshore pump, fixed recipe and burner as energy_source. Not tested, but it looks like:
data.lua:

Code: Select all

-- entity --
local pump = data.raw["offshore-pump"]["offshore-pump"]
local entity = table.deepcopy (data.raw["assembling-machine"]["assembling-machine-1"])
entity.name = "am-offshore pump" -- assembling-machine-offshore-pump
entity.icon = pump.icon
entity.fast_replaceable_group = nil
entity.minable = pump.minable
entity.collision_box = pump.collision_box
entity.selection_box = pump.selection_box
entity.crafting_categories = {"fluids-making"}
entity.fixed_recipe = "make-water" -- i hope that it works
entity.fluid_box = pump.fluid_box
entity.animation = pump.picture -- I hope that it works
entity.energy_source = table.deepcopy(data.raw.furnace["stone-furnace"].energy_source)
You are need also new recipe "make-water" and new recipe crafting category "fluids-making".

Re: The best ever tiny mod [request]

Posted: Tue Apr 30, 2019 1:40 pm
by AmatorPhasma
darkfrei wrote: Sun Sep 02, 2018 10:46 am First: Making new prototypes, it must be new assembling machine, but with size of offshore pump, fixed recipe and burner as energy_source. Not tested, but it looks like:
data.lua:

Code: Select all

-- entity --
local pump = data.raw["offshore-pump"]["offshore-pump"]
local entity = table.deepcopy (data.raw["assembling-machine"]["assembling-machine-1"])
entity.name = "am-offshore pump" -- assembling-machine-offshore-pump
entity.icon = pump.icon
entity.fast_replaceable_group = nil
entity.minable = pump.minable
entity.collision_box = pump.collision_box
entity.selection_box = pump.selection_box
entity.crafting_categories = {"fluids-making"}
entity.fixed_recipe = "make-water" -- i hope that it works
entity.fluid_box = pump.fluid_box
entity.animation = pump.picture -- I hope that it works
entity.energy_source = table.deepcopy(data.raw.furnace["stone-furnace"].energy_source)
You are need also new recipe "make-water" and new recipe crafting category "fluids-making".
OH THANKS darkfrei :D

I was thinking of a a way to make a burner and steam powered offshore-pump for my coal&steam mod...
I had no idea how to do that a easy way until I found your post here! :D

Re: The best ever tiny mod [request]

Posted: Tue Apr 30, 2019 2:08 pm
by darkfrei
The idea of burner/electric offshore pump was here
https://mods.factorio.com/mod/GoodBurne ... 000bbda02e

Re: The best ever tiny mod [request]

Posted: Wed May 01, 2019 11:01 am
by darkfrei
Vasiam wrote: Fri Aug 31, 2018 8:41 pm Could some one do it? For me? For all of us? Pleeeese :oops:
Please try this mod:
https://mods.factorio.com/mod/BurnerOffshorePump

Re: The best ever tiny mod [request]

Posted: Sun Jun 16, 2019 7:07 pm
by Vasiam
darkfrei wrote: Wed May 01, 2019 11:01 am
Please try this mod:
https://mods.factorio.com/mod/BurnerOffshorePump
You are my hero dude!! :lol: