Skip to content

Instantly share code, notes, and snippets.

Bilka Bilka2

Block or report user

Report or block Bilka2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Bilka2
Bilka2 / LuaLibSerpent.cpp
Created Aug 5, 2019
Factorio's version of serpent
View LuaLibSerpent.cpp
/* Serpent source is released under the MIT License
Copyright (c) 2012-2018 Paul Kulchenko (paul@kulchenko.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Bilka2
Bilka2 / gist:128e465c0a9b16b949c6b710d63040dd
Last active Jun 17, 2019
Measure inserter cycles over multiple ticks bp string
View gist:128e465c0a9b16b949c6b710d63040dd
0eNrtXeuO6zhyfpcG8idpTUSR1OVgJ8Ak2Vw2l01mNncsGrJNu5UjS15duqdn0A+Qt8iz5UlCyZcmJdHip5Z7R3sGCywwfezPIqtY9VUVq/Tj3SqtxaFIsuru0493yTrPyrtP//XjXZnssjht/la9HMTdp7ukEvu7+7ss3jf/FRdJ9bgXVbJ21vl+lWRxlRd3r/d3SbYR3999Iq/3oxgbsU42ohgG8F5/e38nsiqpEnF8ovY/Xh6yer8ShfyFC07zzFWcVSrQ/d0hL+V386z5eYnH7u9e7j45ofyFTVKI9fGf5F/lt6siTx9W4jF+SuRX5ee3SVqJwrART0lR1fIvl98/fsL5tnn6dV43O0lGNsKE8ctBDA/C+G4Qg87wHAzC+M0gBocwVmm8/jyIEzT6kZQPjRS3cVqK9kNZdpRs2WCT5v92hRCZqj/J5u5TFL7+9vW1eZKOUnmXBxCpRCqkeotMFLsXRx4QUWzjteirlhN8xY/axb/iHf0a+A06coj6+NSEPqy9b7AP8p83yWVDtklRVg/Wmy/i9WOz96VoYOy/903zpfwgivj4mHe/+IX8TF5Xhxr+9VeDWAux6QrVl59MinWdVO1/kkZBBqXP9Q9KSyN/xDMqi0cMysJgQbLfjyC/UaR4NpZyg1xdSn86QUjfQBLiPQmdN37gw8Q3bDuHt937KW/7H91821l32+91/R47ALQvtiG5+KhcyM9mzUJ69Lr0IlurF4JWLzKIOUDF7H7ZRi9EjF57Fod2PUR3/Qu3ecH1U0PdEfX37WxehIqF/2zzplA5XXrEbOWIh5k5Ghgk26gsJtovnNx1d/66oWsP4OC+g3F9cNr11xkjeVeJOB3iBkFEfeKFE2N6oqHRkBHPpd7E4N7TwCLXdUkUEG9imE/V0NoNaMBI6LGJ8T7THo0EIY8ipqBhkT/XZRCxgFDK3tB8CM1X0DzCqBdGKlgAgQXao3FOwshjoXtBCyG0UEPzKeEh87h/QYsgtEhD8+T/OA0VNOJCcN8MLvU
@Bilka2
Bilka2 / Creating a map from custom settings.md
Created Feb 15, 2019
Written by TOGoS for Factorio 0.17
View Creating a map from custom settings.md

Creating a map from custom settings

Sometimes it's useful to create a new game with map and/or map generator settings stored in a JSON file rather than going through the in-game map settings screen. One reason is that by editing the settings directly you can get settings outside the range normally available from the GUI.

To do this you'll need to be able to run Factorio from the command-line, a JSON file containing your map generator settings (if customizing them), and/or a JSON file containing map settings (again, if you want to customize them).

For example, let's make a map using these custom generator settings:

{
View script rendering design doc.txt
overall
- everything can either be drawn at position (to position/entity) or at entity (to position/entity)
- everything can have the color changed / be tinted
- everything can be visible to everyone or only to specifc players or forces
- what is drawn on top? "Best" would be to draw the new stuff on top of the old stuff, so if you draw thing1 and then thing2, thing2 is on top of thing1
things that can be drawn
- line, dashed line
@Bilka2
Bilka2 / worm-autoplace.lua
Last active May 6, 2019
Factorio version 0.16.51/0.17
View worm-autoplace.lua
-- data for 0.16.51, functionality in 0.17 explained in comment below
["big-worm-turret"] = {
autoplace = {
control = "enemy-base",
force = "enemy",
max_probability = 0.2,
order = "b[enemy]-b[worm]",
peaks = {
{
influence = 0,
@Bilka2
Bilka2 / control.lua
Last active Oct 2, 2019
Create a timelapse from a factorio replay save file
View control.lua
-- Just add this to the end of the control.lua file in the save file and then replay the file
-- This sequence is adjusted for https://www.speedrun.com/Factorio/run/mr87xlgy
script.on_nth_tick(300, function(event)
if event.tick < 90000 then
game.take_screenshot{
surface = game.surfaces[1],
position = {-88,-9},
resolution = {1920,1080},
zoom = 0.2,
@Bilka2
Bilka2 / Express (blue) belt.txt
Created Oct 17, 2018
BPSTRING Bilka's Belt Balancers 1-8 → 1-8
View Express (blue) belt.txt
0eNrtfcuuHEeS5a8UuJmNsuBuZv4ILfs3BgOCKnG6iaJIgY9CFxq57Q/oT5wvmUtRl2RLEe7mx4/njVSrNkJJpGe83czO6z+e/fD648uf37168+H5D2/f/v3Z9//x9d+8f/b9//7m/376b6/+9vbN53/9/tW/vnnx+tO/+/DPn18++/7ZP169+/Dx4d989+zNi58+/YvPf+ISn12/e/bqzY8v//3Z9/H63c7ffPXh5U9f/9rLf//53cv37y/vf3796sOHl++++euy+9ePfli/+Zt6/T/fPXv55sOrD69efj7+X/7PP5+/+fjTDw+/8X383e9/ePfizfuf3777cPnh5esPD6v//Pb9w19/++bTTz8seXn4K/98+IdcPx3Vb5aT49PZWeiv6fNScW8pHT8yaRyZDS8XHw/uu2c/vnr38m+f/1PeWTsNrx0aR5rR1XYvY0FvcPjv5y07a1fkbu8e5Ybe7LC3Wgzgzd5fLYKr/ebJsb21R16Yz7c5/DX170xU9LbvPpLR0Puzv1wCr6j038WIvj6/W/vhy/nLF/r7b7aC7569fvGwyMO/i8/1+Q8vXr9487dfbtU/Xr57/8vfKxqiPfwvbNvXz3D4dKB3u6HY4g1FhjaUmU+rcnc7eE/ZXS3x9s488lVprlRGDupxqd3PaAXv5MNh9d5E87+J8a7fxHSbN1Gpb6Jy30Slvol6pdRzrQuXuV/EAi8Xr7M13JdvhfiKOPSrs1PAtb6Fn1f6XWGUfcXc8cqxebpR8KK1XxjC7Y+n6rT5qjNz6rqLv1TO4FsZHAdeqA1DBY90/13YOO3H3nlLQGoO6d8sgecK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l/fH5e3vB5VC8EA5ITLPNGMhkbA6uxpCxotViVuhh69ydiMFiiZTyX/H66TxzY5grvSNJYtG9291llJm+HlrHiyVd3ziYK8BEos+cSGwuKBmdFq80SNFlF0nCBRR9fFranPeE3Y0hrWJFGWb0R8U3IskBlTweBhQkqmwGJ96uAi7QiBxBgGxGD/yXwQEsJpdblRv/+wpes+iXSfb5EU7wSguxgs2e/xEU9noIIXa22idywZHVNUR7pBU6ZU
@Bilka2
Bilka2 / gist:e98a7b97d738e9161a3db8497cb35f7c
Created Oct 17, 2018
BPSTRING Bilka's Belt Balancers - Big Ones
View gist:e98a7b97d738e9161a3db8497cb35f7c
0eNrkvduOXceRBPorAp/Vg8q6l3/FMAxK6vE0DtUSmqTggaB/P7vJvmxTWbUiYrXOFHD84MG0uXNlZmVd8hb5+7sfPny+/fXh7v7TP3/45Zf/593ffn/9y8d3f/v71f/7+L/d/fjL/dc/f7z71/37D49/+/S/v96++9u73+4ePn2+/OX7d/fvf378w9d/cWPv/vj+3d39T7f/fvc3++N74pfx6pfR/eXdp9ufr37264e7T59uH65+lqgP5qtf5j/+8f272/tPd5/ubr9K/OX/+d9/3n/++YfLN/5mL7/+9PD+/uOvvzx8uvnh9sOnC9Vff/l4+dkv94+fvJC66d+/+9/H/3Oh/tPdw+2PX/+3/P27izY/Pfzy4Z8/3P7P+9/ufnl4/MGPdw8/fr779M/b+/c/fLj95093Hx//77u/fXr4fPv9y//6cPv+p3/+z/v7n/75SOP2y2L99/sPH6/+yfP/8PXf/vzLTxci4Y9HhXwjScQlaa4kdRdJEi5J3VuSjEtS9pak4JLkvfdJfZHk8+WMePjXwy+X/zuTJc1W5ekM+uXzp18/f3rnfKbhCotfPzL+2EVF/c+H8Z+5tv96MVmHxMDFt93EtwAzH7bj3YC1C8ulM/wm2W/pErG748Hmvruf7G3Dz/W097Fu+LnuH+txG0kqLEnZXBL86qibS9JhSdrejwYbtJ/QNl2UGGhR6q6iIJfds7dT/6t8I4ZHMdK+x7bKYa7CZ/fj0WgPn7YxI2p/olggtfPuxbZqr7Qo254UDVnnxGyvTntFbZu3ZRzMhoozMz16XKaAaP3lCV/dCIrR7tc+ek6Rdb824j2xvtNGvGfCvu3AvOe3R8LP+uiej/vEKSsrSd1nsRvrwm7Ee2d532iTMZdIJh5lGbk28uRNVj2CxjrUddcofARUUyfPGFc1ifVrt1VNZiXZ9TDOhXZryzanQq4083kf5hvtM2/EfKeZL5u6a3nQnmfZNNxWIB8oPftA+RsxPIqER5Q2V06kneiya1Y5UZnG7NL
View Bilka's Belt Balancers - Big Ones.md

Blueprint book string

Collection of belt balancers. These balancers could originally be found on the wiki, now there are hosted here and on factorioprints.com.

Includes:

  • 12 to 4 throughput unlimited (all belt colors)
  • 12 to 6 (blue belt)
  • 12 to 12 (all belt colors)
  • 16 to 16 inline (blue belt)
  • 16 to 16 throughput unlimited (all belt colors)
You can’t perform that action at this time.