[MOD 1.0.0] SunResources
Posted: Sat May 27, 2017 11:57 pm
by Sunnova
SunResources
A Factorio mod that allows you to place resources on tiles and clean up mixed ore or fluid patches, you can also erase and restore a resource patch at a new location.
Details:
Factorio Version: 1.0.0
Released: May 27th, 2017
Updated: Aug 14, 2020
License: MIT License
Tags: testing, resources
discord https://discord.gg/YWVEqgN
A Factorio mod that allows you to place resources on tiles and clean up mixed ore or fluid patches, you can also erase and restore a resource patch at a new location.
Details:
Factorio Version: 1.0.0
Released: May 27th, 2017
Updated: Aug 14, 2020
License: MIT License
Tags: testing, resources
discord https://discord.gg/YWVEqgN
Version Changes
---------------------------------------------------------------------------------------------------
Version 0.0.31
Date: 2020.08.14
Changes:
- updated for factorio version 1.0
---------------------------------------------------------------------------------------------------
Version 0.0.30
Date: 2020.02.11
Changes:
- Attempt to fix error in data-final-fixes.lua
---------------------------------------------------------------------------------------------------
Version 0.0.29
Date: 2020.01.26
Changes:
- changed to deal with icon_size of 32 or (64 with or without mipmaps)
---------------------------------------------------------------------------------------------------
Version 0.0.28
Date: 2020.01.22
Changes:
- change all recipe enabled = "false" to enabled = false, all enabled = "true" to enabled = true
---------------------------------------------------------------------------------------------------
Version 0.0.27
Date: 2020.01.21
Changes:
- updated for factorio 0.18
---------------------------------------------------------------------------------------------------
Version 0.0.26
Date: 2019.08.06
Changes:
- if resource.icon not found, check for and get item.icon, if both not found use a generic icon to generate sunresource icons.
moved debug logging from config.lua to startup settings, off by default, no need to edit mod to turn on debugging.
---------------------------------------------------------------------------------------------------
Version 0.0.25
Date: 2019.06.03
Changes:
- added ?angelspetrochem & ?angelssmelting to Dependencies in info.json for angels-natual-gas and angels-oil
---------------------------------------------------------------------------------------------------
Version 0.0.24
Date: 2019.06.03
Changes:
- option in config.lua to turn on/off logging, default is off
---------------------------------------------------------------------------------------------------
Version 0.0.23
Date: 2019.06.03
Changes:
- fixed error on changing resource_searching_radius for geothermalgen mod if mod not being used
increase generat-ter resource_searching_radius to 3 to work with sunresources
added resource termal to fluid check for geothermalgen mod
---------------------------------------------------------------------------------------------------
Version 0.0.22
Date: 2019.05.24
Changes:
- added support for geothermalgen mod >= 0.1.7
---------------------------------------------------------------------------------------------------
Version 0.0.21
Date: 2019.05.02
Changes:
- Placer items added for placing roundish shaped ore resources.
Tree patch item for placing roundish shaped tree patch.
---------------------------------------------------------------------------------------------------
Version 0.0.20
Date: 2019.02.27
Changes:
- updated for factorio 0.17
---------------------------------------------------------------------------------------------------
Version 0.0.19
Date: 2019.01.29
Changes:
- Restoring a resource will skip water tiles. No more resource over water.
Fixed typo causing Resource Place items to crash the game.
---------------------------------------------------------------------------------------------------
Version 0.0.18
Date: 2019.01.28
Changes:
- Removed movers from the mod.
Added Resource Erase and Restore, restored resource can be new location, watch out for restoring over water.
Only last resource erased can be restored.
---------------------------------------------------------------------------------------------------
Version 0.0.17
Date: 2019.01.26
Changes:
- Added movers for moving a resource patch.
Movers are created for each direction and resource type.
See Mod Startup Settings
enable creation of movers, default is disabled.
offset distance to move resource patch, default is 120.
---------------------------------------------------------------------------------------------------
Version 0.0.16
Date: ??
Changes:
- Added settings for changing fluid or ore amount when using a checker, if not selected amounts will be kept at original values.
Added setting to remove ore during fluid check.
Added setting to remove fluid during ore check.
Added setting for turning on resource placer creation, off if not checked.
Changed how icons are created.
---------------------------------------------------------------------------------------------------
Version 0.0.15
Date: ??
Changes:
- Added checking for fluid patch
When checking ore patch, fluid is removed from the ore patch.
When checking fluid patch, ore is removed from the fluid patch.
---------------------------------------------------------------------------------------------------
Version 0.0.14
Date: ??
Changes:
- changed resource checker to convert unwanted ore, instead of removing it, fluids are skipped.
change settings.lua, changed maximum (999,999) values, added random setting, if checked ore will be between 5000 and the amount you set, up to 999,999 at this time. If not checked, ore will be fixed at the amount you set.
changed default for fluids from 25,000 to 75,000.
---------------------------------------------------------------------------------------------------
Version 0.0.13
Date: ??
Changes:
- added check resource feature. Mining not working because the resource is mixed? Now you can convert all other resources in your patch but the ore you want.
---------------------------------------------------------------------------------------------------
Version 0.0.12
Date: ??
Changes:
- updated info.json for version .16 of factorio
remove config.lua, and changed how valid tiles are checked for placing resources on.
change fluids to one setting, let me know of I missed a fluid for the above mods supported.
Go to Options, Mods, Startup, look for SunResources, you can set your values there for ore and fluids.
---------------------------------------------------------------------------------------------------
Version 0.0.11
Date: ??
Changes:
- Fixed missing infinite ores from angels ores, cleaned up data-final-fixes.lua and config.lua
---------------------------------------------------------------------------------------------------
Version 0.0.10
Date: ??
Changes:
- Changed data.lua to data-final-fixes.lua, so only the final resource changes made by supported mods should be read to generate the resource place icons.
---------------------------------------------------------------------------------------------------
Version 0.0.9
Date: ??
Changes:
- Attempt to add missing Angels resources, and make changes based on Angels Refining mod.
---------------------------------------------------------------------------------------------------
Version 0.0.8
Date: ??
Changes:
- removed, error in data.lua when not using Angels mods.
---------------------------------------------------------------------------------------------------
Version 0.0.7
Date: ??
Changes:
- Attempt to add support for Yuoki mods and Omnimatter mods, omnilib would not load for me so I don't know if my support for it is working or not.
---------------------------------------------------------------------------------------------------
Version 0.0.6
Date: ??
Changes:
- Major rewrite!
Place resource icons are generated on the fly now, based on the mods installed and supported.
Place icons are in the SunResources item sub group now.
Added support for Angels Mods and Xander Mod.
---------------------------------------------------------------------------------------------------
Version 0.0.5
Date: ??
Changes:
- Attempt to fix place-sulfur error if bob's ores or cncs_Sulfur_Mod is not loaded.
---------------------------------------------------------------------------------------------------
Version 0.0.4
Date: ??
Changes:
- Added support for Ground and Lithia Water from Bob's Ores, fixed Bob's bauxite not working.
---------------------------------------------------------------------------------------------------
Version 0.0.3
Date: ??
Changes:
- Added support for Bob's Ores
---------------------------------------------------------------------------------------------------
Version 0.0.2
Date: ??
Changes:
- Added red-desert and red-desert-dark as areas that resources can be painted on.
---------------------------------------------------------------------------------------------------
Version 0.0.1
Date: ??
Changes:
- Initial release
---------------------------------------------------------------------------------------------------
Version 0.0.31
Date: 2020.08.14
Changes:
- updated for factorio version 1.0
---------------------------------------------------------------------------------------------------
Version 0.0.30
Date: 2020.02.11
Changes:
- Attempt to fix error in data-final-fixes.lua
---------------------------------------------------------------------------------------------------
Version 0.0.29
Date: 2020.01.26
Changes:
- changed to deal with icon_size of 32 or (64 with or without mipmaps)
---------------------------------------------------------------------------------------------------
Version 0.0.28
Date: 2020.01.22
Changes:
- change all recipe enabled = "false" to enabled = false, all enabled = "true" to enabled = true
---------------------------------------------------------------------------------------------------
Version 0.0.27
Date: 2020.01.21
Changes:
- updated for factorio 0.18
---------------------------------------------------------------------------------------------------
Version 0.0.26
Date: 2019.08.06
Changes:
- if resource.icon not found, check for and get item.icon, if both not found use a generic icon to generate sunresource icons.
moved debug logging from config.lua to startup settings, off by default, no need to edit mod to turn on debugging.
---------------------------------------------------------------------------------------------------
Version 0.0.25
Date: 2019.06.03
Changes:
- added ?angelspetrochem & ?angelssmelting to Dependencies in info.json for angels-natual-gas and angels-oil
---------------------------------------------------------------------------------------------------
Version 0.0.24
Date: 2019.06.03
Changes:
- option in config.lua to turn on/off logging, default is off
---------------------------------------------------------------------------------------------------
Version 0.0.23
Date: 2019.06.03
Changes:
- fixed error on changing resource_searching_radius for geothermalgen mod if mod not being used
increase generat-ter resource_searching_radius to 3 to work with sunresources
added resource termal to fluid check for geothermalgen mod
---------------------------------------------------------------------------------------------------
Version 0.0.22
Date: 2019.05.24
Changes:
- added support for geothermalgen mod >= 0.1.7
---------------------------------------------------------------------------------------------------
Version 0.0.21
Date: 2019.05.02
Changes:
- Placer items added for placing roundish shaped ore resources.
Tree patch item for placing roundish shaped tree patch.
---------------------------------------------------------------------------------------------------
Version 0.0.20
Date: 2019.02.27
Changes:
- updated for factorio 0.17
---------------------------------------------------------------------------------------------------
Version 0.0.19
Date: 2019.01.29
Changes:
- Restoring a resource will skip water tiles. No more resource over water.
Fixed typo causing Resource Place items to crash the game.
---------------------------------------------------------------------------------------------------
Version 0.0.18
Date: 2019.01.28
Changes:
- Removed movers from the mod.
Added Resource Erase and Restore, restored resource can be new location, watch out for restoring over water.
Only last resource erased can be restored.
---------------------------------------------------------------------------------------------------
Version 0.0.17
Date: 2019.01.26
Changes:
- Added movers for moving a resource patch.
Movers are created for each direction and resource type.
See Mod Startup Settings
enable creation of movers, default is disabled.
offset distance to move resource patch, default is 120.
---------------------------------------------------------------------------------------------------
Version 0.0.16
Date: ??
Changes:
- Added settings for changing fluid or ore amount when using a checker, if not selected amounts will be kept at original values.
Added setting to remove ore during fluid check.
Added setting to remove fluid during ore check.
Added setting for turning on resource placer creation, off if not checked.
Changed how icons are created.
---------------------------------------------------------------------------------------------------
Version 0.0.15
Date: ??
Changes:
- Added checking for fluid patch
When checking ore patch, fluid is removed from the ore patch.
When checking fluid patch, ore is removed from the fluid patch.
---------------------------------------------------------------------------------------------------
Version 0.0.14
Date: ??
Changes:
- changed resource checker to convert unwanted ore, instead of removing it, fluids are skipped.
change settings.lua, changed maximum (999,999) values, added random setting, if checked ore will be between 5000 and the amount you set, up to 999,999 at this time. If not checked, ore will be fixed at the amount you set.
changed default for fluids from 25,000 to 75,000.
---------------------------------------------------------------------------------------------------
Version 0.0.13
Date: ??
Changes:
- added check resource feature. Mining not working because the resource is mixed? Now you can convert all other resources in your patch but the ore you want.
---------------------------------------------------------------------------------------------------
Version 0.0.12
Date: ??
Changes:
- updated info.json for version .16 of factorio
remove config.lua, and changed how valid tiles are checked for placing resources on.
change fluids to one setting, let me know of I missed a fluid for the above mods supported.
Go to Options, Mods, Startup, look for SunResources, you can set your values there for ore and fluids.
---------------------------------------------------------------------------------------------------
Version 0.0.11
Date: ??
Changes:
- Fixed missing infinite ores from angels ores, cleaned up data-final-fixes.lua and config.lua
---------------------------------------------------------------------------------------------------
Version 0.0.10
Date: ??
Changes:
- Changed data.lua to data-final-fixes.lua, so only the final resource changes made by supported mods should be read to generate the resource place icons.
---------------------------------------------------------------------------------------------------
Version 0.0.9
Date: ??
Changes:
- Attempt to add missing Angels resources, and make changes based on Angels Refining mod.
---------------------------------------------------------------------------------------------------
Version 0.0.8
Date: ??
Changes:
- removed, error in data.lua when not using Angels mods.
---------------------------------------------------------------------------------------------------
Version 0.0.7
Date: ??
Changes:
- Attempt to add support for Yuoki mods and Omnimatter mods, omnilib would not load for me so I don't know if my support for it is working or not.
---------------------------------------------------------------------------------------------------
Version 0.0.6
Date: ??
Changes:
- Major rewrite!
Place resource icons are generated on the fly now, based on the mods installed and supported.
Place icons are in the SunResources item sub group now.
Added support for Angels Mods and Xander Mod.
---------------------------------------------------------------------------------------------------
Version 0.0.5
Date: ??
Changes:
- Attempt to fix place-sulfur error if bob's ores or cncs_Sulfur_Mod is not loaded.
---------------------------------------------------------------------------------------------------
Version 0.0.4
Date: ??
Changes:
- Added support for Ground and Lithia Water from Bob's Ores, fixed Bob's bauxite not working.
---------------------------------------------------------------------------------------------------
Version 0.0.3
Date: ??
Changes:
- Added support for Bob's Ores
---------------------------------------------------------------------------------------------------
Version 0.0.2
Date: ??
Changes:
- Added red-desert and red-desert-dark as areas that resources can be painted on.
---------------------------------------------------------------------------------------------------
Version 0.0.1
Date: ??
Changes:
- Initial release
LONG DESCRIPTION
https://mods.factorio.com/mods/Sunnova/SunResources# Resource Checking, Placing, Erase and Restore.
Vanilla resources and the following mods should now be supported.
cncs Sulfur, Bob's Mods, Angels Mods, Xander Mod, Yuoki Mods, Omnimatter Mod and geothermalgen Mod.
** Warning **
Restoring erased resources will remove cliffs if they are in the way.
Placing resources close to cliffs will remove the cliffs, if cliffs are within the selected area, the resource will not be placed.
You will need to craft a Resource Checker, Rectangle-Placer, Round-Placer, Erase and Restore resources.
These items function like a Blueprint/Deconstruction Planners.
With the checker item or erase item click and drag a rectangle encompassing the tiles where your resource patch is.
With rectangle placer item in hand click and drag a rectangle encompassing the tiles where your resource patch is to be placed.
With the round placer item in hand, click on the map and a roundish resource patch will be placed.
The Ore Resource checker will convert unwanted ore(s), also removing any fluid(s) from the area selected if that option is selected in the settings.
The Fluid Resource checker will convert unwanted fluid(s), also removing any ore(s) from the area selected if that option is selected in the settings.
Placers are off by default, see settings on how to enable.
The Resource Eraser is based on Tergiver's ore erase mod, it now keeps track of the resource removed.
After erasing a resource patch you can use the Resource Restore item to restore the erased patch, just click somewhere
on the map with the Resource Restore item and the resource will be restored at that location.
You can only restore the last resource erased, new location allowed.
Restoring over cliffs will remove the cliffs.
The Resource Tree placer will place a roundish patch of mixed trees.
All items to craft are found on the SunResources tab.
settings.lua controls the amount for each tile of fluid or ore that you wish to place, ore and fluid can be random or fixed.
From the main menu in factorio, select settings, select mod settings, select startup tab.
Look for SunResources
Debug Logging - If selected turns on debug logging.
Amount of Ore to place
Amount of Fluid to place
Tree Chance max value - Tree placement chance, if random comes up 2 then tree placed, max random value between 3 and 10.
Ore Random or Fixed - if selected amount of ore will be random between 5000 and the Amount of ore to place
Fluid Random or Fixed - if selected amount of fluid will be random between 25000 and the Amount of fluid to place
Change Ore Amount - if selected amount of ore will be changed when using ore checker(s)
Change Fluid Amount - if selected amount of fluid will be changed when using fluid checker(s)
Create Resource Placers - if selected Resource Placers will be created.
Remove Ore - If selected ore will be removed when using fluid check
Remove Fluid - If selected fluid will be removed when using ore check
The ranges are
ore: 5000 - 999,999, default 10,000
fluid: 25,000 - 999,999, default 75,000
tree chance: 3 - 10, default 5, so random 1-5, if 2 tree placed.
Let me know if you want the defaults or maximum amounts changed.
Vanilla resources and the following mods should now be supported.
cncs Sulfur, Bob's Mods, Angels Mods, Xander Mod, Yuoki Mods, Omnimatter Mod and geothermalgen Mod.
** Warning **
Restoring erased resources will remove cliffs if they are in the way.
Placing resources close to cliffs will remove the cliffs, if cliffs are within the selected area, the resource will not be placed.
You will need to craft a Resource Checker, Rectangle-Placer, Round-Placer, Erase and Restore resources.
These items function like a Blueprint/Deconstruction Planners.
With the checker item or erase item click and drag a rectangle encompassing the tiles where your resource patch is.
With rectangle placer item in hand click and drag a rectangle encompassing the tiles where your resource patch is to be placed.
With the round placer item in hand, click on the map and a roundish resource patch will be placed.
The Ore Resource checker will convert unwanted ore(s), also removing any fluid(s) from the area selected if that option is selected in the settings.
The Fluid Resource checker will convert unwanted fluid(s), also removing any ore(s) from the area selected if that option is selected in the settings.
Placers are off by default, see settings on how to enable.
The Resource Eraser is based on Tergiver's ore erase mod, it now keeps track of the resource removed.
After erasing a resource patch you can use the Resource Restore item to restore the erased patch, just click somewhere
on the map with the Resource Restore item and the resource will be restored at that location.
You can only restore the last resource erased, new location allowed.
Restoring over cliffs will remove the cliffs.
The Resource Tree placer will place a roundish patch of mixed trees.
All items to craft are found on the SunResources tab.
settings.lua controls the amount for each tile of fluid or ore that you wish to place, ore and fluid can be random or fixed.
From the main menu in factorio, select settings, select mod settings, select startup tab.
Look for SunResources
Debug Logging - If selected turns on debug logging.
Amount of Ore to place
Amount of Fluid to place
Tree Chance max value - Tree placement chance, if random comes up 2 then tree placed, max random value between 3 and 10.
Ore Random or Fixed - if selected amount of ore will be random between 5000 and the Amount of ore to place
Fluid Random or Fixed - if selected amount of fluid will be random between 25000 and the Amount of fluid to place
Change Ore Amount - if selected amount of ore will be changed when using ore checker(s)
Change Fluid Amount - if selected amount of fluid will be changed when using fluid checker(s)
Create Resource Placers - if selected Resource Placers will be created.
Remove Ore - If selected ore will be removed when using fluid check
Remove Fluid - If selected fluid will be removed when using ore check
The ranges are
ore: 5000 - 999,999, default 10,000
fluid: 25,000 - 999,999, default 75,000
tree chance: 3 - 10, default 5, so random 1-5, if 2 tree placed.
Let me know if you want the defaults or maximum amounts changed.