Scrap Resource

by RedRafe

Adds scrap as a new resource to be further processed and downgraded into other products

Content
a month ago
1.1 - 2.0
1.61K
Mining

g [Question] Some Randomization

8 months ago

RedRafe - If you search Maroons, you'll find a Scap Resource server is up. It works very well with my own group of items as you recommended.

Now we'd like to provide a way of randomizing each scrap heap to favor a type of resource. I would make those close to a players base be more raw ore, and the further out provide more precious resources. Do you have an ideas on enabling a mod to modify areas, possibly 5 different resource definitions. I would allow them to drop randomly by Factorio engine and remove the high value items close to each base as I place their bases within Brave New Oarc.

8 months ago
(updated 8 months ago)

Depends. If you have just 1 spawn at {0, 0}, you can define like 5 different resource prototypes AND, with some magic using https://github.com/wube/factorio-data/blob/master/core/lualib/resource-autoplace.lua you could define 5 rings (or probabilities) for a resource to be more likely to spawn near the center and less likely moving outwards for resource_1, and invert the trend smoothly up to resource_5. This will create 5 zones that transition from the center to away from spawn, with increasing "value" for your mined goods.

If you have more than 1 spawn, then you still need different resource prototypes but it'll probably be easier to just place them during control script rather than autoplace; and place resources yourself where you see fit.

Script-placed resources won't look as good as autoplace (in terms of natural-feel-shape) but will get the job done either way.

8 months ago

Also your remove biter corpses shortcut command looks a lot like my "Remove Biters Corpses" mod, innit? ;) great minds think alike

8 months ago

The way we work now is 0,0 is a holding place for new players, they choose a team/force and spawn into a new area on the map - spread fare from other players. There could be 20+ or more separate teams. I'm thinking of making a scenario where attempts to land supply air craft go horribly wrong crashing the supply craft into the planet, within a range from the player. So no auto place of the resources, more like meteor strikes. I would like to change up the content of that new patch that I drop. I think this may be more do-able than modifying how it works now. I could also leave the auto generation of patch's on with lower frequency setting, smaller size and smaller richness.

I believe I can change the content of the patch I am manually placing - right ?

8 months ago

Regarding the remove corpses - I usually give credit to devs that have the original idea. I hate taking without asking first, even if it is open source. If I did use your code - I apologize for not crediting you. I will track down the source, and fix that.

8 months ago

Ya definitely yours code in Corpse Removal. I updated comment in my code to reference your mod and updated the changelog. I would have linked your mod to mine, but hadn't decided if I wanted zoom. I have some map following functions that I didn't want to spend time verifying they worked together. BUT I will look into that. I did add the scrap resources as optional within my mod and seem to like your coding style.

8 months ago
(updated 8 months ago)

I just checked change log had already comment on 4.2.39:
- Removal of corpses now linked to backspace key. This taken directly from 'Remove Biter Corpses' mod. I would have instead included that mod, but it spams everyone that corpses are removed when anyone does it. Most mods still think this is a single team game.

The only problem with using your mod was the message broadcast to everyone every time someone pressed the key. My mod is multi-team and I have done alot to remove game messages that research is complete and other things. There are kids that find it fun to troll Oarc players, and coming in a leaning on that key could make the game very unfun.

8 months ago

Ahah sorry, I didn't mean to pry ;) code is MIT and thus free to use/modify/copy in all sorts of ways. I just thought it was funny that while I was checking your src I found bits of me, just that. No problems at all

For the resource gen - maybe just set MapGenSettin>autoplace>scrap>size = 0 so it won't spawn any scrap by autoplace. And just place it via script wherever you see fit to your scenario/surface. Seems to me the most easy way without too much code effort

8 months ago

Feel free - I pilfer from only the best ! ;)
I've been a software developer my whole life and the only thing most developers really want is recognition for their work. Know that I truly appreciate your work, and the time you are taking to respond to me.

I really think that Scrap Resources is a hidden gem that I hope to use to add to my scenario. "We know you're stranded on that violent planet, we will continue to send supplies as frequently as possible to aid in your survival". Krastorio style meteor strikes could be supply ships attempting to land, crashing to the planet. A small chance of a supply delivery landing on the surface that enables immediate access to supplies without mining - aka clean up.

Are you designing your own icon's and sprites ? I am no graphic artist.

8 months ago
(updated 8 months ago)

No, I just know a bit of Photoshop and patch together/recolor Factorio's base icons (like the scrap). I'd love to learn more of it like blender and such but... huh, would take a lot of time & as everyone, I don't have much

8 months ago

I really think that Scrap Resources is a hidden gem that I hope to use to add to my scenario.

Thanks! In truth, I only published this mod not because of the FFF & Factorio 2.0, but because when I read the FFF I thought "Wow, this scrap resource would 100% be cool to use on a DangerOres map with all scraps and players have to decompose/sort materials instead of regular processing bottom->up. And so bootsrapped this mod, got the scenario out, and it was a blast to play!

8 months ago

The "Reverse DangerOre" ahah

8 months ago

I'm being asked by the guys who play my mod to do ONLY Scrap Resources, we're working up to it.

New response