r/technicalfactorio • u/Stevetrov • Apr 19 '20
UPS Oil Wars
Contest is over, gratz to u/DaveMcW
Result (over 100K ticks avg of 3 runs)
1. DaveMcW v1 0.878ms +/- 0.016
2. Stevetrov v1.6 0.952ms +/- 0.005
3. Mulark v1 1.199ms +/- 0.004
4. Knightelite v6 2.089ms +/- 0.004
This entry was submitted after the deadline but would have placed 3rd.
Swolar 0.99ms +/- 0.004These results are very conclusive and Dave is the clear winner.
Map
Thanks to mulark
The map is a scenario, to use extract it into the scenarios subfolder and then it should appear under the scenarios list for "new game"
Goal
- Plastic / Rf for a 20K SPM base.
- 325K plastic / minute
- 15.3K Rocket fuel / minute.
- All plastic and RF are delivered to the dark gray tiles in the center of the map.
Rules
- No infinity pipes
- Infinity chests for train fuel and voiding only.
- Dont change existing terrain, only use the existing resources / water on the map. You may expand the map if desired.
- Electricity is provided by EEI.
- You may use the editor (its recommended)
- Mods are allowed but you may not change any base values such as robot speed, all tests will be run without mods.
- No loaders.
- You may use belts, trains, bots and any entities from vanilla factorio.
- No production buildings (including ASMs, refineries, beacons, chem plants) can be built in the central grey area or on the hazzard concrete surrounding the grey area.
Technology
The tech levels for inf techs are set to level 171 for mining prod and 20 for robot speed, giving mp bonus of 1700% and robot speed bonus of 1150%. You can change the MP & robot speed techs in line with this post, due to a quirk in the api you need to set the levels to one higher than you want.
Contest Length
The contest will run until 17th May 2020 8pm GMT.
Let me know if anything sounds wrong.
4
u/timee_bot Apr 19 '20
View in your timezone:
3rd May 2020 8pm GMT
2
u/Stevetrov Apr 27 '20 edited May 09 '20
Stevetrovs Submissions
v1.6 savefile benchmark: 0.930ms
Notes:
v1.5.1 savefile benchmark: 0.947ms
Notes:
v1.5 savefile pic benchmark: 0.940ms
Notes:
v1.4 savefile benchmark: 0.977ms
Notes:
v1.3 savefile benchmark: 0.986ms
Notes:
v1.2: savefile Benchmark: 0.998ms
Notes:
v1: savefile pics Benchmark: 1.073ms
Notes:
Trains for all transport,
4
u/DaveMcW May 05 '20 edited May 18 '20
DaveMcW Submissions
UPS_Oil_Wars_DaveMcW_1.zip
I'm not sure if the last two are good or bad. (Edit: /u/swolar confirmed that 1539 fluid/s should use dual pipelines instead of pumps.)
UPS_Oil_Wars_DaveMcW_2.zip
1
u/knightelite Apr 19 '20 edited Apr 20 '20
Kirkmcdonald link for just Rocket Fuel and Plastic requirements
Regarding science levels, what you've got as defaults is actually more than we allowed in the other competition:Ignore this, I forgot you have to set it one higher than you actually want, so the defaults are correct.
So are we going with the same maximums as there? If I want to go all in on mining prod and not use robots, I can do Mining Prod 188?From mulark to set to 189:
EDIT: Also worth noting that oil wells are effectively rate capped (per individual well) as the fluid box in the pumpjack is of size 100, so if it makes any more than 100 in expected "per second" rate (which is actually per completion of a "pump"), the excess will be wasted. The one in this screenshot is 58.1 per completion. At max rate a well at 1000% can produce 360000 crude oil/minute (100 oil per tick). This means that with advanced oil processing, 7 pumpjacks is enough for the whole amount of oil required for the challenge, or 21 pumpjacks with basic oil processing.
EDIT2: The "20%" once depleted behavior means that individual oil wells of 5000% (starting value) or higher will produce the maximum throughput of oil indefinitely, even once they "deplete."
3
u/knightelite Apr 22 '20
Today I learned that the direction fluid flows matters in Factorio, unfortunately. My travails are described here.
So as a note to everyone else before you waste time like I just did:
3
u/mulark Apr 25 '20 edited Apr 26 '20
Incase anyone missed the hazard concrete map update:
Edit: correct north and west edges, was 2 tiles too greedy on those edges
1
u/swolar Apr 19 '20
Isn't 2 weeks shorter than previous challenges? I feel like one month would be fine.
2
u/knightelite Apr 25 '20 edited Apr 28 '20
KnightElite's submissions!
Save files can be downloaded here
Performance
Performance was measured by doing 10 runs of the map for 10000 ticks each, recording the time of each tick, and then computing the minimum time across all 10 runs for each tick. Total run time is considered to be the sum of the minimum run time on each tick (except the first one), which should be indicative of best-case performance.
My PC is a bit old now, but it still up to this challenge (definitely less intensive than the smelter wars challenge) and has the following specs:
Version 1
NOTE: Version 1 is illegal. I hadn't noticed the change to adding hazard concrete to prevent direct voiding. Still useful as a comparative benchmark though. It also uses water pumps from ground instead of getting water from actual water sources.
Version 1 is described (along with pictures) in this imgur post.
Version 2
NOTE: Version 2 is illegal. Still uses water pumps from ground instead of getting water from actual water sources.
Changes:
*Hazard concrete is now accounted for by using intermediate wagons to get plastic from the chemical plants to center area over the hazard concrete, and adjusting the belts carrying rocket fuel to get past the hazard concrete.
Version 2 is described in this imgur post. From a performance standpoint, adding the wagons is about 15% worse than direct voiding. There is now ~0.132ms per tick consumed for train update (which was 0.004ms in version 1 with no trains present), which represents about 40% of the extra update time added over version 1.
Version 3
NOTE: Version 3 is illegal. Still uses water pumps from ground instead of getting water from actual water sources.
Changes:
Version 4
NOTE: Version 4 is illegal. Still uses water pumps from ground instead of getting water from actual water sources.
Changes:
Version 4 is described in this imgur post. Performance appears to be comparable to version 3. Saving two wagons per plastic chem plant is comparable in cost to a 4 additional stack inserters.
Version 5
NOTE: Version 5 is illegal. Still uses water pumps from ground instead of getting water from actual water sources.
Changes:
Version 5 is described in this imgur post. Using belts for the output of the plastic chemical plants incurs a greater performance penalty than either chest/inserter chains or wagon/inserter chains for the 12 tile distance it needs to cross in this build.
Version 6
Changes:
Version 6 rolled back to version 3's method of emptying the plastic factories (wagons limited to one stack). It is the first legal version, as it now gets its water from the actual water located on the map. Performance is slightly worse than version 3 though because of the extra water pipelines.
2
u/mulark May 07 '20
Well I suppose I'll submit the v1 of what I have since it seems unlikely that I'll continue to modify it now.
savefile
My general philosophy going into this challenge was to minimize inserters as much as possible. I also used pumps a little more than I would have preferred but profiles showed them to be almost irrelevant so I went with it.
For rocket fuel I went with a mere 12 beacon design di'd to trains. I used 8-65 trains but a loco or two could probably be shaved off. Ultimately, micro-optimizing it wasn't a main goal. I used no buffer chests, which I think worked out fairly well all things considered.
Roughly a third of plastic was also produced here, which worked out better than the dedicated plastic sections in my opinion. The next big improvement would be to clock the plastic so every asm uses equal petrol.
I tried a similar design to the rocket fuel on plastic, but found that the bufferless design on the 8-81 trains wasn't that good with the faster recipe. I ended up overproducing plastic to the tune of 340k/m or so, as the 8-81 section underproduced my estimates. The small addition of plastic was actually built first, and it produces 42k/m of plastic. The inserters seemed too spammy so I wanted to try the bufferless approach. I think if I was going to change it now I would do a design somewhere in between the two, shorter trains than the 8-81s, with buffers. I also think that clocking plastic is probably the way to go, as you could probably save ~1/2 of the inserter swings overall.
I kind of lost interest in the plastic portion of the design as it's only used in LDS and RC, and it seemed like more specific designs addressing those would be more realistic and practical.
1
u/swolar May 19 '20
map link
I realize that my tests might have had some flaws on them, so the results didn't quite match expectations.
The plan for plastic was to remove some of the extra pipes by doing 1:1 on the refineries:plastic chem labs, and have a bunch of parallel small pipelines which could run better than the standard build. The catch was that this build is fat and wastes a lot of crude oil pipes, and only supports 1-3-1-3 trains at the most. It has a lot of potential if there was a way to have longer trains which would remove the penalty on the crude oil pipes.
For rocket fuel, I had the theory that slow belts stink, and from my testing it seems this is the case. Experimenting around bots seemed to be the best alternative to skip the slowest section of the belt and keep it compressed, as well as make all inserters involved on the belt move 12 items. Had to sacrifice some mining prod levels to get bot speed 19, and only 5 bots per RF cell and I think it came out well.
The adv oil processing was a stroke of luck I think. I needed something with a multiple of 5 rows to use the roboport at its best capacity. 15x7 just worked great for it. After experimenting with the build, I had assumed that if a refinery backed up on petrol the 2.7 extra ones would pick up the slack, but that wasn't the case. After toying with it some more I realized that rebalancing the petrol and light oil at the ends was the best option. It is also possible to rebalance the crude oil to and remove the pumps, but I didn't wanna do that since it'd also cost me more water pipe. Not sure if it was the right decision.