Page 1 of 3
I cannot figure out zombieTurn
Posted: 25 September 2021, 02:26
by JonChambers
So, I ran a very long and complicated zombieTurn
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
Okay, probably called "currentPlayer" somewhere, let's isolate this:
Code: Select all
function zombieTurn( $state, $active_player )
{
throw new BgaVisibleSystemException( "Zombie mode failed" );
...
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
Maybe...
Code: Select all
function zombieTurn( $state, $active_player )
{
throw new BgaSystemException( "Zombie mode failed" );
...
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
Okay, what if I try...
Code: Select all
function zombieTurn( $state, $active_player )
{
return;
...
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
Okay...
Code: Select all
function zombieTurn( $state, $active_player )
{
obviouslyAGibberishCommand;
...
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
Hmmm...
Code: Select all
function zombieTurn( $state, $active_player )
{
//everything commented out
}
...
Unexpected error: Propagating error from GS 1 (method: zombie): Not logged
I'm starting to suspect it isn't even reading my code. I cannot even get a different error. What have I missed?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 07:48
by Tisaac
Have you checked the troubleshooting page ?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 07:56
by JonChambers
Tisaac wrote: ↑25 September 2021, 07:48
Have you checked the troubleshooting page ?
That was the first thing I did. Why? What did I miss?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 08:53
by robinzig
You've certainly proved that the problem isn't due to anything in zombieTurn. So what else have you changed?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 08:58
by JonChambers
robinzig wrote: ↑25 September 2021, 08:53
You've certainly proved that the problem isn't due to anything in zombieTurn. So what else have you changed?
I thought zombieTurn was its own isolated thing. What else CAN I change?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 09:18
by robinzig
I'm not sure I follow. I got the impression that you had tried to implement zombieTurn and the game had started crashing with that sadly uninformative error while you were trying to test it. Since you have proved that the zombieTurn method isn't even getting looked at, this shows that something else must be wrong - so I'm asking what other code you have changed since the game last worked.
I suppose another possibility is that there's been this bug for a long time and whatever you are doing now is triggering it for the first time. But without any details of either code or what you are/were doing that's triggered this problem then it's impossible to help.
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 10:37
by Tisaac
How exactly do you reach that error ? Is the game in progress and you quit with the active player ?
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 10:52
by JonChambers
robinzig wrote: ↑25 September 2021, 09:18
I'm not sure I follow. I got the impression that you had tried to implement zombieTurn and the game had started crashing with that sadly uninformative error while you were trying to test it. Since you have proved that the zombieTurn method isn't even getting looked at, this shows that something else must be wrong - so I'm asking what other code you have changed since the game last worked.
I suppose another possibility is that there's been this bug for a long time and whatever you are doing now is triggering it for the first time. But without any details of either code or what you are/were doing that's triggered this problem then it's impossible to help.
"Since it last worked"... I'm coding it now. It has never worked. I'm not even fully sure I know what it would look like working. This error message is the only message I've ever seen. In retrospect, I should have done the Continuous Integration thing and ran it before coding to see what the normal error is.
Tisaac wrote: ↑25 September 2021, 10:37
How exactly do you reach that error ? Is the game in progress and you quit with the active player ?
Set up the game for two players. Wait two and a half minutes. Then, from the player who's turn it isn't, boot the player who's turn it is. Wait another twenty seconds. Click to confirm. Error.
While I'm here, is there a way of reproducing the error that doesn't take three minutes? Nothing in the documentation tells me how I'm supposed to test it, so that was my best guess.
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 11:04
by JonChambers
Tisaac wrote: ↑25 September 2021, 10:37
How exactly do you reach that error ? Is the game in progress and you quit with the active player ?
Ah, I didn't even know I could do that. I tried that also. Same error.
Re: I cannot figure out zombieTurn
Posted: 25 September 2021, 11:08
by JonChambers
Does this mean anything to anyone?
25/09 12:00:44 [error] [T314691] [147.10.213.49] [2352892/JonChambers0] Unexpected exception: Propagating error from GS 1 (method: zombie): Not logged#
#0 /var/tournoi/release/tournoi-210922-1031-gs/www/game/module/table/table.game.php(1625): APP_DbObject->masterNodeRequest('expelOutOfTimeP...', Array)#
#1 /var/tournoi/release/tournoi-210922-1031-gs/www/include/APP_GameAction.inc.php(262): Table->skipPlayersOutOfTime(false)#
#2 /var/tournoi/release/tournoi-210922-1031-gs/www/include/webActionCore.inc.php(189): APP_GameAction->skipPlayersOutOfTime()#
#3 /var/tournoi/release/tournoi-210922-1031-gs/www/index.php(259): launchWebAction('ladyschoice', 'action_ladyscho...', 'skipPlayersOutO...', false, false, NULL, true, false)#
#4 {main}h
http://1.studio.boardgamearena.com/1/la ... 2564041483
Looks to me like a whole heap of files I don't have access to modify.