jpanther / dectorio

Dectorio is a large mod that adds decorative elements to Factorio.
https://mods.factorio.com/mod/Dectorio
GNU General Public License v3.0
23 stars 17 forks source link

An option to disable texture blending on painted concrete #211

Open Ultrawup opened 2 years ago

Ultrawup commented 2 years ago

I really like the different styles of painted (refined) concrete, but I am having a really hard time using them because they "blend" into surrounding concrete tiles with this huge patch of extra texture around the painted tile, in exactly the way that vanilla hazard concrete doesn't.

image

I'd really love to have the option to disable this behaviour from the mod's settings menu, and have the painted concrete textures stick neatly to their own tiles (except in corners, again just like vanilla hazard concrete) because it looks a lot cleaner in my opinion, especially when making somewhat intricate tile designs. It is also more consistent for users who play with the "use vanilla hazard concrete look and feel" setting enabled.

I've tried diving into the code myself to manually disable this blending behaviour for my local copy of the mod, but so far I haven't had any luck...

Anyway, huge thx for the mod! I've been wanting more decoration options like this for such a long time xD

PS: I'd also really dig a red-and-black paint style, basically just hazard concrete but with red stripes instead of yellow. Would love to see one added :D

Ultrawup commented 2 years ago

I finally figured it out. It wasn't that hard in the end, just had to figure out more about how Factorio modding works.

I made (a part of) one of my own local mods overwrite the painted Dectorio concretes with the vanilla concrete blending and border textures (and also made it add the red-and-black style I mentioned, as both painted concrete and as hazard concretes).

20220605112418_1 20220605112340_1 Looks pretty good, imo.

Not planning on uploading it myself, but if you'd like to take a look at my (messy) code or textures to integrate them into the official mod I'd be happy to share.

PS: Those dark borders on the black concrete are one of my edits too. They're a manually darkened copy of the vanilla concrete border texture that I used for the yellow-black and red-black painted concrete styles to make them look good, but then also accidentally assigned to vanilla black concrete (for which it is accordingly further darkened, resulting in a really nice dark border with a lot of depth to it). I really like the look so I decided to keep it as an optional feature.

Ultrawup commented 2 years ago

oops