ULX

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

0 Members and 3 Guests are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #330 on: August 25, 2009, 12:08:55 PM »
I can't really help you with my old script. It was such a mess. That's why I redid the entire thing.
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 #331 on: August 25, 2009, 12:19:38 PM »
meaning they start with,
Quote
"laserpointer"
"weapon_buddyfinder"
"RemoteController"
with group on trusted?
I guess if you are running like a RP or DM kinda game starting with stuff is good.

but I kinda like a clean easy to get to my tools feeling, mostly when I'm trying to build something + wire it.
my sandbox weapons i start with looks like this
Code: [Select]
pl:Give( "gmod_tool" )
pl:Give( "weapon_physgun" )
][_, ([]) ][_,
and my URestrict for users look like this,
Code: [Select]
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"user"
}
they don't spawn with it already, but I have hl2weaponitems addon so they can spawn them if needed.
 I am though looking for a better addon like hl2weaponitems addon but that will auto download and work from the server to the client.

but a solution to your problem would maybe allow spawn of all weapons in all groups in URestrict into the gamemode its self and have URestrict, URestrict will deal with that for each group.

I'm being kinda pushed to finish this so I hop I did not miss say/spell anything to bad :) laterz

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: URestrict
« Reply #332 on: August 25, 2009, 12:20:24 PM »
I can't really help you with my old script. It was such a mess. That's why I redid the entire thing.

Myeah.  :-\

But I don't want to " svn " my ulib/ulx. A friend just got these versions and everything was going wrong. Then he installed the normal versions and everything became fine.

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: URestrict
« Reply #333 on: August 25, 2009, 12:22:00 PM »
meaning they start with,with group on trusted?
I guess if you are running like a RP or DM kinda game starting with stuff is good.

but I kinda like a clean easy to get to my tools feeling, mostly when I'm trying to build something + wire it.
my sandbox weapons i start with looks like this
Code: [Select]
pl:Give( "gmod_tool" )
pl:Give( "weapon_physgun" )
][_, ([]) ][_,
and my URestrict for users look like this,
Code: [Select]
"default"
{
"loadout"
{
"weapon_physgun"
"weapon_physcannon"
"gmod_camera"
"gmod_tool"
}
"groups"
{
"user"
}
they don't spawn with it already, but I have hl2weaponitems addon so they can spawn them if needed.
 I am though looking for a better addon like hl2weaponitems addon but that will auto download and work from the server to the client.

but a solution to your problem would maybe allow spawn of all weapons in all groups in URestrict into the gamemode its self and have URestrict, URestrict will deal with that for each group.

I'm being kinda pushed to finish this so I hop I did not miss say/spell anything to bad :) laterz

You must have an updated version, your files doesn't look like mines. I doubt you can help me.  :-\ I'm running revision 30.

Offline pout400

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: URestrict
« Reply #334 on: August 25, 2009, 01:06:53 PM »
Hey, I put the URestrict folder in addons and ulib and ulx is updated. But when i open the GUI in game by typing urestrict in console, it wont show the default preset or let me add weapons or tools to the list.
And the default preset is setup correctly in the text document.

Its just a blank GUI and I cant change it. Is there something obvious that im doing wrong?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #335 on: August 25, 2009, 02:05:06 PM »
How did you obtain a copy of URestrict?
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 pout400

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: URestrict
« Reply #336 on: August 25, 2009, 03:05:05 PM »
I made a  folder called URestrict and using tortoise svn, i updated it with the link you have in your first post.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #337 on: August 25, 2009, 05:53:09 PM »
Are you using the svn version of ULib as well?
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 pout400

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: URestrict
« Reply #338 on: August 25, 2009, 06:48:02 PM »
No, i couldn't find  the svn version of Ulib. But i do have the newest version 2.30

Offline pout400

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: URestrict
« Reply #339 on: August 25, 2009, 07:05:17 PM »
Well i just updated my version of ULib, using svn, and now urestrict wont even bring up the gui, it just says unknown command in console

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: URestrict
« Reply #340 on: August 25, 2009, 07:06:16 PM »
The disconnect issue should be fixed now, I think. I'm behind the all-powerful, all-filtering campus firewall now though, so I wasn't able to test it as thoroughly as I would have liked.

@pout, see 'svn stuff' forum. You need the SVN version.

@jay, why not check the ULib version and throw errors if it's not what you want?
Experiencing God's grace one day at a time.

Offline pout400

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: URestrict
« Reply #341 on: August 25, 2009, 07:20:31 PM »
It seems that the reason its not working is cause after I used svn for ULib. ulx isnt on the server anymore. Weird. I even tried re-adding the ulx folder

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #342 on: August 25, 2009, 08:00:11 PM »
Revision 6:
*Fixed cursor disappearing after using shift+tab or another gui with a cursor.
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 #343 on: August 25, 2009, 08:16:04 PM »
Revision 7:
*Slightly modified method of updating the clients

This goes along with Megiddo's early post. Should clear up the crashing, and errors in server console.
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 #344 on: August 25, 2009, 08:47:00 PM »
Revision 8:
*Added a check to make sure the client has been initialized with ULib before attempting to update their GUI

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