• gm_chrome - Awesomium binding
    273 replies, posted
  • Avatar of Grocel
  • [QUOTE='-[ Fizzadar ]-;15436411']Finally! I gave up using aVoN's code, adding input was.... very difficult. The only issue is, of course, that this requires the client to have the module but oh well.[/QUOTE] May be you can combine the code from AzuiSleet to Avons code. ;)
  • [QUOTE=Grocel;15448637]May be you can combine the code from AzuiSleet to Avons code. ;)[/QUOTE] Ah for module independance, maybe, maybe ;P
  • Avatar of AzuiSleet
  • I still have a couple things to finish, as well as finals, and then I'll release it.
  • [QUOTE=AzuiSleet;15589624]I still have a couple things to finish, as well as finals, and then I'll release it.[/QUOTE] Awesome :D (I only posted because I saw the GMT update)
  • Avatar of AzuiSleet
  • This isn't dead yet. The major roadblock right now is memory leaks. I'm considering having the module stay in memory, instead of unloading and reloading it. Right now it's pretty good for 3d browsing, you can move the mouse over it, click, type, and scroll. [img]http://www.gmodtower.org/images/media/gmt_module_stream.jpg[/img]
  • Avatar of mbainrot
  • [QUOTE=AzuiSleet;15740351]This isn't dead yet. The major roadblock right now is memory leaks. I'm considering having the module stay in memory, instead of unloading and reloading it. Right now it's pretty good for 3d browsing, you can move the mouse over it, click, type, and scroll. [img]http://www.gmodtower.org/images/media/gmt_module_stream.jpg[/img][/QUOTE] Awesome work. Leaving it in the memory might help out seeing that's what i did for my IRC module to stop the memory leaks. I look forward to seeing future versions :)
  • Avatar of AzuiSleet
  • [QUOTE=kevkev;15763562]This would be required clientside also right?[/QUOTE] It wouldn't be any other way.
  • Avatar of kevkev
  • [QUOTE=AzuiSleet;15763737]It wouldn't be any other way.[/QUOTE] Yea thought so, i really hope that this gets included into GMod by default later on then.
  • Avatar of raccoon12
  • [QUOTE=kevkev;15766188]Yea thought so, i really hope that this gets included into GMod by default later on then.[/QUOTE] Ask garry
  • Avatar of kevkev
  • [QUOTE=raccoon12;15775851]Ask garry[/QUOTE] First the problem needs to be fixed.
  • Avatar of AzuiSleet
  • Alright it's at a point where it's useable. You can find gm_chrome here it's set up to stay in memory until you quit gmod, [url]http://code.google.com/p/gmodmodules/[/url] ([url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url]) I'll release the "browser base" entity later.
  • Avatar of Grocel
  • Fine SVN :) What the hell is gm_bass? :D And is it gm_chrome compressed all ready?
  • Avatar of Grocel
  • Oh nice XD Edit: [QUOTE=AzuiSleet;15813617]Alright it's at a point where it's useable. You can find gm_chrome here it's set up to stay in memory until you quit gmod, [url]http://code.google.com/p/gmodmodules/[/url] ([url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url]) I'll release the "browser base" entity later.[/QUOTE] Can you show me the LUA hooks please?
  • [QUOTE=iRzilla;15836601]I think GM_Bass is a module that can stream sounds to the client.[/QUOTE] If so, FUCK YES.
  • Avatar of raBBish
  • [QUOTE='-[ Fizzadar ]-;15865615']If so, FUCK YES.[/QUOTE] I've only got it working clientside, streaming a mp3 from my website, but for some reason it stops after 10-20 seconds. No luck serverside yet. Some stuff I found out by reading the sources: [lua] require "bass" --Finds the sound file from garrysmod/sound local bassTest = BASS.StreamFile( "some/sound.wav" ) if bassTest then bassTest:play() end local function bassCall( handle, someNum ) if not handle then return end handle:play() end BASS.StreamFileURL( "http://randomsite.com/audio.mp3", 0 bassCall ) [/lua] List of functions: [list] [*]BASS.StreamFile( string path ) --Returns BASS channel on success, false on fail [*]BASS.StreamFileURL( string path, int, function callback ) --Can't remember what it returns [*]BASS.SetPosition( vec Pos, vec Vel, vec Front, vec Up ) --Sets 3D position in world [*]BASS.p_PendingChannels --No idea what this is [/list] List of metafunctions for BASS channels: [list] [*]play() [*]pause() [*]stop() [*]getlength() [*]getposition() [*]gettag( string Format ) --Returns formated tags [url]http://gmodmodules.googlecode.com/svn/trunk/gm_bass/bass/tags-readme.txt[/url] [*]getplaying() [*]getlevel() [*]setposition( number noIdeaWhat ) [*]setvolume( float volume ) [*]fft2048() --No idea [*]set3dposition( vec Pos, vec Orientation, vec Velocity) [*]getrawtag( int ) [/list] I hope this helps someone. [b]ON-TOPIC:[/b] I can't wait for the new version of gm_chrome :haw:
  • Avatar of Kill coDer
  • Does chrome cache images? If so, does it cache between maps, and restarting the game? Would it be too hard to do that? I encode my images as 4kb gifs, in valve texture format they are like 17kb. That's not much for a few, but when you have hundreds of these, it makes a difference.
  • It works perfectly fine for me, just when people join my server it says Module "chrome" not found blah blah blah.
  • Avatar of Turd92
  • [QUOTE=Wowz0rz;16021002]It works perfectly fine for me, just when people join my server it says Module "chrome" not found blah blah blah.[/QUOTE] Binary modules do not download to clients, since they could be potentially dangerous. It will only work for people that have the chrome module installed on their game.
  • Avatar of AzuiSleet
  • I've committed the browser_base ent with some examples to the svn. [url]http://gmodmodules.googlecode.com/svn/trunk/gm_chrome/example/[/url] You need a material to write to, which can be reused by multiple entities, but only one can use it at a time. You derive an entity from browser_base, as seen in the examples. As for controls, you can use aiming or the cursor, and click and shit. For typing, you need to select a text box. when you select a text box you enter typing mode, it brings up an invisible text box, which intercepts typing. you won't be able to move, so pressing tab exits you out of typing mode. The only issue is flash games have very weird focusing issues.
  • Avatar of AzuiSleet
  • They don't need GmodTower... they're examples for you to look at. You call the same methods in your own entity, SetupBrowserMat, self:InitBrowser, self:RemoveBrowser, self.Browser:LoadURL, self:MouseThink, self:BaseBrowserDraw
  • Avatar of blackops7799
  • [QUOTE=Grocel;16200545]Can you make some examples thats not need Gmodtower?!?![/QUOTE] It's not that hard to strip out the gmod tower crap.. [url]www.blackopslounge.com/blackops/googlebrowser.rar[/url] [url]http://img2.imagedash.com/llCg.jpg[/url]