Search found 5 matches

by cervofulgure
03 February 2022, 20:29
Forum: Developers
Topic: Notification subscription callback completely ignored in JS
Replies: 12
Views: 7090

Re: Notification subscription callback completely ignored in JS

It goes straight to this game state from setup setup -> newRound -> playerTurn -> etc -> here is the pseudcode: function setup: do some stuff go to next state newRound function stNewRound (game state): pick some cards and move to other location tell all players so we can animate cards in the ui self...
by cervofulgure
03 February 2022, 19:06
Forum: Developers
Topic: Notification subscription callback completely ignored in JS
Replies: 12
Views: 7090

Re: Notification subscription callback completely ignored in JS

Thanks again. I'm not a BGA veteran, but I am a web developer since 2001, so checking these kind of things such as typos are second nature. I will still double check just in case. I do have the Input / Output log, but no sign of my notifications: < updateSpectatorList {"2362302":"cerv...
by cervofulgure
03 February 2022, 18:09
Forum: Developers
Topic: Notification subscription callback completely ignored in JS
Replies: 12
Views: 7090

Re: Notification subscription callback completely ignored in JS

I found this in the doc: Notifications sent between the game start (setupNewGame) and the end of the "action" method of the first active state will never reach their destination. I do not quite understand what ''active state" means. Are "game" states allowed to send notifica...
by cervofulgure
03 February 2022, 16:42
Forum: Developers
Topic: Notification subscription callback completely ignored in JS
Replies: 12
Views: 7090

Re: Notification subscription callback completely ignored in JS

That definitely should work - I can't see anything obviously wrong with your JS code. So I'd suggest you fall back on "stupid things" to check: - are you sure your PHP code that sends the notification is actually executed? - are you sure the client side receives the notification? (In Stud...
by cervofulgure
03 February 2022, 15:37
Forum: Developers
Topic: Notification subscription callback completely ignored in JS
Replies: 12
Views: 7090

Notification subscription callback completely ignored in JS

Hello! I'm a beginner with BGA and I have a strange problem that I can't fix. The JS callback methods of my dojo.subscribe() are not called at all. However, I see the messages displayed in the game log. In X.game.php function someMethod() { self::notifyAllPlayers('someEvent', 'Notification message',...

Go to advanced search