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 484046 times)

0 Members and 3 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: URestrict
« Reply #420 on: September 15, 2009, 03:18:58 PM »
maybe redo my server 100% fresh in hops to not have this problem anymore.

Though drastic, and hated... I usually find a clean rebuild fixes oddities such as this.
Adding more and more mods start to conflict. (Especially?) Even large popular ones where many have contributed, some of which have little idea how code should be done (Wire?)
Not because of the mods themselves, but because the authors of (parts of) the mods
1) Don't realize that returning ANYTHING (even true) from any hook breaks 99% of other hooks.
2) Purposely return something to prevent other hooks from functioning.
In the case of Urestrict, #2 is a good thing. However, using option #2 as a planned feature design, unfortunately, is inherently more likely to conflict with other addons.


"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #421 on: September 15, 2009, 04:00:05 PM »
Revision 19 I think =/:
* URestrict is now updated to use the new command system.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Hurburt

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #422 on: September 16, 2009, 01:08:12 PM »
Urestrict Keeps giving me multiple errors... Is Urestrict compatible with ULX/ULIB Because, It seems to be removing some stuff and disabling the "admin ability" In other words good tutorial.. Please

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URestrict
« Reply #423 on: September 16, 2009, 02:07:45 PM »
Urestrict Keeps giving me multiple errors... Is Urestrict compatible with ULX/ULIB Because, It seems to be removing some stuff and disabling the "admin ability" In other words good tutorial.. Please

I stuck your post in here, I have no idea why you thought posting it in a completely unrelated sticky was a good idea.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #424 on: September 16, 2009, 03:11:29 PM »
Urestrict Keeps giving me multiple errors... Is Urestrict compatible with ULX/ULIB Because, It seems to be removing some stuff and disabling the "admin ability" In other words good tutorial.. Please

The current SVN of URestrict is only supported with the current SVN of ULib.
If you're using the release of ULX that came with the installer as you stated in this post., it's not supported and will most likely not work.
You'll need to get the latest SVN of ULib and ULX.
If you are using latest SVN of all, you'll need to give us more to go on.
Error messages in console? Copy paste them here. As for losing admin ability, URestrict should not be affecting ulx admin commands.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: URestrict
« Reply #425 on: September 19, 2009, 06:15:27 PM »
Right click is how you spawn weapons. As for the dupes, I don't have a clue, this is not happening to me.
Just to get this correct, you made it so you cant spawn the weapons on you? Only spawn at cross-hair by right clicking!?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #426 on: September 20, 2009, 08:33:12 AM »
Left click just gives it to you, right clicking spawns it. Both functions work for me.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: URestrict
« Reply #427 on: September 20, 2009, 01:18:50 PM »
Ya like I said before when I left click all I get is the message "Sorry, You Can't Use This" only way I can GET a weapon is to right click spawning it on the ground.

I'm about to redo the server from nothing, because the last time I redone my server is when it started to work right again but than just stopped working out of nowhere, I even tried to remove all addons but ULX, ULib, URestrict, UTime, UnoLimited_v2, sui_scoreboard_modified_v4, UTeam.

Offline atomicspark

  • Full Member
  • ***
  • Posts: 196
  • Karma: 12
Re: URestrict
« Reply #428 on: September 20, 2009, 01:34:52 PM »
I've also experienced this issue in my short-lived test of URestrict.

Also, your toggles for restrict admins/whatever don't seem to work anymore. Very unfortunate.

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: URestrict
« Reply #429 on: September 20, 2009, 05:16:57 PM »
I just finish testing on a fresh server install.
only addons i have is Falco's prop protection, PHX3, ULib, ULX, URestrict, UTime

I have 3 problems
1. still same problem shown in my last post.

2. When I join my server to set superadmin to excluded, rejoin server still shows excluded but cant give myself a guns unless i spawn it on the ground!? restart server than rejoin I'm default again!? in the loadouts.txt you can clearly see superadmin is under excluded but ingame its default.

3. After I set excluded to superadmin group this is what my loadouts.txt looked like
Code: [Select]
Code: [Select]
"default"   
{
   "loadout"   
   {
      "weapon_physgun"
      "weapon_physcannon"
      "gmod_camera"
      "gmod_tool"
   }
   "groups"   
   {
      "user"
      "admin"
      "operator"
   }
}
"excluded"   
{
   "superadmin"
}
after a few restarts (I think 5) it looked like this
Code: [Select]
Code: [Select]
snip
   "groups"   
   {
      "user"
      "admin"
      "operator"
      "user"
      "admin"
      "operator"
   }
snip
after removing the dupes and 2-3 restarts now it looks like this
Code: [Select]
Code: [Select]
snip
   "groups"   
   {
      "user"
      "admin"
      "operator"
      "user"
      "admin"
      "operator"
      "user"
      "admin"
      "operator"
   }
snip

Seems the forums buged on me when i copy pasted end code bbcode it put me into preview mode and lost all i typed so i copy and pasted that lawl

contig.txt looks like this
Code: [Select]
"tools" "true"
"loadouts" "true"
"admin_exclude"
{
"tools" "false"
"loadouts" "false"
}

tools.txt looks like this, also i think the excluded for tools works fine
Code: [Select]
"dynamite"
{
}
"excluded"
{
"superadmin"
}
"list"
{
"shareprops"
"easy_precision"
"xqm_wire_hydraulic"
"restricted"
"axis"
"balloon"
"ballsocket"
"ballsocket_adv"
"ballsocket_ez"
"button"
"camera"
"colour"
"duplicator"
"dynamite"
"elastic"
"emitter"
"example"
"eyeposer"
"faceposer"
"finger"
"hoverball"
"hydraulic"
"ignite"
"inflator"
"keepupright"
"lamp"
"leafblower"
"light"
"magnetise"
"material"
"motor"
"muscle"
"nail"
"nocollide"
"paint"
"physprop"
"pulley"
"remover"
"rope"
"rtcamera"
"slider"
"spawner"
"statue"
"thruster"
"trails"
"turret"
"weld"
"weld_ez"
"wheel"
"winch"
"colmat"
"weld_ez2"
}
« Last Edit: September 20, 2009, 05:21:50 PM by Dv2236 »

Offline Pantho

  • Newbie
  • *
  • Posts: 39
  • Karma: 2
Re: URestrict
« Reply #430 on: September 21, 2009, 07:22:49 AM »
I've had the same issues as above on a new server with just ulib/ulx/utime/sui_scorebaord/uteam/upgrade


Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #431 on: September 21, 2009, 03:16:05 PM »
*Fixed every thing default on server restart
*Fixed left click not working on weapons to give them to yourself
*Fixed repeating entries in the default loadout.
 TODO: fix the admin exlude buttons, close button, modify button, tools button, and loadouts buttons
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Joe_

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: URestrict
« Reply #432 on: September 21, 2009, 04:15:34 PM »
For some reason, restriction won't work on the rope tool. I have it restricted to everyone, but its still usable. Anyone else having this problem?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #433 on: September 21, 2009, 07:30:45 PM »
Restriction of ropes is still functioning for me
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #434 on: September 21, 2009, 07:42:04 PM »
Revision 22:
*Fixed Admin Exclude buttons
*Added missing commands: <toggle, adminexclude>
*Fixed when you click the modify button without having a group selected you will get a response
*Fixed toggling tool and loadout restrictions
*Fixed the close button

I would like to thank everyone for finding the bugs, and I hope that you continue reporting them as you find them.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly