Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Error 403 loading assets and fonts

A topic by IlTimido created Jul 15, 2021 Views: 607 Replies: 1
Viewing posts 1 to 2
(+1)

Hello there,
Is there any guidelines available for uploading a game?
I get errors while my app tries to load fonts and I got errors when my app tries to load assets.

The path seems correct (in fact it runs well on any domains where I have put it).

This is the struct of the zip I've uploaded:

root
├──assets
│  ├──chars
│  ├──items
│  ├──misc
│  ├──tiles
│  └──ui
│     ├──bars
│     ├──combat
│     ├──skills
│     └──windows
├──dist
│  ├──css
│  ├──fonts
│  └──js
├──icons
└──libs

From inside my app I try to load for example the files contained in "assets/tiles" but I get this error

walls0.png:1 GET https://v6p9d9t4.ssl.hwcdn.net/assets/tiles/walls0.png?v=1.0 403

This is instead the error I get when I try to load fonts from inside the css:
GET https://v6p9d9t4.ssl.hwcdn.net/dist/fonts/CraftPixNet-Survival-Kit.woff net::ERR_ABORTED 403

Anyone knows how to fix this issue?
Thanks in advance

Admin(+1)

You are trying to reference files via an absolute path instead of a relative one. See the troubleshooting guide on HTML games: https://itch.io/docs/creators/html5#common-pitfalls