Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: SK83RJOSH on July 10, 2010, 02:01:47 AM

Title: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 10, 2010, 02:01:47 AM
Well If I try to spawn an affect I get an error with URestrict.
An as for the admin only guns not being admin only I have no idea why...
Ive had many uses abusing this an spamming the manhack gun.
An Many players Complaining about not be able to spawn effects.

My effect limit is two.
But it doesn't make a difference.


Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 10, 2010, 09:22:35 AM
What's the error you're getting from URestrict?
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 10, 2010, 08:47:19 PM
Sorry Fell asleep yesterday.
Um Ill go get it soon will post it below.
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 16, 2010, 01:33:08 PM
Wow im so sorry I kinda went outta town.

If you could look into the admin only gun thing that help alot.


ERROR: GAMEMODE:'PlayerSpawnEffect' Failed: addons\urestrict\lua\ulib\modules\base\props.lua:25: attempt to index field '?' (a nil value)
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 16, 2010, 01:52:01 PM
Not 100% sure, but this "should" fix it. I would test it, but I'm at work.

URestrict/lua/ULib/modules/URestrict.lua Line:12
Code: [Select]
ur.limit = { ["props"] = {}, ["npcs"] = {}, ["vehicles"] = {}, ["ragdolls"] = {}, ['sents'] = {} }Change the above line to read:
Code: [Select]
ur.limit = { ["props"] = {}, ["npcs"] = {}, ["vehicles"] = {}, ["ragdolls"] = {}, ['sents'] = {}, ['effects'] = {} }
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 16, 2010, 02:18:19 PM
Heres what console gives me.

[ULIB] Loading SHARED module: URestrict.lua
addons\urestrict\lua\ulib\modules\urestrict.lua:145: '<name>' expected near 'end'
[ULIB] Loading CLIENT module: urestrict_cl.lua


Well when you get home or tomorrow look into the Urestrict problem.
For now im gonna waste time on Tf2 an take a shower.
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 16, 2010, 06:21:54 PM
Post your URestrict.lua file to jay209015.pastebin.com
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 16, 2010, 06:49:53 PM
The if not ur then part is right in the lua I just copied it wrong an noticed after I posted it :3
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 17, 2010, 12:18:51 AM
Did you get it working?
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 17, 2010, 12:22:55 AM
Nevermind, found your error, you overwrote the wrong line.

Here you go.
http://jay209015.pastebin.com/tejGi5xW (http://jay209015.pastebin.com/tejGi5xW)

Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 17, 2010, 02:53:35 PM
No I had it right like I said I pasted it wrong on paste bin.
Its giving me the same error as I said in the last post.
I.E.
[ULIB] Loading SHARED module: URestrict.lua
addons\urestrict\lua\ulib\modules\urestrict.lua:145: '<name>' expected near 'end'
[ULIB] Loading CLIENT module: urestrict_cl.lua

Now I have a urestrict thats not working and minges spawning manhacks lol.
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: jay209015 on July 17, 2010, 04:11:52 PM
Please do an svn checkout to the latest revision: 32
Title: Re: Cant Spawn Effects And admin only guns Arnt admin only. ULX/ULIB svn
Post by: SK83RJOSH on July 17, 2010, 04:30:30 PM
Will do