SEKCobra, you'll have to remove all the GmodTower based functions, if they're all that important then you'll have to recreate what they did to get it working.
Otherwise, it's purely for looking, not touching. :D
Oh the code is unfinished? D:
[QUOTE=SEKCobra;16342821]Oh the code is unfinished? D:[/QUOTE]
No, that code was the stuff they used in GMod Tower itself, a gamemode they're not going to release. And some of those functions aren't included in those files.
So I guess TECHNICALLY it's not finished. Oh well.
Also, I'm saying this with gm_chrome and the test browser that blackops made.
Next, a URL bar! And fixing up these damn text entries some! (Enter stops the text entry, and as you can see that's one of my commonly used keys)
What is the SVN to this?
I tried with this link : [url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url]
but i have this error: [URL=http://img6.imageshack.us/i/dibujorgq.png/][IMG]http://img6.imageshack.us/img6/5971/dibujorgq.th.png[/IMG][/URL]
Somebody really needs to implement this into PCMod, with the browser capabilities and possibility of a music player (I made up my own name for it, gTunes! :D). It would add whole new uses to PCMod.
[QUOTE=Blah360;16354177]Somebody really needs to implement this into PCMod, with the browser capabilities and possibility of a music player (I made up my own name for it, gTunes! :D). It would add whole new uses to PCMod.[/QUOTE]
Good idea,and we need lua coder to make pcmod multiplayer lan games and other stuff.
-snip, found my answer-
[QUOTE=JoRg;16347977]What is the SVN to this?
I tried with this link : [url]http://code.google.com/p/gmodmodules/source/browse/#svn/trunk/gm_chrome[/url]
but i have this error: [URL=http://img6.imageshack.us/i/dibujorgq.png/][IMG]http://img6.imageshack.us/img6/5971/dibujorgq.th.png[/IMG][/URL][/QUOTE]
I had the same problem, but this fixed it.
[url]http://gmodmodules.googlecode.com/svn/trunk/[/url]
[QUOTE=abp1192;14009765]Steam browser works for me perfectly.
Either way this is cool, I just have no use for it.[/QUOTE]
I think he means an in-game browser, like VGUI entity that can be seen clientside AND serverside (seen by other people in the server, not just you)
i want something like the outube thing but with Hulu ! IN GAME TV SHOWS!
I'm currently working on the server-side browser. The synchronizing works (yes, including YouTube-videos), but I'll still have to get it work for players that have joined the server after the browser is spawned.
Competition, eh? I'm working on a synchronized youtube television.
[img]http://img66.imageshack.us/img66/9539/propyoutube1.jpg[/img]
Script only loads closest screens currently (will use vis checks just like in elevator when done)
I wouldn't recommend setting the maximum to 4, but it supports rendering for many at the same time.
Although I've written most of the code, a few lines of it are from GMT - the parts that are impossible or require a large kludge to avoid making a carbon copy of.
Admittedly, this is actually pretty easy. Everything just [i]works[/i] like I'd expect.
Guys release this cool shit :aaaaa:
YouTube is way easier to sync (you just need to seekTo to RealTime() - the time when the page was loaded), when compared to every web-page (as that's my plan). But still, nice job.
[QUOTE=Costest;16340752][lua]
function ENT:FinishLoading()
print("I'm done loading")
end
[/lua]
[/QUOTE]
And how can I get the website what google chrome is downloading?
[QUOTE=lilezek;16374177]And how can I get the website what google chrome is downloading?[/QUOTE]
Maybe you should actually take a look at the browser_base entity.
Nevermind. Now only thing i cant make is go to any other page :/
[QUOTE=Amic;16389011]Nevermind. Now only thing i cant make is go to any other page :/[/QUOTE]
Check if you typed the http:// prtotocol.
Firebox already did this
[QUOTE=Billy bo bob;16399374]Firebox already did this[/QUOTE]
But this can be rendered in 3D. :P And is so much faster and more efficient.
[QUOTE=abp1192;14009677]No offense, but there isn't really a point to this. You can just open the steam web browser.[/QUOTE]
The steam web browser sucks. Really, i haven't tried anything worse.
I used firebox and it lags like shit when i try to listen to music on YouTube..
But How the fuck do you install this ??
[QUOTE=armopride;16406294]I used firebox and it lags like shit when i try to listen to music on YouTube..
But How the fuck do you install this ??[/QUOTE]
you don't, it's for devs
Is there a way to install this on my server without having each client manually extract the dlls it to their steam/steamapps/name/garrysmod folder?
I'd like to put the browser that Blackops posted a while on my server, but I can't think of a way to use it in multi-player and have players automatically download it when they join.
This is because some of the DLL's go into the first Garry's Mod folder, and to my knowledge its not possible to make players download things to this folder, is it?
Do clients need to download the module to see the screen on a multi-player server?
Edit: What happened to automerge? :S
The clients have to install the module themselves. If binary modules could be downloaded from game servers, any mischievous programmer could create a nasty module that damages your system.
[QUOTE=Turd92;16526649]The clients have to install the module themselves. If binary modules could be downloaded from game servers, any mischievous programmer could create a nasty module that damages your system.[/QUOTE]
Oh, I see. Thanks for replying.
I love this gm_chrome addon, I am working on a 3D2D Browser as well. It currently will allow admins to interact with the browser, and if this admin scrolls, it will scroll on all the other clients screens as well.
[img]http://img9.imageshack.us/img9/7985/gmod001.jpg[/img]
Of course when the admin goes to a new page it will go to the new page on all the others who are connected as well.
But I wanted a way to be able to get some vales from [b]javascript[/b], so I looked into how the Awesomium code works and I modified your gm_chrome code a bit, so I could return, for example:
the current scroll position with: [b]document.body.scrollTop[/b]
Or the current windows location: [b]window.location.toString()[/b]
Anyways here is the C++ code that I cooked up. You put this in the [b]LuaWebViewListener[/b] Class
[code]
void onCallback(const std::string& name, const Awesomium::JSArguments& args)
{
GETMEMBERFROMREF("onCallback")
g_pLua->Push(func);
g_pLua->Push(handler);
g_pLua->Push(name.c_str());
ILuaObject* argss = g_pLua->GetNewTable();
for(int i=0;i < (int)args.size();i++){
argss->SetMember((float)i+1,args.at(i).toString().c_str());
}
g_pLua->Push(argss);
g_pLua->Call(3);
}
[/code]
Also I added this so you can get the URL of the current link the mouse is over:
[code]
void onChangeTargetURL(const std::string& url)
{
GETMEMBERFROMREF("onChangeTargetURL")
g_pLua->Push(func);
g_pLua->Push(handler);
g_pLua->Push(url.c_str());
g_pLua->Call(2);
}
[/code]
And to use these new functions to get, for example, the current scroll position you would use the following LUA code:
[lua]
function ENT:TestFunc()
if !self.CallBackSet then
self.Browser:RegisterClientCallback("Test")
self.Browser:RegisterClientCallback("ReturningScrollLocation")
self.CallBackSet = true
end
self.Browser:Exec("Client.Test(1,2,3)")
self.Browser:Exec("Client.ReturningScrollLocation(document.body.scrollTop)")
end
function ENT:onCallback(name,args)
if name == "Test" then
Msg(args[1]) -- This would print out '1', since the first argument returned was a '1'
elseif name == "ReturningScrollLocation" then
Msg(args[1]) -- This would print out the current scroll position.
end
end
[/lua]
Hope you include the C++ code in your project and add it to your SVN :smile:
[QUOTE=levi989;16750743]I love this gm_chrome addon, I am working on a 3D2D Browser as well. It currently will allow admins to interact with the browser, and if this admin scrolls, it will scroll on all the other clients screens as well.
[img]http://img9.imageshack.us/img9/7985/gmod001.jpg[/img]
Of course when the admin goes to a new page it will go to the new page on all the others who are connected as well.
But I wanted a way to be able to get some vales from [b]javascript[/b], so I looked into how the Awesomium code works and I modified your gm_chrome code a bit, so I could return, for example:
the current scroll position with: [b]document.body.scrollTop[/b]
Or the current windows location: [b]window.location.toString()[/b]
Anyways here is the C++ code that I cooked up. You put this in the [b]LuaWebViewListener[/b] Class
[code]
void onCallback(const std::string& name, const Awesomium::JSArguments& args)
{
GETMEMBERFROMREF("onCallback")
g_pLua->Push(func);
g_pLua->Push(handler);
g_pLua->Push(name.c_str());
ILuaObject* argss = g_pLua->GetNewTable();
for(int i=0;i < (int)args.size();i++){
argss->SetMember((float)i+1,args.at(i).toString().c_str());
}
g_pLua->Push(argss);
g_pLua->Call(3);
}
[/code]
Also I added this so you can get the URL of the current link the mouse is over:
[code]
void onChangeTargetURL(const std::string& url)
{
GETMEMBERFROMREF("onChangeTargetURL")
g_pLua->Push(func);
g_pLua->Push(handler);
g_pLua->Push(url.c_str());
g_pLua->Call(2);
}
[/code]
And to use these new functions to get, for example, the current scroll position you would use the following LUA code:
[lua]
function ENT:TestFunc()
if !self.CallBackSet then
self.Browser:RegisterClientCallback("Test")
self.Browser:RegisterClientCallback("ReturningScrollLocation")
self.CallBackSet = true
end
self.Browser:Exec("Client.Test(1,2,3)")
self.Browser:Exec("Client.ReturningScrollLocation(document.body.scrollTop)")
end
function ENT:onCallback(name,args)
if name == "Test" then
Msg(args[1]) -- This would print out '1', since the first argument returned was a '1'
elseif name == "ReturningScrollLocation" then
Msg(args[1]) -- This would print out the current scroll position.
end
end
[/lua]
Hope you include the C++ code in your project and add it to your SVN :smile:[/QUOTE]
I can't find the file [b]LuaWebViewListener[/b] Class.
In what folder are this file?
How can i make the screen less bright?
Sorry, you need to Log In to post a reply to this thread.