nocturnal eggs spawn/activate in daytime?

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

nocturnal eggs spawn/activate in daytime?

Post by agentorangeguy »

I just reported this on the bugtracker. It seems that nocturnally flagged eggs don't function like they are supposed to: activating only at night. Has anyone else noticed this?
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by Dominus »

do you have an example in the game for this to check? Or do I need to create an egg for this?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by agentorangeguy »

Create an egg and flag it nocturnal, then go away, and come back and it should spawn in the daytime. It has done that for me at least, even with the latest snapshots.
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by Malignant Manor »

eggs.cc line 729 uses:

if (!(hour >= 9 || hour = 20 || hour <= 4))


or slightly different to reflect the original.
wjp
Site Admin
Posts: 1708
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by wjp »

Thanks for tracking this down. It looks like the >= 9 was intended to be >= 21 (12h/24h confusion). I'll commit the fix.
_Olarin

Re: nocturnal eggs spawn/activate in daytime?

Post by _Olarin »

or the 5 was intended to be 5 PM?

would be nice to track down an egg in the original to observe, if it has any.
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by Malignant Manor »

It is correct now (wjp updated again to match the night palette). The original and Exult see night as 9 PM (21) through 4:59 (4:59) AM.
agentorangeguy
Posts: 565
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by agentorangeguy »

one egg in the original that comes to mind was the liche at the shrine of sacrafice... but it may have been a usecode egg rather than a spawn egg. The liche would be there at night... possibly midnight only?
-------------------------------------------------------------------------------------
Ultima 6 Mod for Exult site: http://www.ultima6.realmofultima.com/
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: nocturnal eggs spawn/activate in daytime?

Post by Malignant Manor »

Those eggs are nocturnal eggs that trigger during the time period I listed above.
Locked