Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to add links outside the game #213

Open
Br4ssman opened this issue Sep 7, 2022 · 3 comments
Open

Command to add links outside the game #213

Br4ssman opened this issue Sep 7, 2022 · 3 comments

Comments

@Br4ssman
Copy link

Br4ssman commented Sep 7, 2022

I've been thinking about it for discussion, I don't know if it's too dangerous or if it might be interesting.

@carstene1ns
Copy link
Member

Unfortunately this will not work in a cross-platform way.

@fdelapena
Copy link
Contributor

For Player on SDL ports (>= 2.0.14) there is SDL_OpenURL(): https://wiki.libsdl.org/SDL_OpenURL
For Qt for the editor there is QDesktopServices::openUrl(): https://doc.qt.io/qt/qdesktopservices.html

@Mimigris
Copy link

I've been thinking about it for discussion, I don't know if it's too dangerous or if it might be interesting.

Not sure if you wanted to receive feedback for this but I'm gonna give mine anyways since it may be interesting I guess.

While it can be interesting in some cases to be able to link the user to a specific site, you need to also know how the community would use it, both in a good and in a bad situation since we are talking about an indie community making games. I'm pretty sure that some developers would try to exploit this maliciously, for example by sending the user to malicious or inappropriate websites, or by making a loop asking the player to open a page endlessly to make your device struggle. One way to avoid such exploits would probably be to make the command work as a wait for key input to avoid the latter, but it would limit the command and would not solve the first issue. At this point, I think that it would be better to just put a link in the readme or show it in-game and ask the user to type it to avoid issues, so I'm not really for having such a feature when releasing a game.

If there is a plan to have this feature though, I don't think that having it on a limited number of platforms is really an issue as long as the main platforms are supported. Having links in the Editor itself should not be an issue since its content should always be the same and should not be exploitable so there is no issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants