This site requires JavaScript, please enable it in your browser!
Greenfoot back
MrParakeet25
MrParakeet25 wrote ...

2025/5/14

HTML 5 Translation

MrParakeet25 MrParakeet25

2025/5/14

#
I just uploaded my first game: https://www.greenfoot.org/scenarios/35129, and it won't work on the website because no HTML 5 translation is available. If anyone can help I would be very grateful as I wish to show my friends my game.
danpost danpost

2025/5/14

#
MrParakeet25 wrote...
I just uploaded my first game: https://www.greenfoot.org/scenarios/35129, and it won't work on the website because no HTML 5 translation is available. If anyone can help I would be very grateful as I wish to show my friends my game.
It is most probably the way you access your files within subfolders. I believe a double backslash is needed in HTML5 to proceed to a subfolder. Easiest fix is to just put all the images directly in the "images" folder and do away with the subfolders.
MrParakeet25 MrParakeet25

2025/5/15

#
Just did this, still seems to have the issue though :/, says "Running TeaVM" if that's significant.
MrParakeet25 MrParakeet25

2025/5/15

#
danpost wrote...
MrParakeet25 wrote...
I just uploaded my first game: https://www.greenfoot.org/scenarios/35129, and it won't work on the website because no HTML 5 translation is available. If anyone can help I would be very grateful as I wish to show my friends my game.
It is most probably the way you access your files within subfolders. I believe a double backslash is needed in HTML5 to proceed to a subfolder. Easiest fix is to just put all the images directly in the "images" folder and do away with the subfolders.
Might it also have something to do with the way the scoreboards are made? My initial thought about the problem was because I used stuff like Color.RED.
MrParakeet25 MrParakeet25

2025/5/15

#
As a test I uploaded a scenario of a single ant being instanced and nothing else and that still resulted in an HTML5 issue, so it it the computer?
danpost danpost

2025/5/16

#
MrParakeet25 wrote...
As a test I uploaded a scenario of a single ant being instanced and nothing else and that still resulted in an HTML5 issue, so it it the computer?
Maybe you should have left it up here for us to look over. Start simple and work up gradually to pinpoint where the problem begins. That is, start with no sound files, limited images and minimal code to get going. Share it to see if it uploads correctly. If not, it may be your computer, your version of greenfoot, or who knows. It loads, maybe add ONLY one music file and test it again. Then continue building and testing.
MrParakeet25 MrParakeet25

2025/5/16

#
danpost wrote...
MrParakeet25 wrote...
As a test I uploaded a scenario of a single ant being instanced and nothing else and that still resulted in an HTML5 issue, so it it the computer?
Maybe you should have left it up here for us to look over. Start simple and work up gradually to pinpoint where the problem begins. That is, start with no sound files, limited images and minimal code to get going. Share it to see if it uploads correctly. If not, it may be your computer, your version of greenfoot, or who knows. It loads, maybe add ONLY one music file and test it again. Then continue building and testing.
I just uploaded again on a school computer this time and it worked :D! I believe this computer has an earlier version of greenfoot so I believe that the latest version may be the problem. (Edit: Working version was 3.8.2)
You need to login to post a reply.