We use necessary cookies to keep this website working, such as keeping you signed in and protecting forms. With your permission, we also use optional technologies to play embedded YouTube videos, measure site usage with Google Analytics, and show Google AdSense ads. You can accept all optional categories, reject them, or choose your preferences. You can change your choice at any time through Cookie Settings at the bottom of every page.
Shows the current real time in game, default location is below the ingame clock.
This script creates a configuration xml at first startup in your modSettings folder. There you can adjust the following:
* Position
* isDynamic
true: automatically position the text below the game clock, ignore x and y
false: Use x and y ignoring text dimension
* x, y: the position on the screen, see small illustration below for details
1,0 .. 1,1
0,0 .. 1,0
* Color and size of text
* color: supports the following text values: black, white and all rgba colors seperated by comma in the range [0..1] example king blue "0.25,0.41,0.88,1"
* fontSize: the size of the font to display, a value in the range [0..1], default 0.015. UI Scale is used for calculating the font size to display
* Format of datetime string (see list below)
Position and font size can now also be set with console commands, this makes it a lot easier to position the clock at the wanted position
* vdRealClockPrintCurrentValues -> Shows the current values which are used
* vdRealClockSetPosition 0.9 0.9 -> Set the position, applies immediately
* vdRealClockSetFontSize 0.013 -> Set the font size, applies immediately
* vdRealClockResetToDefault -> Set the values back to their defaults
* vdRealClockSaveSettings -> Saves the changed values in the xml within the modSettings folder
Possible Formats:
%a abbreviated weekday name (e.g., Wed)
%A full weekday name (e.g., Wednesday)
%b abbreviated month name (e.g., Sep)
%B full month name (e.g., September)
%c date and time (e.g., 09/16/98 23:48:10)
%d day of the month (16) [01-31]
%H hour, using a 24-hour clock (23) [00-23]
%I hour, using a 12-hour clock (11) [01-12]
%M minute (48) [00-59]
%m month (09) [01-12]
%p either "am" or "pm" (pm)
%S second (10) [00-61]
%w weekday (3) [0-6 = Sunday-Saturday]
%x date (e.g., 09/16/98)
%X time (e.g., 23:48:10)
%Y full year (1998)
%y two-digit year (98) [00-99]
%% the character `%´
GitHub link: https://github.com/VertexDezign/RealClock
This video is hosted by YouTube (Google). Playing it here lets YouTube set cookies and receive your IP address and the address of this page.