Trouble with custom sky

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!
Post Reply
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Trouble with custom sky

Post by minmay »

So a sky with the day_sky material looks like this:
SpoilerShow
Image
But if I make an exact copy of the day_sky material in the asset pack, name it something else, and use it for the sky, I get this:
SpoilerShow
Image
It also doesn't animate. Seems we are basically limited to 1 day sky and 1 night sky material per mod.

I also can't find a way to change the atmosphere color.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Trouble with custom sky

Post by Batty »

I had a similar thing happen with water. In the first step of making a custom water item, I simply copied the water material def and changed the name. The result was a bizarre, spiked, black undulating thing with no semblance to water. Strange, because no settings had been changed.

Only after I made all the changes I wanted - new water material, object, and tile defs, did the water behave as it should. Where along the process it reverted to normal, I don't know. Somehow it was getting confused with the original water.

Hope that helps. :)
User avatar
Karinas23
Posts: 58
Joined: Thu Jul 24, 2014 8:57 pm

Re: Trouble with custom sky

Post by Karinas23 »

as an extra to this has anyone defined a sky that is simply permanent night
?
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Trouble with custom sky

Post by Drakkan »

Karinas23 wrote:as an extra to this has anyone defined a sky that is simply permanent night
?
I think solution could be some easy script telling: when time is xxx... then go back in time to yyy... but that could mess some game mechanics of course
Breath from the unpromising waters.
Eye of the Atlantis
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Trouble with custom sky

Post by minmay »

Since this is a similar issue I'm posting in this thread: the "portal" shader also doesn't seem to work on materials not named "portal". Correspondingly changing the name of the PortalComponent doesn't help.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Trouble with custom sky

Post by minmay »

Aaand another one. I cannot get a water surface material to work properly if it is not named "ocean_water", "water_surface_calm", or "water_underwater". The reflection is messed up and rotates unexpectedly with the camera angle.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply