Jump to content


Photo

TimeOfDay


  • Please log in to reply
8 replies to this topic

#1 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 18 January 2009 - 11:56 PM

Hi all,

i've just discovered something weird when using the TimeOfDay check. I assumed checking both for (DAY) and (NIGHT) would cover the whole game-day but it doesn't seem to be the case. I think there are 2 "limbo" hours which are not "covered" by those checks.

Example: in my mod i check TimeOfDay (DAY) and later (NIGHT) to have different spawns in an area. It happens that at "21.00 Hour" in the game, NOTHING is triggered by those conditions ... so 20.00 is still DAY and 22.00 is just NIGHT, but 21.00 is a "Limbo" time ...

Have someone else noticed that? Do u know how can i handle that so that i can cover 21.00 as well? Maybe an engine bug?

Thanks in advance,

mm75

Edited by melkor_morgoth75, 18 January 2009 - 11:58 PM.

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#2 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9202 posts

Posted 19 January 2009 - 12:14 AM

There are also DUSK and DAWN, I think, though I'm not sure of the exact labels.

I find the best way is

OR(4)
  TimeOfDay(0)
  TimeOfDay(1)
  TimeOfDay(2)
  TimeOfDay(3)
Covers all times, I think. :) You might want to check gtimes.ids for confirmation.

#3 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 19 January 2009 - 07:09 AM

There are also DUSK and DAWN, I think, though I'm not sure of the exact labels.

I find the best way is

OR(4)
  TimeOfDay(0)
  TimeOfDay(1)
  TimeOfDay(2)
  TimeOfDay(3)
Covers all times, I think. :) You might want to check gtimes.ids for confirmation.


I will, thanks but the problem is that i NEED to check for Daytime and Nightime, not just groups of hours...

mm75

Edited by melkor_morgoth75, 19 January 2009 - 07:22 AM.

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#4 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 19 January 2009 - 07:37 AM

Time.ids & timeoday.ids are the sites to check. To save you time:

TimeOfDay(0)=TimeOfDay(DAY), 7-21
TimeOfDay(1)=TimeOfDay(DUSK), 21-22
TimeOfDay(2)=TimeOfDay(NIGHT), 22-6
TimeOfDay(3)=TimeOfDay(MORNING), 6-7

DAY/DUSK/NIGHT/MORNING is what's in mine, yours might differ of course.

Retired from modding.


#5 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 19 January 2009 - 09:37 AM

Time.ids & timeoday.ids are the sites to check. To save you time:

TimeOfDay(0)=TimeOfDay(DAY), 7-21
TimeOfDay(1)=TimeOfDay(DUSK), 21-22
TimeOfDay(2)=TimeOfDay(NIGHT), 22-6
TimeOfDay(3)=TimeOfDay(MORNING), 6-7

DAY/DUSK/NIGHT/MORNING is what's in mine, yours might differ of course.


Thank you VERY much GeN1e :cheers:

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#6 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9202 posts

Posted 19 January 2009 - 02:49 PM

Thanks GeN1e, I wasn't sure of the exact labels etc. :cheers:

#7 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 20 January 2009 - 12:00 AM

Noobie's question always about that ... trying to replace my current line:

TimeOfDay(DAY)


I need 3 Lines now:

OR (2)
TimeOfDay(0)
TimeOfDay(1)


Can i put those in the same line?

OR (2) TimeOfDay(0) TimeOfDay(1)


Just a matter of "replace" function within Wordpad, etc... (which accepts only 1 row). Or do u know a simpler way to change any of those in my bcs files?

Thanks ... i know it's something stupid, but i can't find a way lol :-D

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn


#8 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 20 January 2009 - 12:42 AM

OR(2), not OR (2).
DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~state(1)~ ~state(1) state(2) state(3)~
COMPILE_BAF_TO_BCS
works just fine. Hence I assume text editor can do it as well.

Retired from modding.


#9 melkor_morgoth75

melkor_morgoth75

    Lord

  • Modder
  • 1509 posts

Posted 20 January 2009 - 12:53 AM

OR(2), not OR (2).

DECOMPILE_BCS_TO_BAF
REPLACE_TEXTUALLY ~state(1)~ ~state(1) state(2) state(3)~
COMPILE_BAF_TO_BCS
works just fine. Hence I assume text editor can do it as well.


Will try that, thanks

mm75

Tired of the same boring spawned creatures u face in BG? Try BGSpawn