This move is not authorized now. Not working properly.

Game development with Board Game Arena Studio
Post Reply
arvindarya
Posts: 18
Joined: 20 July 2023, 21:52

This move is not authorized now. Not working properly.

Post by arvindarya »

I have a game in which the player will go through three states, before the states are repeated. I have added a button so that the player can go back to the state before it. When I move from first state to the second state I can make changes but when I move to third state and then I want to go back to the second state it says "This move is not authorized now.". I have included the screenshots of my functions and states and actions to see where have I gone wrong also I am getting an error,
Which is:
Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. Which does not come in multiplayer. But still getting "This move is not authorized."

I have attached the Screen Shots which explains the situation.
The game is called Lakshya.

(anonymous function)
rejectPromise
play
doPlayFile — ly_studio.js:1:790140
doPlay — ly_studio.js:1:789824
playSound — ly_studio.js:1:388253
onNotificationPacketDispatched — ly_studio.js:1:539031
dispatchNotifications — ly_studio.js:1:477150
onNotification — ly_studio.js:1:473013
(anonymous function) — dojo.js:1:23213
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:34203
value — socket.io.js:6:33913
value — socket.io.js:6:33565
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:40457
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:28292
value — socket.io.js:6:40399
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:22295
value
(anonymous function) — socket.io.js:6:6723
value — socket.io.js:6:8526
value — socket.io.js:6:8444
onPlayDisc — lakshya.js:379
Screenshot 2023-10-26 at 1.27.14 AM.png
Screenshot 2023-10-26 at 1.27.14 AM.png (309.46 KiB) Viewed 380 times
Screenshot 2023-10-26 at 1.27.07 AM.png
Screenshot 2023-10-26 at 1.27.07 AM.png (293.69 KiB) Viewed 380 times
Screenshot 2023-10-26 at 1.26.57 AM.png
Screenshot 2023-10-26 at 1.26.57 AM.png (284.1 KiB) Viewed 380 times
Screenshot 2023-10-26 at 1.26.48 AM.png
Screenshot 2023-10-26 at 1.26.48 AM.png (304.05 KiB) Viewed 380 times
Screenshot 2023-10-26 at 1.26.36 AM.png
Screenshot 2023-10-26 at 1.26.36 AM.png (294.76 KiB) Viewed 380 times
Last edited by arvindarya on 25 October 2023, 21:27, edited 1 time in total.
arvindarya
Posts: 18
Joined: 20 July 2023, 21:52

Re: This move is not authorized now. Not working properly.

Post by arvindarya »

Screenshot 2023-10-26 at 1.37.31 AM.jpg
Screenshot 2023-10-26 at 1.37.31 AM.jpg (293.94 KiB) Viewed 377 times
Screenshot 2023-10-26 at 1.37.37 AM.jpg
Screenshot 2023-10-26 at 1.37.37 AM.jpg (336.47 KiB) Viewed 377 times
Screenshot 2023-10-26 at 1.37.49 AM.jpg
Screenshot 2023-10-26 at 1.37.49 AM.jpg (309.08 KiB) Viewed 377 times
Screenshot 2023-10-26 at 1.37.53 AM.jpg
Screenshot 2023-10-26 at 1.37.53 AM.jpg (307.92 KiB) Viewed 377 times
This is the game.
User avatar
xiongmao1298
Posts: 46
Joined: 08 December 2020, 20:29

Re: This move is not authorized now. Not working properly.

Post by xiongmao1298 »

At game.php:292 there is self::checkAction('placeTile'), but none of the states seem to actually list it as an available action?
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: This move is not authorized now. Not working properly.

Post by Tisaac »

The first error has nothing to do with your code, it's just trying to play the sound when you make a move and apparently your browser is preventing that.
For your real error, you are missing "placeTile" in your possibleactions in states.php so it's completely normal that checkAction is raising that error.
arvindarya
Posts: 18
Joined: 20 July 2023, 21:52

Re: This move is not authorized now. Not working properly.

Post by arvindarya »

Thank You, I thought checkaction checks the state not function.
Post Reply

Return to “Developers”