HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Solved] Synching time of day  (Read 1013 times)

micahkkts

  • General Accounts
  • *
  • Posts: 2
    • View Profile
[Solved] Synching time of day
« on: Oct 04, 11, 05:44:23 AM »

Still getting our feet wet in the world, but is there a way to synchronize the time of day in all areas? Maybe keep a blank area up and whenever other areas spin up have them synch to it? Also, whenever all of us are logged out for a period of time, when we log back in, the time of day has stopped advancing and has to be restarted in the edit instance of our area again. Is that normal?

Thanks,
Micah
« Last Edit: Jan 16, 12, 12:48:04 PM by HE-Cooper »
Logged

jcsmith562

  • General Accounts
  • *
  • Posts: 190
    • View Profile
Re: Synching time of day
« Reply #1 on: Oct 04, 11, 05:49:20 AM »

You can synch them but it doesn't do it by default. In the Hero's Journey reference server look as the Astronomy Class and at the Area Controls system (from F5 menu).
Logged

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: Synching time of day
« Reply #2 on: Oct 04, 11, 01:20:02 PM »

I found those a little confusing to follow when I looked at them before.

Time of day as set in the environment panel does not propagate to the server, as it is a client-side effect.  Thus, every time a client enters an area, the time of day is reset for them to the default of 0.05.  So to have the time set to something different, you would use a client side external function (I forget off-hand what it's called).  That would be called after the client is activated in an area.

The value can either be hard-coded on the client, or sent from the server.  So you don't really need a blank area running, but just to have the desired value stored somewhere.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

HE-Cooper

  • *****
  • Posts: 2221
    • View Profile
Re: Synching time of day
« Reply #3 on: Oct 04, 11, 01:31:51 PM »

The environment and renderer sections can be confusing to understand what their purpose is. They actually aren't there to set things permanently, they are there for world builders to see in real time what areas look like at different settings. Those settings can then be set in code, or aspects of the various settings can get coded up to be published to your end users, like shadow settings and grass density etc.
Logged

XCalPro

  • General Accounts
  • *
  • Posts: 105
  • 3D Artist & HSL Coder
    • View Profile
    • Excalibur Productions
Re: Synching time of day
« Reply #4 on: Jan 13, 12, 05:23:58 PM »

The SetEnviroTimeOfDay default value can be set in E_BaseClientClassMethods:17 if anyone is still interested.
Logged
Tony Oliveira aka XCalPro
HeroEngine Projects: Traveller 6 Online - www.traveller6.com/forum/
Portfolio: www.xcalpro.com/art