Page 3 of 3

Re: Tutorial Reversi errors

Posted: 08 May 2023, 19:13
by CheesePuppy
Blacktango wrote: 07 May 2023, 23:51 Ok, I didn’t know there was such tool on BGA studio.

In the log, I don’t see the image but only CSS files.
I think you have to add the image file to git (like all new files).

By default, with Git, only known files are committed.

Maybe this tool is only about versioning, not publishing (even the dev version).
When I did the tutorial, I used an external tool (Filezilla) to connect to the SFTP server and upload the files I changes/added.
robinzig wrote: 08 May 2023, 11:13 BGA studio uses SVN, not git, for version control.

But really that's not relevant here, whether the file is in the version control system doesn't matter for whether the server can find it when loading the game. All that matters is whether the file is physically on the server.

Do you have a screenshot of the files/folders on the server, from your SFTP client? That would be the first place I'd look in these circumstances - has the image file actually made it onto the server?
Sweet, new to me, I suppose I'll be learning how to do things with subversion.

I'm using the SFTP extension for vs code. I'm able to look at what files are on the server. It's definitely not showing `board.jpg`. Which is good stuff. Now I know how to work with that.

Both, trying to upload the image file and then the whole folder, give the same error.

Code: Select all

[05-08 13:50:38] [warn] The "Upload Active File" command get canceled because of missing targets.
[05-08 13:50:57] [warn] The "Upload Active Folder" command get canceled because of missing targets.
A search through the forums here is not so fruitful. I came across this, but they have no clue how they fixed their issue. Still, they didn't seem to be having an sftp issue. I am determined to figure this out

---

Edit:
Blacktango and Robinzig, thank you so much for walking me through trying to figure this out. In the process, you've both taught me things that will forever be useful to know.

Welp, I'm about to say the same thing that other post did. I don't understand why it works now. Still, I suppose giving the details will possibly help the next person who gets stuck.

With the SFTP extension v1.16.1 for VS Code by Natizyskunk, you can hit `cmd` + `shift` + `p` to get your SFTP commands.
sftp commands
sftp commands
Screenshot 2023-05-08 at 14.17.05.png (63.02 KiB) Viewed 709 times
My `board.jpg` file nor `img` folder wasn't uploading and gave a "missing target warning". Something made we think it would be worth the effort to delete the image file and add it back. After I did that, I tried to run the upload file command, and it just worked.

Anyway, you should see this in the SFTP logs for each file being transferred

Code: Select all

[05-08 13:51:44] [info] local ➞ remote /Users/vicki.langer/git/bga/img/board.jpg

Re: Tutorial Reversi errors

Posted: 08 May 2023, 22:08
by robinzig
Thanks, good to know - and glad you solved it :D

fwiw I don't use a VSCode extension for SFTP - even though I do use VS Code. I just use WinSCP (other equally good FTP clients are available) and have that continually running with "automatically upload files" when coding a BGA project.

Re: Tutorial Reversi errors

Posted: 02 January 2024, 13:36
by fenadoruk
I can't seem to start a solo game, the min. number of players it allows is 2, even though in my gameinfos.inc.php I have:

'players' => array( 1,2,3,4 ),

Trying both on game page and play page. What do you think I'm doing wrong?

[Edit] Solved! I had to press the "Reload game informations" from the "Manage Game" page.