Search found 12 matches

by 0BuRner
24 April 2020, 15:39
Forum: Developers
Topic: Logs ending with "2" and class property resetting automagically
Replies: 1
Views: 582

Logs ending with "2" and class property resetting automagically

Hello, I'm wondering why all my logs are suffixed with "2". 24/04 16:33:35 [debug] [T84988] [2318710/BuRner1] Top card: 8 ♣2 24/04 16:33:35 [debug] [T84988] [2318710/BuRner1] true2 24/04 16:33:35 [debug] [T84988] [2318710/BuRner1] Challenge try: 02 24/04 16:33:35 [debug] [T84988] [2318710/...
by 0BuRner
23 April 2020, 19:13
Forum: Developers
Topic: [Solved] Use class properties
Replies: 5
Views: 1001

Re: Use class properties

I just checked my code, and all I did was declare the variable in the constructor. I think either way should be possible. In both function examples it's not clear where local variable $player_id is being set. Did you miss: $player_id = self::getCurrentPlayerId(); And rather than array_push, just us...
by 0BuRner
23 April 2020, 16:20
Forum: Developers
Topic: [Solved] Use class properties
Replies: 5
Views: 1001

Re: Use class properties

I might be misunderstanding you, but it sounds like you just need to put it in the __construct(): $this->slappingPlayers = array(); I already tried it. But whenever I use this variable in different method, it's empty... That's why I'm asking if it's expected or not. I have a methods like: function ...
by 0BuRner
23 April 2020, 10:08
Forum: Developers
Topic: [Solved] Use class properties
Replies: 5
Views: 1001

[Solved] Use class properties

Hello, I'm wondering if it's possible to use class properties on the main class of the game, like $slappingPlayers here ? It seems not working (variable is reset at every call). Don't know if it's an error in my code or simply not working in BGA. class EgyptianRatscrew extends Table { private $slapp...
by 0BuRner
23 April 2020, 09:51
Forum: Developers
Topic: [Solved] Waiting before triggering next state
Replies: 9
Views: 1757

Re: Waiting before triggering next state

Hi , Thank you all for the help. Before I saw your answers I went with "setTimeout" client-side and I don't like it neither, I wasn't sure about the issue it could caused but now with apollo1001's answer it's obvious it will cause issue some times. The alternative is to move on to the next...
by 0BuRner
21 April 2020, 23:23
Forum: Developers
Topic: [Solved] Waiting before triggering next state
Replies: 9
Views: 1757

Re: Waiting before triggering next state

Can't you use a timer to call the function that advances the game state? I'm still pretty new with php and the studio but it's what I usually use on qt: https://www.php.net/manual/es/event.addtimer.php Yes it is something like that I need but this one need PECL "event" extension and it se...
by 0BuRner
21 April 2020, 21:52
Forum: Developers
Topic: [Solved] Waiting before triggering next state
Replies: 9
Views: 1757

Re: Waiting before triggering next state

Can't you use a timer to call the function that advances the game state? I'm still pretty new with php and the studio but it's what I usually use on qt: https://www.php.net/manual/es/event.addtimer.php Yes it is something like that I need but this one need PECL "event" extension and it se...
by 0BuRner
21 April 2020, 21:23
Forum: Developers
Topic: [Solved] Waiting before triggering next state
Replies: 9
Views: 1757

[Solved] Waiting before triggering next state

Hello, In the game I'm developing, at one point I need to wait few seconds (2/3) to see if any player still want to do some action, before triggering the next state. I tried with "sleep()", but the issue is everything is synchronous so the wait prevent players to play before the method rel...
by 0BuRner
21 April 2020, 19:21
Forum: Developers
Topic: Licence for Concept (Repos Production)
Replies: 10
Views: 2516

Re: Licence for Concept (Repos Production)

Who is judging on is word entered correctly? What is correct by misspelled? Or case different? Or plural? You can easily use Levenshtein distance (or any other method) to set an acceptable difference between the expected word and ther entered one. It's only a decision the game creator has to take (...
by 0BuRner
21 April 2020, 09:01
Forum: Developers
Topic: Licence for Concept (Repos Production)
Replies: 10
Views: 2516

Re: Licence for Concept (Repos Production)

You can ask for a license using the template provided on licensing page, but this game won't be easy. It would require some sort of text processing rules which is not normally used in board games and placement of cubes on symbols is actually non-standard - you can place them in very specific positi...

Go to advanced search