Page 1 of 1

project works in studio but not in Alpha

Posted: 21 October 2022, 21:12
by developgame
Hi All:

Thank you for any advice you may have.

Can you please explain to me what I am doing wrong.
My game works great in Studio but not in Alpha.

My 2 games Crazy Eights and Escape the Curse of the Temple

For Crazy Eights, I can updated the imges in Studio but not in alpha even though I always always been able to do so before.

For Escape the Curse of the TEmple. the notification varibles work great in studio, but not at all in Alpha and I get errors.

Finding and fixing the bugs in studio is easy, but impossible in Alpha. What is the secret to getting similiar results in Alpha as in Studio.

Thanks for any advice

Very very very very very frustrated :oops:

Re: project works in studio but not in Alpha

Posted: 22 October 2022, 01:45
by AmadanNaBriona
If you make changes in studio, you have to build and deploy a new version to see them in alpha. But you can still open the development console in alpha.

I tried playing Curse of the Jungle, and immediately got this:

Code: Select all

Invalid or missing substitution argument for log message: ${player_name}${action}  and rolls ${dice_translate} error

Code: Select all

uring notification new_dice_roll
Cannot read properties of undefined (reading 'removeAll')
TypeError: Cannot read properties of undefined (reading 'removeAll')
    at Object.updatePlayerDice (https://x.boardgamearena.net/data/themereleases/current/games/escapethecurseofthetemple/221021-2158/escapethecurseofthetemple.js:1:10814)
    at Object.notif_new_dice_roll (https://x.boardgamearena.net/data/themereleases/current/games/escapethecurseofthetemple/221021-2158/escapethecurseofthetemple.js:1:33340)
    at r.<anonymous> (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:23207)
    at r.a [as onnew_dice_roll] (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:43142)
    at o.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:39136)
    at o.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:39765)
    at r.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:42743)
    at Object.publish (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:42384)
    at Object.publish (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:36321)
    at Object.dispatchNotification (https://x.boardgamearena.net/data/themereleases/221018-1000/js/modules/layer/ly_studio.js:1:480819)
So you definitely have a failure there where one of your arguments is not provided in the notification. Are you perhaps trying to send a language-dependent string which might get changed on the client side?

Re: project works in studio but not in Alpha

Posted: 23 October 2022, 09:16
by developgame
Thank you AmadanNaBriona for your advice
You are right, the developement console is accessible in Alpha and it gives some clues to where the problem is.
With your advice, the game Escape the Curse of the Temple is now working on Alpha! :D

AmadanNaBriona wrote: 22 October 2022, 01:45 If you make changes in studio, you have to build and deploy a new version to see them in alpha. But you can still open the development console in alpha.

I tried playing Curse of the Jungle, and immediately got this:

Code: Select all

Invalid or missing substitution argument for log message: ${player_name}${action}  and rolls ${dice_translate} error

Code: Select all

uring notification new_dice_roll
Cannot read properties of undefined (reading 'removeAll')
TypeError: Cannot read properties of undefined (reading 'removeAll')
    at Object.updatePlayerDice (https://x.boardgamearena.net/data/themereleases/current/games/escapethecurseofthetemple/221021-2158/escapethecurseofthetemple.js:1:10814)
    at Object.notif_new_dice_roll (https://x.boardgamearena.net/data/themereleases/current/games/escapethecurseofthetemple/221021-2158/escapethecurseofthetemple.js:1:33340)
    at r.<anonymous> (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:23207)
    at r.a [as onnew_dice_roll] (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:43142)
    at o.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:39136)
    at o.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:39765)
    at r.emit (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:42743)
    at Object.publish (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:42384)
    at Object.publish (https://x.boardgamearena.net/data/themereleases/221018-1000/js/dojoroot/dojo/dojo.js:1:36321)
    at Object.dispatchNotification (https://x.boardgamearena.net/data/themereleases/221018-1000/js/modules/layer/ly_studio.js:1:480819)
So you definitely have a failure there where one of your arguments is not provided in the notification. Are you perhaps trying to send a language-dependent string which might get changed on the client side?