archive: show
Input Overlay & Speedrun Timer
credits: show
Scripted by Lukinsky (LooKiCH)
Input Overlay GFX by Wohlstand (for TheXTech)
Speedrun Timer from episode MaGLX3 and some edited
Input Overlay GFX by Wohlstand (for TheXTech)
Speedrun Timer from episode MaGLX3 and some edited
screenshots: show



Download speedrun timer v2.1
Download input overlay v2
input overlay icons
how to use: show
Code: Select all
require("speedruntimer") -- Load timer
require("inputoverlay") -- Load input overlay
• in luna.lua and map.lua (if for specific episode/level)
• or in scripts\base\game\lunabase.lua (at the end of the file) (if for all episodes and levels)
Save lua files to "scripts" if you will use for all episodes/levels
For input overlay icons to work, move the folder with icons next to the script file (inputoverlay.lua)
changelog: show
v1.1:
• If you checkpointed, the Level Timer will start from the time you last checkpointed
• Added Input Overlay for the second player
• Updated Speedrun Timer's offset
• Added a folder whose contents you can move to the "scripts" folder so that the script is applied in all episodes
• Works even if hud is hidden
v1.2:
• If my quickrespawn.lua script is using, then if resets powerups to the state it was at the start of the level, then the counter is reset to the time value that was at the start of the level (added option, code below)
• You may screenshot without Speedrun Tmer overlay, press SPACE + F12
v1.3:
• Saving timers works even if it is a deprecated checkpoint
v2:
• Fully reworked script
• Increased timer speed. I noticed in my videos that the game timer goes a little slower than usual. This is because I entered 65 frames as one whole second, and in fact one second is approximately 64.1025, there is even a variable function Misc.GetEngineTPS(), which displays almost the exact number of frames per second
• Updated timer format:

• Removed unnecessary functions
• After level restart level timer continues

• After level completing level timer resets to zero
• Optimized for 2 players:

• You may hide the timer and input overlay by pressing F5 key
• Added exception episodes in which the timer and input overlay will not work, since they already have a built-in timer and input overlay
v2.1:
• Best time was updating even if the level timer is greater than best time. I have just fixed this
• Added hotkey of erasing timer data
• No more code execution errors
v2.2:
• Fixed some bugs
• If you checkpointed, the Level Timer will start from the time you last checkpointed
• Added Input Overlay for the second player
• Updated Speedrun Timer's offset
• Added a folder whose contents you can move to the "scripts" folder so that the script is applied in all episodes
• Works even if hud is hidden
v1.2:
• If my quickrespawn.lua script is using, then if resets powerups to the state it was at the start of the level, then the counter is reset to the time value that was at the start of the level (added option, code below)
Code: Select all
speedruntimer.resetTimerToStart = true
v1.3:
• Saving timers works even if it is a deprecated checkpoint
v2:
• Fully reworked script
• Increased timer speed. I noticed in my videos that the game timer goes a little slower than usual. This is because I entered 65 frames as one whole second, and in fact one second is approximately 64.1025, there is even a variable function Misc.GetEngineTPS(), which displays almost the exact number of frames per second
• Updated timer format:

• Removed unnecessary functions
• After level restart level timer continues

• After level completing level timer resets to zero
• Optimized for 2 players:

• You may hide the timer and input overlay by pressing F5 key
• Added exception episodes in which the timer and input overlay will not work, since they already have a built-in timer and input overlay
v2.1:
• Best time was updating even if the level timer is greater than best time. I have just fixed this
• Added hotkey of erasing timer data
• No more code execution errors
v2.2:
• Fixed some bugs