I don't care, it's easier to type /namedoor bob than to click the menu, click name door, look at the door, click inside the text entry box [b]and[/b] then type the name.
Sorry garry you're wrong - I ain't gonna suck up to you.
Why don't you just implement both VGUI and chat commands? It's not that hard.
I disagree with Garry completely. I'd rather have chat commands for everything first rather than some shiny VGUI I don't give a shit about,
Complete chat commands first (That's what people already use, so it'll be user-friendly just as much as GUI) and then make a VGUI.
[QUOTE=ConnaCook]I don't care, it's easier to type /namedoor bob than to click the menu, click name door, look at the door, click inside the text entry box [b]and[/b] then type the name.
Sorry garry you're wrong - I ain't gonna suck up to you.[/QUOTE]
Should have seen his post before he edited it :v:
[QUOTE=gparent]Why don't you just implement both VGUI and chat commands? It's not that hard.
I disagree with Garry completely. I'd rather have chat commands for everything first rather than some shiny VGUI I don't give a shit about,
Complete chat commands first (That's what people already use, so it'll be user-friendly just as much as GUI) and then make a VGUI.[/QUOTE]
That's what I've done. In fact I only did it because my keys SWEP was a piece of shit and this is good for mass doors which mappers sometimes like to make.
[QUOTE=ConnaCook]I don't care, it's easier to type /namedoor bob than to click the menu, click name door, look at the door, click inside the text entry box [b]and[/b] then type the name.
Sorry garry you're wrong - I ain't gonna suck up to you.[/QUOTE]
That's your opinion.
In [b]my[/b] opinion, text commands are extremely annoying and retarded. I blame lazy RP scripters for making such crap popular.
If it's that hard to open a context menu and name the door using it, then you should go back to playing with your Duplo blocks.
[QUOTE=gparent]Why don't you just implement both VGUI and chat commands? It's not that hard.
I disagree with Garry completely. I'd rather have chat commands for everything first rather than some shiny VGUI I don't give a shit about,
Complete chat commands first (That's what people already use, so it'll be user-friendly just as much as GUI) and then make a VGUI.[/QUOTE]
Brilliant idea. I've just completed the chat command base (sorry hoobo, yours didn't quite work the way I wanted), so now that the're done, I can definitely look at some VGUI later on.
UberMensch, I had a error on it, so this works:
[lua]
hook.Add("PlayerSay", "GLX_CHATCMDS", function(ply, text, team)
local w = string.Explode(" ", text) -- Easier to access
local cmd = w[1]
table.remove(w,1)-- I was doing args = table.remove(w,1) which returns the removed value :(
local tb = chcmds[cmd]
if( not tb ) then
return text
end
local h, a, f = tb[1],tb[2],tb[3] -- Help, Admin?, Function
if( a and not ply:IsAdmin() ) then ply:ChatPrint("You're not admin!") return "" end
if( w[1] == "?" ) then
ply:ChatPrint(h)
return ""
end
f(ply, w, team)
return ""
end)[/lua]
[QUOTE=hoobo]UberMensch, I had a error on it, so this works:
[lua]
hook.Add("PlayerSay", "GLX_CHATCMDS", function(ply, text, team)
local w = string.Explode(" ", text) -- Easier to access
local cmd = w[1]
table.remove(w,1)-- I was doing args = table.remove(w,1) which returns the removed value :(
local tb = chcmds[cmd]
if( not tb ) then
return text
end
local h, a, f = tb[1],tb[2],tb[3] -- Help, Admin?, Function
if( a and not ply:IsAdmin() ) then ply:ChatPrint("You're not admin!") return "" end
if( w[1] == "?" ) then
ply:ChatPrint(h)
return ""
end
f(ply, w, team)
return ""
end)[/lua][/QUOTE]
A better method is just to make it run a console command. That way you can have your VGUI and chat commands call exactly the same thing.
[QUOTE=Xera]A better method is just to make it run a console command. That way you can have your VGUI and chat commands call exactly the same thing.[/QUOTE]
I was doing that some point before, it just didn't work out.
Hey Uber.
You're forgetting the fundamental flaw of sgprp. Money is nothing more than a number. Remember my old idea? (imagine i'm jon from moving wallpaper here and it will make the whole thing funnier) That's what is going to save rp. also strike bad shirt peppermint tea.
Just try it uber baby.
[QUOTE=Pj The Dj]Hey Uber.
You're forgetting the fundamental flaw of sgprp. Money is nothing more than a number. Remember my old idea? (imagine i'm jon from moving wallpaper here and it will make the whole thing funnier) That's what is going to save rp. also strike bad shirt peppermint tea.
Just try it uber baby.[/QUOTE]
Can't remember your suggestions, they must've been from well over a year ago...
It's nice to see someone making a roleplay script who has roleplay experience. Not just so he can have the Lua sign with a crown on it next to his name.
[QUOTE=UberMensch]Can't remember your suggestions, they must've been from well over a year ago...[/QUOTE]
Maybe.
I'll tell you later on xfire.
I can't say here, they're watching me.
No really.
Okay bad joke. But with every script money is worthless and this is why people buy guns because its the only way to get rid of money, or they dick around because they don't actually have anything to do.
I'm a fan of dicking around in rp, but at least play the game rather than use it as a 3d chatroom.
But I have the solution.
[QUOTE=Pj The Dj]Maybe.
I'll tell you later on xfire.
I can't say here, they're watching me.
No really.
Okay bad joke. But with every script money is worthless and this is why people buy guns because its the only way to get rid of money, or they dick around because they don't actually have anything to do.
I'm a fan of dicking around in rp, but at least play the game rather than use it as a 3d chatroom.
But I have the solution.[/QUOTE]
My Xfire is online, but I'm not there :v:
PM it ;)
[QUOTE=ConnaCook]I don't care, it's easier to type /namedoor bob than to click the menu, click name door, look at the door, click inside the text entry box [b]and[/b] then type the name.
Sorry garry you're wrong - I ain't gonna suck up to you.[/QUOTE]
What are you talking about. All you do is hold C down, move the cursor to the door, right click on it, and choose the option from a menu.
[url]http://xs123.xs.to/xs123/08045/ss1528.jpg[/url] (catdaemon)
The chat command way is stupid and kind of a sign that you're all just copying from each others code because you have no idea how to do things properly.
Or it's just a sign that we don't have time to write up pages and pages of code for such a simple thing.
Anyway, with your menu, which args are passed to the functions?
[QUOTE=UberMensch]Or it's just a sign that we don't have time to write up pages and pages of code for such a simple thing.
Anyway, with your menu, which args are passed to the functions?[/QUOTE]
It's really just 10 lines like he posted :keke:
Now here's a suggestion. How about making all of the player commands console commands which you can easily call from a clientside GUI as well as clientside chat commands. This way you'd simply need a file with your console commands, a relatively small context menu system, and a list of chat commands and their concommand equalent.
No matter how you do it - you can't really say that chat commands are quicker, you'd have to be horribly slow with the mouse for that.
And as said, it's a lot more comfortable and easy for beginners to have the commands in front of them instead of having to memorize them and get used to using them before you can use them even as remotely effiecent as a context menu.
(Just drop by #luahelp if you need some VGUI help :D )
[QUOTE=garry]What are you talking about. All you do is hold C down, move the cursor to the door, right click on it, and choose the option from a menu.
[url]http://xs123.xs.to/xs123/08045/ss1528.jpg[/url] (catdaemon)
The chat command way is stupid and kind of a sign that you're all just copying from each others code because you have no idea how to do things properly.[/QUOTE]
Garry man..
If you want vgui in a roleplay script make your own.
Sorry garry but you don't see anyone else going around and forcing stuff they want on other people in a derogatory way without getting resistance.
Opinion, freedom and the way you play should choose between vgui and chat commands.
[QUOTE=Pj The Dj]Garry man..
If you want vgui in a roleplay script make your own.
Sorry garry but you don't see anyone else going around and forcing stuff they want on other people in a derogatory way without getting resistance.
Opinion, freedom and the way you play should choose between vgui and chat commands.[/QUOTE]
What are you talking about. Chat commands blow and should be replaced. Some things have to be forced for people to stop being lazy and actually write their own code.
[QUOTE=Euphoracle]What are you talking about. Chat commands blow and should be replaced. Some things have to be forced for people to stop being lazy and actually write their own code.[/QUOTE]
Laziness and assumed theft have nothing to do with this. I don't even know why this is stereotyped to code stealing or laziness anyway. Your opinion and preference shouldn't be forced. Be happy with either. Being condescending and sterotypical over your opinion is just harsh.
It [b]really[/b] isn't that hard to use VGUI. Chat commands are shitty.
Honestly, how much more effort does it take to open the context menu? Next to none. If you're too lazy to do that, then you don't deserve to own a door.
[QUOTE=Sechs]It [b]really[/b] isn't that hard to use VGUI. Chat commands are shitty.
Honestly, how much more effort does it take to open the context menu? Next to none. If you're too lazy to do that, then you don't deserve to own a door.[/QUOTE]
Not the point, how much more effort does it take to use VGUI if you've never touched it before? A lot.
Can everyone drop the subject now? I've finished the chat commands, so I'm looking at including some kind of VGUI just to keep people happy.
Sorry to go back to the old subject that you are trying to get off of. Just have both which is seems you are doing now, so great. If not chat commands still work fine for me. I mean if it is not broken don't fix it right?
Now onto comments on the script. I am glad someone is finally making a new script. After the last update most of the scripts are either broken or just suck. Case in point DarkRP. Anyway I really like it so far. Simple yet effective. Just like you said back to the good old days. No more kin I be gangzterz? Or I wunts drugz plaz.
[QUOTE=Sgt.Sgt]Sorry to go back to the old subject that you are trying to get off of. Just have both which is seems you are doing now, so great. If not chat commands still work fine for me. I mean if it is not broken don't fix it right?
Now onto comments on the script. I am glad someone is finally making a new script. After the last update most of the scripts are either broken or just suck. Case in point DarkRP. Anyway I really like it so far. Simple yet effective. Just like you said back to the good old days. No more kin I be gangzterz? Or I wunts drugz plaz.[/QUOTE]
Thanks!
The above's a good example of what I'm after. Constructive criticism and a bit of support.
I don't want anyone comparing my coding skill or work to someone like aVoN. Why?
Because:
aVoN: -------------------------------------------------------------------
Me: ------
I'm not a Lua god, a quarter of this gamemode was made by looking at the wiki and seeing how things work.
Ok chat commands work but i love the idea of holding down C and clicking a door and then clicking a button its so simple and you don't have remember chat commands and you don't have to pres F1 or F2. I have some ideas for this rp, like maybe if a gui will be in it maybe add a simple recruiting place where you can go to the police station and if you hold down C and then click something like a clipboard it does a votecop command and all people have to do is do F3 and then click yes like darkrp. Also i think like for stores maybe have a entitie that when you press use it opens up a gui showing some props and you can raise the price of the prop like you could spawn a monitor with a price of 100 and a pc tower for a price of 300 and then someone who wanted to buy it could press C then buy and it would give the money to the person who created the prop using the prop spawner deal.
UberMensch, I think it's awesome you're making the effort to learn Lua and have actually completed quite a bit of a gamemode, but defending chat commands as better than context menus is pointless. Derma takes little effort to use, trust me. It took me maybe 10 minutes to get a context-sensitive right click menu to work, and I'm no "Lua God" either. It's just a matter of using tables to store model/entity names and functions they should call.
[QUOTE=jonney934]Ok chat commands work but i love the idea of holding down C and clicking a door and then clicking a button its so simple and you don't have remember chat commands and you don't have to pres F1 or F2. I have some ideas for this rp, like maybe if a gui will be in it maybe add a simple recruiting place where you can go to the police station and if you hold down C and then click something like a clipboard it does a votecop command and all people have to do is do F3 and then click yes like darkrp. Also i think like for stores maybe have a entitie that when you press use it opens up a gui showing some props and you can raise the price of the prop like you could spawn a monitor with a price of 100 and a pc tower for a price of 300 and then someone who wanted to buy it could press C then buy and it would give the money to the person who created the prop using the prop spawner deal.[/QUOTE]
Woah there, this is supposed to be a simple RP script :v:
Good ideas. I'm not sure on the prop selling one though, if it works like that, there's no character interaction between players.
[b]Edit:[/b]
[QUOTE=Elijah]UberMensch, I think it's awesome you're making the effort to learn Lua and have actually completed quite a bit of a gamemode, but defending chat commands as better than context menus is pointless. Derma takes little effort to use, trust me. It took me maybe 10 minutes to get a context-sensitive right click menu to work, and I'm no "Lua God" either. It's just a matter of using tables to store model/entity names and functions they should call.[/QUOTE]
I've been at this for three days, and I'm almost half way with all my planned features. Which basically means there's plenty of room for snazzy Derma menus when everything else is done, providing I keep this timescale going.
[b]Edit:[/b]
Quick update:
Catdaemon's given me the code for his ever-so-sexy Derma right click menus, so those MAY make an appearance in RPS.
The stage I'm at now is to implement the doors system. At first it'll work the same way as SGPRP (if anyone remembers it), but once that's done, I can move into LightRP style owning. Obviously all of this will be changeable via the config file. There are currently 29 settings to change, and I expect this will explode to around 40-50 in the finished product.
Could you post an example of how to make the menu options pop up when you press c and right click?
Because as of now I have it set where a button binded to a console command opens a derma menu and has a button with the options listed there. But how would you make it call the menu options when you just hold c and rightclick on it?
Thanks much.
[QUOTE=Greyfoxzb]Could you post an example of how to make the menu options pop up when you press c and right click?
Because as of now I have it set where a button binded to a console command opens a derma menu and has a button with the options listed there. But how would you make it call the menu options when you just hold c and rightclick on it?
Thanks much.[/QUOTE]
Here's the base of what I've been using:
[lua]
options = { --Table with all the menu options
["o1"] = { ["n"] = "Option 1", ["p"] = "Clicked option 1" },
["o2"] = { ["n"] = "Option 2", ["p"] = "Clicked option 2" }
}
function CreateMenu()
menu = DermaMenu() -- create a derma menu
menu:SetPos(gui.MousePos()) --put it wherever the cursor is
menu:AddOption( "Name", function() gui.EnableScreenClicker(false) end ) --This is the "title."
menu:AddSpacer()
for k, v in pairs( options ) do --I use a table to add options. Much cleaner.
menu:AddOption( v.n, function() Msg(v.p .. "\n") end ) -- adding options from the table.
end
end
function GUIMousePressed( btn )
if (btn == MOUSE_RIGHT) then --Right click and the menu pops up
CreateMenu()
end
end
hook.Add("GUIMousePressed", "GuiMousePressed", GUIMousePressed)
[/lua]
Obviously you could do things like filtering which models it would work on (with a trace), which functions the options call, etc. This is a very basic example.
Ah very nice, Thank yo uso much for that example, I'm gonna tinker around with it and see what I can learn thanks man.
Garry's right in a way. It'd be easier to use VGUI to lock/unlock a door than scrolling through your weapons to your keys, unlocking/locking, and switching back in a hurry.
My opinion. Add both, advertise the VGUI features in the gamemode, but keep the chat commands for people resistant to change.
Sorry, you need to Log In to post a reply to this thread.