Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«426 »
  • Post
  • Reply
necrotic
Aug 1, 2005
I owe my brother big time for this!

Each section has its own isolated network. The green layers overlap, but the orange logistics sections do not. I limit each network to about 25 of each bot and refill of they drop below 5.

Adbot
ADBOT LOVES YOU

Collateral Damage
Jun 13, 2009



I got what I think is a workable solution.

I'm using the on_nth_tick event and running once a second, which I think should be fine. This isn't a building that the player is likely to plant hundreds of. It's a modified assembler with a fixed recipe that turns "timber" into raw wood. On each event cycle it checks the assembler input and if there's less than 5 timber and the machine has power it will look for a tree within its area of effect. If the tree gives raw wood, it will then destroy that tree and add an equal amount of timber to itself, which is then processed at a rate of 1 timber to 1 raw wood per second.

If it can't find any trees it will remove itself from the index of machines, and if a machine is no longer valid because it's been destroyed or mined it's also removed from the index.

Published on the mod hub: https://mods.factorio.com/mod/WoodHarvester

Collateral Damage fucked around with this message at Jul 8, 2018 around 18:09

DoubleNegative
Jan 27, 2010

The most virtuous child in the entire world.

I just want to take a moment to appreciate this item name. Modding can be a pretty wild ride!



(The mod, by the way.)

Loren1350
Mar 30, 2007


Collateral Damage posted:

I got what I think is a workable solution.

I'm using the on_nth_tick event and running once a second, which I think should be fine. This isn't a building that the player is likely to plant hundreds of. It's a modified assembler with a fixed recipe that turns "timber" into raw wood. On each event cycle it checks the assembler input and if there's less than 5 timber and the machine has power it will look for a tree within its area of effect. If the tree gives raw wood, it will then destroy that tree and add an equal amount of timber to itself, which is then processed at a rate of 1 timber to 1 raw wood per second.

If it can't find any trees it will remove itself from the index of machines, and if a machine is no longer valid because it's been destroyed or mined it's also removed from the index.

Published on the mod hub: https://mods.factorio.com/mod/WoodHarvester

Good solution (the only crack in the seams I see is potential stray timber, but whatcha gonna do?) I totally forgot about fixed_recipe!

Collateral Damage
Jun 13, 2009



Yeah if you mine the building you might get some spare timber in your inventory, but you can just place a harvester and put it back in to turn it to raw wood. There are a few bugs, but none that are really breaking. If you have other mods that modify trees to drop more than just wood, the harvester will happily ignore that and just give wood anyway.

There's an edge case where if you have a tree that doesn't give raw wood (which shouldn't happen unless you have other mods loving with the trees), the harvester will probably get stuck trying to harvest that tree over and over.

The building doesn't show the area it affects when you build it, because that property is only available on mining drills

And the model is just a recolored Assembler.

Binkenstein
Jan 18, 2010



necrotic posted:

Each section has its own isolated network. The green layers overlap, but the orange logistics sections do not. I limit each network to about 25 of each bot and refill of they drop below 5.

I have ~20 roboport long rail trunks that have a maximum of 1k of each bot. Perhaps I'm overkilling it a bit after they're built.

necrotic
Aug 1, 2005
I owe my brother big time for this!

I could definitely make the networks bigger, but I like having only one blueprint to spam.

OwlFancier
Aug 22, 2013

You see it works on two levels because the collective noun for owls is a parliament and also he's an idiot.


DoubleNegative posted:

I just want to take a moment to appreciate this item name. Modding can be a pretty wild ride!



(The mod, by the way.)

That's not... strictly incorrect, if you pulverized it into granules it would exhibit fluid properties while remaining a solid.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams


OK so I'm trying to increase my research production. And I like trains. So I've got a research factory at my main base, fed from a bus, that with yellow assemblers produces 2.5 research per second (10 red, 12 green, 24 blue, 10 military, 14 production, 14 high-tech). I'm duplicating that offsite and training in the beakers. Red, Green, Blue, and High-Tech are easy, everything uses those. I can use a wait until full, leave when empty train order. Production would probably be fine because I'm mostly researching miner drills so I'm mostly using production. But military is a problem because I won't use it often, but when I do I want to use it at the same full capacity. If I have multiple trains waiting until they're empty with military supplies, they'll eventually back up and block everything.

So a few ideas, wondering what people think:
1) Don't use separate trains, put all the beakers into one train (limiting the slots) and having it wait until full and then leave if it runs out of any of the beakers
2) A beaker depot with enough queing capacity that all my outposts will send beakers to before they bring them back to my main research base
3) Build a research outpost with the exact number of labs to consume 2.5 research per second, for each set of research factories I build, and use regular full/empty orders
4) Some way of activating the military and production train stations only when they're needed, so unneeded loads will wait at the production site. 1 train at a time should be fine, I guess I doubt I'll get to a point where my factory will consume 8000 beakers (one car load) before another one can be dispatched.

