Skip to content
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

Should Update de Steam SDK? #125

Closed
sebaber opened this issue May 18, 2023 · 8 comments
Closed

Should Update de Steam SDK? #125

sebaber opened this issue May 18, 2023 · 8 comments

Comments

@sebaber
Copy link

sebaber commented May 18, 2023

Hi!

Today i receive an email from [email protected] that advice us to update the Steam SDK if the game use ISteamUser::GetAuthSessionTicket(), that i think is the case because we use public SteamAuthTicket getAuthSessionTicket(ByteBuffer authTicket, int[] sizeInBytes) throws SteamException in some cases.

If this is the case, we can give a hand to colaborate to this migrations if it is neccesary.

Thanks for the time and for this awesome Wrapper for JAVA of Steam SDK!

@sebaber sebaber changed the title Should Update de Steam SDK Should Update de Steam SDK? May 18, 2023
@code-disaster
Copy link
Owner

f69b809 adds getAuthTicketForWebApi(), if this is what you are asking about.

@sebaber
Copy link
Author

sebaber commented May 27, 2023

Yeah that is what im looking for! Thanks a lot for the fast response! Appreciate a lot!

@sebaber sebaber closed this as completed May 27, 2023
@sebaber
Copy link
Author

sebaber commented May 27, 2023

I could found the new method in the SNAPSHOT, but idk if im using well, because i could not found a way to get the ticket that should give me for the user to authenticate. There is something else that i am missing?

@sebaber sebaber reopened this May 27, 2023
@code-disaster
Copy link
Owner

It is returned in the new callback. See https://github.com/code-disaster/steamworks4j/blob/master/tests/src/main/java/com/codedisaster/steamworks/test/SteamClientAPITest.java#L43.

Note that you need to copy the data, the byte[] array will point to invalid memory after the callback returns.

@Zomis
Copy link

Zomis commented Jun 5, 2023

@code-disaster I don't know if I'm doing anything wrong, trying to copy the old library loader and use it (see #127), but I'm not getting the onGetTicketForWebApi callback.

I just get an integer (incrementing from 1 or 2 or something) in response to SteamUser.getAuthTicketForWebApi(), but the callback is never triggered? (And yes, I am running SteamAPI.runCallbacks())

@code-disaster
Copy link
Owner

Not sure about that, but is it possible that you have some old version of the steamworks4j DLL lingering and getting picked up by the library loader somewhere?

@sebaber
Copy link
Author

sebaber commented Jun 12, 2023

It is returned in the new callback. See https://github.com/code-disaster/steamworks4j/blob/master/tests/src/main/java/com/codedisaster/steamworks/test/SteamClientAPITest.java#L43.

Note that you need to copy the data, the byte[] array will point to invalid memory after the callback returns.

Yeah that was i am looking for! It has to be asynchronic i did not realize that. Getting that hexa array of bytes and passing as string to my server works perfect! TSM for the help! i will close this issue.

@sebaber sebaber closed this as completed Jun 12, 2023
@Frotty
Copy link

Frotty commented Mar 13, 2024

@sebaber How did you get this to work? In my case the callback is not triggered (#143)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants