Space Engineers
280 ψήφοι
Precise Timers (Frame by Frame Countdown of Timers)
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
614.000 B
14 Απρ 2015, 6:54
18 Απρ 2015, 6:03
2 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Precise Timers (Frame by Frame Countdown of Timers)

ΠΕΡΙΓΡΑΦΗ
Important Update: Before I was checking if the timer already existed in the list of timers it checks by their name, and could cause some unintentional behavior. Now it works perfectly as intended.

Allows the countdown delay to be set to a certain amount of frames instead of seconds.

Setup:
Add this script to a Programmable Block and create a timer that Triggers itself and the Programmable Block.

Add "Adv" (Without quotation marks, capitals matter) to the end of a timer name to mark it for Tick by Tick countdown.
When you do so, the delay will be considered in terms of Ticks instead of seconds, and there is 60 ticks in a second (So 30 seconds delay would become half a seconds delay)

Be aware if you remove Adv in the Timer Name it wont stop being a Precise Timer until you reload the world or you recompile the programming block.

Be aware that it takes up to 10 seconds for the script to recognize a newly named timer. So wait 10 seconds after you renamed the timer before testing it.

Example: https://steamproxy.net/sharedfiles/filedetails/?id=1652380541

(When I say frame above, I mean a Sim Tick. I say Frame since it is more intuitive to more people. This means that this script is not affected by your FPS, but only by Sim Speed, which is good)
153 σχόλια
SioxerNikita  [Δημιουργός] 10 Μαϊ, 17:28 
@YCMKNDY90 No clue haven't played for a long time, since May 11th 2022 XD
YCMKNDY90 10 Μαϊ, 17:02 
Isn't the Automatons timer block compatible?
Marcusinfestus 21 Οκτ 2023, 18:55 
I get it. Too bad really. This mod makes so many things possible!
SioxerNikita  [Δημιουργός] 17 Οκτ 2023, 3:38 
@Marcusinfestus I perfectly understand why KEEN wouldn't do that.

The game is not optimized for having tons of timers running and being triggered at tick rate. It never will be.
Marcusinfestus 14 Οκτ 2023, 10:21 
I wish KEEN would just make this a thing; 1 sec just isn't tight enough.
Reverie Lightmare 14 Οκτ 2023, 5:25 
This isn't working for me either unfortunately.
SioxerNikita  [Δημιουργός] 4 Οκτ 2023, 0:06 
It should, nothing has really changed.
TH3 L00S3 C@NN0N 3 Οκτ 2023, 13:10 
Is this script still working? I am trying to set it up to drop bombs .25 seconds apart. I have the timers with Adv at the end at set 25 seconds (ticks) apart but it’s still going by seconds
SioxerNikita  [Δημιουργός] 16 Απρ 2023, 0:21 
Thanks, I built it specifically to be as performant as possible
StuntPuppy 15 Απρ 2023, 16:10 
Love this script, use it all the time, it's still quite functional. The most basic and yet most useful script if you want to do anything with precision timing. Personally I update it to not need a timer block trigger.