Skip to content

v2: One-screen UI, copy to clipboard, smaller executable

Compare
Choose a tag to compare
@ckuma ckuma released this 17 Mar 21:39

Star Citizen Playtime calculator v2

This helps you calculate the total amount of time logged by Star Citizen in its game logs.

Updates

Dropping gooey for the GUI, using Python's included Tkinter (makes the resulting executable smaller also).
Adding a button to copy to clipboard the total.
Adding a dropdown to get the value previously displayed, as well as the totals in hours, minutes etc.
Everything in one screen instead of two, so no loading bar anymore.

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/4cd69131335d14dff3228b6f0463f235b28ba3c6a0e9bde4afc07778f6252b48?nocache=1

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)