Real time clock possible?

Discussion in 'Mapping Questions & Discussion' started by PoisonHeadcrab, Aug 14, 2011.

  1. PoisonHeadcrab

    PoisonHeadcrab L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    So, I'm trying to include a clock in my map that would show the actual (server) time. Is there any way to parse the server time for this without using server plugins, for example at the start of the map?


    Any help would be greatly appreciated. :)
     
  2. Seba

    aa Seba DR. BIG FUCKER, PHD

    Messages:
    2,363
    Positive Ratings:
    2,365
    Without server plugins, I don't think so. Maps tend to be self-contained.
     
  3. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,992
    Positive Ratings:
    1,233
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    That is either irrelevant or infeasible.

    If it follows suit with the CurrentTime material proxy it is the elapsed map time, not the server's system clock. Mind you, very few things in the engine care at all what time it is, no reason for much to be hooked into it. I would say none, but TF2 does have the birthday mode that turns on, other than that I don't think there is anything actually.

    If it is actually the system time, not only would you have to find out what format it is in, but since there is no way to "parse apart" variables within the proxy system the only possible use would be an animated texture with a frame for every single second (assuming it returned the time to that precision) of the day, or more.
     
    • Thanks Thanks x 1
  5. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,992
    Positive Ratings:
    1,233
    I got told.
     
    • Thanks Thanks x 1
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    I was bored so I dug through the source. It is in fact the same thing in both situations.

     
  7. PoisonHeadcrab

    PoisonHeadcrab L1: Registered

    Messages:
    14
    Positive Ratings:
    0
    Well that's weird, since the descriptions from the wiki would contradict in this case. I guess it's time to try them out then, however I'm rather new to that proxy stuff for materials, would anyone happen to know any good tutorials to go with? :p

    Anyways, thanks a lot for the responses.
     
    Last edited: Aug 15, 2011
  8. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,992
    Positive Ratings:
    1,233
    Boojum is right; my idea is broken.

    I think a math remap could save it but I am not sure.
     
  9. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    "to the current time on the server" is what it does, they don't really contradict each other, one is just more explicit. If you turn on developer 2 to enable entity I/O spew to the console, you'll see each event is prefixed with the server time, in seconds elapsed since the map loaded.
    That said, the description of the proxy actually used to be just as vague, but was recently changed to define it as elapsed seconds, so I figure someone finally tested/used it.

    There basically isn't a way to do what you want.