Hello,
First of all I'm not a pro web developer, I just know a few tricks (for now) on this topic. I have made a simple game and exported it to HTML. It plays fine on firefox but I would like to execute it in a actual web page so I got one of my projects and tried to load it there. Its a rails project, I added everything on the assets folder (game.js and gamefs.js went to script folder, data.pck and game.mem went to images as its supposed to load it anyway, but I did try adding a "media" folder and other configurations too) and then copied the "game.html" content to my "index.html.erb". I did a bundle install, started the server and "localhost:3000" it.
These are what I got:
failed to load resources: the server responded with a status of 404 (Not Found)
for: gamefs.js, godot.javascript.opt.html.mem (which was never generated or loaded...so it shouldnt be there, really), game.self-6b52176b75562dead7c65a19805cb22ceb0020f2f64543df7a9ef7de56221397.js?body=1, data.pck, gamefs.js (again), game.mem, game.js.
I know its trying to load godot.javascript.opt.html.mem from game.js.
I also know it is loading the scripts for they are on source code so the 404 must be actually something closer to 301 (for rails loads a copy of it with alphanumeric code on the name).
So I would like some help solving those 404 and playing the game on this project before I move on to testing a multiplayer game.
main application.html.erb has <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> so all scripts are loading but its still getting a 404.