Godot Engine

Godot Engine

231 ratings
[Obsolete] Making Steam to track your time in Godot [Windows]
By viteo
At the time steam does not take into account the time spent in the engine because of its launch sequence. We are goind to change that.
3
17
4
2
2
   
Award
Favorite
Favorited
Unfavorite
0. Issue solved in v4.3.
1. Issue
When you launch Godot engine from Steam it starts an command prompt and a Project window as subprocess. After you select your project, Godot lauch another subprocess for IDE itself, but Steam thinks that application was closed. We are going to change that!

Its a very old issue[github.com]. Here is a temporary solution.
2. Workaround
So, if it is an command prompt, let's launch it formally and make Steam detect the main process, not the subprocesses.


  1. Go to the Godot installation folder. By default it is:
    ...\Steam\steamapps\common\Godot Engine\

  2. Rename Godot executable from godot.windows.opt.tools.64.exe to something else, for example godot.exe

  3. Next we have to create a symlink to command prompt executable with the name of the original Godot executable. Launch cmd and execute the next string:
    mklink godot.windows.opt.tools.64.exe c:\Windows\System32\cmd.exe
    It will create a symlink file named exactly godot.windows.opt.tools.64.exe which we should put into Godot installation folder so Steam will use it as usual.

  4. Now in Steam client go to the Godot Propeties and Set launch options to:
    /K godot.exe

  5. Done! Launch Godot as usual and enjoy your stats in Steam.
3. P.S.
To quit Godot now we have to close Main window and command prompt. Not a big deal.

UPD:
New 3.2 update adds an option in editor settings: "Hide Console Window". Be careful with it, because it hides, but doesn't close console after quitting Godot. But you can finish the process from Steam Library by pressing Close button

UPD2:
Ok, here is batch script for lazy fix:
'timetracking.bat'[gist.github.com]
Put it inside Godot folder and execute.
Don't forget to check launch options in Steam.

UPD3:
Here is new super-automated script for you:
Originally posted by Mechanos:
https://gist.github.com/MechanosG/51eaf95d60e9a63e0a65782c7e31a519
Script detects if you ran as admin or not, then asks for permission if it needs it, then sets the directory to the batch folder, before running [fix] script
77 Comments
RogDolos 7 Oct, 2024 @ 7:41am 
I found this useful still, since I wanted to track my time using the mono (for C#) version of Godot 4.3. Took a few extra steps (mostly copying over the mono version + folders to the Steam install), then followed the instructions here, only aiming the launch to the mono version-- it works. =)
viteo  [author] 23 Aug, 2024 @ 10:03am 
i confirm that with latest hotfix it is solved. marking this guide as obsolete, finally!
Off baby 🤔 21 Aug, 2024 @ 6:15am 
the fix has been implemented in the 4.3 hotfix and Confirmed by devs too as far as i know :steamhappy: the hotfix works for Me but not sure about everyone else
YouthHalo 16 Aug, 2024 @ 8:44am 
Steam now sometimes tracks the time without another godot window open on version 4.3. Usually only if i click on a Godot shortcut before steam is open
viteo  [author] 15 Aug, 2024 @ 11:37am 
well, guys, unlucky patch doesn't get in 4.3. just today they made additional fixes into build scripts PR#98 [github.com].
I've tested this guide solution on newest version - it works.
Zeliard Gervik 12 Jul, 2024 @ 11:18am 
yeah i tried doing this on windows 11 and the whole symlink file didn't pop up

i guess we gotta wait until 4.2
viteo  [author] 12 Jun, 2024 @ 12:54am 
good news everyone. last week steam api integration #79126 [github.com] patch has been accepted in dev branch. and cherry-picked for 4.2. let's hope this epoch will soon be over.
viteo  [author] 11 Jun, 2024 @ 12:32am 
it's in system32 folder because you start your command promt in this folder. you have to navigate to godot folder and create symlink there. use 'cd' command to change dir
Mechanos 27 May, 2024 @ 10:56pm 
Uh.. if the file is missing from your Godot folder, something changed in the last 3-4 years, or you already ran something to rename the file (probably the latter). Also, unless that's some new Windows 11 shenanigan, I don't know why a godot binary would be in your system32, unless it's some sort of backup/system restore copy. https://godotengine.org/download/windows/ Godot can run inside it's own folder, self contained. It has no need for the exe to be in your system32.

So... sus..
Homura Akemi, Aura Farmer 27 May, 2024 @ 7:20pm 
to anyone who was confused as to where the symlink file you created is (as i was), just search "godot.windows.opt.tools.64.exe" in system32 and copy that file into your godot install folder and follow all other steps and it will work