Hornete Posted March 14, 2020 Share Posted March 14, 2020 Hi all! Been a while since i posted here asking for help, but here I am. Tiles are one confusing thing. So right now i'm currently trying to create a hotspring biome with new ocean tiles down in the caves modimport("tile_adder.lua") local HOTSPRING_OCEAN_COLOR = { primary_color = { 100, 100, 100, 100 }, secondary_color = { 100, 100, 100, 100 }, secondary_color_dusk = { 100, 100, 100, 100 }, minimap_color = { 23, 51, 62, 102 }, } local WAVETINTS = { shallow = {0.8, 0.9, 1}, rough = {0.65, 0.84, 0.94}, swell = {0.65, 0.84, 0.94}, brinepool = {0.65, 0.92, 0.94}, hazardous = {0.40, 0.50, 0.62}, } --Small Reminder, I doubt well add more ocean tiles, But the numbers we can use for modded ocean tiles are 231-247 AddTile("HOTSPRING", 232, "cave", { noise_texture = "levels/textures/ocean_noise.tex", runsound = "dontstarve/movement/run_marsh", walksound = "dontstarve/movement/walk_marsh", snowsound = "dontstarve/movement/run_ice", mudsound = "dontstarve/movement/run_mud", flashpoint_modifier = 0, colors = HOTSPRING_OCEAN_COLOR, wavetint = WAVETINTS.shallow, ocean_depth = "SHALLOW", }, {noise_texture = "levels/textures/mini_water_coral.tex"} ) ChangeTileTypeRenderOrder(GLOBAL.GROUND.HOTSPRING, GLOBAL.GROUND.ROAD) I'm using this code and it mostly works! However there is one issue.... Spoiler I get this weird foggy color on my ocean tiles, and I've got no idea how to fix this. I've tried playing around a lot but nothing seems to work, I tried changing the colors table that I have in my code to no effect. I found something interesting though, Spoiler After some more messing around, I decided to set all ocean tiles rgb values to 255/255, and interestingly. It's the same weird fog/color that I have on my ocean tiles, so for whatever reason my hotspring tiles are defaulting to 255/255 rgb values despite me setting the color values? I'm so lost at this point and i'm worried it's something that can only be fixed in the engine, and thus not accessible by modders. I'll be sure to answer any questions you have trying to help me! Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/ Share on other sites More sharing options...
Thomas_klei Posted March 18, 2020 Share Posted March 18, 2020 @Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1316383 Share on other sites More sharing options...
Ultroman Posted March 18, 2020 Share Posted March 18, 2020 3 hours ago, thomas4846 said: @Ultroman No idea. Would have answered if I did Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1316460 Share on other sites More sharing options...
Thomas_klei Posted March 18, 2020 Share Posted March 18, 2020 (edited) shame, senpie ultroman's knowledge is waning Edited March 18, 2020 by thomas4846 Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1316464 Share on other sites More sharing options...
Ultroman Posted March 19, 2020 Share Posted March 19, 2020 17 hours ago, thomas4846 said: shame, senpie ultroman's knowledge is waning No, padawan. The wonders of the universe dwarf our capacity for knowledge and thus no one being can know everything at once. j/k I just never worked with anything related to map generation 2 Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1316638 Share on other sites More sharing options...
Hornete Posted March 21, 2020 Author Share Posted March 21, 2020 Got it working! Here's a little eye treat for y'all 2 Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1317889 Share on other sites More sharing options...
Thomas_klei Posted March 22, 2020 Share Posted March 22, 2020 jk it looks really good 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/116403-difficulty-with-creating-new-ocean-tiles/#findComment-1318080 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now