IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 [WIP] IN GAME WEB BROWSER

 
iriedreadlock23  
Posted: Saturday, Dec 25 2010, 15:54
Quote Post


Dr. Frankenstein
Group Icon
Group: Members
Joined: Jan 14, 2009

XXXXX



I found this little work in progress done by me not long ago. I was always wondering if there was a way to use real html pages within game, and after some experimenting I found a simple way to do it. The idea was to somehow capture html code, and build it on a JPG picture. I googled a bit and I found ABCDrawHTML2Lib to snapshot pages, for example google etc. So you just enter a webpage URL, it gets saved in temp folder, and script displays a page in game. Now, If any of you, fellow modders, are willing to help. Let's write some history and do some amazing work here. I don't require your big ups, but instead your knowledge and help. So there will be a day when you will be able to check your email, news feeds, and new GtaForums posts while playing GTAIV.

I am looking for a open-source library that can do the job of snapshoting the webpages, since the one I use is 30-day limited version of ABCDrawHTML2Lib. Offcourse, any hints on built in HTML code from GTAIV is appreciated.
PM
  Top
 

 
Intosia  
Posted: Sunday, Dec 26 2010, 10:04
Quote Post


I'm random! ^^
Group Icon
Group: Members
Joined: Dec 11, 2008

nl.gif

XXXXX



If it makes Jpeg how do you click on links?
Users WebsitePM
  Top
 

 
iriedreadlock23  
Posted: Sunday, Dec 26 2010, 17:42
Quote Post


Dr. Frankenstein
Group Icon
Group: Members
Joined: Jan 14, 2009

XXXXX



Well offcourse, this could be used for VIEWING PAGES, NOT for full web browsing with ActiveX or Java or Flash etc. Offcourse links could be done aswell, by simply remembering the link boxes, withing the tool for creating web snapshot. Then you could click on links. If I knew how to build a fully working web browser like Mozzila in GTAIV, I wouldnt be here, asking for people to help me out. I see that noone has come up with a way to view webpages in game yet, so here i am, breaking the ice.

If you are offering me a solution, i am willing to listen.
PM
  Top
 

 
Donny78  
Posted: Sunday, Dec 26 2010, 19:04
Quote Post


Zombie
Group Icon
Group: Members
Joined: Jul 18, 2008

en.gif

XXXXX



I think some kind of translation tool could be scripted to allow you to build/configure/change them on the fly using IO/Net while ingame.

It would go something like this:

1) User requests page open with keypress or console command (console address?)
2) Script fetches webpage data and writes stream to file
3) Script reads the file (above) and converts it into GTA.Forms.**** data and stores it in variables/arrays
4) Script parses and builds what it can from the page using forms/buttons/imageboxes/textboxes etc
5) Script displays webpage data as form etc

It is very do-able IMO but would take some clever code (parse tool).

PS. that fetching link was my first google link, I don't know anything about it but searched "html to c#" to find it.
PM
  Top
 

 
Mark01  
Posted: Sunday, Dec 26 2010, 19:16
Quote Post


STUPENDOUS!!
Group Icon
Group: Members
Joined: Sep 21, 2009

eu.gif

XXXXX



The idea of browsing the web in the game is somewhat stupid... whatever, I don't know If you already looked there but every websites of the game looks like they are .html pages but renamed in .whm *see pic* I think there's maybe a better way rather than converting webpages to bitmap.

user posted image
PM
  Top
 

 
iriedreadlock23  
Posted: Sunday, Dec 26 2010, 21:13
Quote Post


Dr. Frankenstein
Group Icon
Group: Members
Joined: Jan 14, 2009

XXXXX



Good Idea Donny78. Just thing is how fast would it be using Gta Forms? It's injected D3D overlay as I could understand, but on my rig, I've performance issues with Gta Forms, even though I get very good FPS while playing the game. However, it could be possible to do it that way. And about WHM, I realize that it contains HTML code, but reading WHM without SparkIV, and offcourse writing it back is not an easy job. Its even harder, because no mods are available yet, with WHM format. Sometimes I wish I learned C++, now I wouldn't have to ask much questions.
PM
  Top
 

 
Ranger366  
Posted: Saturday, Jan 8 2011, 18:10
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Nov 30, 2010

XXXXX



when opening a Website file in Spark, you can view the HTML Code. It IS HTML, whm is an "archive" which stores an HTML and image files. you can find the images in the whm files, but i cant extract them in Spark over the "Edit" tab.
PM
  Top
 

 
nkjellman  
Posted: Sunday, Jan 16 2011, 01:06
Quote Post


Boss
Group Icon
Group: Members
Joined: Aug 28, 2008

us.gif

Member Award




I sure hope you get this to work. I like the idea. But Id recremend trying to keep some of the original gta web pages in the game. Atleast the ones you have to use in the campain like eyefindinfo. Hey we now have internet radio in SA.
PMXbox LivePlayStation Network
  Top
 

 
spaceeinstein  
Posted: Sunday, Jan 16 2011, 03:18
Quote Post


巧克力
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




Internet radio is easy to do compared to this. Having the game's web browser to view the Internet when you can simply use an actual browser is not worth the work.
Users WebsitePM
  Top
 

 
nkjellman  
Posted: Sunday, Jan 16 2011, 05:04
Quote Post


Boss
Group Icon
Group: Members
Joined: Aug 28, 2008

us.gif

Member Award




You could make a simple script that just uses the steam web browser so its like what your aiming for. If you make a new Icon on the ingame desktop and when you click on it the steam brouser pops up.
PMXbox LivePlayStation Network
  Top
 

 
thelaststikshipht  
Posted: Friday, Jul 20 2012, 00:48
Quote Post


Pluto Nash
Group Icon
Group: Members
Joined: Feb 24, 2012

us.gif

XXXXX



If y'all could figure out how to do it, you could modify the in-game browser itself to read, execute, etc. html, xhtml, shtml, dhtml, php, etc. pages AND the whm pages...
Users WebsitePMMSNXbox Live
  Top
 

 
DoTTGaMMa  
Posted: Friday, Jul 20 2012, 11:11
Quote Post


The Coder
Group Icon
Group: Members
Joined: Aug 11, 2010

us.gif

XXXXX



There has been an easy way to do this all along, its called Xfire, activate it for GTA IV and press Scroll Lock + W in game to open the web browser
PMMSNXbox Live
  Top
 

 
thelaststikshipht  
Posted: Friday, Jul 27 2012, 06:23
Quote Post


Pluto Nash
Group Icon
Group: Members
Joined: Feb 24, 2012

us.gif

XXXXX



@DoTTGaMMa: Thank you very much for your reply... This is a pretty dated thread, and on threads like these, I don't get very many replies.
Thanks again,


TheLastStikShipht
Users WebsitePMMSNXbox Live
  Top
 

 
jpm1  
Posted: Friday, Jul 27 2012, 18:05
Quote Post


Vice city citizen
Group Icon
Group: Members
Joined: Sep 26, 2005

fr.gif

XXXXX



personnally i would prefer a web browser available from cyber cafes only . it would be more realistic i think
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG