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

0 Members and 1 Guest are viewing this topic.

Offline Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #360 on: August 29, 2009, 02:49:42 AM »
Thank youuu :D

Offline Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #361 on: August 29, 2009, 03:39:36 AM »
Ive found a few bugs.

If you click the Admin Exclusion button:
Code: [Select]
ULib/modules/server/URestrict.lua:125: attempt to index field 'admin_exclude' (a string value)
If you click the remove button without selecting a loadout:
Code: [Select]
Ulib/modules/client/ur_gui.lua:147: attempt to index field '?' (a nil value)Would look better if it said, 'Please select a loadout' instead of an error.

You cant apply or make loadouts, whether loadouts are enabled or disabled.

If you try and add or remove a tool to the restricted list, it just jumps to the loadouts menu and doesnt restrict the tool.

If you try and allow a group to a tool, it just jumps to the loadouts menu and dosnt allow the group to the tool, then if you try and close the GUI, it just sticks in the middle of the screen, you cant press any of the buttons, and your player can move around as if it wasnt open, you can also open it again.

Any tools that are already in the restricted list (added in previous versions), are not restricted from anyone, even if the group isnt in the allowed list.

I have the latest SVN of URestrict, ULib and ULX.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #362 on: August 29, 2009, 07:36:59 AM »
Revision 12:
*Fixed instead of receiving an error when click the remove button without a loadout selected, a notification pops up saying, "Please Select A Loadout"

Quote
Would look better if it said, 'Please select a loadout' instead of an error.
     - Fixed as suggested
Quote
ULib/modules/server/URestrict.lua:125: attempt to index field 'admin_exclude' (a string value)
     - Unable to replicate, please post your data/URestrict/config.txt file here.

Quote
You cant apply or make loadouts, whether loadouts are enabled or disabled.

If you try and add or remove a tool to the restricted list, it just jumps to the loadouts menu and doesnt restrict the tool.

If you try and allow a group to a tool, it just jumps to the loadouts menu and dosnt allow the group to the tool, then if you try and close the GUI, it just sticks in the middle of the screen, you cant press any of the buttons, and your player can move around as if it wasnt open, you can also open it again.

Any tools that are already in the restricted list (added in previous versions), are not restricted from anyone, even if the group isnt in the allowed list.
     - Post your tools.txt and your loadouts.txt here 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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #363 on: August 29, 2009, 08:51:46 AM »
data/URestrict/config.txt:
Code: [Select]
"tools" "true"
"loadouts" true
"admin_exclude" "false"

data/URestrict/loadouts.txt:
Code: [Select]
"excluded"
{
}

data/URestrict/tools.txt:
Code: [Select]
"excluded"
{
}
"turret"
{
}
"list"
{
"adv_duplicator"
"colmat"
"weld_ez2"
"wraith_harvester"
"breakableprops"
"cloaking"
"commandbox"
"constraintbreaker"
"fadingdoor"
"fan"
"perimeterturret"
"positionswitcher"
"pressurepad"
"rotator"
"sensor"
"timer"
"toggleablehoverballs"
"air_thruster"
"energy_thruster"
"fusion_thruster"
"gas_generator"
"gas_storage"
"ion_thruster"
"methane_thruster"
"nitrous_thruster"
"powered_hoverball"
"propane_thruster"
"steam_thruster"
"cubesystems"
"energysystems"
"life_support"
"receptacles"
"petroldev"
"petrolgen"
"petrolstor"
"petrol_thruster"
"petrol_wheel"
"easy_precision"
"xqm_wire_hydraulic"
"cutoff_valve"
"dev_link"
"link_junction"
"resdebug"
"sup_connector"
"displaydevices"
"transitdevices"
"ag3"
"dakara"
"gate_overloader"
"naquadah_bomb"
"ori_beam_cannon"
"gpod"
"gyropod_advanced"
"sbep_habitabiliser"
"sbep_settings_menu"
"sbep_smb_skin_selector"
"sbmp_beam_cannon"
"sbmp_elevator"
"skinswitcher"
"space_shield"
"drones"
"staff_weapon"
"stargate_cloaking"
"stargate_dhd"
"stargate_iris"
"stargate_shield"
"zpm"
"crystaldriller"
"crystalstorages"
"unbreakable"
"restricted"
"wire"
"wire_addressbus"
"wire_adv"
"wire_cam"
"wire_colorer"
"wire_cpu"
"wire_dataplug"
"wire_dataport"
"wire_datarate"
"wire_data_satellitedish"
"wire_data_store"
"wire_data_transferer"
"wire_debugger"
"wire_detonator"
"wire_emarker"
"wire_explosive"
"wire_expression2"
"wire_forcer"
"wire_fx_emitter"
"wire_gate_expression"
"wire_gps"
"wire_gpu"
"wire_grabber"
"wire_graphics_tablet"
"wire_gyroscope"
"wire_hdd"
"wire_hoverball"
"wire_hudindicator"
"wire_hydraulic"
"wire_igniter"
"wire_keyboard"
"wire_las_reciever"
"wire_latch"
"wire_locator"
"wire_nailer"
"wire_namer"
"wire_numpad"
"wire_output"
"wire_plug"
"wire_pod"
"wire_radio"
"wire_ranger"
"wire_relay"
"wire_sensor"
"wire_spawner"
"wire_target_finder"
"wire_textreceiver"
"wire_thruster"
"wire_trail"
"wire_turret"
"wire_twoway_radio"
"wire_user"
"wire_value"
"wire_vehicle"
"wire_vthruster"
"wire_watersensor"
"wire_waypoint"
"wire_wheel"
"wire_winch"
"wire_wirelink"
"shareprops"
"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"
}

