Accessing img File

Game development with Board Game Arena Studio
Post Reply
abkan
Posts: 5
Joined: 08 March 2020, 20:55

Accessing img File

Post 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.
User avatar
RicardoRix
Posts: 2541
Joined: 29 April 2012, 23:43

Re: Accessing img File

Post 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.
abkan
Posts: 5
Joined: 08 March 2020, 20:55

Re: Accessing img File

Post 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.
abkan
Posts: 5
Joined: 08 March 2020, 20:55

Re: Accessing img File

Post 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.
Post Reply

Return to “Developers”