The best ever tiny mod [request]

This is the place to request new mods or give ideas about what could be done.
Post Reply
User avatar
Vasiam
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 07, 2018 4:49 pm
Contact:

The best ever tiny mod [request]

Post 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:

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: The best ever tiny mod [request]

Post 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.)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
Vasiam
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 07, 2018 4:49 pm
Contact:

Re: The best ever tiny mod [request]

Post by Vasiam »

Could you please link the mod where it implemented?

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: The best ever tiny mod [request]

Post 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".

User avatar
AmatorPhasma
Fast Inserter
Fast Inserter
Posts: 126
Joined: Sat Aug 05, 2017 8:20 pm
Contact:

Re: The best ever tiny mod [request]

Post 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

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: The best ever tiny mod [request]

Post by darkfrei »

The idea of burner/electric offshore pump was here
https://mods.factorio.com/mod/GoodBurne ... 000bbda02e

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: The best ever tiny mod [request]

Post 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

User avatar
Vasiam
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon May 07, 2018 4:49 pm
Contact:

Re: The best ever tiny mod [request]

Post 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:

Post Reply

Return to “Ideas and Requests For Mods”