Search found 5 matches

by Fritz
17 April 2020, 17:03
Forum: Developers
Topic: complex moves : client side vs server side
Replies: 11
Views: 2837

Re: complex moves : client side vs server side

But, I copy PHP code from server side to client side in JS (have to erase $, change => to :, and change array or dict methods, no sprintf in JS :cry: ). Well, here's a very crazy idea: You could try to automate this process for some subset of PHP, for some helper functions. Here's how you could go ...
by Fritz
17 April 2020, 13:26
Forum: Developers
Topic: complex moves : client side vs server side
Replies: 11
Views: 2837

Re: Need advice.

A slightly simpler example than yours can be found in the bga-sharedcode project: https://github.com/elaskavaia/bga-sharedcode. This implementation includes client states (in contrast to the game state machine states on the server side), which allow you to move tokens around and update counters. The...
by Fritz
17 April 2020, 00:19
Forum: Developers
Topic: BGA Studio built-in functions documentation?
Replies: 4
Views: 1071

Re: BGA Studio built-in functions documentation?

It's somewhat distributed throughout the BGA Studio Wiki. Start at this page: http://en.doc.boardgamearena.com/Studio You can search for the relevant functions with the search function. The functions you are looking for are here: http://en.doc.boardgamearena.com/Main_game_logic:_yourgamename.game.ph...
by Fritz
16 April 2020, 14:56
Forum: Developers
Topic: Dojo cacheBust setting (JS requests with timestamp in URL) breaks debugging
Replies: 0
Views: 525

Dojo cacheBust setting (JS requests with timestamp in URL) breaks debugging

On BGA studio, the dojoConfig option "cacheBust" is set to true. While I understand the purpose, it makes debugging the game startup unnecessarily hard. Also, it is actually unnecessary, because any web developer should know to always enable the "Disable Cache" setting in the dev...

Go to advanced search