[0.17.51] resource_autoplace_settings changing errors

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Linver
Fast Inserter
Fast Inserter
Posts: 158
Joined: Wed Jan 09, 2019 2:28 pm
Contact:

[0.17.51] resource_autoplace_settings changing errors

Post by Linver »

Hi all, i have this code that work in version <= 0.17.50, now don't start, how have I to change it for make it work in 0.17.51?

Code: Select all

	
data.raw["resource"]["crude-oil"].autoplace = resource_autoplace.resource_autoplace_settings
{
	name = "crude-oil",
	order = "c", -- Other resources are "b"; oil won't get placed if something else is already there.
	base_density = 8.2,
	base_spots_per_km2 = 1.8,
	random_probability = 1/48,
	random_spot_size_minimum = 1,
	random_spot_size_maximum = 1, -- don't randomize spot size
	additional_richness = 75000, -- this increases the total everywhere, so base_density needs to be decreased to compensate
	has_starting_area_placement = false,
	resource_index = resource_autoplace.resource_indexes["crude-oil"],
	regular_rq_factor_multiplier = 1
}
The game give me an error on line "resource_index = resource_autoplace.resource_indexes["crude-oil"]," but I haven't understand the feedbeck that game give back.

Thanks to all for future answer in advance!

Bilka
Factorio Staff
Factorio Staff
Posts: 3155
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.17.51] resource_autoplace_settings changing errors

Post by Bilka »

You can simply remove the line.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding help”