ULX

Author Topic: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!  (Read 93027 times)

0 Members and 3 Guests are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
I'm having a huge problem with Uppl, it simply will not start. It also won't let me use any other command except "uppl_add," and when I use it, said banned prop is still able to be spawned. :(

Sounds like you have a conflicting mod that's not allowing Uppl to work.
Experiencing God's grace one day at a time.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
I am having problems with the execution order on this as well... it seems that server.cfg is being run twice..once before lua initializes and once after, and if i leave my "exec uppl.cfg" line in server.cfg it will not limit the props and spams my console log..but if i leave it out and then run "rcon exec uppl.cfg" after i join the server it works fine.
it seems like adding it to cfg/server.ini or the new data/ulx/config.txt like you said should work...but i tried both "ulx exec uppl.cfg" and just "exec uppl.cfg" in both server.ini and config.txt..it seems none of them are executing...?


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
How about just adding it directly to the config.txt?
Experiencing God's grace one day at a time.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
How about just adding it directly to the config.txt?
adding what, the uppl_add commands?


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
adding what, the uppl_add commands?

Yes
Experiencing God's grace one day at a time.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Yes
just tried it didn't work.. it should run an echo command if it's in there, right? because i'm not getting anything on the server console which is what leads me to think that file is not being executed..?


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
No, there are no echos. Are you sure it's not working?
Experiencing God's grace one day at a time.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
No, there are no echos. Are you sure it's not working?
yes i started the server and spawned several phx towers when it should only let me spawn 1... and if i rcon exec uppl.cfg it will work properly and let me spawn only 1


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Are you getting errors in console on startup?
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
I just tested this to verify that no gmod updates have broken it, it still works like a charm on my server. If anyone's having issues, be sure you followed the directions and added the limits to a config somewhere.
Experiencing God's grace one day at a time.

Offline Aqua92

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
I have an Problem with Uppl too. Alwas when i try to Restrict something, i get an Lua Error


Code: [Select]
uppl_add models/props_phx/torpedo.mdl 0
After trying to spawn it:
Code: [Select]
ERROR: Hook 'UpplCheckModel' Failed: addons\uppl\lua\autorun\server\uppl.lua:80: attempt to index field '?' (a nil value)
Removing Hook 'UpplCheckModel'
ERROR: Hook 'UpplRecordProps' Failed: addons\uppl\lua\autorun\server\uppl.lua:80: attempt to index field '?' (a nil value)
Removing Hook 'UpplRecordProps'

Btw, what about a "uppl_remove" command?

Aqua :)
« Last Edit: June 18, 2010, 06:57:20 AM by Aqua92 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Same Problem. It won't work.


Code: [Select]
uppl_add models/props_phx/torpedo.mdl 0
After trying to spawn it:
Code: [Select]
ERROR: Hook 'UpplCheckModel' Failed: addons\uppl\lua\autorun\server\uppl.lua:80: attempt to index field '?' (a nil value)
Removing Hook 'UpplCheckModel'
ERROR: Hook 'UpplRecordProps' Failed: addons\uppl\lua\autorun\server\uppl.lua:80: attempt to index field '?' (a nil value)
Removing Hook 'UpplRecordProps'

Btw, what about a "uppl_remove" command?

Aqua :)

"Not working" is not the same problem as anything. Just for future reference.

My guess is that you've got an addon that's poorly coded and is blocking the PlayerInitialSpawn hook. Just to see if the theory is correct, remove all addons except ULib and Uppl restart the server and see if you still have problems. If you don't have any more problems, add them in one by one to find out which addon is breaking it and contact the author and let them know they've programmed their PlayerInitialSpawn hook extremely badly.

If and only if you've removed all addons from the server except Uppl and ULib and you're still having issues, report back here and we'll try to think of what else might be wrong.
Experiencing God's grace one day at a time.

Offline Aqua92

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
I found that "evil" Plugin :)
It was the "unbreakable Tool". Without that, Uppl works perfect! :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
I found that "evil" Plugin :)
It was the "unbreakable Tool". Without that, Uppl works perfect! :)

Good to know! Did you contact the author of the script?
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]
Good to know! Did you contact the author of the script?
Bet author is returning something/true/false on a hook that shouldn't be.
OR, depending on what hook and the unbreakable function, it might be necessary in order to prevent something from being broken.
Though, it shouldn't prevent uppl from working on props that haven't been set as unbreakable. That just sounds like bad returns.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming