1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-30 04:30:58 +02:00

Merge branch 'develop' of https://github.com/Valansch/RedMew into develop

This commit is contained in:
Valansch 2018-04-25 12:56:36 +02:00
commit 91b864f58c
12 changed files with 415 additions and 1 deletions

View File

@ -279,7 +279,7 @@ end
global.old_force = {}
global.force_toggle_init = true
local function forcetoggle(cmd)
if not game.player or not (game.player.admin or is_mod(game.player.name)) then
if not game.player or not (game.player.admin or is_mod(game.player.name)) or (not game.player.character) then
cant_run(cmd.name)
return
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,173 @@
return {
height = 167,
width = 202,
data = {
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,88,1,5,},
{1,7,2,88,1,14,2,87,1,6,},
{1,8,2,87,1,14,2,87,1,6,},
{1,9,2,85,1,16,2,85,1,7,},
{1,10,2,83,1,18,2,83,1,8,},
{1,12,2,79,1,22,2,79,1,10,},
{1,14,2,75,1,26,2,75,1,12,},
{1,16,2,71,1,27,2,74,1,14,},
{1,18,2,70,1,26,2,72,1,16,},
{1,20,2,68,1,12,2,3,1,10,2,71,1,17,2,1,},
{2,2,1,19,2,67,1,10,2,7,1,8,2,70,1,16,2,3,},
{2,4,1,19,2,66,1,8,2,9,1,6,2,69,1,16,2,5,},
{2,6,1,19,2,65,1,5,2,13,1,4,2,67,1,16,2,7,},
{2,8,1,19,2,64,1,2,2,17,1,1,2,66,1,17,2,8,},
{2,9,1,20,2,146,1,17,2,10,},
{2,11,1,19,2,144,1,16,2,12,},
{2,13,1,19,2,140,1,16,2,14,},
{2,15,1,19,2,136,1,16,2,16,},
{2,17,1,19,2,132,1,17,2,17,},
{2,18,1,20,2,99,1,2,2,27,1,17,2,19,},
{2,20,1,19,2,25,1,1,2,72,1,3,2,25,1,16,2,21,},
{2,22,1,19,2,21,1,3,2,71,1,6,2,21,1,16,2,23,},
{2,24,1,19,2,17,1,6,2,70,1,8,2,17,1,16,2,25,},
{2,26,1,19,2,13,1,8,2,69,1,11,2,13,1,17,2,26,},
{2,28,1,19,2,9,1,11,2,67,1,14,2,9,1,17,2,28,},
{2,29,1,19,2,7,1,13,2,66,1,15,2,7,1,16,2,30,},
{2,31,1,19,2,3,1,15,2,65,1,18,2,3,1,16,2,32,},
{2,33,1,35,2,67,1,33,2,34,},
{2,35,1,31,2,71,1,29,2,36,},
{2,37,1,27,2,75,1,26,2,37,},
{2,38,1,24,2,79,1,22,2,39,},
{2,40,1,20,2,83,1,18,2,41,},
{2,42,1,17,2,85,1,15,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,4,2,1,1,5,2,1,1,1,2,1,1,1,2,43,},
{2,44,1,14,2,144,},
{2,44,1,3,2,1,1,5,2,1,1,1,2,1,1,2,2,144,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,202,},
{2,145,1,1,2,2,1,1,2,1,1,1,2,1,1,3,2,1,1,1,2,1,1,1,2,43,},
{2,145,1,14,2,43,},
{2,46,1,1,2,1,1,1,2,1,1,3,2,1,1,1,2,1,1,1,2,88,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,14,2,87,1,14,2,43,},
{2,44,1,16,2,83,1,18,2,41,},
{2,42,1,20,2,79,1,22,2,39,},
{2,40,1,24,2,75,1,25,2,38,},
{2,38,1,27,2,73,1,28,2,36,},
{2,37,1,29,2,70,1,32,2,34,},
{2,35,1,31,2,70,1,34,2,32,},
{2,33,1,16,2,4,1,12,2,72,1,14,2,3,1,18,2,30,},
{2,31,1,16,2,8,1,9,2,73,1,12,2,7,1,17,2,29,},
{2,29,1,17,2,10,1,8,2,74,1,9,2,11,1,17,2,27,},
{2,27,1,17,2,14,1,5,2,76,1,6,2,15,1,17,2,25,},
{2,26,1,16,2,18,1,3,2,76,1,5,2,17,1,18,2,23,},
{2,24,1,16,2,100,1,2,2,21,1,18,2,21,},
{2,22,1,16,2,127,1,17,2,20,},
{2,20,1,17,2,130,1,17,2,18,},
{2,18,1,17,2,134,1,17,2,16,},
{2,17,1,16,2,137,1,18,2,14,},
{2,15,1,16,2,141,1,18,2,12,},
{2,13,1,16,2,59,1,3,2,21,1,1,2,61,1,17,2,11,},
{2,11,1,17,2,60,1,5,2,17,1,4,2,62,1,17,2,9,},
{2,9,1,17,2,61,1,7,2,15,1,5,2,64,1,17,2,7,},
{2,8,1,16,2,63,1,9,2,11,1,8,2,64,1,18,2,5,},
{2,6,1,16,2,64,1,12,2,7,1,11,2,65,1,18,2,3,},
{2,4,1,16,2,66,1,14,2,3,1,14,2,66,1,18,2,1,},
{2,2,1,17,2,66,1,32,2,68,1,17,},
{1,17,2,68,1,32,2,70,1,15,},
{1,15,2,72,1,29,2,73,1,13,},
{1,13,2,76,1,26,2,75,1,12,},
{1,11,2,80,1,22,2,79,1,10,},
{1,9,2,84,1,18,2,83,1,8,},
{1,8,2,86,1,15,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
{1,7,2,88,1,14,2,87,1,6,},
}
}