Im guessing it could be because I deleted the default loadout? If so, I suggest you make it so it says, 'You cannot delete this loadout' or something.
« Last Edit: August 29, 2009, 08:54:35 AM by Drakehawke »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #364 on: August 29, 2009, 11:06:55 AM »
Delete your config.txt and your loadout.txt then restart your server. It appears it didn't update some of the tables when you updated 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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #365 on: August 29, 2009, 02:04:18 PM »
Okay thanks, all fixed. I was running a listen server, to test the tool restrictions, and they dont seem to restrict me, is this because im the one running the listen server?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #366 on: August 29, 2009, 06:17:25 PM »
Perhaps, I have never tested URestrict on a listen server.
« Last Edit: August 30, 2009, 12:39:55 AM by jay209015 »
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 Mr.Bean

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: URestrict
« Reply #367 on: August 30, 2009, 04:51:51 PM »
Thanks for adding the weapon restricted alert but it doesn't seem to work on my server.
I have updated both ULib and URestrict and now get the on-join advert about my group having restricted weapons, but I don't to get any messages when I try to spawn a restricted weapon. It does still restrict the weapon though.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #368 on: August 30, 2009, 05:47:04 PM »
Right clicking the weapon is spawn, left click is to pick it up. Try right clicking. It should work.
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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #369 on: August 30, 2009, 11:47:40 PM »
Yes I noticed that too, from the q menu, if you left click a weapon to just give it to yourself, you dont get anything saying its restriced.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #370 on: August 31, 2009, 07:09:18 AM »
Yeah, I'm working on that tonight. I am trying to avoid message spam as much as possible, and the hook that is used with the left click in the Q menu is the same as the one used when you walk over a weapon. So, I'm not sure as of how I'm going to do it, but it will be done tonight.
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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #371 on: August 31, 2009, 09:22:33 AM »
I thought that left clicking just spawned the gun beneath your feet, so you pick it up straight away. So surely there would be a thing to create the weapon beneath you, which you could restrict, rather than restricting the pickup?

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #372 on: August 31, 2009, 11:41:31 AM »
No, it just gives it to you like a loadout does.
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 Drakehawke

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Serious Roleplaying Hell
Re: URestrict
« Reply #373 on: August 31, 2009, 02:43:34 PM »
Then how come when you noclip inside a prop, and try and spawn with left click, it like flies out of the prop.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: URestrict
« Reply #374 on: August 31, 2009, 02:48:32 PM »
It just creates the entity, but doesn't call the spawn hook. Reguardless.
Revision 13:
*Replaced Garrys function for giving players sweps
*Added an advert when trying to left click on a swep in the Q menu when you can use it
*Fixed Garrys function saying "Giving player a weapon_blah" even if it doesn't
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