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

Gamecordinator csgo send ECsgoGCMsg = 9156 but steam not respond anyhing #132

Open
VusalShahbazov opened this issue Mar 29, 2023 · 1 comment

Comments

@VusalShahbazov
Copy link

VusalShahbazov commented Mar 29, 2023

Hello! I have trouble with GC
When i send this request

client.GC.Write(gamecoordinator.NewGCMsgProtobuf(
	730,
	uint32(protobuf.ECsgoGCMsg_k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockRequest),
	&payload,
))

I dont get any response from steam

I Register the handler for client.GC but nothing appear after my request

type Handler struct{}

func (g *Handler) HandleGCPacket(p *gamecoordinator.GCPacket) {
	fmt.Println("HandleGCPacket")
	if p.AppId == 730 {
		switch p.MsgType {
		case uint32(protobuf.ECsgoGCMsg_k_EMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse):
			var res protobuf.CMsgGCCStrike15V2_Client2GCEconPreviewDataBlockResponse
			err := proto.Unmarshal(p.Body, &res)
			if err != nil {
				panic(err)
			}

			fmt.Println( res.Iteminfo.GetPaintwear())
		}
	}
}

// ... 
client.GC.RegisterPacketHandler(&Handler{})

And please provide examples of GC usage

@SakuraBurst
Copy link

SakuraBurst commented Apr 23, 2023

Hello! I'm not familiar with this library yet, but I'm dealing with the same problem. After connecting and successfully authenticating, you need to indicate to the client that you are in the game.

var appID uint64 = 730

gp := protobuf.CMsgClientGamesPlayed{GamesPlayed: []*protobuf.CMsgClientGamesPlayed_GamePlayed{{GameId: &appID}}}

client.Write(protocol.NewClientMsgProtobuf(steamlang.EMsg_ClientGamesPlayed, &gp))

After that, you can send messages to the gс by writing the running game id to the app_id field, and wait for a response

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

2 participants