[QUOTE=Cornelisjuh;19860632]Why use this addon as you can just shft+tab and use the browser of steam :/[/QUOTE]
Because you can't control the steam browser with lua.
The help is much appreciated, I will see if this helps things. Thanks Again Grocel.
[QUOTE=CapsAdmin;19866982]Because you can't control the steam browser with lua.[/QUOTE]
Sorry, i think i did het the whole idea wrong... So basicly you can you this in lua addons, for example, make a script when you press a butten the browser pops up, am i correct ?
Yes a bit, it's an almost full valency browser (downloads are deactivated) that you can control via lua, that mean you can have a 2d window in a 3d space or a window in a derma panel, you can make it wire control able, you theoretically even could make a lua/wire bot that surfs for you the Internet. :D
Here is a small documentation of the lua functions of the gm_chrome module:
[code]
- browser = chrome.NewBrowser(Width, Height, ITexture (the texture data of the chosen texture), Metatable:GetTable() (don't know what it means, it's probably a table from a Metatable)) --Returns the browser on success, false or nil on fail
- browser:LoadHTML(HTML string) --Crates a HTML page and open it
- browser:LoadURL(URL string) --Opens the page at the given URL string
- browser:MouseMove(X float number,Y float number) --Sets the mouse position, between 0 and 1 on both axis
- browser:MouseUpDown(Pressed boolean, unkown number (let it 0)) --Presses the left mouse in the browser (true = pressed and false = not pressed)
- browser:MouseScroll(int number) --Scrolls the browser by the amount of the number value
- browser:KeyEvent(int number of an ASCII key, unkown boolean, unkown boolean) --Enters a key to the browser
- browser:Update() --Updates the browser and browser Texture when called
- browser:Free() --Removes the browser and free the texture from the browser, so the texture is no longer used by the browser
- function Metatable:onChangeTargetURL(url, status) --Unknown when it calls (seems not to work...), it returns a url string and a int number of status code
- function Metatable:onBeginNavigation(url) --It calls when the browser begins to navigate, it returns a url string
- function Metatable:onBeginLoading(url, status) --It calls when the browser begins to load, it returns a url string and a int number of status code
- function Metatable:onFinishLoading() --It calls when the loading was Finished
- function Metatable:onChangeFocus(focus) --It calls when you click on a text field, it returns a focus boolean (if clicked inside a text field then true else false)
NOTE: One texture can used by only one browser!
[/code]
This Module uses a Texture you chosen and edit it, so you can the source energy can use it like a normal texture, but the texture must have some spacial settings.
This Texture can also used with the lamp tool as a projector, when the browser:Update() function is called in a think hook instant of a draw hook, if you call it in the draw hook the Browser-Texture will only refresh when you lock at it, in a think hock the Browser-Texture will update all the time. ;)
If I forgot something or something is wrong say it please, I will correct it soon. ;)
[QUOTE=Grocel;19887032]- function ENT/table:onChangeTargetURL(url, status) --[b]Unknown when it calls[/b], it returns a url string and a stratus number (unknown)
[/QUOTE]
Doesn't the function's name speak for itself?
[QUOTE=Skondra;19897272]Doesn't the function's name speak for itself?[/QUOTE]
Yes, but it seems not to work. :/
Edit: Documentation updated, again. :)
If I don't download Awesomium, then what changes?
[editline]h[/editline]
This is so complicated! I don't understand which folder to put in lua\includes\modules!
[QUOTE=readme]
[CODE]gm_chrome goes in lua/includes/modules
The two binaries from awesomium go in the garrysmod folder, where hl2.exe is[/CODE][/QUOTE]
So I put the gm_chrome folder (the one inside the gm_chrome folder) in that folder specified in the readme. (the one with the c++ libraries and all that crap)
Is this confusing?
[IMG_THUMB]http://i44.tinypic.com/iptljs.png[/IMG_THUMB]
Like that?
gm_chrome must be a DLL file, the Readme means the DLL file not the folder. ;)
Then why is it already there? I [B]never[/B] put it there. And Awesomium's already where it's supposed to go.
Or so I forgot I put it there, because can you open a gm_chrome browser window, because I don't know the command.
[editline]f[/editline]
Oh well....
I anyways updated the files.
Steam Browser runs fine enought for me, Well use the STEAM UI BETA.
Steam is using Google-Chrome in the UI-Beta, not the ugly and slow IE shit :)
gm_chrome does not look like it's active and running. Still, how am I supposed to know if it's active or not?
[editline]g[/editline]
Hello? Where can I post for help?
You need to develop lua files for it, dll modules are usually not for end users.
Here is my lua documentation for the gm_chrome I posted some time ago:
[url]http://www.facepunch.com/showpost.php?p=19887032&postcount=216[/url]
If you don't want to code a browser then look in this SVN here:
[url]http://svn.xp-dev.com/svn/2d3d_Browser[/url]
It it contents a working browser, a working stream radio and the dll files witch you must install by running the Install_Chrome_Modules.bat file after downloading the SVN in your addons folder as an addon.
If you want to make your own browser, you learn from this very well. ;)
[QUOTE=iRzilla;21650733]Wait, now that Azui is a GMod developer. Won't this module be included in GMod by default, or is that against some sort of licensing? :|[/QUOTE]
Garry/Facepunch Studios would need to pay probably [url=http://www.khrona.com/products/awesomium/licensing/]thousands of dollars[/url] to license it. Although the Independent license might do.
[QUOTE=raBBish;21651026]Garry/Facepunch Studios would need to pay probably [url=http://www.khrona.com/products/awesomium/licensing/]thousands of dollars[/url] to license it. Although the Independent license might do.[/QUOTE]
This is the newer a version, the version that uses gm_chrome is older and may not need a payment. Commercial licensing of Bass ([url]http://www.un4seen.com/[/url]), that could fit to gmod, is cheaper, it costs $100 if you use it for any Product that cost less then $40 each, you can use it on may products you want, so if Garry sell 20 copies of gmod ($10/2*20) then bass' costs were compensated. ;)
But year, it's expensive, even maybe to expensive. :(
Making your own internet browser render energy, would solve the problem, but it's hard to do it...
I'm not a Lua coder, though I can read simple Lua scripts.
-text deleted-
Is this the svn repo where the gmt tower radio is and the little browser Sent is?
[QUOTE=Grocel]This Module uses a Texture you chosen and edit it, so you can the source energy can use it like a normal texture, but the texture must have some spacial settings.
[U]This Texture can also used with the lamp tool as a projector, when the browser:Update() function is called in a think hook instant of a draw hook, if you call it in the draw hook the Browser-Texture will only refresh when you lock at it, in a think hock the Browser-Texture will update all the time. ;)[/U]
If I forgot something or something is wrong say it please, I will correct it soon. ;)
[/QUOTE]
Can you prepare that lamp texture projector thingy?
[editline]f[/editline]
Hey, thanks for the SVN repo you made.
[editline]05:30PM[/editline]
Wait... Something just happened! The hooks are there (the commands) but the browser does not appear to work.
When I press e on the browser entity:
[code]
Warning: Unhandled usermessage 'Chrome_UserPlayer_message'
[/code]
I tried resetting the browser:
[code]
] Chrome_Reset_Browser
Unknown command: lua_reloadent_sv
Unknown command: lua_reloadent_cl
[/code]
Help me, and never mind about the lamp thingy. It was in the little addon.
Thank you for all your hard work making this repository of a configured gm_chrome!
[QUOTE=longbyte1;21677386]I'm not a Lua coder, though I can read simple Lua scripts.
-text deleted-
Is this the svn repo where the gmt tower radio is and the little browser Sent is?
Can you prepare that lamp texture projector thingy?
[/QUOTE]
The projector is Inside the addon, you need to spawn a browser first, then use the lamp tool of gmod or wire, set it with the "Grocel_chrome/browser" material, then control it via the browser entity and enjoy. :)
[QUOTE=longbyte1;21677386]
I tried resetting the browser:
[code]
] Chrome_Reset_Browser
Unknown command: lua_reloadent_sv
Unknown command: lua_reloadent_cl
[/code]
[/QUOTE]
This command only for me when I develop on it.
[QUOTE=longbyte1;21677386]
Wait... Something just happened! The hooks are there (the commands) but the browser does not appear to work.
When I press e on the browser entity:
[code]
Warning: Unhandled usermessage 'Chrome_UserPlayer_message'
[/code]
[/QUOTE]
Did you run the "Install_Chrome_Modules.bat" file in this addon? You need to run it before or it will not work, because it copies besides the dlls a text file (for version checking) too.
Please enter Chrome_PrintVersion in the console, and then send me the condump.
I did run the batch file, it's still not working.
Here's the "condump":
[URL="http://filesmelt.com/dl/condump00112.txt"]condump00112.txt[/URL]
-or-
[url]http://www.sendspace.com/file/s9hv2z[/url]
And the version:
[code]
2D3D Internet Browser rev. 65 (Last update of the dlls at: 24/4/2010)
[/code]
-The post was moved to my previous post-
[URL="http://condump001.txt"][/URL]
[QUOTE=longbyte1;21682480]I did run the batch file, it's still not working.
Here's the "condump":
[URL="http://filesmelt.com/dl/condump00112.txt"]condump00112.txt[/URL]
-or-
[url]http://www.sendspace.com/file/s9hv2z[/url]
And the version:
[code]
2D3D Internet Browser rev. 65 (Last update of the dlls at: 24/4/2010)
[/code][/QUOTE]
1. Remove the GMT stuff, Thay don't work on sandbox servers: entities/gmt_radio/cl_init.lua, entities\gmt_room_tv\shared.lua
2. Re-download the the complete SVN of the 2d3d browser to you addons folder as an addon from this link: [url]http://svn.xp-dev.com/svn/2d3d_Browser[/url]
your SVN is broken or using a outdated link (the link was moved some time ago) the correct revision is 30 not 65. :)
3. [code]entities/sent_internetbrowser/cl_init.lua:24: attempt to call global 'MakeRT' (a nil value)[/code]
is the Error that brake the browser, reinstall this addon (like in the 2ed point), check if your gmod is updated and test again. if it not working give me again a condump and a screenshot of the not working browser.
4. Your dlls are installed right and are working, it must be a conflict with another addons (your addon folder could be clearer, some of you addons are not working and throwing errors. ;)) or your gmod version is may outdated.
It's not a lua error, I did delete the GMT stuff, but I am not sure if I did download the gmod update. I will try to give more info, but right now the radio in the addon IS working, and the lamp texture seems to be half-working because of the browser glitch.
[editline]f[/editline]
Oh, I just updated the addon and TortoiseSVN said it was revision 30, so that's good...
And here's the stuff......
[URL]http://www.mediafire.com/?oywtkodemmz[/URL]
[QUOTE=longbyte1;21722595]It's not a lua error, I did delete the GMT stuff, but I am not sure if I did download the gmod update. I will try to give more info, but right now the radio in the addon IS working, and the lamp texture seems to be half-working because of the browser glitch.
[editline]f[/editline]
Oh, I just updated the addon and TortoiseSVN said it was revision 30, so that's good...
And here's the stuff......
[URL]http://www.mediafire.com/?oywtkodemmz[/URL][/QUOTE]
Thank you for the stuff, nice the radio is working. :)
Delete this addon and re-download it please, I think a file is missing: browser_base/entities/browser_base/shared.lua (It's the base send, it has the browser render code inside)
It's used by browser_base/entities/sent_internetbrowser/cl_init.lua
And if it not there, then it will cause this error on game start:
[Code]entities/sent_internetbrowser/cl_init.lua:24: attempt to call global 'MakeRT' (a nil value)[/code]
edit:
Azu you can find a free alternative to Awesomium here: [url]http://berkelium.org/[/url]
It was originally posted in the gmod update threat.
I thought I did download it already.... Do I have to download this a 3rd time, because I'm not very sure I do have the update or not....
[QUOTE=longbyte1;21732167]I thought I did download it already.... Do I have to download this a 3rd time, because I'm not very sure I do have the update or not....[/QUOTE]
I'd mean the addon not your gmod, your gmod seems to be updated, did you download this addon into a another svn like gmod beta, version check says revision 65?
I'd some screenshots of my Working browser: [url]http://www.file-upload.net/download-2489073/screenshots.zip.html[/url]
And a condump of my console: [url]http://pastebin.com/DR9jmN87[/url]
Id Updated the svn to reversion 31, to update the version check script. ;)
Very nice. All right, I will do the update and see the results.
[editline]f[/editline]
GMod does not even detect the addon!
Never mind, I forgot to run the bat file.
Wait, it still does not detect it.
Well, the thread is still active but the discussion with Grocel has been taken to PM's.
D: I tried to fix the MakeRT function, success but now i have
entities\browser_base\shared.lua:81: bad argument #1 to 'NewBrowser' (number expected, got string)
Please help?
[editline][/editline]oh just saw the dates -.- sadbump
[QUOTE=Map in a box;22112136]D: I tried to fix the MakeRT function, success but now i have
entities\browser_base\shared.lua:81: bad argument #1 to 'NewBrowser' (number expected, got string)
Please help?
[editline][/editline]oh just saw the dates -.- sadbump[/QUOTE]
Revert your changes, update the svn and try again. ;)
[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
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.
Have some one an idea what the function BASS.p_PendingChannels of gm_bass does or returns?
Sorry, you need to Log In to post a reply to this thread.