Page 1 of 1

Missing code skeleton

Posted: 01 August 2026, 13:51
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.

Re: Missing code skeleton

Posted: 01 August 2026, 19:59
by KuWizard
No, this is not supposed to be like this. There should be some code and comments

Re: Missing code skeleton

Posted: 01 August 2026, 23:54
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

Re: Missing code skeleton

Posted: 03 August 2026, 09:26
by Chrort
Helped a lot; thank you guys!