Cannot even get it started. What is happening?

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

Cannot even get it started. What is happening?

Post 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.
Attachments
Screenshot 2023-09-27 at 8.37.35 PM.png
Screenshot 2023-09-27 at 8.37.35 PM.png (162.7 KiB) Viewed 3895 times
Screenshot 2023-09-27 at 8.37.25 PM.png
Screenshot 2023-09-27 at 8.37.25 PM.png (238.33 KiB) Viewed 3895 times
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

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

Post 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.
User avatar
hymnal
Posts: 10
Joined: 31 January 2023, 12:17

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

Post 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.
Last edited by hymnal on 27 September 2023, 17:32, edited 1 time in total.
User avatar
hymnal
Posts: 10
Joined: 31 January 2023, 12:17

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

Post 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.
User avatar
Jonathan2004
Posts: 46
Joined: 21 April 2020, 19:06

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

Post 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
User avatar
hymnal
Posts: 10
Joined: 31 January 2023, 12:17

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

Post 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.
arvindarya
Posts: 18
Joined: 20 July 2023, 21:52

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

Post 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. :?: :?: :?:
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

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

Post 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]
Last edited by RicardoRix on 03 October 2023, 13:59, edited 1 time in total.
arvindarya
Posts: 18
Joined: 20 July 2023, 21:52

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

Post 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.
Last edited by arvindarya on 03 October 2023, 14:00, edited 1 time in total.
User avatar
RicardoRix
Posts: 2540
Joined: 29 April 2012, 23:43

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

Post by RicardoRix »

start from a blank project.
Last edited by RicardoRix on 03 October 2023, 14:09, edited 2 times in total.
Post Reply

Return to “Developers”