I implemented AuthSessionTicket generation (and AuthTIcket verification), but I do not know how to format and fix code. Almost sure that I did wrong sync.Mutex stuff and naming/packaging.
mogaika@f4c74f9
If someone need this and want to risk to use my code there is gs bot example main cycle change which illustrates how to use new feature
var ast []byte
for event := range client.Events() {
auth.HandleEvent(event)
debug.HandleEvent(event)
serverList.HandleEvent(event)
switch e := event.(type) {
case error:
fmt.Printf("Error: %v", e)
case *steam.LoggedOnEvent:
client.Social.SetPersonaState(steamlang.EPersonaState_Online)
log.Printf("Logged on")
log.Printf("Setting game played")
client.GC.SetGamesPlayed(APPID)
log.Printf("Getting app ownership ticket")
client.GetAppOwnershipTicket(APPID)
case *steam.TicketAuthComplete:
log.Printf("can be ignored")
case *steam.TicketAuthAck:
// DO YOUR MAGIC WITH AST TICKET
// TO CONVERT TO STRING USE
ticket := fmt.Sprintf("%X", ast)
_ = ticket
case *steam.AppOwnershipTicket:
aot := event.(*steam.AppOwnershipTicket)
ast = client.AuthSessionTicket(aot.AppOwnershipTicket)
log.Printf("verifiying ast: %X", ast)
}
}
as reference I used
https://github.com/DoctorMcKay/node-steam-user
https://github.com/dotdotmaples/node-steam-user
SteamRE/SteamKit#789
so it also would be good to check LICENSE files
I implemented AuthSessionTicket generation (and AuthTIcket verification), but I do not know how to format and fix code. Almost sure that I did wrong sync.Mutex stuff and naming/packaging.
mogaika@f4c74f9
If someone need this and want to risk to use my code there is gs bot example main cycle change which illustrates how to use new feature
as reference I used
https://github.com/DoctorMcKay/node-steam-user
https://github.com/dotdotmaples/node-steam-user
SteamRE/SteamKit#789
so it also would be good to check LICENSE files