Windows url_open function behaving oddly

kadinshino

Member
So im trying to use the url_open function to direct a person to a webpage to do stuff "create an account, log in etc"

problem is it seems that in 2.3, no matter the browser target it keeps putting %22 in front of https://



var _url = "https://www.yoyogames.com/"

url_open(_url);



If you use Reddit reply to me here with a fix for gold if there is one. If its a bug you can let me know for some silver.
bounty out!

https://www.reddit.com/r/gamemaker/comments/j8xfu7
 

Attachments

Nocturne

Friendly Tyrant
Forum Staff
Admin
Try using a string literal instead, eg:

GML:
var _url = @"https://www.yoyogames.com/"
 

kadinshino

Member
Try changing your default browser, see if that helps.
i have tried in firefox, chrome, edge, safari. still having the same results. its always putting %22 before the HTTP

also this only happens when you build for windows as a set target point. if you build for html5 everything works fine.
 
F

fieryprophet

Guest
I can confirm that I am experiencing the same issue with the latest versions of GMS2 and runner. Using YellowAfterlife's workaround is the only solution at the moment.
 

TibiSoft

Member
Same issue at my side. From a certain moment of time it went wrong, but it seems both 2.2.5 and 2.3 are affected. (installed both on same PC).
 
I have the same problem. Unfortunately the game maker is making things very difficult. I already reported a serious bug with xbox live two versions ago and so far no solution. Losing the ability to open a URL in the game is really disappointing. I will inevitably migrate to Unity
 

Flaick

Member
Same here. It seems and update of Chrome that broke something. With Firefox it works correctly. This is really bad issue, cause we cannot force users to set a particular default browser. I think the fix must be come from Google, not from Yoyo.
 

YellowAfterlife

ᴏɴʟɪɴᴇ ᴍᴜʟᴛɪᴘʟᴀʏᴇʀ
Forum Staff
Moderator
It is indeed a Chrome update that did this;
Windows-only;
Firefox is unaffected.

In other words, I recommend my extension - I believe it is the safest possible approach since the OS decides how to open internet shortcuts.
 
G

GamemakerFreak123

Guest
I'm having the same problem in GMS v1.4.9999. Seems to be a chrome problem. I hope it's fixed soon, since it affect all my previous games.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
I'm having the same problem in GMS v1.4.9999. Seems to be a chrome problem. I hope it's fixed soon, since it affect all my previous games.
GM:S 1.4.999 is never getting "fixed" I'm afraid. That version was deprecated several years ago and will not be receiving any further updates. You'll need to switch to GMS2.3 to get the benefit of updates to fix things.
 

TsukaYuriko

☄️
Forum Staff
Moderator
... I sure hope you're waiting for a fix for 2.3, not 1.4, and merely didn't specify that? 1.4 won't be getting any updates. :p

With that said, if you're still experiencing this after downloading the latest GMS 2 beta and re-testing, please file a bug report as issues that aren't reported are issues that aren't getting fixed.

Meanwhile:
 
G

GamemakerFreak123

Guest
I think you might have misunderstood me. I just pointed out that the issue also affects 1.4, meaning that all games ever created with 1.4 now won't open links properly in chrome, which is a big issue imo.
I know that 1.4 won't be getting any updates. I was talking about a fix for chrome, not gamemaker 😉 But I guess that won't happen reading the article you linked to, TsukaYuriko.

It kinda sucks, since I have older games made with 1.4 that update by opening a website (url_open) if there's an update for the game. Of course this won't work anymore for chrome users. And even if I release a new version with the fix implemented, players using the old version will have a hard time updating, since the website won't open correctly for them 🤔
 
Top