Search found 17 matches

by gilthe
10 April 2025, 08:53
Forum: Developers
Topic: [Studio Error][Fixed] The view.php file should use the game class to access the database
Replies: 5
Views: 104

Re: [Studio Error][Fixed] The view.php file should use the game class to access the database

Well, it is explicit!
My problem is that this has worked for many years, and it is a game-breaking change deployed to a live system. I haven't looked at the code in a long time. Aka, some prior notification would have been nice.
by gilthe
09 April 2025, 23:04
Forum: Developers
Topic: [Studio Error][Fixed] The view.php file should use the game class to access the database
Replies: 5
Views: 104

Re: [Studio Error][Fixed] The view.php file should use the game class to access the database

I am still getting a closely related error in Japanese Mahjong on studio and so do the players on BGA. What is behind it and how do I fix it? Unexpected error: The action.php file should use the game class to access the database (reference: GS1 10/04 00:01:40) ly_studio.js:1:327297 d https://studio....
by gilthe
14 August 2022, 18:08
Forum: Developers
Topic: simplePause
Replies: 7
Views: 530

Re: simplePause

I think the meaning might just be to create it yourself: set up a (named like MyPause) notify with an empty message but using setSynchronous to create a wait (in JS). In php, issue first this "fake" notify, then directly afterwards issue a second notify with your desired message. This is j...
by gilthe
10 July 2022, 00:35
Forum: Developers
Topic: Add updateGameProgression to state: breaking ongoing games?
Replies: 2
Views: 434

Add updateGameProgression to state: breaking ongoing games?

Does anybody know if it breaks ongoing games if I add the option: "updateGameProgression" => true to one or more game states that did not have this option set before? Nothing else listed as critical in the documentation changes (i.e., no changes to logic, states, connectivity, game options...
by gilthe
30 March 2022, 14:31
Forum: "Beta" games
Topic: Riichi Mahjong in beta
Replies: 8
Views: 1575

Re: Riichi Mahjong in beta

I've been able to use the replay feature to see end-of-hand scoring, but maybe that's one more step than should be necessary? I suggest that at the end of a hand, there be a quick phase where the scoring is displayed, and each player must click past it to indicate they've seen it. Or at least, in t...
by gilthe
30 March 2022, 14:23
Forum: "Beta" games
Topic: Riichi Mahjong in beta
Replies: 8
Views: 1575

Re: Riichi Mahjong in beta

tchobello wrote: 30 March 2022, 08:34 replay feature is not to be trusted.
Well, I made sure it works for this game (of course I haven't done mass testing) but I guess your point is different and more concerning the BGA side of things.
by gilthe
29 March 2022, 22:21
Forum: "Beta" games
Topic: Riichi Mahjong in beta
Replies: 8
Views: 1575

Bad ratings due to not using the replay feature?

Hello fellow players, a couple of players explicitly indicated along with giving a poor rating for the implementation that it is impossible to see the scores at the end of a hand in turn-based play. In my understanding, this is exactly what the replay from move X feature is for (and this way of seei...
by gilthe
29 March 2022, 22:09
Forum: "Beta" games
Topic: Riichi Mahjong in beta
Replies: 8
Views: 1575

Re: Riichi Mahjong in beta

Hi jegharenplan, it says in the Wiki explaining the interface that the auto-pass must be registered on the server. For this, at least one action is required. So on the first action of a game it does not auto-pass you. Also, BGA does not support indefinite continuations of automatic actions (this can...
by gilthe
23 March 2022, 01:00
Forum: Developers
Topic: Unit / Integration testing of BGA project
Replies: 3
Views: 781

Re: Unit / Integration testing of BGA project

I think you'll have to make it temporarily standalone to get any meaningful level of that. That means modularizing the php side, so you can run as many of its functions as possible with a wrapper (or similar) from the command line. This usually requires masking/duplicating some BGA-specific function...

Go to advanced search