• gm_chrome - Awesomium binding
    273 replies, posted
  • Avatar of AzuiSleet
  • This is my second attempt at a browser in gmod. LLMozLib had too many issues, but Awesomium reached a stable point, and shows a lot of potential. This is my binding for it in gmod. This uses Awesomium! [url]http://princeofcode.com/awesomium.php[/url] [URL=http://img12.imageshack.us/my.php?image=gmchrome.jpg][IMG]http://img12.imageshack.us/img12/9562/gmchrome.th.jpg[/IMG][/URL] [url]http://code.google.com/p/gmodmodules/[/url] [url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url]
  • Avatar of abp1192
  • No offense, but there isn't really a point to this. You can just open the steam web browser.
  • Avatar of ntzu
  • Steam Browser doesn't run youtube videos and such ( At least not for me, says I don't have the addon.)
  • Avatar of abp1192
  • Steam browser works for me perfectly. Either way this is cool, I just have no use for it.
  • Avatar of AzuiSleet
  • You clearly have no idea what you're talking about. Valve hasn't done anything with the HTML vgui control. It's still a horrible piece of crap. [url]http://bugs.garrysmod.com/search.php?project_id=4&search=html&sticky_issues=off&sortby=last_updated&dir=DESC&hide_status_id=-2[/url]
  • Avatar of abp1192
  • [QUOTE=AzuiSleet;14009829]You clearly have no idea what you're talking about. Valve hasn't done anything with the HTML vgui control. It's still a horrible piece of crap. [url]http://bugs.garrysmod.com/search.php?project_id=4&search=html&sticky_issues=off&sortby=last_updated&dir=DESC&hide_status_id=-2[/url][/QUOTE] .... How do I not? Youtube works for me. That is all ever asked. End of story.
  • Avatar of splintered_vein
  • Why wouldn't you want to replace Valve's shit browser? It's based on an old IE module and takes way more resources and load time than it should. Thank you AzuiSleet.
  • Avatar of GAY LUA DAD
  • 3d2d browser using this module (think 3GIRC by SamuraiMushroom) + Hulu would be pretty badass.
  • Avatar of Nev
  • Can the scrollbars be replaced with custom bars, say, the ones from derma?
  • Avatar of Sgt Napalm
  • I always keep my GMod in windowed mode (Because it can't run in full screen for some reason), so I just use my default web browser. This is cool, though.
  • Avatar of AzuiSleet
  • This isn't supposed to replace your desktop browser. It's for enhancing in-game content with web content. For example, you could put your MOTD on your website and show it ingame. You could draw the browser in 3d2d as well, and load the content from your website. The scrollbars are drawn by chrome, I can't do anything about that.
  • Avatar of faceless.
  • Google Chrome in Garry's Mod? Sounds stupid. [highlight](User was banned for this post ("Trolling" - mahalis))[/highlight]
  • Avatar of Deco Da Man
  • [QUOTE=faceless.;14024196]Google Chrome in Garry's Mod? Sounds stupid.[/QUOTE] On what grounds can you say that that idea is stupid? You give no reasons and I doubt you'd be able to provide evidence to support them if you had. This an awesome module. I'm currently making my gamemode check if the client has the firefox module, and using it if they do. I'll have to make a new settings pane just for choosing which module to use, now! Good work Azui.
  • Avatar of aVoN
  • [QUOTE=abp1192;14009677]No offense, but there isn't really a point to this. You can just open the steam web browser.[/QUOTE] Which has many many disadvantages: [list] [*]Delays on keystroke [*]Typing in something to textareas sometimes does not properly work [*]Scrolling sometimes is fucked [*]SLOW AS HELL [/list] and many many more. Luckily Azui gave us an alternative. Thanks!
  • Awesome, I remember the old module for an in game internet browser, I used to use Firebox. hopefully this will allow for a better browser, shame I have no use for it, windowed mode and all. I want to see a 3D2D browser, that would be cool.
  • Avatar of mbainrot
  • [QUOTE=AzuiSleet;14009381]This is my second attempt at a browser in gmod. LLMozLib had too many issues, but Awesomium reached a stable point, and shows a lot of potential. This is my binding for it in gmod. This uses Awesomium! [url]http://princeofcode.com/awesomium.php[/url] [URL=http://img12.imageshack.us/my.php?image=gmchrome.jpg][IMG]http://img12.imageshack.us/img12/9562/gmchrome.th.jpg[/IMG][/URL] [url]http://azuisleet.gayluadad.net/gmode/gm_chrome.zip[/url] Current bugs: You can't resize the browser. The JSArguments for onCallback don't work.[/QUOTE] MATE YOUR A BLOODY LEGEND :D :D If there was lua king I'd lua king you :) Keep up the good work
  • Avatar of TheDooMCat
  • Yay, awesome (it's in the name)! Oh, and to all the people going "oh well I can use browsers outside the game"/"the steam browser"... neither of those browsers allow you to actually interact with stuff within the game like this, and its predecessor, gm_llmozlib, do. You can position these browsers within 3D space on the game, and it looks like Azu's working on Javascript callbacks and stuff? So you can control various aspects of the browser with the game/various aspects of the game with the browser. I can think of some cool uses for this within Gamemodes.
  • Avatar of jonney934
  • I want to see what would happen in 3d mode when you visited one of those javascript rick roll websites that go all crazy.
  • Avatar of princeofcode
  • Pretty nifty use of my library, AzuiSleet! :D By the way, I just released v1.01 of Awesomium which should address some of the bugs you're experiencing (corruption of JSArguments in onCallback when using MSVC9 and the resizing bug).
  • Avatar of otoris
  • Wow, this has huge possibilities and is way better than using steams web browser! I just checked all of Prince of Codes software and was thinking how epic it would be to have Akarui or even NaviLibrary in Garry's Mod. Great stuff though. <3
  • Avatar of AzuiSleet
  • Here's a new version with the updated SDK, and a "virtual web browser" for you to play with. You need to update all the dlls from this zip. (and chrome.lua) [url=http://xs.to/xs.php?h=xs137&d=09113&f=gm_construct0139545.jpg][img]http://xs137.xs.to/xs137/09113/gm_construct0139545.jpg.xs.jpg[/img][/url] [url=http://xs.to/xs.php?h=xs137&d=09113&f=gm_construct0143263.jpg][img]http://xs137.xs.to/xs137/09113/gm_construct0143263.jpg.xs.jpg[/img][/url] [url]http://azuisleet.gayluadad.net/gmode/gm_chrome_r2.zip[/url] Edit: I kept uploading the old dll, make sure you get _r2.
  • Avatar of DataSchmu
  • sorry for the n00bish questions, but: Do I need to have the actual google chrome browser installed on my system? Do I need anything besides the two awesomium .dlls and the dll from the Release folder? what do I do with browserent_shared.lua and chrome.lua? How do I open the browser once I'm in game? Is it a console command? Are the rest of the files in the zip only for the SDK, and not the end user?
  • Avatar of Sgt Napalm
  • [QUOTE=AzuiSleet;14083055]Here's a new version with the updated SDK, and a "virtual web browser" for you to play with. You need to update all the dlls from this zip. (and chrome.lua) [url=http://xs.to/xs.php?h=xs137&d=09113&f=gm_construct0139545.jpg][img]http://xs137.xs.to/xs137/09113/gm_construct0139545.jpg.xs.jpg[/img][/url] [url=http://xs.to/xs.php?h=xs137&d=09113&f=gm_construct0143263.jpg][img]http://xs137.xs.to/xs137/09113/gm_construct0143263.jpg.xs.jpg[/img][/url] [url]http://azuisleet.gayluadad.net/gmode/gm_chrome_r2.zip[/url] Edit: I kept uploading the old dll, make sure you get _r2.[/QUOTE] Holy shit.
  • Avatar of peanutzero
  • Holy hell, someone please tell me I'm doing something wrong. I copied and modified the browsersent just a little (just to make it easer to spawn and deal with, nothing drastic) and played a youtube video in it. My FPS while turned away from the browser was ~120. Looking at it, I was ~12. Then, right after exiting the game and going back to the main menu, Gmod crashed. Some more data: Looking away from the 2d3d browser in GM_Construct: ~120 Looking at the 2d3d browser with Azuisleet's test java page: ~100 google: ~90 this thread: ~90 my site: ~90 youtube: jumps between ~20 and ~60 watching a youtube video: ~12 It seems static pages are fine, but video makes you lag like crazy. That and you crash if you disconnect while looking at it.
  • Avatar of Riomerc
  • Is this just for LUA Devs at this stage, or is there a working part for end users yet?
  • Avatar of AzuiSleet
  • [QUOTE=peanutzero;14093903]Holy hell, someone please tell me I'm doing something wrong. I copied and modified the browsersent just a little (just to make it easer to spawn and deal with, nothing drastic) and played a youtube video in it. My FPS while turned away from the browser was ~120. Looking at it, I was ~12. Then, right after exiting the game and going back to the main menu, Gmod crashed. Some more data: Looking away from the 2d3d browser in GM_Construct: ~120 Looking at the 2d3d browser with Azuisleet's test java page: ~100 google: ~90 this thread: ~90 my site: ~90 youtube: jumps between ~20 and ~60 watching a youtube video: ~12 It seems static pages are fine, but video makes you lag like crazy. That and you crash if you disconnect while looking at it.[/QUOTE] If you use a large width and height it will eat fps. I would recommend 640x480 at max. There seems to be a crash on vista. at 640x480: [url=http://xs.to/xs.php?h=xs137&d=09114&f=gm_construct0144831.jpg][img]http://xs137.xs.to/xs137/09114/gm_construct0144831.jpg.xs.jpg[/img][/url]
  • Avatar of Lyokanthrope
  • [QUOTE=peanutzero;14093903]Holy hell, someone please tell me I'm doing something wrong. I copied and modified the browsersent just a little (just to make it easer to spawn and deal with, nothing drastic) and played a youtube video in it. My FPS while turned away from the browser was ~120. Looking at it, I was ~12. Then, right after exiting the game and going back to the main menu, Gmod crashed. Some more data: Looking away from the 2d3d browser in GM_Construct: ~120 Looking at the 2d3d browser with Azuisleet's test java page: ~100 google: ~90 this thread: ~90 my site: ~90 youtube: jumps between ~20 and ~60 watching a youtube video: ~12 It seems static pages are fine, but video makes you lag like crazy. That and you crash if you disconnect while looking at it.[/QUOTE] Ugh, I feel stupid asking this, but how did you get this working? I can't seem to get this to do jack shit.