v1
Star Citizen Playtime calculator
This helps you calculate the total amount of time logged by Star Citizen in its game logs.
Limitations
If you've kept your SC folder and have not reinstalled/wiped your folders or drive, this should be an accurate total of your time spent playing SC.
Otherwise it'll only show you how much time you've spent playing since the last time you've properly installed SC.
The sum total survives Star Citizen updates, just not full reinstalls or disk wipes.
Disclaimer regarding executables
I'm adding the executable file generated with pyinstaller so that you can immediately fire up the code, since all you want is probably that end result.
Feel free to not trust the executable file: the source code of this repo allows you to run the same program via python:
- via commandline (sc_playtime.py)
- via python CLI-to-GUI (sc_main.py)
- or you can also recreate the executable using the README's instructions (whether by running the bat file in a python venv with requirements installed, or by using the one-liner yourself)
Don't trust random executables blindly!
This exe is therefore just provided for convenience sake.
Virustotal scan and explanation
Virustotal analysis: https://www.virustotal.com/gui/file-analysis/ZTNhNTEwOGRhNTFhYzg0OTZjNTQ2ZWZiNzA5YzRlNzY6MTcxMDU2NTU0Mg==
To my surprise, using pyinstaller leads to an executable being considered a "trojan" by a few AVs.
Reddit has a decent explanation of why, pyinstaller's github also has some mentions.
Until I find some time to generate a simpler and cleaner executable that will have to do unfortunately - and if you do not trust it please by all means compile it on your own machine.
(Btw I'll probably rewrite this thing with Go or Rust because f*** python and its CLI-to-GUI-to-exe madness)