Someone bugged me to make this, and I've been using a phone to do it until now, so enjoy Adds a timer to the bottom right of your screen that shows how long the game has been going on for. Installation Install using PAMM Usage At the start of the game, the timer will say "Sync", once the game has started, click it to sync the game time (This doesn't have to be done straight away, you can get your initial commands queued up first). You can also click the timer later in the game to resync it if it drifts (Drifted about 1 second for me in 6 minutes) Enjoy
Lol edited before I seen your replies. Link you sent seemed strange. Ninja raevn for sure. Wonder if elitedanzel knows how to change log too?
Yeah but you need to click it, and then close it. This can sometimes in its self cause issues with units.
I've modified the mod a bit to do have it automatically start at the beginning of the game: Code: var syncFunc = function() { //console.log('sync'); clearInterval(syncInterval); clearInterval(trySyncInterval); var startTime = model.currentTimeInSeconds(); api.time.control(); //if you set and unset immediately then current time doesn't work, so use a wait for time to change thingy var trySyncInterval = setInterval(function() { var newTime = model.currentTimeInSeconds(); if (newTime == startTime) { //time hasn't changed, keep waiting... //console.log('waiting'); return; } clearInterval(trySyncInterval); api.time.resume(); timeOffset = newTime - (new Date().getTime() / 1000); //console.log('got it!' + newTime + ' ' + timeOffset); updateTime(); syncInterval = setInterval(updateTime, 1000); }, 50); }; element.click(syncFunc); var oldAck = model.ackMessage; model.ackMessage = function() { oldAck(); syncFunc(); }; seems to work fine
It's the function bound to the "Start Annihilation" button. I found it by searching for Start Annihilation in the live_game.html and looking at it's knockout bindings.
1.1 Attached with auto-start included. Was embarrassed in to this after watching it say Sync the whole game in @ZaphodX latest video. Code is now also on github https://github.com/danzel/planetary-annihilation-ui-mods
This tripped me up also, the new uber keybinds need to be worked around a bit or removed Edit: using hotkeys is a good enough workaround for me
A workaround is to add z-index: -1; to the CSS file for #in_game_timer. That will show under the PIP button. Even better would be to also move it a dozen pixels up.