Any other ideas?

Xaintrailles
Aug 14, 2015



FISHMANPET posted:

OK so I'm trying to increase my research production. And I like trains. So I've got a research factory at my main base, fed from a bus, that with yellow assemblers produces 2.5 research per second (10 red, 12 green, 24 blue, 10 military, 14 production, 14 high-tech). I'm duplicating that offsite and training in the beakers. Red, Green, Blue, and High-Tech are easy, everything uses those. I can use a wait until full, leave when empty train order. Production would probably be fine because I'm mostly researching miner drills so I'm mostly using production. But military is a problem because I won't use it often, but when I do I want to use it at the same full capacity. If I have multiple trains waiting until they're empty with military supplies, they'll eventually back up and block everything.

So a few ideas, wondering what people think:
1) Don't use separate trains, put all the beakers into one train (limiting the slots) and having it wait until full and then leave if it runs out of any of the beakers
2) A beaker depot with enough queing capacity that all my outposts will send beakers to before they bring them back to my main research base
3) Build a research outpost with the exact number of labs to consume 2.5 research per second, for each set of research factories I build, and use regular full/empty orders
4) Some way of activating the military and production train stations only when they're needed, so unneeded loads will wait at the production site. 1 train at a time should be fine, I guess I doubt I'll get to a point where my factory will consume 8000 beakers (one car load) before another one can be dispatched.

Any other ideas?

Maybe too simple but just a separate line entirely for the military beakers, so the military train(s) can wait without causing a problem?
Or empty or inactivity orders at the unload site on the military science trains and they'll run in pointless circles but won't block anything permanently.

Galvanik
Feb 28, 2013


Are you only using one train station to feed your science base?

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams


Galvanik posted:

Are you only using one train station to feed your science base?

Um, research labs are at my home base, I currently have a platform for each type of research. But it's all in a small area and if I had two trains going to a single station it'd all backup.

M_Gargantua
Oct 16, 2006

STOMPIN' ON INTO THE POWER LINES

Toilet Rascal

Filter the cells on the wagons to holy hold science packs in the right ratio. Unload the science train to active provider chests via filter stack inserter. Have a bunch of storage chests each filtered with different science packs. Each filter stack inserter is set to only pull one color with a filter to only work when # of that pack in storage is less than some number, like 2000. Train departs the science outlost when full and departs the lab when inactive.

Joiny
Aug 9, 2005


You could make an intermediate parking area like this



Close the signal to each beaker train station depending on how much of that beaker you currently have at the train station, then the trains will wait at the parking area until you are running out and resupply you.

Edit: changed the image, used the wrong one at first.

Joiny fucked around with this message at Jul 13, 2018 around 03:41

FnF
Apr 10, 2008


FISHMANPET posted:

4) Some way of activating the military and production train stations only when they're needed, so unneeded loads will wait at the production site. 1 train at a time should be fine, I guess I doubt I'll get to a point where my factory will consume 8000 beakers (one car load) before another one can be dispatched.

IMO this is the cleanest way to do it - have separate stations for each, and only activate them if there's demand for those goods. This is inherently an over-supply scenario, same as when you're producing more copper ore (as an example) than your factory needs at that moment.

XkyRauh
Feb 15, 2005

Commander Keen is my hero.

Joiny, it makes me tremendously happy that you color-code your trains to match the ore they're carrying.

crabrock
Aug 2, 2002

aka sticklegs



Grimey Drawer

everybody doesn't do that?

ToxicSlurpee
Nov 5, 2003

-=SEND HELP=-




Pillbug

crabrock posted:

everybody doesn't do that?

No, mine are all black because I like black. I set them up to basically be fire and forget.

