Start with infinity chests.

This is the place to request new mods or give ideas about what could be done.
Coolshrimp
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Oct 30, 2021 7:42 pm
Contact:

Start with infinity chests.

Post by Coolshrimp »

I like the bitter battle scenario and I’m running a server for it it all works fine but I’d like edit the start a bit.


The map is auto generated on each restart but id like to include a starter infinity chest for each team. How can i add this into the scenario. I cant use map editor as the map itself is auto generated. I’d also like to spawn a 12x12 patch of a resource near start point on every scenario restart.

Let me know what files I should be editing and what the script would look like.

Thanks.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
Joined: Mon Sep 05, 2016 9:10 am
Contact:

Re: Start with infinity chests.

Post by mrvn »

You have to make a mod for this.

There are several mods already that give the player a different starting inventory, like a personal roboport or similar.

One of the most I just happen have in my mods folder is Fastforward-Start-2. Seems trivial to change it to give just an infinity-chest.

Making ore patches is a bit more difficult. You have to force the generation of a few chunks around the starting position and then add the resource using https://lua-api.factorio.com/next/LuaSu ... ate_entity

You can also do it through the on_chunk_generated or on_surface_created event instead of on start.
Coolshrimp
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Oct 30, 2021 7:42 pm
Contact:

Re: Start with infinity chests.

Post by Coolshrimp »

Thanks i was able to figure it out.

if anyone wants to try my mac look for: Biter Battles | Robots!
Post Reply

Return to “Ideas and Requests For Mods”