Ore Unlimited

by No0Vad

Adds the Ore Unlimited item which allows you to change the ore fields to unlimted, or back to normal with fixed amounts by holding SHIFT instead. IMPORTANT! Be sure to restore the ore fields to normal first if you want to remove this mod!

Content
a month ago
0.17 - 2.0
10.1K
Cheats

b Localised name for fluid patches is incorrect

a month ago
(updated a month ago)

When you create new resources you're setting the localised name for the entity like so:

  unlimitedOre.localised_name =
  {
    "resource-name.unlimited",
    {
      "item-name." .. name
    }
  }

But this only works when the patch is for an item, not for a fluid. If you hover over an unlimited crude oil patch you'll see its localised name doesn't render properly.

Instead you can do this:

  unlimitedOre.localised_name =
  {
    "resource-name.unlimited",
    {
      "entity-name." .. name
    }
  }

then I think it works properly for all resource patches (beacause every resource prototype is also an entity prototype).

I noticed this issue because I need to display the localized names of fluid-based resources in my mod, OilOutpostPlanner.

a month ago

Hi,

Thanks for the report, it's fixed in 0.2.10 😊

New response