00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

I'm having a problem with my game I am working on in GDevelop when testing it on Newgrounds. It works fine in both the preview and the browser export test. So I don't know why it's doing this only when I go to preview it on NG. The text looks all corrupted and the position of elements are all over the place. There's something very wrong with how it's being rendered on the page.


Here's the preview:

https://www.newgrounds.com/projects/games/5152678/preview/filetype/2


The html export:

https://www.newgrounds.com/dump/item/79925d631bf9beb545464fb77bc732b5


and the project file (even though I'm real embarrassed to share it because the code is an absolute mess)

https://www.newgrounds.com/dump/item/5499f5eacf66dd4f6ea89e8f8edb43a7


I don't think many people here use GDevelop. (I can only think of @3p0ch ) So I would appreciate any help at all with figuring this out, even if it's just guesses as to what it could possibly be that might point me vaguely in the right direction.


BBS Signature

Response to GDevelop Issue 2023-10-24 11:19:48 (edited 2023-10-24 11:30:04)


This is really weird. The exported HTML does run fine if I set up a local testing "server" and run it from my hard drive, but messes up if I zip it and upload it to NewGrounds and preview it.


I haven't encountered anything like this before, has anyone else here? @HelperWesley might be my best guess as to who would know if it's something that can be addressed in GDevelop, although the HTML working locally but not after uploading makes me think it might not be GDevelop-specific.


My newsfeed has random GameDev tips & tricks

Response to GDevelop Issue 2023-10-24 14:54:43


At 10/24/23 11:19 AM, 3p0ch wrote: This is really weird. The exported HTML does run fine if I set up a local testing "server" and run it from my hard drive, but messes up if I zip it and upload it to NewGrounds and preview it.

I haven't encountered anything like this before, has anyone else here? @HelperWesley might be my best guess as to who would know if it's something that can be addressed in GDevelop, although the HTML working locally but not after uploading makes me think it might not be GDevelop-specific.


Thanks for testing it out. I was able to get around the issue by using an older version of GDevelop (Specifically 5.2.171). Now it's rendering correctly on NG! Now I just have to figure out how to get the scoreboard working.


BBS Signature

Response to GDevelop Issue 2023-10-25 05:45:47


I can't see any of the projects linked above but I'm guessing it has something to do with iframes. Maybe GDevelop is using the parent container's origin position hence everything is messed up when it's shown in an iframe at NG. But it's just speculation as I can't see the actual problem live.


\ / Bunny ears didn't happen by accident

BBS Signature

Response to GDevelop Issue 2023-10-25 09:08:25


Are you using a cloud project? Because I face this same issue whenever exporting a game through a cloud project, the fix is saving it locally and then exporting it.


Crazy? I was crazy once.

BBS Signature

Response to GDevelop Issue 2023-10-25 13:37:51


At 10/25/23 09:08 AM, Prismisho wrote: Are you using a cloud project? Because I face this same issue whenever exporting a game through a cloud project, the fix is saving it locally and then exporting it.

No, I was using local saves.


BBS Signature

Response to GDevelop Issue 2023-10-25 13:55:57


At 10/25/23 05:45 AM, Aistis wrote: I can't see any of the projects linked above but I'm guessing it has something to do with iframes. Maybe GDevelop is using the parent container's origin position hence everything is messed up when it's shown in an iframe at NG. But it's just speculation as I can't see the actual problem live.


Sorry about that, I deleted the links because I have fixed the problem by using a different version of the software. But your speculation sounds about right, and it's what I was thinking too, which means it's likely a bug in Gdevelop.


I was using Gdevelop version 5.2.176 Flatpak version in Ubuntu when I got the problem. Issue can be recreated by placing some sprites on the scene and resizing them to bigger than their default size in the editor. The issue is not present in appimage of version 5.2.171.


BBS Signature

Response to GDevelop Issue 2023-10-25 14:25:35


At 10/25/23 01:55 PM, tydaze wrote:
At 10/25/23 05:45 AM, Aistis wrote: I can't see any of the projects linked above but I'm guessing it has something to do with iframes. Maybe GDevelop is using the parent container's origin position hence everything is messed up when it's shown in an iframe at NG. But it's just speculation as I can't see the actual problem live.
Sorry about that, I deleted the links because I have fixed the problem by using a different version of the software. But your speculation sounds about right, and it's what I was thinking too, which means it's likely a bug in Gdevelop.

I was using Gdevelop version 5.2.176 Flatpak version in Ubuntu when I got the problem. Issue can be recreated by placing some sprites on the scene and resizing them to bigger than their default size in the editor. The issue is not present in appimage of version 5.2.171.


Well I recommend you open up an issue on there GitHub Repository


Crazy? I was crazy once.

BBS Signature