- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
It's like it never left
Restores in-game race timer and adds new features to it with the aim of being highly customizable
Github repo (contributions welcome)
This add-on stores settings client-side, so they'll persist on any server you join, meaning even if you don't plan on using it, you can just turn it off
You can mix and match most of these, try it out!
Settings are saved in
(If by chance you're modifying the
You can mix and match most of these, try it out!
| Name | Default | Description | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hudtimer | on | Toggles the entirety of the add-on
| |||||||||||
hudtimer_mode | default | Appearance of the timer
| |||||||||||
hudtimer_format | default | How time is formatted
| |||||||||||
hudtimer_laptime | show_below | How to show your lap time
| |||||||||||
hudtimer_laptime_list | 3 | If hudtimer_laptime is set to list_last or list_vs, controls the maximum size of the list
| |||||||||||
hudtimer_splitscreen | per_player | Appearance of the timer in splitscreen
| |||||||||||
hudtimer_inposition | on | Shows a countdown for how long POSITION!! lasts
| |||||||||||
hudtimer_offsetxhudtimer_offsety | 1912 | Position of the timer on screen, top-right anchored
| |||||||||||
hudtimer_opacity | 10 | How opaque the timer is
| |||||||||||
hudtimer_preset | default | You can save multiple copies of the settings and swap them as you see fit (for example: different gametypes) Gets auto-loaded on start up!
| |||||||||||
hudtimer_preset_savehudtimer_preset_load | (command) | Manually save/load a preset specified in hudtimer_preset(you can also pass a preset name to these as a parameter) | |||||||||||
hudtimer_preset_autosave | off | Automatically save detected changes to your specified hudtimer_preset
| |||||||||||
hudtimer_debug | (command) | If you're looking to do mod compatibility, extensions or bug testing, this will try to be useful Prints the instructions on how to use it in the console |
Settings are saved in
YourGameFolderHere\luafiles\client as hudtimer.cfg and hudtimer_PresetNameHere.cfg for any presets respectively(If by chance you're modifying the
K_STTIMW image, check out bgcolor inside hudtimer.cfg and set it to a valid palette color)You can control whether the timer is allowed to appear (blacklist/whitelist basically) and what areas of the screen to not overlap (move to closest side or make transparent)
If you're making HUD add-ons or custom gametypes, this is for you
Documentantion is available in the
io_mods.lua file inside the add-on
Example code:
if not hudtimer then return end
hudtimer.addcondition("allow", "dynamite derby free play", function(t)
return bdd and gametype == GT_BDD and (bdd.numplayers <= 1 or mapheaderinfo[gamemap].typeoflevel == 0)
end)
hudtimer.addcondition("modify", "teams hud", function(t)
return (teamplay and t.splitscreen == 1 and not t.player.exiting) and {t.screenw-150, 0, t.screenw, 40}
end)
If anyone has the know-how to solve these, i'll be glad if you reach out!
- Overlaps every vanilla HUD element
(Especially status messages and POSITION!! display. You can somewhat mitigate this by configuring the timer differently) - Sets your
showviewpointtextconsole variable to1
(To aid in 3p+ splitscreen, i couldn't think of better ways) - Timer sliding in/out sometimes doesn't match the rest of the HUD on unstable framerates
- Shows lap times even while you're in free camera
- Doesn't disappear during the "HERE COMES A NEW CHALLENGER!" screen
- Miscellaneous weirdness when configuring offsets
(It's math alright)
Credits:
- TehRealSalt's Custom HUD Library (edited for Ring Racers)
- JSON parser from Lat's SRB2 Infinity (which itself is an edit of rxi's)
- Kart Krew for all the assets
