Unlimited Resources [Global Compat]


Makes all vanilla and modded resources infinite and allows every resource to be configured as an oil-like resource, replenishing ore, or remain unmodified! Only uses the on_resource_depleted event when replenishing ore-like resources to prevent any performance issues, oil-like resources are set to infinite at startup and never need to be updated again!

Tweaks
3 months ago
2.0
5.99K
Environment Mining Fluids Cheats

b [Bug (Patched as of 2.1.2, Exists in Experimental Only)] Resource Lists Display Correctly, but Fail ID Checks

11 months ago
(updated 11 months ago)

I decided to use this mod because I figured having regular ore resources would fix the issue other infinite ore mods are having with insane yields, but upon making a new map saw that the ores had insane yields, and were oil-like resources. I am using the default mod settings, and checking the log gives this:

3.959 Loading mod Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat 2.1.0 (data-final-fixes.lua)
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "iron-ore" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "copper-ore" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "coal" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "stone" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "uranium-ore" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "crude-oil" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "tungsten-ore" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "calcite" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "sulfuric-acid-geyser" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "scrap" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "lithium-brine" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:33: "fluorine-vent" is unconfigured and will default to an InfiniteOil.
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:41: IgnoredResourceIDs:
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:42: InfiniteOilResources: crude-oil, lithium-brine, fluorine-vent, sulfuric-acid-geyser
3.962 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:43: InfiniteOreResources: iron-ore, copper-ore, stone, coal, uranium-ore, tungsten-ore, calcite

This seems like the mod isn't working right, as the InfiniteOreResources are written in as default but still being found as unconfigured. Am I missing something or is this a bug?

11 months ago

Hello Arcanical, that is indeed a bug, but I'm not sure why as I can't seem to reproduce the issue. I've updated the mod with more debugging info, so could you update to 2.1.1 and send me your log along with a mod list if the problem persists?

11 months ago
(updated 11 months ago)

Sure thing, here is the log for a new map:

3.691 Loading mod Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat 2.1.1 (data-final-fixes.lua)
3.693 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:40: IgnoredResourceIDs: (0 items){}
3.693 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:41: InfiniteOilResources: (4 items){
"crude-oil",
"lithium-brine",
"fluorine-vent",
"sulfuric-acid-geyser"
}
3.693 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:42: InfiniteOreResources (7 items): {
"iron-ore",
"copper-ore",
"stone",
"coal",
"uranium-ore",
"tungsten-ore",
"calcite"
}
3.693 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:43: UnconfiguredResources (12 items): {
"iron-ore",
"copper-ore",
"coal",
"stone",
"uranium-ore",
"crude-oil",
"tungsten-ore",
"calcite",
"sulfuric-acid-geyser",
"scrap",
"lithium-brine",
"fluorine-vent"
}

I do have a good number of mods, but none I think would mess with this. Here's the mod list:

["Better-Power-Armor-Grid"] = "7.0.3",
BottleneckLite = "1.3.0",
ConfigUnderLengths = "0.1.6",
CursorEnhancements = "2.2.0",
Cursor_Craft = "2.1.0",
DiscoScience = "2.0.0",
EarlyvatedRails = "1.0.1",
ElectricTrains = "1.4.1",
Fill4Me = "0.11.2",
Flare_Stack_SA = "2.3.1",
InstantCraftingLiftoff = "2.0.0",
Milestones = "1.4.1",
Nanobots = "3.3.0",
RateCalculator = "3.3.1",
Smart_Inserters = "2.0.6",
["Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat"] = "2.1.1",
Warehousing = "0.6.0",
["aai-loaders"] = "0.2.3",
base = "2.0.11",
["belt-balancer-2"] = "2.0.8",
["belt-visualizer"] = "2.0.2",
["bullet-trails"] = "0.7.1",
["elevated-rails"] = "2.0.11",
["even-distribution"] = "2.0.2",
factoryplanner = "2.0.2",
["far-reach"] = "2.0.0",
flib = "0.15.0",
helmod = "2.0.1",
["infinity-invo"] = "0.2.0",
["inventory-repair"] = "20.0.1",
["mining-patch-planner"] = "1.6.16",
pump = "2.0.1",
quality = "2.0.11",
["railway-reach"] = "2.0.3",
["show-max-underground-distance"] = "0.1.0",
["space-age"] = "2.0.11",
["squeak-through-2"] = "0.1.1",
stdlib = "1.5.0",
["water-pumpjack"] = "2.1.0",
yafla = "0.1.8"

I did run into the same issue, where regular ore resources have oil yields (not an amount), and those yields are crazy high. Thanks for getting back to me!

11 months ago

Interesting, your tables don't display a bool value, they should look like this:
1.211 Script @Unlimited-Resources-Oil-Refresh-Cargo-Ship-Compat/data-final-fixes.lua:42: InfiniteOreResources (7 items): {
calcite = true,
coal = true,
["copper-ore"] = true,
["iron-ore"] = true,
stone = true,
["tungsten-ore"] = true,
["uranium-ore"] = true
}

I think I might have an idea of what's causing the issue, but if possible, could I add you on Discord so we can try to figure this out faster?

11 months ago

Sure, my user is Arcanical.

11 months ago

After some back and forth on discord we got it figured out, I really appreciate the help ChaosGaming_ gave me to get it working (it seems to have been an issue with one of my other mods, so I really appreciate them not telling me to just take a hike and either disable the other mod or go somewhere else).

This thread has been locked.