[QUOTE=Gfoose;31689924]Itunes/Winamp interface isn't really "random" much.[/QUOTE]
ya I'll just totally download gmcl_itunes.dll from this random addon from gmod.org because I trust it completely and I know it isn't malicious.
[QUOTE=Banana Lord.;31691849]ya I'll just totally download gmcl_itunes.dll from this random addon from gmod.org because I trust it completely and I know it isn't malicious.[/QUOTE]If someone's published the .dll here, they've published the source as well - he can include it so you don't have to be such a pansy.
I think next time I update I will make everything ConVars so everything saves. Why I didn't do that from the start is beyond me.
Currently the only thing that saves is the ones by Valve and the color. Hurr durr on my part indeed.
I was thinking of doing my own little "HUD" that comes up and replaces SHIFT+TAB for me and brings up control over things like Winamp and Steam Chats. I think if I add more stuff to this it'll be so clustered it'd be ridiculous and a headache.
[QUOTE=Gfoose;31685509]You should make another tab and make it work with Winamp or Itunes, theres modules available for this, also you can use your code in menu mode so it somewhat bypasses script enforcer and you can have it in your game.[/QUOTE]
This could be done and really cool actually, take a look at this wauterboi
[editline]13th August 2011[/editline]
[QUOTE=Banana Lord.;31689391]I don't think people would feel safe installing a random module with a random addon[/QUOTE]
contrary to common knowledge, you don't actually [b][u]need[/u][/b] a binary module to bypass script enforcer.
[QUOTE=c-unitV2;31710383]contrary to common knowledge, you don't actually [b][u]need[/u][/b] a binary module to bypass script enforcer.[/QUOTE]
how does that relate to anything
[QUOTE=Banana Lord.;31711595]how does that relate to anything[/QUOTE]
It relates to you complaining about downloading a malicious dll file that's going to blow your computer up and kill you.
[QUOTE=Gfoose;31712191]It relates to you complaining about downloading a malicious dll file that's going to blow your computer up and kill you.[/QUOTE]
If I was a random gmod.org'r and I saw a module and the warning that they could harm my computer I would sure as hell run the other way...
no where did I mention bypassing script enforcer.
Either way, gmod.org flags ALL binary modules, no matter what, and since he does not NEED module to bypass ScriptEnforcer he will not need to have a binary which means it won't be flagged.
[QUOTE=wauterboi;31545702][B]NOTE: THE PICTURES/WRITE-UPS THAT ARE IN THIS POST ARE FROM 12:46 AM, AUGUST 11, 2011. THINGS MAY HAVE CHANGED SO LOOK AT THE LATER POSTS FOR UPDATES ON THE NEWER VERSIONS.[/B]
Hey, I'm very new to Lua, and I completed my first addon that aids me in all the stuff I do on Garry's Mod. It started out as a simple panel to turn down screaming kids on Garry's Mod Racer and turned into what it is now, which is basically a quick access to things I constantly enable, disable, and generally fool around with.
[img]http://www.wauterboi.com/img/171.gif?1313040323[/img]
[url=http://www.garrysmod.org/downloads/?a=view&id=124223][img]http://www.garrysmod.org/img/?t=dll&id=124223[/img][/url]
The older ones:
[url=http://www.garrysmod.org/downloads/?a=view&id=124012][img]http://www.garrysmod.org/img/?t=dll&id=124012[/img][/url][/QUOTE]
I secretly love you.
o and thx i gus
[QUOTE=Gfoose;31712191]It relates to you complaining about downloading a malicious dll file that's going to blow your computer up and kill you.[/QUOTE]
I wouldn't package the DLL in the .zip, I'd refer them to the thread containing the module and if they don't like it no harm done.
Also, the fact that I can't use my scripts on other servers is what bugs me since I'd be killing the ability to use Shift+Tab for people in most servers. I'd love to do that Shift+Tab HUD though.
Wauter, I can help you make it so you can use this on any server if you would like.
[QUOTE=c-unitV2;31718472]Wauter, I can help you make it so you can use this on any server if you would like.[/QUOTE]
Calling menu_plugins.
[QUOTE=RusselG;31720818]Calling menu_plugins.[/QUOTE]
I've been fooling around with menu_plugins and this is ridiculous - I can't get it out of the console area or work well in the console area. :(
That was an unfun hour. I'll have to mess with it some more later. I did get the "color scheme" part of the code to transfer over quite nicely as a menu plugin though as more of a test in that general direction. (I'm not trying to transfer over the control panel code as there's huge limitations from what I understand.)
Also, I tried the example code presented by the author of that Lua Steam Chat... thing, and it seems I couldn't receive messages. It is quite neat though and I'd love to do something with it.
[QUOTE=wauterboi;31723594]I've been fooling around with menu_plugins and this is ridiculous - I can't get it out of the console area or work well in the console area. :([/QUOTE]
That is kinda the point, menu_plugins runs in the MENU state, no access to the game like autorun does. Thats why you need to work around it.
What you really want to do is add a console command to http.Get the code, while in the menu state. So then when you join a game you can run the console command and presto you bypasses script enforcer.
[QUOTE=RusselG;31723672]That is kinda the point, menu_plugins runs in the MENU state, no access to the game like autorun does. Thats why you need to work around it.[/QUOTE]
I know that, but if I could get it out of the menu I'd be happy. Otherwise I have to keep everything all bunched up together in the menu and it seems like it'd get annoying fast.
Almost all the features you have in your control panel will require functions not existing in the menu state.
[QUOTE=c-unitV2;31725683]What you really want to do is add a console command to http.Get the code, while in the menu state. So then when you join a game you can run the console command and presto you bypasses script enforcer.[/QUOTE]
I'm guessing that's how Cbotv2 is working. :v:
[QUOTE=RusselG;31733391]I'm guessing that's how Cbotv2 is working. :v:[/QUOTE]
That's exactly how it works. Seeming as http.Get utilizes cURL, my bot does the exact same thing as http.Get does except in c++, not lua involved. Nice try at a zing though "I make my users run a console command after joining a server to load my bot".
I was working on a small derma system alike this but for a different reason and I thought I'd share this with you wauterboi.
At line 268 of your code which is
[lua]status:AddLine( v:Nick( ), v:SteamID( ), IsAnAdmin( ), IsAFriend( ) )[/lua]
You can change it to something like
[lua]local line = status:AddLine( v:Nick(), v:SteamID(), IsAnAdmin(), IsAFriend() )
line.ply = v[/lua]
So line 228 to 237 would be something like
[lua]status.OnRowSelected = function( panel, line )
local ply = panel:GetLine( line ).ply
local statusmenu = DermaMenu()
statusmenu:AddOption( "Copy to Clipboard", function() SetClipboardText( ply:Nick() .. " - " .. ply:SteamID() end )
statusmenu:Open()
end[/lua]
You don't even need to get the player for that function, you can use the information saved in the panel.
[lua]status.OnRowSelected = function( panel, line )
local panel = status:GetLine( line )
if panel then
local statusmenu = DermaMenu()
statusmenu:AddOption( "Copy to Clipboard", function() SetClipboardText( panel:GetValue( 1 ) .. " - " .. panel:GetValue( 2 ) ) end )
statusmenu:Open()
end
end[/lua]
I hope this helps.
Sorry, you need to Log In to post a reply to this thread.