-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help by installing library #23
Comments
Maybe as an additional comment, i always installed librarys with the pip install command on windows 10 and i am using pycharm 2019 |
Well, you only need the Steamworks SDK folder if you are compiling the DLL, SO, or Dylib files from scratch. For compiling just copy all the necessary stuff into a clean folder and compile from there by following the instructions. If you get stuck during this process, let me know where. If you use the pre-compiled ones (I recommend the pre-compiles) or have already compiled it, you just need to add the steamworks.py file and the DLL in your project folder. Then inside whatever you main project file is just add
As to where in your code you add stuff depends on what you are trying to do. Just write back where you are at and we'll get it sorted out! |
thanks for the help (sry for my delayed answer) i am going to try that out and if i need help i let it know you 😄 thanks a lot |
I wrote recently a Python programm to query over A2S steam servers to get player information, and now i want to try if its possible to get besides the steam name and playing time the steam64 id 😄 i will find it soon out (currently i have like 60h experience in python) Possible that these commands are not available in the steamworks library? |
Mmm, if they are not in now they will be added later, I believe. Since that is server code it will probably end up in a different branch from the master like I did with my GodotSteam library. |
https://partner.steamgames.com/doc/api/ISteamMatchmakingServers#GetServerCount the Commands are in the link above, and from the matchmaking Interface are these commands already in |
i would like to help add things but i am too unexperienced to so i think |
Ah, there are two different matchmaking libraries; one for client and one for server. The ones you were talking about were server matchmaking. The ones already in the library are client matchmaking. I'll add it to my list for the next update though. |
The |
Well if you find it out how to do so and share it, i would appreciate it! And i have 60h experience in python but a little bit more in another programming language (although the syntax isn't the same at all). And i needed a lot of time for my A2S code and got it all together with Google (searching for solutions when i got an error and couldn't figure it out on my own) 😊 So although my chances for success are very little i still wanna try to figure it out and will let you know if i find something out Thanks for your support 😊 |
Not sure I know what A2S is. Yeah, getting Steam ID's from servers is a bit of a pain. If it's return less players then something might be wrong in the code. I've not actually tried it. I know there is an open issue on GodotSteam looking for a way to pull auth data to combine with Valve's Steamworks Web API but not sure the auth tickets can be displayed fully... or I can't get it to work. Though it seems like there is a way since the Web API asks for web tokens in HEX. Speaking of the Web API, I wonder if that might help in this endeavor. |
A2S is steam server query protocol. But it is somewhat deprecated and old, it is not part of Steamworks. In Steamworks, you can get the same information as A2S from For steamids, methods such as For the auth ticket usages with web api, you need to call
I am still trying to figure out how to authenticate with the game server itself to get the data (steamids) the only way I have right now is to join the server physically, but I know there is a way as I know of few discord bots which do that with other steamworks wrappers (Facepunch and C++ original version) |
Sounds like a pain. What is the A2S stuff useful for? Yeah, I will take that code sample into account when trying to solve the auth ticket thing. Hmm, that last part I'm not so sure how to. Haven't really tried to mess with the server stuff just yet. Still working on getting the callbacks to fire correctly. |
The A2S allows you to query the game server or the head/master server with the Port and IP address. If you use the game server query you can get infos like steam name, player count, player score, server name, etc. a bunch of others infos too. I am still watching in steamworks for the steamID solution, i too saw some discord bots which can handle that |
Ah, OK. Well, hopefully we can get that ironed out soon. |
yeah I am interesed in that. I found this article from facepuch forum where they said that you could get server's steam id and then pass it to GetFriendCountFromSource and GetFriendFromSourceByIndex, which returns "users in a chat room, lobby, game server or clan". Could anyone proof that ? because I now have some problemms with running this library |
And there are no such API calls from your library. please add |
That might work. I know some functions won't provide data the "user doesn't know about". Nonetheless, I will try to get Apps and Friends up to speed this weekend. That will include the GetFriendCountFromSource and GetFriendFromSourceByIndex. I'm not sure if they will do the job you are requiring but it's worth a shot. One of the main issues I run into is passing back an array or dictionary from C++ to Python. I haven't quite figured out the best way to do that with CTypes. |
I am installing vs studio because it won't compile without it :/ damn windows I hate it (and my target system is linux -_-) |
That sucks. I usually use the Visual Studio Command Prompt tools instead of the IDE as it is a, in my opinion, nightmare. |
Installed vs studio. Tryed to compile and got |
Hmm, I haven't actually used this library in a long time as I no longer develop games with Python. However, where do you have the Steam header files? |
Here they are : https://prnt.sc/u21wfz and https://prnt.sc/u21xx8 |
Yeah, that looks like they are in the right place. And the build file looks OK. I honestly have no idea why this is giving that errors as everything seems in place. Maybe @philippj can shed some light? |
Hey. I located the issue in the build script and pushed a fix for it. Please pull the latest version and try again. The library needs all the SDK source to be in a folder called |
Are those for testing? |
Yep. Because older dlls are incompatible with new code (9903c5c) |
Hello there
Wanted to ask if someone could help me installing the library so i can get startet with it.
I downloaded the steamworks SDK and the steamworkspy library. I worked troug the explanation here: https://gramps.github.io/SteamworksPy/
Now here is a problem that i have. As far as i understand if i have a project open i have to copy the steamworkspy into the venv folder (as completly folder?). Also you have to copy first 2 folders from the steamworks sdk into the project folder. Now there is the part in the windows where it stand that i have to copy now a couple files from the folders i copied to the project folder and put those now in the project folder (hope you understand what i mean). Could someone help me and tell me if i need to write something in my code to include the library?
Thanks for help and sry for my english
The text was updated successfully, but these errors were encountered: