[ACE] Web-Browser... is it possible?

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
Is it possible to script a web-browser in VXAce?  :unsure:   If so... could someone break it down for me? :)

PS. I do know that basics of RGSS3 (for the most part). ;)
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
Well, it *might* be possible, but it'd be too difficult to even try. You'd have to get internet connection (which itself is hard to put into an RM game), and then download the webpage and all images to the player's computer, and then interpret the HTML, CSS, PHP, Javascript, or any other website scripting language. The effort is just not really worth it.

What would you need an in-game web browser for anyway?
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
Well, it *might* be possible
I'm fairly certain it can be done. :)

it'd be too difficult to even try.
lol, that sounds like a challenge. ;) :guffaw: I'm sure it won't be easy but I must still make an attempt. :p

You'd have to get internet connection (which itself is hard to put into an RM game), and then download the webpage and all images to the player's computer, and then interpret the HTML, CSS, PHP, Javascript, or any other website scripting language.
Hmm... Yes, yes I see... I did know most of that; Thanks for the info. :cutesmile:

What would you need an in-game web browser for anyway?
I don't "need" I just want to attempt to script it... just for more RGSS3 knowledge.

I do have a few ideas though such as:

  • "Communicating" with a web site (also coded by me) to enable something in the game if the page is accessed from the game (not any other browser).
  • A "in-game" chat system that can chat with other "out-of-game" users (possibly another unlock-able event/character/item/etc.)
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
I don't really see how practical it would be from a game dev's POV but sure I guess.


I'd probably just write a regular web browser for some operating system that I can then share with others.
 
Last edited by a moderator:

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
I don't really see how practical it would be from a game dev's POV but sure I guess.
Yeah it's really not very practical, I just want to try it for fun (and knowledge).

I'd probably just write a regular web browser for some operating system that I can then share with others.
Are you referring to another language (C/C++, Java, VB, C#, etc.) or RGSS3?

If you are talking about writing a web browser for an OS (ex. windows) in RGSS3 (probably using WinAPI calls or something) do you know anything that might help me with this?
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
RGSS3 is not useful anywhere outside of RM.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
RGSS3 is not useful anywhere outside of RM.
lol  :guffaw:   I know that much... RGSS3 (Ruby Game Scripting System 3, it's practically in the name) is just for RMVXAce (ruby is what I should be use outside of RM, my favorite is C++ though)

I believe something like what White Flute does with Win32API (Such as Net-EX) could be used to make a Web Browser in RMVX Ace. Am I completely wrong?

Would there be any way to use the Win32API (or anything else) to connect to internet & then download all the necessary data from a site (images, sounds, HTML, CSS, PHP, Javascript, etc.)?

Edit:

Ok, I've got Net-EX working & am able to download files... I believe I am on my way. BD

Thank you both for the replies. :)
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
It provides the API's for making requests and handling responses but other than that you probably still need to find a way to handle HTML. And...that's just HTML...I don't even want to bother with everything else that forms the web.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
954
Reaction score
520
First Language
Javascript
Primarily Uses
RMMZ
Last edited by a moderator:

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,204
First Language
Binary
Primarily Uses
RMMZ
sigh... whiteflutes site always makes my McAfee go nuts :(

i just use Webkit for basic control of data online
 

SlaveOfThaMind

Game Developer / Musician
Veteran
Joined
Jul 10, 2013
Messages
239
Reaction score
23
First Language
English
Primarily Uses
1)Sounds like a cool idea. You could have all of your custom RTP loaded on the website/server, that way you could have the game call the needed resources from your site and plug them into the game without the need for a 500mb+ video game.

2) It would also keep players from ripping your data from the corresponding folders of the game and modding the files for their own use. (breaking copyrights on your game)

3) Seems like the cloud service that *backstabbing company name removed* offers on their next console.

4) Would be useful for the more "modern age" RPGs people are making. Maybe you would want to have a computer in one scene for instance, where you could access a "social network site" (obviously made specifically for the game) and mingle with other NPCs, and other players world wide in the game.

5) I could go on. But ill stop here.

All in all. I like the idea and I look forward to seeing an alpha release :)

Keep up the great work CT
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
This isn't "Ace in a browser" this is "a browser in Ace"
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
The first point wouldn't work anyway, you'd need to download the files either every time the game is run and then delete them after, or you have to download and save the files to the computer.
 

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,268
Reaction score
1,422
First Language
English
Primarily Uses
RMXP
I suggest using an already existing web browser to open whatever website you want.

For communicating with a server and accessing web contents I suggest you consider the problem of creating and using a Web service rather than browsing the internet.

The communication is typically XML based which is rather bloaty, but there are tools that generates code for major parts of webservice. Maybe you can leverage some of those tools to make it easier, or maybe it'll just make matters worse.

On the client side I would create a DLL which manages the internet communication in one or more separate threads. In RGSS3 I would use Win32API to call methods in the DLL to retrieve the necessary information.

*hugs*
 

SlaveOfThaMind

Game Developer / Musician
Veteran
Joined
Jul 10, 2013
Messages
239
Reaction score
23
First Language
English
Primarily Uses
What did you mean then? I assumed you were talking about features that would be useful in ct_bolt's idea.
To me, it seemed as though you thought I was talking about running the entire game/program through a browser, when I was only talking about calling files from a server, to the game on your harddrive. ( much like cloud for xbone )
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
1)Sounds like a cool idea. You could have all of your custom RTP loaded on the website/server, that way you could have the game call the needed resources from your site and plug them into the game without the need for a 500mb+ video game.
I don't really like the idea of having a single-player game to rely on the internet (like putting the files required on the net, then just make the game use it from there)... That will only be good for players who has constant net connection everywhere he goes...

also when I have internet connection, I'd rather play an MMO than a single player game...

anyway, I agree with Zeriab, just use the user's browser for opening a website if you need to open one... it's easier and there are scripts for that too...  :)
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top