Releases: ckuma/scplay
v3.1: The C# WinForms edition - with totals in hours also
Since the v2 seems to have caused problems to people I've decided to go with Windows+WinForms and therefore use Visual Studio, C# and whatever basics I can scrounge up while I reminisce about the joys of developping in Borland Delphi way back when.
I've added a dropdown which allows default display of totals or display using a total in hours, for those who want to be shocked at the amount of time they've spent pressing buttons to take elevators.
Bottom line is:
- if you trust me you can use the latest built binary
- if you know how to compile a solution and have VS2022, feel free to clone and build and modify as you wish.
- if you don't trust me, learn to build this or the python version!
- if for some reason this doesn't work well, then v2 and Python might work for you 😃
P.S: hello to the VNGD crowd! You're awesome!
v3: The C# WinForms edition!
Since the v2 seems to have caused problems to people I've decided to go with Windows+WinForms and therefore use Visual Studio, C# and whatever basics I can scrounge up while I reminisce about the joys of developping in Borland Delphi way back when.
Bottom line is:
- if you trust me you can use the latest built binary
- if you know how to compile a solution and have VS2022, feel free to clone and build and modify as you wish.
- if for some reason this doesn't work well, then v2 and Python might work for you 😃
P.S: hello to the VNGD crowd! You're awesome!
v2: One-screen UI, copy to clipboard, smaller executable
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)
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)