Page 1 of 1

Accessing img File

Posted: 02 February 2025, 20:05
by abkan
I am new to BGA studio and am attempting the reversi tutorial at https://en.doc.boardgamearena.com/Tutor ... first_game.

I got up to the part titled "Add the board", but I am having trouble with uploading images. I put a board.jpg file in my img folder, but it was not showing up when I tried to access it with css. I checked the sources on chrome Devtools, and found that there is a board.jpg file in the img folder, but the img is not actually there (when I click on the file, there is just a transparent background png with the "image not found" symbol). I am thinking that I need to do something extra to upload images across SFTP, but I have no idea what to do. I am using VScode if that helps.

Re: Accessing img File

Posted: 02 February 2025, 22:37
by RicardoRix
You need a way to continually synchronize your local files with the remote files via SFTP.

Personally under windows I use WinSCP and Commands->'Keep remote directory up to date'.

It never hurts to hard refresh your browser with Cntrl-F5.

Re: Accessing img File

Posted: 03 February 2025, 01:09
by abkan
I'm using the Natizyskunk SFTP extension for uploading, as recommended by the wikipedia; should that work?

Any changes I make to the files is already being uploaded (i.e. if I make a change in the css style rules, it will be reflected on the website). It is only the images that are not uploading properly.

Re: Accessing img File

Posted: 03 February 2025, 06:26
by abkan
Thanks for the help. I figured out the issue. For reference, the way I solved the issue:

1) I did not realize that using git would interfere with SFTP, but I see it now on the wikipedia: https://en.doc.boardgamearena.com/Setti ... on_control
I had to delete the .git folder.

2) Open the command palate (Control+Shift+P) and run the "SFTP: Sync Local -> Remote" command. It will not automatically upload images unless this is done.