Difference between revisions of "AI Craftapalooza Machines"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) |
Troylaurin (talk | contribs) |
||
Line 1,852: | Line 1,852: | ||
!Lines | !Lines | ||
!Code | !Code | ||
+ | |||
+ | |- | ||
+ | |craft 2:10 | ||
+ | |21 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | CmNyYWZ0IDI6MTAAAAAAAAAAABUAAAANbG9jYWwuaW50LnNldAhjb25zdGFudAQEdGllcg5nbG9iYWwu | ||
+ | aW50LmdldAhjb25zdGFudAQPY3JhZnRfdGllcjoyLjEwEGxvY2FsLmRvdWJsZS5zZXQIY29uc3RhbnQE | ||
+ | BWNvdW50EWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BBBjcmFmdF9jb3VudDoyLjEwDmdlbmVyaWMu | ||
+ | Z290b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA9jb21wYXJp | ||
+ | c29uLmJvb2wOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFu | ||
+ | dAQBPAhjb25zdGFudAIBAAAACGNvbnN0YW50BAF8DmNvbXBhcmlzb24uaW50DWxvY2FsLmludC5nZXQI | ||
+ | Y29uc3RhbnQEBHRpZXIIY29uc3RhbnQEAT4IY29uc3RhbnQCCgAAAAhjb25zdGFudAQBfBFjb21wYXJp | ||
+ | c29uLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBPAhjb25z | ||
+ | dGFudAMAAAAAAADwPwhjb25zdGFudAQBfA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25z | ||
+ | dGFudAQMY3JhZnRfc3RhdHVzCGNvbnN0YW50BAE+CGNvbnN0YW50AscAAAATZ2VuZXJpYy5leGVjdXRl | ||
+ | c3luYwhjb25zdGFudAQNY3JhZnQgMjoxMDppbg5nbG9iYWwuaW50LnNldAhjb25zdGFudAQOY3JhZnRf | ||
+ | dGllcjozLjYNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchFnbG9iYWwuZG91YmxlLnNldAhjb25z | ||
+ | dGFudAQPY3JhZnRfY291bnQ6My42EWFyaXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxv | ||
+ | Y2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAEqDGRvdWJsZS5mbG9vchFhcml0 | ||
+ | aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAA6TRKkjQghjb25zdGFudAQB | ||
+ | LxFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAAAAAAAkQAhjb25zdGFudAQDcG93A2kyZA1sb2Nh | ||
+ | bC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BANtb2QIY29uc3RhbnQDAAAAAAAAJEAIY29u | ||
+ | c3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0 | ||
+ | X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BA9jYWJsZS5p | ||
+ | bnN1bGF0ZWQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchNnZW5lcmljLmV4ZWN1dGVzeW5jCGNv | ||
+ | bnN0YW50BAljcmFmdCAzOjYOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My45DWxv | ||
+ | Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIRZ2xvYmFsLmRvdWJsZS5zZXQIY29uc3RhbnQED2NyYWZ0 | ||
+ | X2NvdW50OjMuORFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3Vu | ||
+ |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25z | ||
+ | dGFudAQDcG93A2kyZA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BANtb2QIY29u | ||
+ | c3RhbnQDAAAAAAAAJEAIY29uc3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5n | ||
+ | ZXQIY29uc3RhbnQED2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50 | ||
+ | CGNvbnN0YW50BAR3aXJlDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXITZ2VuZXJpYy5leGVjdXRl | ||
+ | c3luYwhjb25zdGFudAQPY3JhZnQgcGFydDp3aXJlE2dlbmVyaWMuZXhlY3V0ZXN5bmMIY29uc3RhbnQE | ||
+ | EWNyYWZ0IDI6MTA6cGxhdGVzDWZhY3RvcnkuY3JhZnQIY29uc3RhbnQEDm1hY2hpbmUuYm9pbGVyDWxv | ||
+ | Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQ= | ||
+ | |src= | ||
+ | ; Boiler | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
+ | |||
+ | tier = global.int.get("craft_tier:2.10") | ||
+ | count = global.double.get("craft_count:2.10") | ||
+ | gotoif(99, tier < 1 | tier > 10 | count < 1.0 | global.int.get("craft_status") > 199) | ||
+ | |||
+ | executesync("craft 2:10:in") | ||
+ | |||
+ | ;insulatedcable = count * floor((42222111111.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:3.6", tier) | ||
+ | global.double.set("craft_count:3.6", count * floor((42222111111.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("cable.insulated", tier)) | ||
+ | executesync("craft 3:6") | ||
+ | |||
+ | ;pumps = count * 1.0 | ||
+ | global.int.set("craft_tier:3.9", tier) | ||
+ | global.double.set("craft_count:3.9", count - craft_inventory * count("pump", tier)) | ||
+ | executesync("craft 3:9") | ||
+ | |||
+ | ;motors = count * floor((43222221111.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:3.8", tier) | ||
+ | global.double.set("craft_count:3.8", count * floor((43222221111.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("motor", tier)) | ||
+ | executesync("craft 3:8") | ||
+ | |||
+ | ;screw = count * 2.0 | ||
+ | global.int.set("craft_tier:screw", tier) | ||
+ | global.double.set("craft_count:screw", count * 2.0 - craft_inventory * count("screw", tier)) | ||
+ | executesync("craft part:screw") | ||
+ | |||
+ | ;wires = count * floor((54333332221.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:wire", tier) | ||
+ | global.double.set("craft_count:wire", count * floor((54333332221.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("wire", tier)) | ||
+ | executesync("craft part:wire") | ||
+ | |||
+ | executesync("craft 2:10:plates") | ||
+ | |||
+ | craft("machine.boiler", tier, count) | ||
+ | }} | ||
+ | |||
+ | |- | ||
+ | |craft 2:10:in | ||
+ | |13 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | DWNyYWZ0IDI6MTA6aW4AAAAAAAAAAA0AAAANbG9jYWwuaW50LnNldAhjb25zdGFudAQEdGllcg5nbG9i | ||
+ | YWwuaW50LmdldAhjb25zdGFudAQPY3JhZnRfdGllcjoyLjEwEGxvY2FsLmRvdWJsZS5zZXQIY29uc3Rh | ||
+ | bnQEBWNvdW50EWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BBBjcmFmdF9jb3VudDoyLjEwEGxvY2Fs | ||
+ | LmRvdWJsZS5zZXQIY29uc3RhbnQEBmluZ290cwhjb25zdGFudAMAAAAAAAAAAA5nbG9iYWwuaW50LnNl | ||
+ | dAhjb25zdGFudAQQY3JhZnRfdGllcjppbmdvdA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWds | ||
+ | b2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BBFjcmFmdF9jb3VudDppbmdvdBFhcml0aG1ldGljLmRvdWJs | ||
+ | ZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAZpbmdvdHMIY29uc3RhbnQEAS0TZmFjdG9yeS5pdGVt | ||
+ | cy5jb3VudAhjb25zdGFudAQFaW5nb3QNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchNnZW5lcmlj | ||
+ | LmV4ZWN1dGVzeW5jCGNvbnN0YW50BAtjcmFmdCBpbmdvdA5nZW5lcmljLmdvdG9pZghjb25zdGFudAJj | ||
+ | AAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxjcmFmdF9zdGF0dXMIY29u | ||
+ | c3RhbnQEAT4IY29uc3RhbnQCxwAAAA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQPY3JhZnRfdGllcjoy | ||
+ | LjEwDmFyaXRobWV0aWMuaW50DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEAS0I | ||
+ | Y29uc3RhbnQCAQAAABFnbG9iYWwuZG91YmxlLnNldAhjb25zdGFudAQQY3JhZnRfY291bnQ6Mi4xMBFh | ||
+ | cml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQB | ||
+ | LRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50 | ||
+ | b3J5CGNvbnN0YW50BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEDm1hY2hpbmUuYm9pbGVy | ||
+ | DmFyaXRobWV0aWMuaW50DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEAS0IY29u | ||
+ | c3RhbnQCAQAAABNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0YW50BApjcmFmdCAyOjEwDmdlbmVyaWMu | ||
+ | Z290b2lmCGNvbnN0YW50AmMAAAAOY29tcGFyaXNvbi5pbnQOZ2xvYmFsLmludC5nZXQIY29uc3RhbnQE | ||
+ | DGNyYWZ0X3N0YXR1cwhjb25zdGFudAQBPghjb25zdGFudALHAAAADmdsb2JhbC5pbnQuc2V0CGNvbnN0 | ||
+ | YW50BA9jcmFmdF90aWVyOjIuMTANbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchFnbG9iYWwuZG91 | ||
+ | YmxlLnNldAhjb25zdGFudAQQY3JhZnRfY291bnQ6Mi4xMBBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50 | ||
+ | BAVjb3VudA== | ||
+ | |src= | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
+ | :local double ingots | ||
+ | |||
+ | tier = global.int.get("craft_tier:2.10") | ||
+ | count = global.double.get("craft_count:2.10") | ||
+ | |||
+ | ; Ingots | ||
+ | ingots = 0.0 ; TODO | ||
+ | global.int.set("craft_tier:ingot", tier) | ||
+ | global.double.set("craft_count:ingot", ingots - count("ingot", tier)) | ||
+ | ;global.int.set("craft_verify:ingot", 1) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | ; Lower tier inputs | ||
+ | global.int.set("craft_tier:2.10", tier - 1) | ||
+ | global.double.set("craft_count:2.10", count - craft_inventory * count("machine.boiler", tier - 1)) | ||
+ | executesync("craft 2:10") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | ; Restore state for this tier | ||
+ | global.int.set("craft_tier:2.10", tier) | ||
+ | global.double.set("craft_count:2.10", count) | ||
+ | }} | ||
+ | |||
+ | |- | ||
+ | |craft 2:10:plates | ||
+ | |8 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | EWNyYWZ0IDI6MTA6cGxhdGVzAAAAAAAAAAAIAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIO | ||
+ | Z2xvYmFsLmludC5nZXQIY29uc3RhbnQED2NyYWZ0X3RpZXI6Mi4xMBBsb2NhbC5kb3VibGUuc2V0CGNv | ||
+ | bnN0YW50BAVjb3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQQY3JhZnRfY291bnQ6Mi4xMA5n | ||
+ | bG9iYWwuaW50LnNldAhjb25zdGFudAQOY3JhZnRfdGllcjozLjQNbG9jYWwuaW50LmdldAhjb25zdGFu | ||
+ | dAQEdGllchFnbG9iYWwuZG91YmxlLnNldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My40EWFyaXRobWV0 | ||
+ | aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50 | ||
+ | CGNvbnN0YW50BAEqDGRvdWJsZS5mbG9vchFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAAAAAADw | ||
+ | Pwhjb25zdGFudAQBKxFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMA | ||
+ | APdBnf82Qghjb25zdGFudAQBLxFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAAAAAAAkQAhjb25z | ||
+ | dGFudAQDcG93A2kyZA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BANtb2QIY29u | ||
+ | c3RhbnQDAAAAAAAAJEAIY29uc3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5n | ||
+ | ZXQIY29uc3RhbnQED2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50 | ||
+ | CGNvbnN0YW50BAVibG9jaw1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyE2dlbmVyaWMuZXhlY3V0 | ||
+ | ZXN5bmMIY29uc3RhbnQECWNyYWZ0IDM6NA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQOY3JhZnRfdGll | ||
+ | cjozLjMNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchFnbG9iYWwuZG91YmxlLnNldAhjb25zdGFu | ||
+ | dAQPY3JhZnRfY291bnQ6My4zEWFyaXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2Fs | ||
+ | LmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAEqDGRvdWJsZS5mbG9vchFhcml0aG1l | ||
+ | dGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAPq1CU0pQghjb25zdGFudAQBLxFh | ||
+ | cml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAAAAAAAkQAhjb25zdGFudAQDcG93A2kyZA1sb2NhbC5p | ||
+ | bnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BANtb2QIY29uc3RhbnQDAAAAAAAAJEAIY29uc3Rh | ||
+ | bnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0X2lu | ||
+ | dmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAtwbGF0ZS5kZW5z | ||
+ | ZQ1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyE2dlbmVyaWMuZXhlY3V0ZXN5bmMIY29uc3RhbnQE | ||
+ | CWNyYWZ0IDM6Mw== | ||
+ | |src= | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
+ | |||
+ | tier = global.int.get("craft_tier:2.10") | ||
+ | count = global.double.get("craft_count:2.10") | ||
+ | |||
+ | ; blocks = count * floor(1.0 + (98777776631.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:3.4", tier) | ||
+ | global.double.set("craft_count:3.4", count * floor(1.0 + (98777776631.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("block", tier)) | ||
+ | executesync("craft 3:4") | ||
+ | |||
+ | ; denseplates = count * floor((54333332221.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:3.3", tier) | ||
+ | global.double.set("craft_count:3.3", count * floor((54333332221.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("plate.dense", tier)) | ||
+ | executesync("craft 3:3") | ||
+ | }} | ||
|} | |} |
Revision as of 09:29, 22 January 2021
Contents
Machine scripts
Oven (1)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:1 | 16 |
| |||
craft 2:1:in | 18 |
| |||
craft 2:1:plates | 11 |
|
Assembler (2)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:2 | 17 |
| |||
craft 2:2:in | 13 |
| |||
craft 2:2:plates | 20 |
|
Refiner (3)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:3 | 16 |
| |||
craft 2:3:in | 17 |
| |||
craft 2:3:misc | 18 |
|
Crusher (4)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:4 | 14 |
| |||
craft 2:4:in | 18 |
|
Cutter (5)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:5 | 15 |
| |||
craft 2:5:in | 17 |
| |||
craft 2:5:plates | 12 |
|
Presser (6)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:6 | 17 |
| |||
craft 2:6:in | 22 |
|
Mixer (7)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:7 | 14 |
| |||
craft 2:7:in | 18 |
|
Belt (8)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:8 | 14 |
| |||
craft 2:8:in | 18 |
|
Shaper (9)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:9 | 15 |
| |||
craft 2:9:in | 13 |
| |||
craft 2:9:plates | 18 |
|
Boiler (10)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:10 | 21 |
| |||
craft 2:10:in | 13 |
| |||
craft 2:10:plates | 8 |
|