• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Edit heightmap - no water in processed world

Qnut

Refugee
Hi,

I want to put some rivers and lakes into my generated world. So I edited existing heightmap and when processed while loading into world editor water ist not filled in. It's just floating in from existing lakes/world border.

Here is what I've done:
- Generated world and saved
- Converted dtm.raw with old KingGen to 16-bit PNG
- Edited in Gimp, exported to 16 bcp GRAYA dtm.png
- Loaded in ingame World Editor which initialy processed the world
- Teleporting to water at a border where a river starts and just saw water slowly floating into the trench

files.png
Files before processing

water.png
Trench with vegetation, no underwater terrain and the water floating in from the RWG lake behind

I had expected through processing, the trench must already be filled an processed as underwater.

splat4.png is empty, splat4_processed.png is just one color.

Can someone please help me or give explanation?
 
Hi,

I want to put some rivers and lakes into my generated world. So I edited existing heightmap and when processed while loading into world editor water ist not filled in. It's just floating in from existing lakes/world border.

Here is what I've done:
- Generated world and saved
- Converted dtm.raw with old KingGen to 16-bit PNG
- Edited in Gimp, exported to 16 bcp GRAYA dtm.png
- Loaded in ingame World Editor which initialy processed the world
- Teleporting to water at a border where a river starts and just saw water slowly floating into the trench

View attachment 35089
Files before processing

View attachment 35090
Trench with vegetation, no underwater terrain and the water floating in from the RWG lake behind

I had expected through processing, the trench must already be filled an processed as underwater.

splat4.png is empty, splat4_processed.png is just one color.

Can someone please help me or give explanation?
You have to put water locations in the splat4.png. There isn't a "water table" that fills low areas automatically. Water is placed directly in the splat4.png file. It will overflow if placed on a higher area without edges to contain it, but otherwise it just stays where you placed it on the splat4. If you want to edit the splat4.png file, you need to open it in an image editor that supports transparency/alpha channel (such as Gimp). Then you have to disable the alpha channel layer so you can see the RGB layers. You can then use blue to mark where water is located (different shades of blue determine elevation of the surface of the water). Save the file, making sure transparency/alpha channel is included in the save, and then you will have water in those locations.

Note: You don't edit the processed file. Just delete it if you're going to edit splat4.png and let the game regenerate it after you have made your changes.
 
Now I have water in but the river banks are desert in forest biome and all other water, that was previously generated had gone. Thought I take blue 0,0,30 for drawing a bit thicker than the trench with the elevation of the surrounding water. splat4 shows a green line where my trench is surroundet by my blue that now builds the river banks.
 
Now I have water in but the river banks are desert in forest biome and all other water, that was previously generated had gone. Thought I take blue 0,0,30 for drawing a bit thicker than the trench with the elevation of the surrounding water. splat4 shows a green line where my trench is surroundet by my blue that now builds the river banks.
I would have to look since I haven't looked at those in months, but I didn't think splat4 should have green (I may be wrong). In any case, if you don't see water, then the elevation (shade of blue) is not enough to be above ground, or is in the wrong place. Biomes are set in the biomes.png file, but I think you are probably mistaken. Your riverbanks are probably set to the automatic river biome. If you see that and no water is there (and isn't just set to being under the ground), then it would mean you probably didn't start a new game after making those changes.
 
Previously genreated splat4 was empty. splat4_processed was completely filled with grey or maybe dark blue. Screenshots show, the trench from my edited dtm was in with normal forest biome slopes and no water.

After deleting all processed files I edited splat4 as follows:

sp4.png
It is blue 0,0,30 so water elevation should be at 30 m (?). On the leftern side there is the river delta that should float into the lake that previously was there in the processd world. It was connected to the water boundries of my world which are now are missing, too.

After prcessing the world splat4_processed looks as follows:

sp4_pr.png
Green must be the visible water in the trench in the world (can see it) and the remaining dark blue is shown as the desert banks. Where there used to be water surrounding the world is nothing. My water elevation seems to meet the original surrounding water elevation if 30 m are correct default.

Am I right if I think, that in an edited splat4 there must be blue all over where water should be even for the world borders? How does the game process splat4 if it is empty from generating? Are blue shapes only allowed where water should appear to avoid desert looking banks?
 
I would have to look since I haven't looked at those in months, but I didn't think splat4 should have green (I may be wrong). In any case, if you don't see water, then the elevation (shade of blue) is not enough to be above ground, or is in the wrong place. Biomes are set in the biomes.png file, but I think you are probably mistaken. Your riverbanks are probably set to the automatic river biome. If you see that and no water is there (and isn't just set to being under the ground), then it would mean you probably didn't start a new game after making those changes.
I deleted all the processed files again, put in the original generated splat4 and let the world process again. Now splat4_processed is empty. Water at the borders is back again.
 
I deleted all the processed files again, put in the original generated splat4 and let the world process again. Now splat4_processed is empty. Water at the borders is back again.
I can't really say what the problem is since I can't see what you are doing. If you can't get it to work, you can use MapToolz to edit it. But it really is just a matter of loading it into something like Gimp, disabling the alpha channel, drawing blue in the right shade, exporting to PNG with transparency enabled, and starting a new game.
 
Last edited:
Previously genreated splat4 was empty. splat4_processed was completely filled with grey or maybe dark blue. Screenshots show, the trench from my edited dtm was in with normal forest biome slopes and no water.

After deleting all processed files I edited splat4 as follows:

View attachment 35132
It is blue 0,0,30 so water elevation should be at 30 m (?). On the leftern side there is the river delta that should float into the lake that previously was there in the processd world. It was connected to the water boundries of my world which are now are missing, too.

After prcessing the world splat4_processed looks as follows:

View attachment 35133
Green must be the visible water in the trench in the world (can see it) and the remaining dark blue is shown as the desert banks. Where there used to be water surrounding the world is nothing. My water elevation seems to meet the original surrounding water elevation if 30 m are correct default.

Am I right if I think, that in an edited splat4 there must be blue all over where water should be even for the world borders? How does the game process splat4 if it is empty from generating? Are blue shapes only allowed where water should appear to avoid desert looking banks?
You didn't disable the alpha channel. If you did, everything would be black expect water
 
You didn't disable the alpha channel. If you did, everything would be black expect water
On original generated splat4, when I remove alpha channel on the layer in Gimp:

rm_alpha.png
Everything becomes white. When I add alpha back in, it stays white.

If not editing anything, what does the game know from where to set water even with an empty splat4?
 
Back
Top