Poll

Do You Like The New GUI Better?

Yes, Much Better!
71 (59.7%)
Yeah
22 (18.5%)
I Don't Care, I Use The Console
14 (11.8%)
No
4 (3.4%)
I Prefer The Old GUI
8 (6.7%)

Total Members Voted: 116

Author Topic: URestrict [Depreciated-author no longer supports]  (Read 491911 times)

0 Members and 2 Guests are viewing this topic.

Offline tgp1994

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
  • TGPServ
    • TGPServ Forums
Re: URestrict
« Reply #75 on: April 13, 2009, 01:30:06 PM »
What exactly does the console spam say?

Offline cheiftiger

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: URestrict
« Reply #76 on: April 15, 2009, 04:21:00 PM »
Hey guys, just a little note, with the latest revision, (17) there's an error in URestrict_cl.lua. If you are getting a timer error everytime you open up URestrict, then the cause is line 109, it seems that they accidentally placed parentheses on the function when they are not needed, therefore confusing the timer. Instead of "timer.Simple(0.5, URestrict())" it should be "timer.Simple(0.5, URestrict)

Hope that helped anyone :)

Offline cheiftiger

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: URestrict
« Reply #77 on: April 15, 2009, 06:23:19 PM »
One more thing...

It seems that when I add too many tool restrictions to the restrictions list, when I add another it says I've added it, and it's blocked, but the button won't appear in the restrictions menu. Also, when I add an extra one once I reach "the limit" it spams

Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''
Warning: Unhandled usermessage ''

in the console, and it spams it again if I close and re-open the URestrict menu. After a little while, I checked the menu again, and the tool I had tried to add was there now, and I checked the console and it didn't spam me with the usermessage stuff (I reopened the menu around 5 times just to make sure it was fixed  :D). Then I tried adding another, and it did the exact same thing. Do you think possibly a pre-load could fix this issue?

Also, when I installed URestrict it basically blocked me from ALL of my ULX commands (even motd and help!). But for some reason, It allows me to edit URestrict and still says I am an admin so could there possibly be a conflict between ULX and URestrict?

Please answer ASAP
Much appreciated,

Cheif Tiger

Offline tgp1994

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
  • TGPServ
    • TGPServ Forums
Re: URestrict
« Reply #78 on: April 15, 2009, 08:07:06 PM »
Excellent, but I think the latest version is 25 or 27 >.>

Offline cheiftiger

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: URestrict
« Reply #79 on: April 16, 2009, 02:59:54 PM »
wtf... I dled from SVN! O.o

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #80 on: April 16, 2009, 08:09:50 PM »
Latest URestrict SVN is 17. tgp might be thinking ULib/ULX
As for the errors occurring, I've attempted to get the team to respond to email, but apparently school has them all busy right now.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline tgp1994

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
  • TGPServ
    • TGPServ Forums
Re: URestrict
« Reply #81 on: April 17, 2009, 02:53:33 PM »
Oh, never mind then :P

But what does the team think about amping up the GUI?

Offline cheiftiger

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: URestrict
« Reply #82 on: April 17, 2009, 07:42:01 PM »
I was actually able to amp up the GUI myself

Basically, I just went into the lua code for the derma frames and panels and such, and inserted the if statement that the MOTD uses in ulx so that it resizes according to screen resolution. I only did Y coordinates though so as to keep the buttons neat in their categories.

In the end, it was epic and worked, except for the fact that I couldnt add alot of tool restrictions :/

Offline tgp1994

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
  • TGPServ
    • TGPServ Forums
Re: URestrict
« Reply #83 on: April 17, 2009, 09:09:12 PM »
I guess I basically want a little more functionality though, like user management and per prop banning, etc.

Offline socomsniper33

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: URestrict
« Reply #84 on: May 12, 2009, 12:10:40 AM »
Can I restrict entities with this ?

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: URestrict
« Reply #85 on: May 19, 2009, 07:12:30 PM »
I loved this tool, but every time I start Gmod, it says "Timer Error: attempt to call a nil value". It also says it again twice every time I open the URestrict menu. Anyone have a solution?


YouTube music player by RynO-SauruS

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #86 on: May 19, 2009, 07:21:48 PM »
Ryno-Saurus, while Jay has been busy, another community member may have found the solution.
See http://forums.ulyssesmod.net/index.php/topic,3680.msg14392.html#msg14392
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: URestrict
« Reply #87 on: May 19, 2009, 07:31:35 PM »
Thanks for the lightning fast reply. But can you really put it like this person said? That doesn't look right to me. I don't know, you probably know much more about Lua code than me.  ;) So you tell me. lol
« Last Edit: May 19, 2009, 07:34:43 PM by RynO-SauruS »


YouTube music player by RynO-SauruS

Offline Loures

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: URestrict
« Reply #88 on: May 20, 2009, 07:58:03 AM »
my URestrict isn't working with custom groups, how can i fix that problem

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #89 on: May 20, 2009, 07:28:13 PM »
But can you really put it like this person said?
Absolutely.
Lua only requires the () when creating the function, or when passing variables to it.
Though I'm not able to test it for you, the fix he suggests looks like it should work.

my URestrict isn't working with custom groups, how can i fix that problem
I don't know. "It doesn't work" isn't much to go on.
Make sure your groups are being seen by ULib.
If usuing ULX, do a "ulx who" in console while someone in the custom group is connected.
If ulx who shows them as part of that group, make sure the case of the group is exactly the same.
Jay's been away a while, but he messaged he might have more time soon in another post.
Perhaps if you give more detail he, or we, could help.
« Last Edit: May 20, 2009, 07:31:23 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming