[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbmserv-dev] Help with gameboard subscribe



Hi folks,

I hope some kind soul can give me a clue what I'm doing wrong...

I decided it might be a good idea to test some of the "standard" board options with the cribbage implementation I'm working on. Initially I was trying to work out what happens when a player resigns. What I found out was my game file no longer loaded :(

I looked a bit deeper and it turned out that a resigning player gets added to the subscribe list for that game, and I can get the same problem if I just subscribe to a board from some other account. When I looked in Game::Read() and Game::Write() it looked to me like the subscribers list appears after my game-specific data and I'm not getting ReadBoard() called until after my data has been skipped... what am I doing wrong?

Any help would be greatly appreciated!

Chris