Skyboxes across games (F_SKY/F_SKY1)

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Skyboxes across games (F_SKY/F_SKY1)

Postby eharper256 » Wed Feb 03, 2021 4:18 pm

So, I've a made a testing map for my mod that works across all three games (Doom, Heretic and Hexen) by being divorced of all iwad content.

I have a single problem though. My ceiling in the map is set to be F_SKY1 so that GZDoom creates the sky for it. This is fine and works well when the map is called in Doom and Heretic. But Hexen shows us the cyan and white squares.

Obviously, looking this up it seems Hexen instead recognises F_SKY instead of F_SKY1.

So how do I apply both at once to the same map so it is recognised regardless of the game?

Or is it something I must create a skybox for? (and is a Skybox always using F_SKY1, or is that rule discarded again in Hexen?)

I tried adding a SkyPicker object to all the relevant sectors (with no arguments, so it will use the MAPINFO one), but that seems to have no effect.
Last edited by eharper256 on Fri Feb 19, 2021 5:36 pm, edited 3 times in total.
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK

Re: Making a sky in a level work across Heretic, Doom and He

Postby Mikk- » Wed Feb 03, 2021 4:35 pm

You can create a text lump called MAPINFO and insert this code:
Code: Select allExpand view
gameinfo
    
{
    
SkyFlatName "F_SKY1"
    


and that should solve your issue.
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: Making a sky in a level work across Heretic, Doom and He

Postby eharper256 » Wed Feb 03, 2021 4:42 pm

Mikk- wrote:You can create a text lump called MAPINFO and insert this code:
Code: Select allExpand view
gameinfo
    
{
    SkyFlatName = "F_SKY1"
    


and that should solve your issue.

Genius.
For some reason I didn't think of checking for a GAMEINFO setting, even though I've been editing mine several times over the last few weeks. Super derp. :shotty:

Nevertheless, thanks Mikk.
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK

Re: Making a sky in a level work across all games

Postby eharper256 » Fri Feb 19, 2021 5:35 pm

I'm re-opening this query because actually the above doesn't fully work after all.

Or rather, it fixes my universal level, but muggins here didn't actually test with the actual vanilla Hexen Campaign IWAD until today. Which this now breaks as all the vanilla skies are using F_SKY, of course.

I tried putting SkyFlatName = "F_SKY1", "F_SKY"
to see if I could have multiple entries, but obviously no dice.
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK

Re: Skyboxes across games (F_SKY/F_SKY1)

Postby eharper256 » Wed Feb 24, 2021 3:24 pm

So considering I've still not seen a solution to this, I'm guessing making a skybox is going to be the only way forwards.
User avatar
eharper256
Author of Hexen: Walpurgis
 
Joined: 25 Feb 2018
Location: UK


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest