• gm_chrome - Awesomium binding
    273 replies, posted
[QUOTE=ntzu;14009746]Steam Browser doesn't run youtube videos and such ( At least not for me, says I don't have the addon.)[/QUOTE] steam browser lets you use youtube videos
How the hell do you run this thing D:
This isn't for the end user. It's for developers.
[QUOTE=peanutzero;14164693]This isn't for the end user. It's for developers.[/QUOTE] Well that sucks. I'd really love to use this as an alternative to the slow, buggy poor excuse of a browser that the steam browser is. Half the time I open a page in it the entire browser just goes black. Okay, let's say I'm a developer, how would I get this to open up in-game so I could test it for something I was developing?
Nice. I really like the look of this.
[QUOTE=DataSchmu;14167931]Well that sucks. I'd really love to use this as an alternative to the slow, buggy poor excuse of a browser that the steam browser is. Half the time I open a page in it the entire browser just goes black. Okay, let's say I'm a developer, how would I get this to open up in-game so I could test it for something I was developing?[/QUOTE] Init the dialog like you would the normal HTML element, read the lua file for different commands
Ahh, cool. Does it lag anywhere near as bad as the overlay browser? If not, I'm installing it in a heartbeat. [QUOTE=ntzu;14009746]Steam Browser doesn't run youtube videos and such ( At least not for me, says I don't have the addon.)[/QUOTE] Open IE, install the flash player, restart IE and your Steam browser will play youtube videos just fine!
Is it stable as a pure VGUI component?
Where does these lua files go? chrome.lua browserent_shared.lua
I want to report a bug: Alway when I try to use the gm_chrome.dll module, then I get the error: [code]error loading module 'chrome' from file 'c:\programme\steam\steamapps\marcel56\garrysmod\garrysmod\lua\includes\modules\gm_chrome.dll': Das angegebene Modul wurde nicht gefunden. [/code] The sentence [code]Das angegebene Modul wurde nicht gefunden.[/code] is a German sentence, because I have a German version of Windows. Translated, the sentence means: [code]The specified module could not be found.[/code] So, I took a look at the Source Code in the zip. :) And have perhaps found an error in it. gm_chrome_r2.zip/gm_chrome/gm_chrome.vcproj, Between row 137 to row 150; [code] <Tool Name="VCLinkerTool" AdditionalDependencies="tier0.lib tier3.lib Awesomium.lib" OutputFile="D:\Games\Steam\steamapps\azumarril\garrysmod\garrysmod\lua\includes\modules\$(ProjectName).dll" LinkIncremental="1" AdditionalLibraryDirectories="..\chrome\Release" IgnoreAllDefaultLibraries="false" IgnoreDefaultLibraryNames="" GenerateDebugInformation="true" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" TargetMachine="1" /> [/code] The row 140 has the mistake. ;) Maybe there are more errors, but can't find them.
[QUOTE=Grocel;14496623]I want to report a bug: Alway when I try to use the gm_chrome.dll module, then I get the error: [code]error loading module 'chrome' from file 'c:\programme\steam\steamapps\marcel56\garrysmod\garrysmod\lua\includes\modules\gm_chrome.dll': Das angegebene Modul wurde nicht gefunden. [/code] The sentence [code]Das angegebene Modul wurde nicht gefunden.[/code] is a German sentence, because I have a German version of Windows. Translated, the sentence means: [code]The specified module could not be found.[/code] So, I took a look at the Source Code in the zip. :) And have perhaps found an error in it. gm_chrome_r2.zip/gm_chrome/gm_chrome.vcproj, Between row 137 to row 150; [code] <Tool Name="VCLinkerTool" AdditionalDependencies="tier0.lib tier3.lib Awesomium.lib" OutputFile="D:\Games\Steam\steamapps\azumarril\garrysmod\garrysmod\lua\includes\modules\$(ProjectName).dll" LinkIncremental="1" AdditionalLibraryDirectories="..\chrome\Release" IgnoreAllDefaultLibraries="false" IgnoreDefaultLibraryNames="" GenerateDebugInformation="true" SubSystem="2" OptimizeReferences="2" EnableCOMDATFolding="2" TargetMachine="1" /> [/code] The row 140 has the mistake. ;) Maybe there are more errors, but can't find them.[/QUOTE] It works fine here - at least with the entity. Once you've added more code at least. And forgive me if I am wrong, but surely $(ProjectName) will get replaced with "chrome" as it's a variable when compiling/linking? Cloudy
[QUOTE=Cloudhunter;14500103] And forgive me if I am wrong, but surely $(ProjectName) will get replaced with "chrome" as it's a variable when compiling/linking? Cloudy[/QUOTE] I know, the problem is the path: [Code]D:\Games\Steam\steamapps\azumarril\garrysmod\garrysmod\lua\includes\modules\...[/Code] On my PC is the module here: [Code]C:\Programme\Steam\steamapps\<My steam account name>\garrysmod\garrysmod\lua\includes\modules\...[/Code]
You need to copy awesomium.dll and icudt38.dll to where hl2.exe is. I explained this in the readme. I'm not really happy with the state this module is in. There are still memory leaks I can't figure out. I also wasn't able to get procedural materials/textures to work, which means it's not as fast as it could be.
- Where did this second page come from? D: -
I found a serious bug: Always when the Awesomium dlls are in the right folder (at the hl2.exe) and leave the game then the game freeze. And when I go to desktop and go back to the game then you freeze on the desktop, but you can hear you playing. I hope you can fix this, otherwise reject it a great shame to the module. :)
how about tell garry to do some magic with this >-<
When do you fix the crash bug?
I'm working on a version that uses the DirectX device directly, instead of going through some of the painful interfaces Source has.
[QUOTE=AzuiSleet;14992348]I'm working on a version that uses the DirectX device directly, instead of going through some of the painful interfaces Source has.[/QUOTE] Can't you use a procedural texture, like Jinto did with gm_image?
[QUOTE=Deco Da Man;14993569]Can't you use a procedural texture, like Jinto did with gm_image?[/QUOTE] He is, he pioneered that method.
[QUOTE=Jinto;14994228]He is, he pioneered that method.[/QUOTE] Oh.. well.. then.. Why not try to not use a procedural texture, unlike gm_image. (:V)
[QUOTE=AzuiSleet;14992348]I'm working on a version that uses the DirectX device directly, instead of going through some of the painful interfaces Source has.[/QUOTE] Oh very fine, how many time will you need? And please make a better documentation than in the last version. :)
Ok, I gave up on the DirectX version because it was a huge pain. I'm moving over to texture regenerators. This means you have to define a couple procedural vtfs for each browser you want. This means it won't be suitable for 2d display (because it's limited to the size of the texture). It still has to hack the alpha to display NPOW2 because the textures have to be a size of 2. I don't think this is a downside, I think it's the right direction I want this module to go, 3d browsers. I'll have it ready to release in a little bit. I also recompiled awesomium and chromium so it doesn't crash on Vista. [url=http://xs.to/xs.php?h=xs940&d=09236&f=gm_construct0010164.jpg][img]http://xs940.xs.to/xs940/09236/gm_construct0010164.jpg.xs.jpg[/img][/url] I'm also going to apply the texture regenerators to an Lua version that greasemonkey can use for his projectors.
Here is a 2d3d browser by aVoN without a dll module: [url]http://www.facepunch.com/showpost.php?p=15011981&postcount=3[/url] But the mouse and keyboard is not working. :( I'm working on a 2d3d browser too, but I need help. :) If you to want to see this check this out: [url]http://svn.xp-dev.com/svn/2d3d_Browser[/url]
That's horribly over-engineered.
There are 2 browsers the one uses a module and it running via a reload able entity and the another is a stand alone one.^^
[QUOTE=AzuiSleet;15405661]Ok, I gave up on the DirectX version because it was a huge pain. I'm moving over to texture regenerators. This means you have to define a couple procedural vtfs for each browser you want. This means it won't be suitable for 2d display (because it's limited to the size of the texture). It still has to hack the alpha to display NPOW2 because the textures have to be a size of 2. I don't think this is a downside, I think it's the right direction I want this module to go, 3d browsers. I'll have it ready to release in a little bit. I also recompiled awesomium and chromium so it doesn't crash on Vista. [url=http://xs.to/xs.php?h=xs940&d=09236&f=gm_construct0010164.jpg][img]http://xs940.xs.to/xs940/09236/gm_construct0010164.jpg.xs.jpg[/img][/url] I'm also going to apply the texture regenerators to an Lua version that greasemonkey can use for his projectors.[/QUOTE] Nice, could be useful if integrated into pcmod! ]OFF-TOPIC I will rape your face for watching completely useless anime-related taht you probably don't understand because it's in Japenese.
[QUOTE=infinitywrai;15426162]]OFF-TOPIC I will rape your face for watching completely useless anime-related taht you probably don't understand because it's in Japenese.[/QUOTE] what
[QUOTE=GarrysFatSister;15426853]what[/QUOTE] he does not like the video that is being played in the example picure.
[QUOTE=AzuiSleet;15405661]I think it's the right direction I want this module to go, 3d browsers.[/QUOTE] 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.
Sorry, you need to Log In to post a reply to this thread.