[MOD 0.15] Wear and Tear (plus automated maintenance)
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Update 1.2.7
- Old machines in need of service now show up in the alert system and appear on the mini-map. This can be toggled on / off in game settings.
- Old machines in need of service now show up in the alert system and appear on the mini-map. This can be toggled on / off in game settings.
- Attachments
-
- 20170726174702_1.jpg (226.58 KiB) Viewed 8240 times
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Update 1.2.8
- Added Diagnostics Scanners for advanced automation. Unlock with circuit network research. If you place one in a logistics network, it will scan for old machines and send a signal for a new version of that machine into any connected circuit network. Useful for automating delivery of replacement machines to your construction bots.
I've attached a new demo save game to this message if anyone wants to see the diagnostic scanners in actions.
- Added Diagnostics Scanners for advanced automation. Unlock with circuit network research. If you place one in a logistics network, it will scan for old machines and send a signal for a new version of that machine into any connected circuit network. Useful for automating delivery of replacement machines to your construction bots.
I've attached a new demo save game to this message if anyone wants to see the diagnostic scanners in actions.
- Attachments
-
- WearTearDemo.zip
- (4.06 MiB) Downloaded 137 times
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I have both latest Factorio and Wear&Tear mod versions. For some reason most recent version of Wear&Tear crash my game. My only another installed mod is Rampant.
- Attachments
-
- screenshot of error
- wt_error.png (1.76 MiB) Viewed 8207 times
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Thanks for the report. I see the problem. Should be fixed. V1.2.10Hugger wrote:I have both latest Factorio and Wear&Tear mod versions. For some reason most recent version of Wear&Tear crash my game. My only another installed mod is Rampant.
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Works fine now.
Howewer, I noticed previously one annoying glitch: if drones autoreplace assembling machine and its inserter should feed assembling machine with one particular type of resource from belt with two types of items (iron plates from belt with iron and copper plates) sometimes during repacement phase ''dumb" inserters (fast inserter for example) take unwanted item (copper plate instead of iron) and then getting stuck with that unwanted item. That problem especially annoying with long inserters.
Howewer, I noticed previously one annoying glitch: if drones autoreplace assembling machine and its inserter should feed assembling machine with one particular type of resource from belt with two types of items (iron plates from belt with iron and copper plates) sometimes during repacement phase ''dumb" inserters (fast inserter for example) take unwanted item (copper plate instead of iron) and then getting stuck with that unwanted item. That problem especially annoying with long inserters.
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Yeah thats happened to me too. Obvious workaround is to use smart inserters. I'll see what I can do though. Maybe have it destroy unwanted items.Hugger wrote:Works fine now.
Howewer, I noticed previously one annoying glitch: if drones autoreplace assembling machine and its inserter should feed assembling machine with one particular type of resource from belt with two types of items (iron plates from belt with iron and copper plates) sometimes during repacement phase ''dumb" inserters (fast inserter for example) take unwanted item (copper plate instead of iron) and then getting stuck with that unwanted item. That problem especially annoying with long inserters.
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Just get all inserters from 3x spaces around the entity, loop through their hand contents if the target pos is inside the ent collosiion box, and spill them to ground around the entity and mark for deconstruction.withers wrote:Yeah thats happened to me too. Obvious workaround is to use smart inserters. I'll see what I can do though. Maybe have it destroy unwanted items.Hugger wrote:Works fine now.
Howewer, I noticed previously one annoying glitch: if drones autoreplace assembling machine and its inserter should feed assembling machine with one particular type of resource from belt with two types of items (iron plates from belt with iron and copper plates) sometimes during repacement phase ''dumb" inserters (fast inserter for example) take unwanted item (copper plate instead of iron) and then getting stuck with that unwanted item. That problem especially annoying with long inserters.
Code: Select all
--some pseudo code
local insert_stack = inserter.held_stack
local count = insert_stack.count
local inserted = new_entity.insert(stack)
if count - inserted > 0 then
local target = surface.create_entity({name="item-on-ground", position=surface.find_non_colliding_position(blah)}
target.stack.swap_stack(insert_stack)
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Great idea! I went with a slightly simpler solution though.Nexela wrote:Just get all inserters from 3x spaces around the entity, loop through their hand contents if the target pos is inside the ent collosiion box, and spill them to ground around the entity and mark for deconstruction.withers wrote:Yeah thats happened to me too. Obvious workaround is to use smart inserters. I'll see what I can do though. Maybe have it destroy unwanted items.Hugger wrote:Works fine now.
Howewer, I noticed previously one annoying glitch: if drones autoreplace assembling machine and its inserter should feed assembling machine with one particular type of resource from belt with two types of items (iron plates from belt with iron and copper plates) sometimes during repacement phase ''dumb" inserters (fast inserter for example) take unwanted item (copper plate instead of iron) and then getting stuck with that unwanted item. That problem especially annoying with long inserters.
Code: Select all
--some pseudo code local insert_stack = inserter.held_stack local count = insert_stack.count local inserted = new_entity.insert(stack) if count - inserted > 0 then local target = surface.create_entity({name="item-on-ground", position=surface.find_non_colliding_position(blah)} target.stack.swap_stack(insert_stack)
1. Before old entity gets removed, make a list of all inserters that feed it. Attach the list to the work order. (used to track the automation)
2. De-activate all inserters on the list.
3. When new entity gets placed at old location, re-activate inserters on the list.
Just uploaded fix.
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I found a potential conflict with AAI Industries with Wear and Tear.
When it spawns your equipment in the crash, every unique item, such as Angel's smelting stuff, turns into assembling machines 2.
I don't know where the exact conflict is, but it only happens when wear and tear is installed.
Cheers.
When it spawns your equipment in the crash, every unique item, such as Angel's smelting stuff, turns into assembling machines 2.
I don't know where the exact conflict is, but it only happens when wear and tear is installed.
Cheers.
"men will literally learn everything about ancient Rome instead of going to therapy"
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
diongham wrote:I found a potential conflict with AAI Industries with Wear and Tear.
When it spawns your equipment in the crash, every unique item, such as Angel's smelting stuff, turns into assembling machines 2.
I don't know where the exact conflict is, but it only happens when wear and tear is installed.
Cheers.
That's a strange bug. Not sure how it could be related to wear and tear though. I use AAI Industry myself and haven't been able to reproduce the problem.
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I have Angel's smelting patch that forces Angel's smelting that forces their smelting recipes and gives done at the start and quick start that gives me extra items at the beginning.withers wrote:diongham wrote:I found a potential conflict with AAI Industries with Wear and Tear.
When it spawns your equipment in the crash, every unique item, such as Angel's smelting stuff, turns into assembling machines 2.
I don't know where the exact conflict is, but it only happens when wear and tear is installed.
Cheers.
That's a strange bug. Not sure how it could be related to wear and tear though. I use AAI Industry myself and haven't been able to reproduce the problem.
Perhaps it's them. I'll check it out and see if that's it.
"men will literally learn everything about ancient Rome instead of going to therapy"
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Checked and it seems to be an issue with quick start. It doesn't show up with other inventory adding mods.
When quick start is enabled, all the assembling type items in the crash spot turn into assembling machines 2.
I also tested without AAI Industries and it seems to do the same thing. Way too many assembling machines and electric miners.
Maybe quick start, combined with your mods turning entities into single stacks adds too many items for it to be handled.
When quick start is enabled, all the assembling type items in the crash spot turn into assembling machines 2.
I also tested without AAI Industries and it seems to do the same thing. Way too many assembling machines and electric miners.
Maybe quick start, combined with your mods turning entities into single stacks adds too many items for it to be handled.
"men will literally learn everything about ancient Rome instead of going to therapy"
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I just looked at quick start. Yeah it adds, depending on settings, hundreds of assembling machines and mining drills to your inventory at the start of the game. Since wear and tear makes the stack size of these items = 1, that means you'll get hundreds of stacks with these items. Not a bug, just the result of getting 100's of assembling machines added to inventory. Unfortunately, since the devs screwed up my age tracking method for items as of .15 (they merged together stacks with different health, and I use "encoded" health to track age of items in inventory), there's nothing I can do about this. As a work-around, you can just turn off inventory item age tracking under start-up settings. This will prevent the stack size from being set to 1, it just won't remember the age of item when you pick items up and move them around. Then you could turn inventory age tracking back on once you've made it manageable.diongham wrote:Checked and it seems to be an issue with quick start. It doesn't show up with other inventory adding mods.
When quick start is enabled, all the assembling type items in the crash spot turn into assembling machines 2.
I also tested without AAI Industries and it seems to do the same thing. Way too many assembling machines and electric miners.
Maybe quick start, combined with your mods turning entities into single stacks adds too many items for it to be handled.
- ZombieMooose
- Filter Inserter
- Posts: 289
- Joined: Mon Feb 09, 2015 7:23 am
- Contact:
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Yup that worked (I must have skipped that setting).withers wrote:I just looked at quick start. Yeah it adds, depending on settings, hundreds of assembling machines and mining drills to your inventory at the start of the game. Since wear and tear makes the stack size of these items = 1, that means you'll get hundreds of stacks with these items. Not a bug, just the result of getting 100's of assembling machines added to inventory. Unfortunately, since the devs screwed up my age tracking method for items as of .15 (they merged together stacks with different health, and I use "encoded" health to track age of items in inventory), there's nothing I can do about this. As a work-around, you can just turn off inventory item age tracking under start-up settings. This will prevent the stack size from being set to 1, it just won't remember the age of item when you pick items up and move them around. Then you could turn inventory age tracking back on once you've made it manageable.diongham wrote:Checked and it seems to be an issue with quick start. It doesn't show up with other inventory adding mods.
When quick start is enabled, all the assembling type items in the crash spot turn into assembling machines 2.
I also tested without AAI Industries and it seems to do the same thing. Way too many assembling machines and electric miners.
Maybe quick start, combined with your mods turning entities into single stacks adds too many items for it to be handled.
"men will literally learn everything about ancient Rome instead of going to therapy"
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Is there any reason so the replacement can start only when it's "old" in settings and not "Aging" already ? There is a potential loss of productivity there :p
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I'm not sure what you mean. The available options for when bots do automated replacement are "old", "dilapidated", and "never". The should never replace a machine that is "aging".DarkyPupu wrote:Is there any reason so the replacement can start only when it's "old" in settings and not "Aging" already ? There is a potential loss of productivity there :p
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
Well that's exactly my question actually :
Why not ? Aging constructions have less good productivity and pollution than new onesThe should never replace a machine that is "aging"
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
There's a few reasons:DarkyPupu wrote:Well that's exactly my question actually :
Why not ? Aging constructions have less good productivity and pollution than new onesThe should never replace a machine that is "aging"
1. An aging machine is set up as the equivalent of a "vanilla" machine.
Here's an example. Let's say an assembling machine has a regular crafting speed of 1.0, the crafting speed for the different tiers look like this:
New Assembling Machine: 1.1
Aging Assembling Machine : 1.0
Old Assembling Machine: .5
Dilapidated Assembling Machine: .1
The "new" and "aging" are meant to be part of the machine's useful life, with a slight bonus for "new". Once the machine is "old" that's when it makes the most sense to replace it and recycle/refurnish.
2. If you set up a factory where bot's automatically replace machines that are just "aging", what would you do with the machine that get swapped out? There's no recipe to recycle or refurbish an "aging" machine.
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
I guess it makes sense especially for the second reason. However it still means that if you would replace manually (and trash) the aging ones, you would have 10% bonus from that exemple. I understand the reasonning but it's quite disturbing to me from a maximum efficiency point of view
I however thought of something else, maybe i will use a *lower* efficiency than aging for new machine (a bit like when you get a brand new car you shouldn't push it 100% at the start...) - it's kind of a warm-up :p
Maybe some settings like would fit the idea:
New Assembling Machine: 0.9
Aging Assembling Machine : 1.0
Old Assembling Machine: .5
Dilapidated Assembling Machine: .1
That would also solve my psychological problem to not have max efficiency replaced by robots at sight.
Does it make any sense ?
I however thought of something else, maybe i will use a *lower* efficiency than aging for new machine (a bit like when you get a brand new car you shouldn't push it 100% at the start...) - it's kind of a warm-up :p
Maybe some settings like would fit the idea:
New Assembling Machine: 0.9
Aging Assembling Machine : 1.0
Old Assembling Machine: .5
Dilapidated Assembling Machine: .1
That would also solve my psychological problem to not have max efficiency replaced by robots at sight.
Does it make any sense ?
-
- Filter Inserter
- Posts: 454
- Joined: Tue Jun 20, 2017 1:56 am
- Contact:
Re: [MOD 0.15] Wear and Tear (plus automated maintenance)
darkypupu are you german?
if so, hallo
efficiency ist everything
(have a look at my cascading warehouses)
viewtopic.php?f=97&t=34176&start=20#p294780
if so, hallo
efficiency ist everything
(have a look at my cascading warehouses)
viewtopic.php?f=97&t=34176&start=20#p294780
(also me from the mod portal - im not dustine lol) = https://mods.factorio.com/mods/Dustine/ ... ssion/9108
my 1st Mod Idea viewtopic.php?f=33&t=50256
my 1st Mod Idea viewtopic.php?f=33&t=50256