If I need to host the save externally, let me know. It is 16MB.ssilk wrote:The save of this would be cool.
I am unsure about allowed size of attachments, or preferred practice.
The file was saved in Factorio 0.12.3
(100+ hours of gameplay, and 50 hours of messing around and alt-tabbing)
And I want to thank everyone for the positive comments.
EDIT: I found out how to use the console to set all the conditions for the lamps.
(I looked at the code found at https://forums.factorio.com/forum/vie ... =8&t=13997 , and with help from Narc on the Factorio IRC and the Lua manual I managed to understand and write some code)
EDIT2: Found two typo's in code. Corrected them
Code
Code: Select all
/c local start = { x = -389, y = -157};
local grid= {};
grid[1] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 3 3 3 3 21026262424242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[2] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 3 7 7153131283030262624242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[3] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 3 6 61531312425 422303026242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[4] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 7 6 63127272531 710303030242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[5] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 3 6 61531312923 7 9302214302416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[6] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 7 7 71531303131312520 6 6 6 0 816 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[7] = " 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 3 5 7 7152530 610 1 1 0 0 6 4 0 816 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[8] = " 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 7 0 7 711242416 0 1 9 8 2 6 824241616 01616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[9] = " 0 0 0 0 0 0 0 0 1 1 1 1 1 0 1 1 5 6 6 610242423 71525302214242424161616161616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[10] = " 0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 1 5 2 6 7 7252425 7 7 12222142416 8161616161616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[11] = " 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 7 6 6 4 7 9162516 4 1 6 0142416 8161616161616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[12] = " 0 0 0 0 0 0 0 1 1 1 1 1 1 3 1 2 2 6 6 0 0 816 1 0 0 1 4 2 6 816 8242416161616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[13] = " 0 0 0 0 0 0 0 1 1 1 1 1 3 3 3 3 7 6 6 2 0 024 0 1 0 1121014 816 8242416161616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[14] = " 0 0 0 0 0 0 0 1 1 1 1 1 3 3 3 3 7 7 6 6 6 0 02417 2 7 2283016 8 82424241616 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[15] = " 0 0 0 0 0 0 0 0 1 1 1 1 3 3 3 2 7 7 6 6 6 6 1 125 5 6 6 22016 82424 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[16] = " 0 0 0 0 0 0 0 0 1 1 1 1 1 3 2 2 7 7 6 7 6 6 811 125 8 0 6 0 8 824 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[17] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 6 4 7 4 514 0121127101428 8 824 8 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[18] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 6 7 614291725 53014 6 4161624 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[19] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 23018 91724243012 4 01616 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[20] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3 7 7313122 9162426282824242424 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[21] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 4 4 4223131 72315 72230282828282424 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[22] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 4 4 0 71731 7173115 7 7 6182828242824 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[23] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 4 3 4 0 6172211231116 8 019272630 820 82024 8 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[24] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 4 7 0222122 922112311 11626111914201220121624 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[25] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 4 322 522 922 92227151925 8181523 8201228 824 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[26] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 023 4221322 922 9223127 917102311231328 8282424 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[27] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 423231330 922 92327311519 919142311291328282424 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[28] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 022 731 922 923 9221022151715232723 92929282424 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[29] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 422231323 9231122102210221123272311311329282424 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[30] = " 0 0 0 0 0 0 0 0 0 0 0 0 4 420 7302731 920 8221022142214231131113129282824 8 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[31] = " 0 0 0161616 0 0 0 0 0 0 4 4202231202529 921102210221422262311311129292925 9 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[32] = " 0 016 0 0 016 0 0 0 0 4 0 020 63129212529132114221022302210301430 6202016 8 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[33] = " 016 0 0 0 01616 0 0 0 4 0 0 02014312429 9211323152226222630303030222020 0 8 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[34] = " 016 0 0 0 0 016161616 4 0 0 02030302124291321312331313030301414142220 4 0 8 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[35] = " 016 0 0 0 0 016 0 0 02024242428 026312924291321313131313115141414 622 6 311 3 3 3 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[36] = " 0 016 0 0 0 024 8 812 8 0 016201610222529282913212929292913131313 517 1 5 8 0 0 0 2 2 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[37] = " 0 016 0 0 8241616 0 4 0 0 0 020 02430222529122129212929291313 51321 1 1 4 8 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[38] = " 0 0 0162416161616201616 0 0 02016 822262928291321292929291313 51317 1 0 012 4 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[39] = " 0 0 0 8 0 0 0 0 4 0282424242824 82424222629282929212929131313 51123 3 2 0 8 0 4 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[40] = " 0 0 0 8 0 0 0 4 0 8 8 8242428242424242830263110233131311515 71419 7 3 1 311 0 0 4 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[41] = " 0 0 0 8 0 0 4 0 0 8 8 0 02016 0 82424202030273111313115151515 719 3 5 1 1 9 3 3 3 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[42] = " 0 0 0 8 0 4 0 0 0 8 0 420 01616 0 82420202222313115 7151414 6 623 1 3 711 2 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[43] = " 0 0 0 8 4 0 0 0 8 0 416 016 0 02416 8 02020 61511 8 1 912 6 622 7 3 3 9 5 5 2 2 2 2 2 5 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[44] = " 0 0 0 4 8 8 8 8 4 416 016 0 0 8 0 01624 4 6141510 8 9 1 4 62222 51111 1 1 1 5 0 0 0 0 3 2 6 6 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0";
grid[45] = " 0 0 4 0 0 0 0 4 016 0 016 0 8 0 0 0 8121414 7 6 2 0 0 02123 5 515 7 3 3 1 1 1 4 4 0 0 1 0 0 0 2 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0";
grid[46] = " 0 4 0 0 0 0 4 0 016 0 016 0 8 0 8 81210 8 0 1 2 6 6232319 31315 7 7 7 3 3 1 1 1 0 4 5 0 0 0 0 2 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0";
grid[47] = " 0 4 0 0 0 0 4 016 0 0 016 8 0 0 012 810 0 017161617171729131515 7 7 7 7 3 3 3 3 3 1 0 4 4 0 0 2 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0";
grid[48] = " 0 4 0 0 0 0 4 016 0 0 0162416 0 0122426161617162223313131151515 7 7 7 7 3 1 1 1 1 2 0 0 0 4 4 2 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0";
grid[49] = " 4 0 0 0 0 0 4 016 0 0 0 81616162024262624161722222315151515151515 7 7 7 7 1 1 1 1 0 2 2 0 0 6 4 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0";
grid[50] = " 4 0 0 0 0 0 416 0 0 0 0 8 016162024262424161722223015151515151115 7 7 7 7 1 1 1 1 0 0 0 2 2 0 4 4 4 4 4 0 0 0 0 0 0 0 0 0 0 0 0";
grid[51] = " 4 0 0 0 0 4 016 0 0 0 0 8 0 0 4 024262424242530303014141414141111 7 7 7 7 3 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[52] = " 0 4 0 0 0 4 016 0 0 0 0 8 0 0 424 826242424272630301414141511 91115 7 7 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[53] = " 0 0 4 0 0 4 016 0 0 0 0 8 0 0 4 8242624242526262630301011 9 9111515 7 7 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[54] = " 0 0 0 4 4 0 016 0 0 0 8 0 016 4 8 8262424252424242425 9 91115151514 6 6 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[55] = " 0 0 0 0 0 0 016 0 0 0 8 0 01620 8 810242524282829293131151515141412 6 6 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[56] = " 0 0 0 0 0 0 016 0 0 0 8 0 0 4161610 8 9 828283015313131151515141212 2 6 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[57] = " 0 0 0 0 0 0 016 0 0 0 8 0 0 4 01618 0 1 0 4 6 7151531313115121213 8 2 6 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[58] = " 0 0 0 0 0 0 016 0 0 0 8 0 0 4 0 2161716 0 4 4 615313131301212 9 8 8 6 6 7 7 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[59] = " 0 0 0 0 0 0 016 0 0 0 8 0 0 4 0 2 02524242428123030262424 8 9 8 8 814 7 7 7 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[60] = " 0 0 0 0 0 0 016 0 0 0 8 0 0 4 216 9 8 82424 82424 8 8242727 8 8 8 814 7 7 7 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[61] = " 0 0 0 0 0 0 0 016 0 0 8 0 0 4 21724 8 8 824241010101119272812 9 81014 7 7 7 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[62] = " 0 0 0 0 0 0 0 016 0 0 8 0 0 4 2 11624 8 8 8 8 81213 5212828 9 9 81014 7 7 7 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[63] = " 0 0 0 0 0 0 0 016 0 0 8 0 0 6 1 0 01624 8 0 0 4 4 4 416242525 8 81415 7 7 7 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[64] = " 0 0 0 0 0 0 0 016 0 0 8 0 0 7 0 0 0 0161616 0 0 0 0 016252524 8 81415 7 7 7 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[65] = " 0 0 0 0 0 0 0 016 0 0 8 0 0 7 0 0 0 016161616 0 0 0 0 1172424 8 81415 7 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[66] = " 0 0 0 0 0 0 0 0 016 0 8 0 3 4 016 0 0 0161616 0 0 0 1 116242424 81415 7 7 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[67] = " 0 0 0 0 0 0 0 0 016 0 8 0 3 4 0 016 0 0 0 01616 1 1 1 016242424 81415 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[68] = " 0 0 0 0 0 0 0 0 016 0 8 1 2 4 0 0 01616 0 0 0 1 1 1 0 0 0242424 81515 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[69] = " 0 0 0 0 0 0 0 0 016 0 8 1 2 4 0 0 0 0 016 1 1 1 0 0 0 0 016161624151515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[70] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 4 0 0 0 0 1 11716 0 0 0 0 0 016161624151515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[71] = " 0 0 0 0 0 0 0 0 0 016 8 3 1 5 0 0 0 0 0 0 0 016 0 0 0 0 0 0161616 71515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[72] = " 0 0 0 0 0 0 0 0 0 016 8 3 1 5 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0161616 71515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[73] = " 0 0 0 0 0 0 0 0 0 016 8 3 2 6 1 1 1 1 1 11616 0 0 0 0 0 0 0161616211515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[74] = " 0 0 0 0 0 0 0 0 0 016 8 3 2 6 2 3 1 1 0 0 1 117 0 0 0 0 0 0 01616171515 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[75] = " 0 0 0 0 0 0 0 0 0 016 8 3 0 4 2 2 3 3 2 2 0 0 0 1 1 1 0 0 0 0161625 715 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[76] = " 0 0 0 0 0 0 0 0 0 016242724282410 2 3 3 0 2 2 2 0 0 0 1 1 1252525171515 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[77] = " 0 0 0 0 0 0 0 0 0 016 8192428282830303116161616181818182725242424251114 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[78] = " 0 0 0 0 0 0 0 0 0 016 8 3 020282812141312121212122824242726101010261114 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[79] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 41624 810 5 4 8 8 8 8 82828131214 6 622 714 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[80] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 41616 010 1 4 0 0 0 0 016 0 9 8 2 6 416 0 9 2 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[81] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 41616 010 1 4 0 0 0 0 016 0 1 8 2 4 016 0 9 0 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[82] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 4 016 010 1 4 0 0 0 0 016 0 1 8 2 4 016 0 1 8 2 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[83] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 4 016 010 1 4 0 0 0 0 016 0 1 8 2 4 016 0 1 8 2 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[84] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 4 016 010 1 4 0 0 0 0 016 0 1 8 2 4 016 0 1 8 2 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[85] = " 0 0 0 0 0 0 0 0 016 0 8 3 0 4 016 010 1 4 0 0 0 0 0 016 0 9 8 2 4 016 1 8 2 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[86] = " 0 0 0 0 0 0 0 0 016 0 0 9 2 4 016 011 0 4 0 0 0 0 0 016 0 1 8 2 4 016 1 8 2 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[87] = " 0 0 0 0 0 0 0 0 0 016 0 9 2 4 016 011 0 4 0 0 0 0 0 016 0 1 8 2 4 017 0 8 2 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[88] = " 0 0 0 0 0 0 0 0 0 016 0 9 2 4 016 011 0 4 0 0 0 0 0 0 016 1 8 2 0 417 0 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[89] = " 0 0 0 0 0 0 0 0 0 016 0 9 2 4 016 011 4 0 0 0 0 0 0 0 016 1 010 0 417 0 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[90] = " 0 0 0 0 0 0 0 0 0 0 016 9 2 4 016 110 4 0 0 0 0 0 0 0 016 1 0 8 2 4 116 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[91] = " 0 0 0 0 0 0 0 0 0 0 016 110 4 016 110 4 0 0 0 0 0 0 0 0 016 1 010 0 516 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[92] = " 0 0 0 0 0 0 0 0 0 0 016 1 8 6 016 110 4 0 0 0 0 0 0 0 0 016 1 010 0 516 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[93] = " 0 0 0 0 0 0 0 0 0 0 0 017 8 6 016 110 4 0 0 0 0 0 0 0 0 0 017 0 2 8 516 010 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[94] = " 0 0 0 0 0 0 0 0 0 0 0 017 014 017 014 0 0 0 0 0 0 0 0 0 0 017 0 2 8 1 416 2 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[95] = " 0 0 0 0 0 0 0 0 0 0 0 017 014 017 014 0 0 0 0 0 0 0 0 0 0 0 116 010 1 416 2 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[96] = " 0 0 0 0 0 0 0 0 0 0 0 017 014 017 014 0 0 0 0 0 0 0 0 0 0 0 017 0 2 8 516 2 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[97] = " 0 0 0 0 0 0 0 0 0 0 0 017 014 017 014 0 0 0 0 0 0 0 0 0 0 0 0 116 2 8 516 2 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[98] = " 0 0 0 0 0 0 0 0 0 0 0 0 11614 016 112 2 0 0 0 0 0 0 0 0 0 0 0 116 2 8 5 018 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[99] = " 0 0 0 0 0 0 0 0 0 0 0 0 11614 016 113 2 0 0 0 0 0 0 0 0 0 0 0 1 018 8 5 118 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[100] = " 0 0 0 0 0 0 0 0 0 0 0 0 11614 0 01713 3 0 0 0 0 0 0 0 0 0 0 0 1 018 012 118 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[101] = " 0 0 0 0 0 0 0 0 0 0 0 0 11614 0 017 511 0 0 0 0 0 0 0 0 0 0 0 1 0 21612 1 01812 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[102] = " 0 0 0 0 0 0 0 0 0 0 0 0172010 0 017 711 0 0 0 0 0 0 0 0 0 0 0 1 0 21612 1 018 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[103] = " 0 0 0 0 0 0 0 0 0 0 0 017 6 8 0 121 711 0 0 0 0 0 0 0 0 0 0 0 1 0 21613 1 018 8 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[104] = " 0 0 0 0 0 0 0 0 0 0 0 01730 0 0 1 73111 0 0 0 0 0 0 0 0 0 0 0 1 0161613 1 0 21612 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[105] = " 0 0 0 0 0 0 0 0 0 0 0 0232616 1 3 73110 0 0 0 0 0 0 0 0 0 0 1 0 0181613 9 0 21612 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[106] = " 0 0 0 0 0 0 0 0 0 0 0 0232727 3 7 63110 0 0 0 0 0 0 0 0 0 0 1 0 018192913 0 2 420 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[107] = " 0 0 0 0 0 0 0 0 0 0 0 1 731313115143124 0 0 0 0 0 0 0 0 0 0 1 0 01819313114 6 420 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[108] = " 0 0 0 0 0 0 0 0 0 0 0 3 73131313028 82416 0 0 0 0 0 0 0 0 0 1 1 1 31923303030282824 8 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[109] = " 0 0 0 0 0 0 0 0 0 0 1 3 7 731312824241616 0 0 0 0 0 0 0 0 0 1 1 1 3192330303028282424 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[110] = " 0 0 0 0 0 0 0 0 0 0 1 1 7 714282824241616 0 0 0 0 0 0 0 0 0 1 1 1 3 3231422302828242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[111] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4 8 8241616 0 0 0 0 0 0 0 0 0 0 1 1 1 1 31814 6202824242416 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[112] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 2 2 4 420162424 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[113] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[114] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[115] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[116] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[117] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[118] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[119] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[120] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[121] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
grid[122] = " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0";
local itemname = {};
itemname[1] = "wooden-chest";
itemname[2] = "iron-chest";
itemname[3] = "steel-chest";
itemname[4] = "smart-chest";
itemname[5] = "storage-tank";
itemname[6] = "basic-transport-belt";
itemname[7] = "fast-transport-belt";
itemname[8] = "express-transport-belt";
itemname[9] = "basic-transport-belt-to-ground";
itemname[10] = "fast-transport-belt-to-ground";
itemname[11] = "burner-inserter";
itemname[12] = "basic-inserter";
itemname[13] = "long-handed-inserter";
itemname[14] = "fast-inserter";
itemname[15] = "smart-inserter";
itemname[16] = "small-electric-pole";
itemname[17] = "medium-electric-pole";
itemname[18] = "big-electric-pole";
itemname[19] = "substation";
itemname[20] = "pipe";
itemname[21] = "straight-rail";
itemname[22] = "curved-rail";
itemname[23] = "train-stop";
itemname[24] = "rail-signal";
itemname[25] = "rail-chain-signal";
itemname[26] = "logistic-robot";
itemname[27] = "construction-robot";
itemname[28] = "logistic-chest-active-provider";
itemname[29] = "logistic-chest-passive-provider";
itemname[30] = "logistic-chest-requester";
itemname[31] = "copper-cable";
for y, waarde in ipairs(grid) do;
for x=1, waarde:len(), 2 do;
local light = game.player.surface.find_entities_filtered{area = {{start.x + (x + 1)/2 - 1, start.y + y - 1}, {start.x + (x + 1)/2, start.y + y}}, name = "small-lamp"};
if (light[1]) then;
local pixelvalue = tonumber(waarde:sub(x,x+1));
if pixelvalue == 0 then;
--[[ do nothing--]];
elseif pixelvalue >= 1 and pixelvalue <= 31 then;
local conditie = light[1].get_circuit_condition(1);
conditie.condition.first_signal = {type="item", name=itemname[pixelvalue]};
conditie.condition.constant = 1;
conditie.condition.comparator = "=";
light[1].set_circuit_condition(1, conditie);
end;
end;
end;
end;