• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM can you display a Webpage in a room?

T

TheRaven81

Guest
I'm curious if I could get a webpage to display within a room in GM:S... My aim is to attempt to design a utility app, that can read the contents of a webpage, and display it, as well as have it function well... Thinking of something along these lines:

https://play.google.com/store/apps/details?id=com.gamepedia.minecraftwiki&hl=en

I realize this may be over my head slightly, but if it's even possible at all, I would be more than willing to learn what I need to learn, to accomplish it.

My main idea is building a wiki app for Stardew Valley. Using the app I linked above, you can only read and search the Wiki, to use it as a reference. You can't use the app to edit any of the wiki's pages. I'd like mine to be the same, where you can use the app to search the wiki for info, and read it.
 

ZeDuval

Member
You can embed a website using this asset from the marketplace. I played around with it a little some time ago but it is well enough commented to get everything going.

Pro: It works(For a long time I was not able to find any working extension since most you can find for example in the old forum are outdated)
Con: It uses IE(the version installed on the users pc?!) and since Win10 now has the new Edge-Browser it will be more outdated with every day.
 
T

TheRaven81

Guest
You can embed a website using this asset from the marketplace. I played around with it a little some time ago but it is well enough commented to get everything going.

Pro: It works(For a long time I was not able to find any working extension since most you can find for example in the old forum are outdated)
Con: It uses IE(the version installed on the users pc?!) and since Win10 now has the new Edge-Browser it will be more outdated with every day.
Do you think the Con outweighs the Pro?
 

ZeDuval

Member
Alright, I tried a few things.

+ It is, as far as I know, the only asset with this functionality => This or no wiki-project
+ The asset is really well commented, there should actually be no open questions if you read just through the few lines of code
+ It's easy to use
+ You can set scrollbars on/off as an option
+ You can freely define the size of the browser window
+ Making the GM window resizable and setting the browser to always fill out the whole window works well, for example.
+ Changing the webpage works like this, from the Step-Event:
Code:
if (keyboard_check_direct(vk_space)){
  var url=get_string("url:","https://google.com");
  BrowserDestroy();BrowserCreate(url,false);
}
- As said, it's based on IE. I changed the start URL to http://www.whatsmybrowser.org/ and started the testmap. I'm using WIN10, developer-mode, always up-to-date, so the IE installed should be the latest version. For me it shows IE11 and that seems to be correct. There are security-stuff-popup/error/whatever messages like all the time, atleast when accessing new sites. Maybe this isnt not so bad if the user usually uses IE. In my case, I never started it before. https://www.whatismybrowser.com/ wasnt displayed properly at all while browsing reddit was no problem. I could imagine that a wiki might work. You need to try this out yourself and decide.
 
Top