Search found 18 matches

by QuasarDuke
28 January 2021, 07:07
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

Alright, auto-play removed. Slightly sad - I liked that feature. Since we're on the topic, is there a good/recommended way to do autoplay? I know some people like it and some people don't, which is why I had it as a JS option.
by QuasarDuke
27 January 2021, 17:25
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

I sent an email to Emmanuel, and he said: The errors stack here make me think about an issue on another game, where the player was triggering successive calls from the javascript. In general, every ajax action call should be triggered by the user, then there is a server side process that may go into...
by QuasarDuke
27 January 2021, 17:01
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

It does not appear to reproduce consistently - at least, there's only one mention of it in the Unexpected Errors log. But I'm not sure if that's just because I reverted fairly quickly.
by QuasarDuke
27 January 2021, 09:15
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

I do not believe it was a typo - all my local testing worked perfectly. Here is a snippet from my states.inc.php 31 => array( "name" => "playerTurn", "description" => clienttranslate('${actplayer} must play a card'), "descriptionmyturn" => clienttranslate('${y...
by QuasarDuke
27 January 2021, 03:31
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

// Return the list of valid playable cards in the given player's hand function getPlayableCards($playerId) { $cardsInHand = $this->cards->getPlayerHand($playerId); $currentTrickSuit = $this->getFirstPlayedSuit(); if ($currentTrickSuit == null) { // All cards in the hand are valid to play return $ca...
by QuasarDuke
27 January 2021, 02:32
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Re: Invalid 'args' method

function argPlayableCards() { $player_id = self::getActivePlayerId(); return array( '_private' => array( 'active' => array( 'playableCards' => self::getPlayableCards($player_id) ) ) ); }
by QuasarDuke
26 January 2021, 22:01
Forum: Developers
Topic: Invalid 'args' method
Replies: 11
Views: 1796

Invalid 'args' method

25/01 12:27:02 [error] [T142255146] [89539151/Pranshu Jain] Error (1213) while processing SQL request: Deadlock found when trying to get lock; try restarting transaction - Request: SELECT player_id, player_is_multiactive FROM player 26/01 19:43:45 [error] [T140498875] [87564005/PancakeArchduke] Une...
by QuasarDuke
25 January 2021, 01:06
Forum: Developers
Topic: [NO ISSUE] Reordering stats and game options
Replies: 1
Views: 399

Re: Reordering stats and game options

Actually, I just tested it and simply re-ordering the stats worked. I don't know why I thought it wouldn't.
by QuasarDuke
24 January 2021, 21:22
Forum: Developers
Topic: questions about handling bugs
Replies: 2
Views: 724

Re: questions about handling bugs

I'm also seeing the same 'NaN' in the replay bar. I'm guessing it's a bug with the framework. Can anyone confirm?
by QuasarDuke
24 January 2021, 21:18
Forum: Developers
Topic: [NO ISSUE] Reordering stats and game options
Replies: 1
Views: 399

[NO ISSUE] Reordering stats and game options

I'm adding new user preferences and additional statistics. Logically, it makes sense to group certain statistics together, but if I keep the existing stat ids and order then the new statistic will be added to the end, far apart from the other related stats. Is there a way to keep the existing ids bu...

Go to advanced search