-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
115 lines (73 loc) · 4.05 KB
/
README.txt
File metadata and controls
115 lines (73 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Welcome to PySteamTimes! This program is meant to take all your games from Steam,
put them in Excel, and then search HowLongToBeat.com for all of your games and put in
the times. I've written this README as if the user has zero experience with command
line instructions. If that's you, don't worry! This shouldn't be too involved.
If you have ideas for features, please contact me on Discord at TM#7221.
Libraries needed:
- aiohttp
- requests
- fake_useragent
- openpyxl
- steamfront
- howlongtobeatpy
Install these in Windows Powershell using the command:
pip install [name of library]
If for whatever reason that doesn't work, use this instead:
python -m pip install [name of library]
HOW TO RUN:
OPTION 1:
- Open Windows Powershell (or Linux terminal, if using Linux)
- Navigate to your installation folder using this command
cd [file path]
You can get your file path by clicking on the bar to the left of the search bar in File Explorer.
For example:
cd C:\Users\Admin\Documents\PySteamTimes
Once in the folder, run the following command:
python importSteam.py
This program will take several minutes to complete.
After completing the steps specified by the program, run this command:
python exportHLTB.py
OPTION 2:
Windows:
- Right-click on importSteam.py, click "Open with", then choose another app.
- Navigate to your installation of Python, and check "Always use this app to open .py files"
- By double clicking on any py file, it should automatically open and run the file on Command Prompt.
Linux:
- Right-click on the .py file and select "Properties".
- In the "Open With" tab, select Python from the list of applications.
- Click on "Set as default".
This program will take several minutes to complete.
After completing the steps specified by the program, double click on exportHLTB.py.
OPTION 3:
- Open IDLE, included with your installation of Python
- Open importSteam.py under File
- Run the script using Run -> Run Module
This program will take several minutes to complete.
After completing the steps specified by the program, open exportHLTB.py and run it.
TROUBLESHOOTING
The Steam app ID was not found.
- 99% of the time this happens it's due to a game either being no longer purchaseable or being an
accessory to another game, like a Friend's Pass. If you want to be absolutely sure, go to the links
specified and find the games. If it's many more than 1 or 2% of your library, contact me and I'll
figure something out. This program is probably in continual WIP anyway.
Many Steam App IDs in a row are not found.
- You ran into a problem with Steam's request rate limit. Wait for 3-5 minutes and re-run the script.
The game was not found on HowLongToBeat.
- Most likely, the game name isn't exactly what it should be. If the program searches for "[Game] Definitive Edition"
it won't find "[Game]". This is an unfortunate quirk of HLTB's own search API. You will need to go into Excel and edit
the name of the game if the cell in the time column specifies it was not found in HLTB's database. It is also possible
that HLTB does not have any record of the game's existence whatsoever. If the hours are set to 0, HLTB correctly found
the game in its database, but simply does not have any completion data on it.
Other reasons this may occur:
- The name is in another language
- The program is searching for non-game software such as Borderless Gaming or a soundtrack
- Your internet is having problems
---
My Excel file was corrupted.
- Open Excel, go to File -> Open -> Browse. Single-click on SteamGames.xlsx, and navigate to the Open button on the
bottom right. Click the down arrow next to Open, click Open and Repair, Extract Data, Convert to Values. Finally,
go back to File -> Save As, and save the file. After that, you can rerun the export script.
My error isn't listed here.
- Please try running the script again. Sometimes there are weird errors that I can't reproduce and disappear on the
next time I try running it. If it persists after 2 or 3 tries, contact me.
If none of these answer your question, you are free to contact me on Discord at TM#7221 and I will help.