fill a dungeon dug out with water?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

fill a dungeon dug out with water?

Post by Halluinoid »

in your dungeon, make a square 1 level lower

fill it with water

HOW do you do it?

As soon as I add the Game Object "water_surface_underground" I see the water level is 1 level higher and it just looks like the water surface is suspended 10' up in the air

everything else works

can we have attachments on here please so that we can add a screenshot and show everyone the problem? :)
User avatar
THOM
Posts: 1280
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: fill a dungeon dug out with water?

Post by THOM »

Have a look at the video Tutorial of Skuggasveinn:

https://www.youtube.com/watch?v=hVpY60P ... B7joLG52Nc


Water mechanic works a bit different than you expect
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

Re: fill a dungeon dug out with water?

Post by Halluinoid »

yes that is excellent and I love that video, it works if you do a dungeon from scratch and only do that 1 thing ...

however I now have several levels done

tried to do this again in my multi level dungeon and the water surface is now 10' up in the air!! tearing my hair out! :evil: :cry:

can we have attachments on here please so that we can add a screenshot and show everyone the problem?
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: fill a dungeon dug out with water?

Post by Dr.Disaster »

AFAIR the water surface is always on height 0. If the water surface shows up in the air your dungeon floor is prolly on height -1?
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

Re: fill a dungeon dug out with water?

Post by Halluinoid »

correct

and I lowered the water surface to -1

no difference :(
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: fill a dungeon dug out with water?

Post by Dr.Disaster »

The water surface is ALWAYS at height 0. As far as i know it can't be modified, at least not with the settings the editor gives you.
User avatar
TheLastOrder
Posts: 104
Joined: Wed Oct 17, 2012 1:56 am

Re: fill a dungeon dug out with water?

Post by TheLastOrder »

Unfortunetly you need to re-place the position of everything in that level OR start a new level considering this.
There´s no known way to change that, I used one day searching the forum and trying to change that. Sorry!! :roll:
User avatar
Halluinoid
Posts: 165
Joined: Tue Apr 02, 2013 7:08 pm
Contact:

Re: fill a dungeon dug out with water?

Post by Halluinoid »

Dr.Disaster wrote:The water surface is ALWAYS at height 0. As far as i know it can't be modified, at least not with the settings the editor gives you.
Yes if you pay attention to the video Tutorial of Skuggasveinn he actually says those words but I didn't realise that he literally meant Level 0

yes it is a limitation but you can work with it

so every dungeon level, you cannot say have a -5 level and expect to do a -6 bath :D not going to work

you can do a -5 water level ..... as long as it is 5 levels DEEP! :lol: ok I learnt it now - THANKS to all above :D
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: fill a dungeon dug out with water?

Post by Drakkan »

actually it is possible... :)

Code: Select all

    defineObject{
        name = "user_water_surface",
        base_object = "water_surface",
        components = {
            {
            class = "WaterSurface",
            fogColor = vec(0.021,0.045,0.13,0),
            fogDensity = 0.2,
            planeY = -0.4,
            reflectionColor = vec(0.693,0.81,0.9,0),
            refractionColor = vec(1,1,1,0),
            },
            {
            class = "WaterSurfaceMesh",
          -- There you'll have to modify the Y offset to up/down the water level
          offset = vec(0,0,0,0),
            material = "water_surface_calm",
            underwaterMaterial = "water_surface_underwater",
          },
        },
        placement = "floor",
        editorIcon = 264,
    }
the problem is curently that if you use this inside dungeon, water surface is black. seems like some problems with shaders... Doridion was investigating it, perhpas he will find yout some solution. As for outdoor areas, its working ok. Hope it helped you a little.
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Mal85
Posts: 103
Joined: Fri Nov 16, 2012 10:56 am

Re: fill a dungeon dug out with water?

Post by Mal85 »

I discovered this issue as well while designing a dungeon that had water on several different levels below -1 as well. as mentioned water is just below 0 and -1 no matter where you place your water_surface asset. I doubt it will be long before someone discovers how to have water on different levels, but in the mean time you must design your dungeons with this in mind. Annoying limitation to be sure, as I primarily want knee deep water and the like for my dungeons.
Post Reply