Cnc's Sulfur Mod

by cncr04s

This mod adds mineable sulfur ore to the map. Intended to supplement your production of sulfuric acid by enabling mining of sulfur deposits produced long ago by ancient volcanism.

Content
4 years ago
0.14 - 1.1
2.27K
Mining

b Mod doesn't load

5 years ago

Since 17.51 mod fail loading.

https://imgur.com/a/BcsFuB8

I tried disable, delete, reinstall. Same result.

5 years ago

i have the same problem

5 years ago

same. please update

5 years ago

Since 17.52 mod fail loading.
same. please update

5 years ago

I used some code from Leighzer's Morphite to make the needed corrections due to Factorio update. Until the mod author provides an update, you can do the following.

Open up cncs_Sulfur_Mod_1.0.9.zip\cncs_Sulfur_Mod_1.0.9\prototypes\entity\resources.lua

Replace all the code that is there with the following:
data:extend(
{
{--prototype for the actual ore object that is in the ground
type = "resource",
name = "sulfur",
icon = "cncs_Sulfur_Mod/graphics/icons/sulfur.png",
icon_size = 32,
flags = {"placeable-neutral"},
order="a-b-a",
map_color = {r=0.980, g=0.933, b=0.133},--color used for ore patch when viewed from mini map
minable =
{
hardness = 0.1,
mining_particle = "sulfur-particle",
mining_time = 1,
result = "sulfur"
},
collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
autoplace = resource_autoplace.resource_autoplace_settings{
name = "sulfur",
order = "a-b-a",
base_density = 4,
has_starting_area_placement = true,
regular_rq_factor_multiplier = 1.0,
starting_rq_factor_multiplier = 1.1
},

stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
stages =
{
sheet =
{
filename = "cncs_Sulfur_Mod/graphics/entity/sulfur-ore/sulfur-ore.png",
priority = "extra-high",
width = 64,
height = 64,
frame_count = 8,
variation_count = 8,
hr_version =
{
filename = "cncs_Sulfur_Mod/graphics/entity/sulfur-ore/hr-sulfur-ore.png",
priority = "extra-high",
width = 128,
height = 128,
frame_count = 8,
variation_count = 8,
scale = 0.5
}
}
},
}
}
)

5 years ago

The code replacing don't seem to work for me, i get an invalid path for the hr-sulfur-ore.png file instead now. :/

5 years ago
(updated 5 years ago)

Code is fine, but there must be __cncs_Sulfur_Mod__/graphics/… path. Look to "particles.lua" and copy&paste path to mod in all 3 filenames.

Edit: Oh, this is that problem. Forum formats words with 2x "_" at begin and end as bold.
Code must be in ` marks and multiline code in ```
It's probably Markdown syntax

5 years ago
(updated 5 years ago)
data:extend(
{ 
    {--prototype for the actual ore object that is in the ground
        type = "resource",
        name = "sulfur",
        icon = "__cncs_Sulfur_Mod__/graphics/icons/sulfur.png",
        icon_size = 32,
        flags = {"placeable-neutral"},
        order="a-b-a",
        map_color = {r=0.980, g=0.933, b=0.133},--color used for ore patch when viewed from mini map
        minable = { 
            hardness = 0.1,
            mining_particle = "sulfur-particle",
            mining_time = 1,
            result = "sulfur"
        },
        collision_box = {{ -0.1, -0.1}, {0.1, 0.1}},
        selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
        autoplace = resource_autoplace.resource_autoplace_settings{
            name = "sulfur",
            order = "a-b-a",
            base_density = 4,
            has_starting_area_placement = true, 
            regular_rq_factor_multiplier = 1.0,
            starting_rq_factor_multiplier = 1.1
        },

        stage_counts = {15000, 9500, 5500, 2900, 1300, 400, 150, 80},
        stages = {
            sheet = {
                filename = "__cncs_Sulfur_Mod__/graphics/entity/sulfur-ore/sulfur-ore.png",
                priority = "extra-high",
                width = 64,
                height = 64,
                frame_count = 8,
                variation_count = 8,
                hr_version = {
                    filename = "__cncs_Sulfur_Mod__/graphics/entity/sulfur-ore/hr-sulfur-ore.png",
                    priority = "extra-high",
                    width = 128,
                    height = 128,
                    frame_count = 8,
                    variation_count = 8,
                    scale = 0.5
                }
            }
        },
    }
}
)
5 years ago

Please post a modified version of the mod somewhere.
Apparently my pens are not as golden as yours or something else affect.

5 years ago

I updated it. No one emailed me that it was not working...
Its a shame that the developers break things.

New response