The important change is that new Serpent (v0.27) has pretty array dumping.
An example blueprint is 7% smaller with a newer Serpent version.
Before (2159 chars)
Code: Select all
do local _={icons={[1]="assembling-machine-2",[2]="assembling-machine-2"},entities={[1]={orientation=0,position={x=-3.5,y=-0.5},entitynumber=1,type="assembling-machine",name="assembling-machine-2",direction=0},[2]={connections={red={},green={}},requestfilters={[1]={index=1,amount=1},[2]={index=2,amount=1},[3]={index=3,amount=1},[4]={index=4,amount=1},[5]={index=5,amount=1},[6]={index=6,amount=1},[7]={index=7,amount=1},[8]={index=8,amount=1},[9]={index=9,amount=1},[10]={index=10,amount=1}},orientation=0,position={x=-0.5,y=-1.5},entitynumber=2,type="logistic-container",name="logistic-chest-passive-provider",direction=0},[3]={connections={red={},green={}},direction=6,entitynumber=3,type="inserter",filters={[1]={index=1},[2]={index=2},[3]={index=3},[4]={index=4},[5]={index=5}},conditions={green={operator=">",count=1},logistics={operator="<",count=10},red={operator=">",count=1}},orientation=0,name="smart-inserter",position={x=-1.5,y=-1.5}},[4]={connections={red={},green={}},orientation=0,position={x=0.5,y=-0.5},entitynumber=4,type="electric-pole",name="medium-electric-pole",direction=0},[5]={connections={red={},green={}},direction=2,entitynumber=5,type="inserter",filters={[1]={index=1},[2]={index=2},[3]={index=3},[4]={index=4},[5]={index=5}},conditions={green={operator=">",count=1},logistics={operator="<",count=10},red={operator=">",count=1}},orientation=0,name="smart-inserter",position={x=0.5,y=-1.5}},[6]={orientation=0,position={x=2.5,y=-0.5},entitynumber=6,type="assembling-machine",name="assembling-machine-2",direction=0},[7]={connections={red={},green={}},requestfilters={[1]={index=1,amount=1},[2]={index=2,amount=1},[3]={index=3,amount=1},[4]={index=4,amount=1},[5]={index=5,amount=1},[6]={index=6,amount=1},[7]={index=7,amount=1},[8]={index=8,amount=1},[9]={index=9,amount=1},[10]={index=10,amount=1}},orientation=0,position={x=-0.5,y=0.5},entitynumber=7,type="logistic-container",name="logistic-chest-requester",direction=0},[8]={orientation=0,position={x=-1.5,y=0.5},entitynumber=8,type="inserter",name="fast-inserter",direction=2},[9]={orientation=0,position={x=0.5,y=0.5},entitynumber=9,type="inserter",name="fast-inserter",direction=6}}};return _;end
Code: Select all
do local _={entities={{name="assembling-machine-2",direction=0,type="assembling-machine",entitynumber=1,position={y=-0.5,x=-3.5},orientation=0},{name="logistic-chest-passive-provider",connections={red={},green={}},direction=0,type="logistic-container",requestfilters={{index=1,amount=1},{index=2,amount=1},{index=3,amount=1},{index=4,amount=1},{index=5,amount=1},{index=6,amount=1},{index=7,amount=1},{index=8,amount=1},{index=9,amount=1},{index=10,amount=1}},entitynumber=2,position={y=-1.5,x=-0.5},orientation=0},{direction=6,entitynumber=3,filters={{index=1},{index=2},{index=3},{index=4},{index=5}},connections={red={},green={}},conditions={green={count=1,operator=">"},red={count=1,operator=">"},logistics={count=10,operator="<"}},name="smart-inserter",orientation=0,position={y=-1.5,x=-1.5},type="inserter"},{name="medium-electric-pole",connections={red={},green={}},direction=0,type="electric-pole",entitynumber=4,position={y=-0.5,x=0.5},orientation=0},{direction=2,entitynumber=5,filters={{index=1},{index=2},{index=3},{index=4},{index=5}},connections={red={},green={}},conditions={green={count=1,operator=">"},red={count=1,operator=">"},logistics={count=10,operator="<"}},name="smart-inserter",orientation=0,position={y=-1.5,x=0.5},type="inserter"},{name="assembling-machine-2",direction=0,type="assembling-machine",entitynumber=6,position={y=-0.5,x=2.5},orientation=0},{name="logistic-chest-requester",connections={red={},green={}},direction=0,type="logistic-container",requestfilters={{index=1,amount=1},{index=2,amount=1},{index=3,amount=1},{index=4,amount=1},{index=5,amount=1},{index=6,amount=1},{index=7,amount=1},{index=8,amount=1},{index=9,amount=1},{index=10,amount=1}},entitynumber=7,position={y=0.5,x=-0.5},orientation=0},{name="fast-inserter",direction=2,type="inserter",entitynumber=8,position={y=0.5,x=-1.5},orientation=0},{name="fast-inserter",direction=6,type="inserter",entitynumber=9,position={y=0.5,x=0.5},orientation=0}},icons={"assembling-machine-2","assembling-machine-2"}};return _;end