Page 1 of 1

Start with infinity chests.

Posted: Sat Oct 30, 2021 7:49 pm
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.

Re: Start with infinity chests.

Posted: Sat Oct 30, 2021 11:31 pm
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.

Re: Start with infinity chests.

Posted: Sun Oct 31, 2021 10:54 am
by Coolshrimp
Thanks i was able to figure it out.

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