Page 2 of 10
Re: [MOD 0.14.x|MOD 0.13.9+]Recycling Machines
Posted: Wed Jun 21, 2017 8:24 am
by DRY411S
dgw wrote:I went poking about in the Lua API documentation a bit just now, and I think I hit the jackpot for this in the form of
LuaBootstrap.on_configuration_changed(f): "Register a function to be run when mod configuration changes. This is called any time the game version changes, prototypes change, startup mod settings change, and any time mod versions change including adding or removing mods."
Edit: Added this particular info to the issue tracker, with details of how far back in the Factorio version history it goes (at least to 0.13).
Thanks for raising the issue. I've taken further discussion of this into the comment tracker in GitHub itself, rather than here, as I think its just a bit too technical for this topic. For those who may want to contribute, the issue is at
this link.
Re: [MOD 0.14.x|MOD 0.13.9+]Recycling Machines
Posted: Fri Jun 23, 2017 9:19 am
by DRY411S
DRY411S wrote:Thanks for raising the issue. I've taken further discussion of this into the comment tracker in GitHub itself, rather than here, as I think its just a bit too technical for this topic. For those who may want to contribute, the issue is at
this link.
I am now closing this issue. My mod does behave correctly when mods are added to a saved game that has previously used mine. On GitHub, I am adding a new issue for the actual problem being observed.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Jul 21, 2017 3:17 pm
by DRY411S
v0.15.5
Fix:
Locale missing for 3 items in factorio v0.15
For factorio v0.15:
v0.15.5 (21-Jul-2017) is available on the mod portal.
For factorio v0.14:
v0.14.1 (30-Aug-2016) is available on the mod portal.
With this bug fix, and with factorio v0.15 about to be set as stable (from experimental), the version of this mod which supports v0.13 of factorio is withdrawn and has been removed from the mod portal.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Sun Jul 30, 2017 8:14 am
by DRY411S
The next version of this mod will have 2 enhancements and 1 new feature.
Enhancement # 1 - Replace "Percentage Recycling Return" into "Number of Items Required to Recycle"
Currently, the Recycling Machine percentage is applied to the ingredients returned, rounded up. This means that for most items put into the machine, the percentage is irrelevant, and 100% of the ingredients are returned.
For example, when recycling batteries, whatever the Recycling Percentage set, you always get back 1 copper plate, 1 iron plate and 20 sulphuric acid.
The mod will be amended so that you must insert X items into the Recycling Machine to get the ingredients back for ONE of those items. This will be a startup mod setting, applied to a new game/map.
So again using batteries as an example, if instead of a Recycling Percentage of 10%, you would set "the number of items required to get the original ingredients back" = 10. This would mean that you must recycle 10 batteries to get the 1 copper plate, 1 iron plate and 20 acid.
New Feature #1 - Change the speed of the Recycling Machines
You'll (optionally) be able to change the speed of the Recycling Machines as a startup mod setting, applied to a new game/map. It seems to me that taking something apart to recover the ingredients would take longer than building (assembling) them in the first place. So you'll be able to change the speed of Recycling Machines relative to Assembly Machines. The crafting speed of the Recycling Machines will be adjusted at startup based on what you choose.
![Startup Mod Settings](./download/file.php?id=27952)
- Startup Mod Settings
- modsettings2.PNG (156.43 KiB) Viewed 10228 times
New Feature #2 - Dynamically change the Recycling Subgroups
I get more feedback than anything else about how Recycling Machines Mod clutters the Crafting GUI, and how the lists of items that
could be recycled is far too long. For example, in vanilla, the Crafting GUI is amended so it looks like this.
![4 recycling tabs](./download/file.php?id=27953)
- 4 recycling tabs
- intermediaterecycling.PNG (284.47 KiB) Viewed 10228 times
These extra tabs are annoying, particularly when I don't allow recycling 'in hand'. I've tried several ways to hide them from the Crafting GUI so they appear only in the Recycling Machine GUI. The only 100% successful method I found, meant a large performance hit, and was not acceptable.
I now have a 'compromise' solution. Say for example I knew I'd never (or hardly ever) want to recycle those intermediate products and science packs. In the mod runtime settings I would uncheck their subgroups as shown below.
![Deselect intermediate products and science packs](./download/file.php?id=27954)
- Deselect intermediate products and science packs
- modsettings1.PNG (544.32 KiB) Viewed 10228 times
After doing that, the next time I open the player Crafting GUI, one of the Recycling tabs has gone = less GUI clutter.
![Less Clutter](./download/file.php?id=27955)
- Less Clutter
- lessguiclutter.PNG (427.29 KiB) Viewed 10228 times
Later on the same map, if I did have some intermediate products to recycle, then I'd just go into the mod settings in game and recheck the box.
Unchecking ALL the boxes would mean that none of the tabs would appear in the Crafting GUI, and then I'd just check the box I wanted when I actually had something to recycle. Perfect.
Well, not quite perfect. This feature needs to be sensitive to what other mods are installed. At the moment, it works only with vanilla, but watch this space!
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Thu Aug 10, 2017 9:10 pm
by Senacharim
Recently migrated to Linux. This is one of my "must have" mods--sadly, and this mod doesn't seem to be working.
The machines build, but the recipes are empty--there's just a gray "search" box, no recipes.
Worth mentioning, this is on a save I copied from my old OS. I have recently started a new Test Game to see if this also happens on a new game.
If you need any questions answered as to working/save directories and such, please ask. I'd be glad to provide details.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Thu Aug 10, 2017 10:15 pm
by DRY411S
Senacharim wrote:Recently migrated to Linux. This is one of my "must have" mods--sadly, and this mod doesn't seem to be working.
The machines build, but the recipes are empty--there's just a gray "search" box, no recipes.
Worth mentioning, this is on a save I copied from my old OS. I have recently started a new Test Game to see if this also happens on a new game.
If you need any questions answered as to working/save directories and such, please ask. I'd be glad to provide details.
Please provide any screen shots to provide more detail of what you are seeing in the UI. I confess that I've never tested this on a Linux client. However, I am familiar with Linux, and I cannot imagine that there is anything in the mod that is Windows OS-specific.
Let me know how the new game goes.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Thu Aug 10, 2017 11:25 pm
by Senacharim
Screenshot attached. I don't have much playtime, but the moment I get recycling in the new test game I'll let you know if it's working.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 12:04 am
by dgw
While I haven't tested on LInux specifically, I have run games with this mod on Mac, as well as Windows. For only one of the three supported platforms to exhibit a problem would be quite strange, especially since the mod API is built in Lua, which is an interpreted language (and whose interpreter runs flawlessly on all mentioned platforms).
Is the new game using Creative Mode? I surmise the recipe lists might be empty until the technology has been unlocked. (Wouldn't explain the issue with the existing save, though.)
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 5:20 am
by Senacharim
I never do creative mode, new game is just on "normal". As soon as I know if it's the same I'll let you know.
Edit:
So, I removed the mod, loaded my save, saved again, re-added the mod, and the reloaded the save with the "new" mod and now it's working correctly.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 5:24 am
by dgw
Hmm. I only asked because the robots in that screenshot are very purple. CM uses purple for a lot of its special super-powered versions of things.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 5:35 am
by Senacharim
dgw wrote:Hmm. I only asked because the robots in that screenshot are very purple. CM uses purple for a lot of its special super-powered versions of things.
They're from "FactorioExtended-Logistics" (and they're stupid expensive but rather fast).
Anyway, edited the previous post to say "it's working now". Thank you for your help on this troubleshooting issue.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 5:47 am
by DRY411S
Senacharim wrote:Screenshot attached. I don't have much playtime, but the moment I get recycling in the new test game I'll let you know if it's working.
The screenshot tells me that, for some reason, the Recycling Machines recipes are either missing completely, or haven't been enabled correctly. (Each Recycling recipe is enabled when the equivalent 'vanilla' recipe is enabled.)
Senacharim wrote:So, I removed the mod, loaded my save, saved again, re-added the mod, and the reloaded the save with the "new" mod and now it's working correctly.
That is EXACTLY what I was going to suggest you do.
- removed the mod- forces factorio to rebuild all the recipes - the Recycling Machines recipes are not part of 'base' factorio
- loaded my save - the 'base' recipes are being used
- saved again - Yes, necessary so you can perform the next step
- re-added the mod - forces factorio to rebuild all the recipes - the Recycling Machine recipes become part of factorio 'base' again
- reloaded the save - the Recycling Machines mod migration script runs on the save, and enables all the Recycling recipes for the save to use
So that's fixed your issue, but why you had the issue in the first place is beyond my understanding.
Oh, and thanks for the feedback that this is one of your 'must have' mods.
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 5:58 am
by Senacharim
DRY411S wrote:Senacharim wrote:Screenshot attached. I don't have much playtime, but the moment I get recycling in the new test game I'll let you know if it's working.
The screenshot tells me that, for some reason, the Recycling Machines recipes are either missing completely, or haven't been enabled correctly. (Each Recycling recipe is enabled when the equivalent 'vanilla' recipe is enabled.)
Senacharim wrote:So, I removed the mod, loaded my save, saved again, re-added the mod, and the reloaded the save with the "new" mod and now it's working correctly.
That is EXACTLY what I was going to suggest you do.
- removed the mod- forces factorio to rebuild all the recipes - the Recycling Machines recipes are not part of 'base' factorio
- loaded my save - the 'base' recipes are being used
- saved again - Yes, necessary so you can perform the next step
- re-added the mod - forces factorio to rebuild all the recipes - the Recycling Machine recipes become part of factorio 'base' again
- reloaded the save - the Recycling Machines mod migration script runs on the save, and enables all the Recycling recipes for the save to use
So that's fixed your issue, but why you had the issue in the first place is beyond my understanding.
Oh, and thanks for the feedback that this is one of your 'must have' mods.
![Smile :)](./images/smilies/icon_e_smile.gif)
Sorry to steal your thunder
![Cool 8-)](./images/smilies/icon_cool.gif)
. I was a code monkey in a previous life, and sometimes still think in those circles.
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 6:01 am
by dgw
They're good circles to think in. Keeping them in your brain will serve you well, I bet, given how software is eating the world (not my phrase, but accurate).
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Fri Aug 11, 2017 6:05 am
by DRY411S
In summary, the fix for this issue was to switch it off and then switch it on again. The perfect IT Department solution.
![Laughing :lol:](./images/smilies/icon_lol.gif)
Re: [MOD 0.15.x|0.14.x]Recycling Machines
Posted: Thu Aug 24, 2017 6:36 pm
by DRY411S
v0.15.6
Fix:
Mod does not handle recipes with no results
Enhancement:
Add crafting time factor
Enhancement:
Change ratios from percentages returned, to items required
Enhancement:
More efficient mod startup
For factorio v0.15:
v0.15.6 (24-Aug-2017) is available on the mod portal.
The add crafting time factor and change ratios enhancements are the implementations of New Feature #1 and Enhancement #1, as described at
this post
These fixes and enhancements are not implemented in factorio v0.14 version
Re: [MOD 0.16.x|0.15.x|0.14.x]Recycling Machines
Posted: Sat Dec 16, 2017 8:28 am
by DRY411S
v0.16.1
Initial release for factorio 0.16. Functionally identical to v0.15.6, includes support for recycling of new v0.16 entities.
For factorio v0.16:
v0.16.1 (16-Dec-2017) is available on the mod portal.
Re: [MOD 0.16.x|0.15.x|0.14.x]Recycling Machines
Posted: Fri Dec 22, 2017 5:24 am
by vedrit
It seems that you only unlock recycling recipes if you unlock the regular recipe via research. Any base or previously unlocked recipes are not available. Updated from a previous version of the mod
EDIT: Disregard. Removing, loading save, saving, re-adding, and loading did the trick.
Re: [MOD 0.16.x|0.15.x|0.14.x]Recycling Machines
Posted: Fri Dec 22, 2017 6:54 am
by DRY411S
vedrit wrote:It seems that you only unlock recycling recipes if you unlock the regular recipe via research. Any base or previously unlocked recipes are not available. Updated from a previous version of the mod
EDIT: Disregard. Removing, loading save, saving, re-adding, and loading did the trick.
Thanks for the feedback. I think what you've observed is caused by me forgetting to include a migration (upgrade) script with the mod, in my rush to release it. Your actions are a good workaround, but you shouldn't have needed to do them.
I'll fix in next update.
Re: [MOD 0.16.x|0.15.x|0.14.x]Recycling Machines
Posted: Mon Dec 25, 2017 2:46 am
by Serenity
Can I add this to an existing game or does it require a new one?