View File

@ -0,0 +1,191 @@
return {
height = 185,
width = 337,
data = {
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,10,1,30,2,84,1,30,2,80,1,29,2,74,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{1,108,2,16,1,30,2,80,1,29,2,16,1,58,},
{2,10,1,30,2,84,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,195,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,79,1,31,2,73,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,11,1,167,2,5,},
{2,11,1,28,2,85,1,30,2,79,1,31,2,73,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,124,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,17,1,166,2,12,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,80,1,29,2,74,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
{2,11,1,28,2,85,1,30,2,183,},
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,24 @@
map_gen_decoratives = false -- Generate our own decoratives
map_gen_rows_per_tick = 4 -- Inclusive integer between 1 and 32. Used for map_gen_threaded, higher numbers will generate map quicker but cause more lag.
-- Recommend to use generate, but generate_not_threaded may be useful for testing / debugging.
--require "map_gen.shared.generate_not_threaded"
require "map_gen.shared.generate"
local pic = require "map_gen.data.presets.honeycomb"
local pic = decompress(pic)
local map = picture_builder(pic)
-- this builds the map by duplicating the pic in every direction
map = single_pattern_builder(map, pic.width-1, pic.height-1)
-- this changes the size of the map
--map = scale(map, 2, 2)
-- this moves the map, effectively changing the spawn point.
--map = translate(map, 0, -200)
-- this sets the tile outside the bounds of the map to deepwater, remove this and it will be void.
--map = change_tile(map, false, "deepwater")
return map

16
map_gen/presets/plus.lua Normal file
View File

@ -0,0 +1,16 @@
-- Recommend to use generate, but generate_not_threaded may be useful for testing / debugging.
require "map_gen.shared.generate_not_threaded"
--require "map_gen.shared.generate"
local pic = require "map_gen.data.presets.plus" --or whatever you called it in data->presets
local pic = decompress(pic)
local map = picture_builder(pic)
map = single_pattern_builder(map, pic.width-1, pic.height-1)
map = translate(map, 86, 0)
-- uncomment the line below to change the size of the map scale(x, y)
map = scale(map, 1.5, 1.5)
return map

View File

@ -9,6 +9,9 @@ local pic = require "map_gen.data.presets.template"
local pic = decompress(pic)
local map = picture_builder(pic)
-- this builds the map by duplicating the pic in every direction
-- map = single_pattern_builder(map, pic.width-1, pic.height-1)
-- this changes the size of the map
--map = scale(map, 2, 2)

View File

@ -54,6 +54,10 @@ local Event = require "utils.event"
--MAP_GEN = require "map_gen.presets.fish_islands"
--MAP_GEN = require "map_gen.presets.ContraSpiral"
--MAP_GEN = require "map_gen.presets.cookies"
--MAP_GEN = require "map_gen.presets.plus"
MAP_GEN = require "map_gen.presets.honeycomb"
--shapes--
--require "map_gen.shape.left"

View File

@ -1,3 +1,6 @@
global.mods = {}
global.regualrs = {}
function update_group(position)
local file = position .. ".lua"
game.write_file(file, "{", false, 0)