not a bug [0.18] resource_autoplace.resource_autoplace_settings patch_set_name not working as expected.

Bugs that are actually features.
Post Reply
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

not a bug [0.18] resource_autoplace.resource_autoplace_settings patch_set_name not working as expected.

Post by bobingabout »

It was pointed out to me that something in my mods isn't working as expected. viewtopic.php?p=488306#p488306

Code in my mod to create the autoplace for "Lithia Water" in my mod.

Code: Select all

    data.raw.resource["lithia-water"].autoplace = resource_autoplace.resource_autoplace_settings{
      name = "ground-water", -- autoplace control name
      patch_set_name = "lithia-water", -- resource name, needed if different than autoplace control name
      order = "c",
      base_density = 8.2,
      base_spots_per_km2 = 1.8,
      random_probability = 1/48,
      random_spot_size_minimum = 1,
      random_spot_size_maximum = 1,
      additional_richness = 220000,
      has_starting_area_placement = false,
      regular_rq_factor_multiplier = 1
    }
Expected result: only one autoplace control named "ground-water" that controls multiple resources.
Actual result: There seems to be a control option added called "lithia-water", which doesn't actually do anything, "ground-water" still controls the Lithia water resource as expected.

Required mods:
https://mods.factorio.com/mod/bobores
https://mods.factorio.com/mod/boblibrary

Note: the ores mod is intended to be run with more of my mods, by default no ores are added, you will need to go into the mod options and turn on all the ores. (at the very least the water ores) to reproduce this bug.
Last edited by bobingabout on Mon Apr 06, 2020 5:27 pm, edited 1 time in total.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.18] resource_autoplace.resource_autoplace_settings patch_set_name not working as expected.

Post by bobingabout »

My apologies.

It seems this is an issue with my mods, not the game.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Not a bug”