Mods / GameTimeFX

Tags:
Code Clientside Time
Author:
LoadingTunes
Side:
Client
Created:
May 17th at 11:31 PM
Last modified:
May 19th at 12:49 PM
Downloads:
55
For testers:
gametimefx.zip

GameTimeFX connects Vintage Story's in-game clock to the real world.

Every 2 seconds while you're in a world, it writes the current in-game hour and temporal storm state to a plain-text file. Any external program that can read a file can use it. No API keys, no dependencies, no server install.

Output file: <VintagestoryData>/gametime.txt Format: 14.3812,0 Hour (0.0 to 24.0) and storm flag (0 = clear, 1 = storm active).


What can you do with it?

My own use case is linking RGB LEDs to in-game time of day. The lights on my PC shift from deep navy at midnight, through sunrise oranges and golds, into cool midday whites, then back through golden hour and sunset reds as the day cycles. Temporal storms pulse the LEDs between sickly green and deep purple. I think its pretty cool.

But the file is simple enough that you can wire it to almost anything id say:

  • Smart bulbs and bias lighting
  • Stream overlays showing in-game time
  • OBS scene switching at dawn, dusk, or storm
  • Wallpaper Engine or Rainmeter widgets
  • Sound triggers and ambient audio
  • Home Assistant and smart home automation

 

 

Client-side only. Drop the zip in your Mods folder and forget it's there. No GUI, runs silently in the background.

Tested on VS 1.22. Storm detection falls back gracefully on older versions.

Mod Version Downloads Released Changelog Download
1.0.2 17 May 19th at 12:49 PM gametimefx.zip
  • Version: 1.0.2
  • Changelog: Fix GamePaths compile error, use Environment.GetFolderPath for VS 1.22 compatibility
1.0.1 22 May 18th at 12:07 AM gametimefx.zip

comments added for devs coming from java 

1.0.0 16 May 17th at 11:34 PM gametimefx.zip

Initial release.

  • Writes in-game hour and temporal storm flag to gametime.txt every 2 seconds
  • Cross-platform path via GamePaths.DataPath (Windows, Mac, Linux)
  • Client-side only, no server install required
  • Tested on VS 1.22

3 Comments (oldest first | newest first) (threaded | flat)

BrazilPirate, May 18th at 1:27 AM

Good idea. I see myself using it

LoadingTunes , May 18th at 4:12 AM
@BrazilPirate: Good idea. I see myself using it

Thank you! Let me know how it goes once you get a chance to try it out.

LoadingTunes , May 18th at 12:08 AM

download 1.0.0 is out, 1.0.1 is just a comment update, no real changes!