Missing code skeleton

Game development with Board Game Arena Studio
Post Reply
User avatar
Chrort
Posts: 2
Joined: 03 February 2021, 10:40

Missing code skeleton

Post by Chrort »

Hey, maybe I missed something in the documentation but after executing the command to download my tutorial project into VSC, all the files appeared but without code in them. Is this supposed to be so, or not? The thing is that the tutorial in the documentation assumes that the basic game structure works just fine as soon as you load the files in.

This is the error message from BGA: "Propagating error from gameserver 1 (method: createGame): Fatal error during tutorialchrort setup: Class "\Bga\Games\tutorialchrort\Game" not found in modules/php/Game.php (reference: GS1 01/08 14:48:39) (reference: GS0 01/08 14:48:39)"
↪Just confirms that the code skeleton is missing.
User avatar
KuWizard
Posts: 336
Joined: 24 May 2018, 14:10

Re: Missing code skeleton

Post by KuWizard »

No, this is not supposed to be like this. There should be some code and comments
babe_babe
Posts: 1
Joined: 23 February 2025, 16:44

Re: Missing code skeleton

Post by babe_babe »

I ran into this as well. It was a sftp issue for me. I am using VS Code version 1.131.0 (which uses Node 24) with the natizyskunk.sftp extension which uses the utils.isDate() function which was removed in Node 23. This causes all the files to be blank.

There are some workarounds here: https://github.com/Natizyskunk/vscode-sftp/issues/590

This is what I did:

Code: Select all

# In .../extensions/natizyskunk.sftp-1.16.3/node_modules/ssh2/lib/protocol/SFTP.js
- // const { inherits, isDate } = require('util');
+ const { inherits } = require('util');
+ const isDate = (d) => d instanceof Date
User avatar
Chrort
Posts: 2
Joined: 03 February 2021, 10:40

Re: Missing code skeleton

Post by Chrort »

Helped a lot; thank you guys!
Post Reply

Return to “Developers”