Skip to main content

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

Relative Path Help - Error 403

A topic by PapitoMyKing created May 11, 2021 Views: 481 Replies: 5
Viewing posts 1 to 7

Hi,

I have a C3 game, with custom js. At the beginning of my main.js file, I import another file:

import Globals from "./globals.js";

This line is making the game break and gives a 403 error. How can I make that path relative? I'm a js newbie.

Thanks!

Moderator moved this topic to General Development
Moderator

That path is already relative. Your problem is probably different.

Any ideas what that problem is? The game runs perfectly on my local machine.

This is the error message

Absolute sadness.

You'll want to first look at line 27 in main.js and then line 39 in main.js, what happens in global.js is due to those first two errors.