xzzy
Mar 5, 2009

wakey wakey to
this bowl of tasty


Yams Fan

I color code too, but run out of colors because I pretty much only do shades where I can move sliders to minimum or maximum.

crabrock
Aug 2, 2002

aka sticklegs



Grimey Drawer

they key is that shift right click + shift left click on locomotives copies color as well as schedule, so once you set up one you can copy it over to the others really easy.

ToxicSlurpee
Nov 5, 2003

-=SEND HELP=-




Pillbug

crabrock posted:

they key is that shift right click + shift left click on locomotives copies color as well as schedule, so once you set up one you can copy it over to the others really easy.

...YOU CAN DO THAT? holy crap that's great.

crabrock
Aug 2, 2002

aka sticklegs



Grimey Drawer

ToxicSlurpee posted:

...YOU CAN DO THAT? holy crap that's great.

that works to copy + paste almost everything. requester chest filters, wagon train filters, assembler/refinery/chem plant recipes, decider combinators, filter inserters, etc.

ToxicSlurpee
Nov 5, 2003

-=SEND HELP=-




Pillbug

This changes everything.

nullfunction
Jan 24, 2005



I used to color-code trains but now all of my trains are the same color because I started using LTN, so who knows what they're carrying at any given time.

I set up a little copy-paste locomotive pair next to a short bit of track that I use to inject more trains into the rail network, one that gets sent to the solids depot, and one that goes to the fluids depot. Put down a new train, connect the appropriate wagons, copy, paste, launch. It works out really well.

Joiny
Aug 9, 2005


I love color coding my trains, if anyone doesn't know you can find the color codes here: https://dddgamer.github.io/factorio...t/#train-colors

and there's a mod here that does it automatically: https://mods.factorio.com/mod/Train_Ore_Color

Loren1350
Mar 30, 2007


I got off my rear end and worked on updating one of my old mods. If you're interested in infinite ore but vanilla balanced (in my opinion anyway, and it still needs tweaking):

Underground mining drills

Chunjee
Oct 27, 2004
I can't read or write

I like this idea, keep at it! Too bad my current map already mined out all the stone in a 5 mile radius...

Loren1350
Mar 30, 2007


Chunjee posted:

I like this idea, keep at it! Too bad my current map already mined out all the stone in a 5 mile radius...

Well there is a regeneration option, though it doesn't interact well with alternate generation mods like RSO. You can try the command
code:
remote.call("underground-mining","regenerate","all")
It will hang for a while and may crash if you have a particularly big map; it works by saving every resource entity to a temporary table, deleting them from the map, telling Factorio to re-create them from mapgen data, running the "generate ores" routine, deleting the newly [re]generated surface resources, and then manually restoring them from the table). When I wrote this, Factorio did the "regenerate from mapgen" thing only on an entire surface at a time. Now it lets you do so for a smaller area, so I will be rewriting this function at some point to do this more efficiently memory-wise, because on a big map Lua might choke. And it'd probably be nice to stagger the generation for the players' sake, too.

I was also poking at this lately and realized I messed up in the math somewhere, so underground resources are showing up at much lower richnesses than intended. I don't have time to address it just yet but if you test this right now be aware that underground mining on a freshly tapped patch in the starting area is intended to be something like two or three times better.

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams


I am very bothered by the fact that High-Tech beakers take 14 seconds to make when they should take 15 seconds to make, since that fits more appropriately with every ratio of production for their ingredients.

Alkydere
Jun 7, 2010
Capitol: A building or complex of buildings in which any legislature meets.
Capital: A city designated as a legislative seat by the government or some other authority, often the city in which the government is located; otherwise the most important city within a country or a subdivision of it.

Welp, somehow the Factorio crew made Artillery even sexier. They got a sound guy

zedprime
Jun 9, 2007


Way to bury the lede on the map editor being turned into something you can use on the fly in games. In other words you can basically turn on a sandbox mode in your game, do some poo poo up to nearly anything that can exist can be plopped or ticking the simulation forward once per button press, then turn the sandbox mode off and go back to being a dude.

Adbot
ADBOT LOVES YOU

Collateral Damage
Jun 13, 2009



I updated the wood harvester mod I made earlier, now it harvests tree closest to itself first, sorts properly in the recipe list, and doesn't crash when you add it to an already existing game.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply
«426 »