-
Notifications
You must be signed in to change notification settings - Fork 39
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
CreateLobby function returns None #19
Comments
Hey there! CreateLobby shouldn't return anything as it is a void function in Steamworks. It should, however, send a callback when the lobby is created with the lobby Steam ID. It should also make the user join the lobby they just created. |
That being said, I don't know there are any callbacks set up for it just yet. Gonna make some commits today to address that and a bunch of other things! |
Oh, probably misunderstood Russian steamworks translation. By the way, could you please show me example of how to do this? I kinda understand it in C++ but not in Python |
I don't know the callback exists for it yet, so I'll need to update that code first. Which, hopefully, I should have up by next week. That being said, you need to in your main loop something like: I'll write more code once I get the callbacks added to the experimental branch. |
You can leave the issue open and I'll add code to it. |
Just to add to the issue, RunCallBacks need to always run whenever you do calls. Example in Unity would be every time an object gets updated callbacks would need to be called. In standalone C# you would run RunCallBacks() in a separate thread for them to get trigger properly. I think in python it would be somewhat similar to C# standalone, I think Gramps will post a proper code snippet for the python version |
Yeah, the callbacks stuff is tricky. It should be in whatever main loop you have going on unless you don't have anything that requires a callback. Considering the variety of set-ups I've seen in Python, it's tricky to show folks. I do plan on getting some tutorials up much like the ones I did for my GodotSteam library. |
And yeah, still trying to streamline the callbacks for Python. Once I get them down the rest of this will be easy-peasy. |
Once I get connected to a lobby, what can I do with it? I don't see any methods like |
Well, I haven't been following versioning and what is implemented on the wrapper. However, it opens a lot of possibilities. For example setting the data as you mentioned, or receiving players steamids on server etc. |
Thanks! How do I access |
I'm using CreateLobby(0, 2) to create private invite-only lobby for 2 player co-op game, but it doesn't return me anything, just None. I'm testing with 480 appid. The code is
The text was updated successfully, but these errors were encountered: