Drop Science Pack


Drop Science Pack on ground. Drop is based on researched technologies.

Content
10 months ago
1.1
2.32K
Enemies

g Thoughts

3 years ago
(updated 3 years ago)

see below message for edit

3 years ago

Hello, thank you for the mod!
I am trying to do something very similar with my loot drops mod where I detect technologies and then make the items made available by said technology available for drops. You'll see the way I'm doing that is very amateurish and archaic by changing the drops per unit in data.lua (https://mods.factorio.com/mod/Enemy_Loot_Drops). I'm not a programmer :P I was wondering if you would be willing to do what you did with this mod to mine? I am willing to do the monotonous work like filling in all of the items names for vanilla and krastorio 2 if you can set up most of the working code similar to this mod. I am just not confident I can understand your code enough to make it work for what I want to do. I dont need any credit if you just want to make a new mod completely and I will deprecate mine and point to yours :)
Also: I brought this up on the factorio mod making channel https://discord.com/channels/139677590393716737/306402592265732098/789638306203566141
And a few points were brought up (in case you cant see that discord link): I was asking about your mod and how to make mine like yours pretty much and got this:
The Drop Science Pack mod does it the right way and keeps valid drops cached, and only updates them when a technology is researched (i.e. the only time they can change).
[6:35 PM]
What it does wrong, though, is using surface.spill_item_stack. It will arrange the items in a neat grid, true, but it will also utterly destroy performance if there is a lot of things dropping (e.g. from a horde of biters being slaughtered by your defenses).
[6:40 PM]
It also seems to be using really generic names for its settings, which can only lead to trouble if another mod does the same and they coincidentally have a setting with the same name.
So with a little tweaking to yours these points can be cleaned up. Please let me know if you can assist me with my endeavor :)

3 years ago

Hi, this user https://mods.factorio.com/user/L0771 helped me a lot with this modification. I will talk to him and try to give you an answer

3 years ago

Thank you very much!

New response