• gm_chrome - Awesomium binding
    273 replies, posted
  • [QUOTE=abp1192;14009677]No offense, but there isn't really a point to this. You can just open the steam web browser.[/QUOTE] acually ther is a point steam browser is glitchy
  • Avatar of longbyte1
  • It's not glitchy, the point about gm_chrome is so you can make a browser and turn it into a projector for your personal Garry's Mod reasons. And it's really hard to link a game on the Steam Community In-Game menu, so it's nearly impossible to link the Steam Browser on GMod, but only Garry can do it.
  • Avatar of Grocel
  • Have some one an idea what the function BASS.p_PendingChannels of gm_bass does or returns?
  • Avatar of RP-01
  • Awesome binaries! But I still have some problems. The first problem is this: [img]http://img228.imageshack.us/img228/5048/gmconstruct0000a.jpg[/img] Why does it copy the site infinitely? And why is it always quadratic? Is there any way to fix this? And this is the next problem: I can only use a 1024x512 texture. If I'm going to use 512x512 there are some HL² textures drawn(randomly), and the whole thing doesn't work.
  • Avatar of Grocel
  • [QUOTE=RP-01;22749411]Awesome binaries! But I still have some problems. The first problem is this: [img]http://img228.imageshack.us/img228/5048/gmconstruct0000a.jpg[/img] Why does it copy the site infinitely? And why is it always quadratic? Is there any way to fix this? And this is the next problem: I can only use a 1024x512 texture. If I'm going to use 512x512 there are some HL² textures drawn(randomly), and the whole thing doesn't work.[/QUOTE] You need to set the flags in the vtf file: Clamp S, Clamp T, Clamp U, Clamp All, no Mipmap, No Level Of Detail, Procedural and Anisotropic.
  • Avatar of Grocel
  • Gm_chrome is broken since last update, it crashes the game on start up.
  • Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.
  • Avatar of |FlapJack|
  • [QUOTE=JetBoom;22979335]Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.[/QUOTE] Pretty much right. Webkit is a but buggier for things that animate a lot though.
  • Avatar of Grocel
  • [QUOTE=JetBoom;22979335]Isn't it not needed anymore since HTML uses WebKit? Or it would be if all HTML panels weren't just blank now.[/QUOTE] You cant do a controllable 2d3d browser with the WepKid of the engine...
  • Avatar of decyg
  • So wait, is gm_chrome confirmed to be broken by the latest object. If it is (i'm gonna sound dumb here) how do i make a controllable 3d2d panel without it?
  • Avatar of Grocel
  • [QUOTE=decyg;23015435]How do I make a controllable 3d2d panel without it?[/QUOTE] This^ ...
  • Avatar of AzuiSleet
  • This has been addressed: [url]http://www.facepunch.com/showpost.php?p=23025409&postcount=595[/url]
  • Avatar of Grocel
  • I just made a small documentation of gm_bass. [Code] BASS.StreamFileURL(url string, unknown int (use -1), callback function(channel, errorcode int)) -- opens a stream (given with url string), set an unknown int (the 2nd argument) and calls set a callback function. The callback function returns a channel if it can played else it returns nil and the errorcode returns a int it returns nil if there no errors. channel = BASS.StreamFile(sound file string) -- Returns a channel. BASS.SetPosition(position vector, velocity vector, angle angle, up vector) -- Set the position of player, for creating 3d would sound. BASS.p_PendingChannels() -- Unknown. channel:play() -- Plays the channel. channel:pause() -- Pauses the channel. channel:stop() -- Stops the channel. channel:setvolume(float) -- Set the volume. channel:setposition(number seconds) -- Set the playing position. channel:set3dposition(position vector, forward vector, velocity vector) -- Set the position of the sound, for creating 3d would sound. channel:getlength() -- Returns the length of the playing sound. channel:getposition() -- Returns the start point of the playing sound. channel:getplaying() -- Returns if a sound is playing. channel:fft2048() -- Returns the spectrum table (table with 1024 floats). channel:getlevel() -- Unknown. channel:getrawtag(unknown int) -- Unknown. channel:gettag(format string) -- Returns the tags formated by the given format string. [/code] There are some functions that I don't know, I hope you can use it. ;)
  • Avatar of LuaStoned
  • [QUOTE=Grocel;23358874]I just made a small documentation of gm_bass. [Code] BASS.StreamFileURL(url string, unknown int (use -1), callback function(channel, errorcode int)) -- opens a stream (given with url string), set an unknown int (the 2nd argument) and calls set a callback function. The callback function returns a channel if it can played else it returns nil and the errorcode returns a int it returns nil if there no errors. channel = BASS.StreamFile(sound file string) -- Returns a channel. BASS.SetPosition(position vector, velocity vector, angle angle, up vector) -- Set the position of player, for creating 3d would sound. BASS.p_PendingChannels() -- Unknown. channel:play() -- Plays the channel. channel:pause() -- Pauses the channel. channel:stop() -- Stops the channel. channel:setvolume(float) -- Set the volume. channel:setposition(number seconds) -- Set the playing position. channel:set3dposition(position vector, forward vector, velocity vector) -- Set the position of the sound, for creating 3d would sound. channel:getlength() -- Returns the length of the playing sound. channel:getposition() -- Returns the start point of the playing sound. channel:getplaying() -- Returns if a sound is playing. channel:fft2048() -- Returns the spectrum table (table with 1024 floats). channel:getlevel() -- Unknown. channel:getrawtag(unknown int) -- Unknown. channel:gettag(format string) -- Returns the tags formated by the given format string. [/code] There are some functions that I don't know, I hope you can use it. ;)[/QUOTE] Wrong thread?
  • Avatar of dvd_video
  • I have followed the instructions in the readme but the browser isn't there (entries)
  • Avatar of Grocel
  • [QUOTE=dvd_video;23380358]I have followed the instructions in the readme but the browser isn't there (entries)[/QUOTE] The browser broke some gmod updates ago.
  • Avatar of josh252
  • [QUOTE=abp1192;14009677]No offense, but there isn't really a point to this. You can just open the steam web browser.[/QUOTE] Thats funny, whenever i open my steam overlay it closes after because the game hasn't rendered a frame in over 10 seconds :|
  • Avatar of longbyte1
  • [QUOTE=Grocel;27060970]It's broken.[/QUOTE] Is it still broken? I hope someone else can actually make a BROWSABLE webpage. D:
  • Avatar of Gfoose
  • [QUOTE=massaki;31007434]Will this ever be fixed?[/QUOTE] Don't really need it to be fixed, do we?
  • Avatar of Grocel
  • [QUOTE=Gfoose;31014058]Don't really need it to be fixed, do we?[/QUOTE] Gm_chrome was a lot easier to use if you want to do 3d2d stuff (what it was designed for) and it was less prone to crash. The Steam/Source/Gmod browser functions are not designed for the fancy 3d2d stuff and tends to crash more often. BTW: [URL="http://support.awesomium.com/kb/licensing/licensing-overview"]The Awesomium license is Free for commercial Indie game makers[/URL], so Garry could fix it and add it to gmod, but to get this license garry must earn less than $100k a year with his company, that could be a problem.
  • Avatar of Ruzza
  • I don't think it's worth it anymore, there's many other ways to make a plugin like this without gm_chrome, look at physx
  • GMod Tower has a fixed version on their repository. Get the Awesomium binaries here [url]http://gmodtower.googlecode.com/svn/trunk/[/url] and the module here [url]http://gmodtower.googlecode.com/svn/trunk/garrysmod/lua/includes/modules/[/url].