[REQ] Countdown Timer Before Start

Discussion in 'Mod Discussions' started by cptconundrum, January 7, 2014.

  1. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    In some team games, coordinating the spawn locations can take a while. Without knowing exactly how much time is left before the game forces itself to start, I tend to worry about how long I have left and rush the selection. We can solve this pretty easily by putting up a big countdown timer on the screen to let us know how much time we have, but I don't actually know how long the game will wait.

    Does anyone know how long we get before the game starts if we don't choose a spawn location? I can make this mod on my own, but anyone else can feel free to make it if you want it done sooner.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I have the value "120 seconds" floating in my head. But no idea if it is correct or not.
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I'm mostly just worried that the amount of time would depend on how long it takes to load the planets. I wouldn't know when to start the timer, because some people might get less time than others. I probably need a way to query the server or something once the client finishes loading and initializing all its javascript.

    *Edit*

    From a quick test, it does look like it is 120 seconds. I timed it at 116 seconds on a size 200 planet, so I'm guessing that the server starts counting whenever it is ready. Unless I have access to that timer in the API, I don't really think I can ever be accurate enough to make this worth while as a timer.

    I might give it a 100 second timer that flashes red and tells you to click fast once it runs out, but the perfectionist in me isn't really happy about that. What does everyone think about a stoplight system for it instead? Green for the first 60 seconds, yellow for the next 30, and then red until the game starts. You would at least have a better idea of how much time is left up until it turns red, unless your machine is very slow or your network connection is bad.
    Last edited: January 7, 2014

Share This Page