Cannot link css file to html in tutorial project

Game development with Board Game Arena Studio
linhtran190897
Posts: 13
Joined: 07 September 2023, 23:07

Re: Cannot link css file to html in tutorial project

Post by linhtran190897 »

RicardoRix wrote: 13 October 2023, 20:47 All of the images in your img folder get a 404.
linhtran190897 wrote: 13 October 2023, 17:56 How can I check for sure if I have uploaded the image to the SFTP folder? This problem has been bugging me for days..
Once it's 'folder synchronized', you shouldn't really have to do anything. However you have a distinct problem with the img folder. Difficult to know the exact problem. Possibly file \ directory permissions got screwed up somehow.

Mess around the best you can. It's worth deleting and then copying back to the local folder, see if you get a 'update message' of sorts from the FTP program... Last resort, just make a new project.

You should be able to put this url directly in a browser and just view the image.
https://studio.boardgamearena.com:8084/ ... /goban.jpg
Hey I actually created a new project with hearts tutorial but the same problem persists... Could it be possibly the configuration of SFTP?
here is how i configured it, ofc I replaced with my own username and password

Code: Select all

{
    "name": "BGA",
    "host": "1.studio.boardgamearena.com",
    "protocol": "sftp",
    "port": 22,
    "username": "<myusername>",
    "password": "<mypassword>",
    "remotePath": "/heartstklnhk/",
    "uploadOnSave": true,
    "ignore": [
        ".vscode",
        ".git",
        ".DS_Store"
    ],
    "syncOption": {
        "skipCreate": false,
        "delete": true 
    }
}
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Cannot link css file to html in tutorial project

Post by RicardoRix »

The img folder should already exist when you create a new project. (probably a few others like misc and modules).
You then should be able to copy images to the 'img' folder.

I personally use WinSCP (on windows). It shows the local side on the left pane, the remote side on the right pane. It has a folder synch option, but it should also be easy to copy files from one side to the other.
Post Reply

Return to “Developers”