Page 1 of 2

Cannot even get it started. What is happening?

Posted: 27 September 2023, 16:34
by arvindarya
I have developed all the logic and framework on the paper.

I am trying to develop a game for the BGA. First of all there is not a single tutorial that works. Even I downloaded https://github.com/elaskavaia/bga-heartsla I setup the sftp. Even that is not working. This is the error I am getting:


Unexpected error: Wrong formatted data from gameserver 1 (method: createGame): JSON_ERROR_SYNTAX
Fatal error: Uncaught Error: Call to undefined method heartandmind::stNewHand() in /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/table/gamestate.game.php:502 Stack trace: #0 /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/table/gamestate.game.php(398): Gamestate->jumpToState() #1 /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/table/table.game.php(878): Gamestate->nextState() #2 /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/table/table.game.php(383): Table->start() #3 /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/gameserver/gameserver.game.php(171): Table->setupNewGameTable() #4 /var/tournoi/release/tournoi-230921-1000-gs/www/action/gameserver/gameserver.action.php(56): Gameserver->createGame() #5 /var/tournoi/release/tournoi-230921-1000-gs/www/action/gameserver/gameserver.action.php(64): action_gameserver->callClusterJob() #6 /var/tournoi/release/tournoi-230921-1000-gs/www/include/webActionCore.inc.php(189): action_gameserver->createGame() #7 /var/tournoi/ in /var/tournoi/release/tournoi-230921-1000-gs/www/game/module/table/gamestate.game.php on line 502
(reference: GS0 27/09 16:59:40)

My sftp for hearts game is:
{
"name": "BGA",
"host": "1.studio.boardgamearena.com",
"protocol": "sftp",
"port": 22,
"username": "arvind",
"password": "<my_password>",
"remotePath": "heartandmind",
"uploadOnSave": true,
"useTempFile": false,
"openSsh": false
}

I am trying to develop a game and getting this error:
General messages
27/09/2023
Unexpected error: Propagating error from gameserver 1 (method: createGame): BGA service error (reference: GS1 27/09 17:06:36) (reference: GS0 27/09 17:06:36)

It has become very frustrating as I cannot even get the game started, the debugging is just out of the question. Please can you tell me what I am doing wrong. Because it is not even starting in Express start. It started once and suddenly it stopped If you can look at "lakshadweepgame". I can share the entire codebase to you coz it literally has nothing. https://github.com/notasuperhero/laks/tree/main.

Please Help me. Point me to a working tutorial or tell me what am I doing wrong.

Re: Cannot even get it started. What is happening?

Posted: 27 September 2023, 17:11
by RicardoRix
Fatal error: Uncaught Error: Call to undefined method heartandmind::stNewHand()
in X.game.php you need to add a function called stNewHand()

You can always search all files to see where that is coming from / being used.

Re: Cannot even get it started. What is happening?

Posted: 27 September 2023, 17:20
by hymnal
I think the Hearts code on Github is just intended to give you something to compare your code to. It's best to work through the tutorial from a blank project. Your version might not be working because your project is called 'heartandmind' while the code refers to 'heartsla'.

For the lakshadweepgame, if you've worked through the tutorial, you might try reverting to a blank project, adding one thing at a time, each time checking if it still works, to locate the cause of the error.

Re: Cannot even get it started. What is happening?

Posted: 27 September 2023, 17:28
by hymnal
RicardoRix wrote: 27 September 2023, 17:11 in X.game.php you need to add a function called stNewHand()
There is already a function stNewHand(). The problem is that copying all the code from one project into another project doesn't work. The tutorial has to be worked through from scratch, not downloaded.

Re: Cannot even get it started. What is happening?

Posted: 27 September 2023, 18:42
by Jonathan2004
The function "stNewHand" is absent in the code provided : https://github.com/notasuperhero/laks/b ... e.game.php

but was present in the code from heartsla : https://github.com/elaskavaia/bga-heart ... a.game.php

Re: Cannot even get it started. What is happening?

Posted: 27 September 2023, 20:11
by hymnal
He describes two different errors in different projects. The "heartsla" code is giving "Call to undefined method heartandmind::stNewHand()", and his "lakshadweepgame" project is giving a "BGA service error".

The solution is to start with an empty project and work through a tutorial (ie, read and follow the instructions from the wiki) so he can get a working version of Hearts and also start fresh with his own game.

Re: Cannot even get it started. What is happening?

Posted: 03 October 2023, 10:27
by arvindarya
Still nothing getting error: https://github.com/notasuperhero/laks
Getting Error from Check Project button:
Server syntax error:
Notice: Undefined index: tags in /var/tournoi/release/games/projectcheck/999999-9999/modules/bgg_scrabber.php on line 53
{"status":1,"data":{"valid":1,"data":null}}

Cannot start it when I express start also cannot start it multiplayer. Error I am getting:

Unexpected error: Propagating error from gameserver 1 (method: createGame): BGA service error (reference: GS1 03/10 11:24:52) (reference: GS0 03/10 11:24:52)

The code I have posted above can you please run it once. Still cannot get it to run. I think I have tried to make the project according to the tutorial and everything. :?: :?: :?:

Re: Cannot even get it started. What is happening?

Posted: 03 October 2023, 13:57
by RicardoRix
For the lakshadweepgame, if you've worked through the tutorial, you might try reverting to a blank project, adding one thing at a time, each time checking if it still works, to locate the cause of the error.
I would take this advice.
bgg_scrabber.php on line 53
what is on line 53? an array indexer; like

Code: Select all

data[i]

Re: Cannot even get it started. What is happening?

Posted: 03 October 2023, 13:59
by arvindarya
I don't have a bgg_scrabber.php file. I have tried it many times. Can you please look at the code. If only it starts to show, then I can do the rest of the development. Can you please look into it.

Re: Cannot even get it started. What is happening?

Posted: 03 October 2023, 14:00
by RicardoRix
start from a blank project.