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

0 Members and 8 Guests are viewing this topic.

Offline killforfun

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 1
that did stop it from stacking 100 props it says your only can  stack 10 at a time,but i can only stack 1 at a time now and ever time a stacker prop it says you now own this prop and i cant remove it by pressing Z

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Mmmm, I'll have to mess around with it later.  Just go back to what you had for now (if you haven't already).

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Sorry, I removed something I shouldn't have.  Try it again, I updated it.

Offline Meekal

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #123 on: September 30, 2011, 10:09:47 AM »
Hi,
I am having a small problem with UPPL. It won't initialize the restricted props automatically. I've tried adding them to the server config and also created a custom config file named uppl.cfg and added "exec uppl.cfg" to my server config. However the prop's are not limited until I manually run "exec uppl.cfg" from console.

Any thoughts?

Below is my uppl.cfg file setup:
Code: [Select]
// Explosives
uppl_add models/props_c17/oildrum001_explosive.mdl 10
uppl_add models/props_junk/propane_tank001a.mdl 10
uppl_add models/props_junk/gascan001a.mdl 10

// Misc
uppl_add models/props_c17/utilitypole01d.mdl 16 // Restricted because some moron tried (but failed) to crash the Ulysses server with this.

// Phx explosives
uppl_add models/props_phx/misc/flakshell_big.mdl 10
uppl_add models/props_phx/ww2bomb.mdl 10
uppl_add models/props_phx/torpedo.mdl 10
uppl_add models/props_phx/mk-82.mdl 10
uppl_add models/props_phx/oildrum001_explosive.mdl 10
uppl_add models/props_phx/ball.mdl 10


// Big/annoying
uppl_add models/props_buildings/building_002a.mdl 1
uppl_add models/props_buildings/collapsedbuilding02b.mdl 4
uppl_add models/props_buildings/collapsedbuilding02c.mdl 16
uppl_add models/props_buildings/project_building01.mdl 1
uppl_add models/props_buildings/project_building02.mdl 1 // I do believe this is the biggest prop in the game.
uppl_add models/props_buildings/project_building03.mdl 1
uppl_add models/props_buildings/project_destroyedbuildings01.mdl 1
uppl_add models/props_buildings/row_church_fullscale.mdl 1
uppl_add models/props_buildings/row_corner_1_fullscale.mdl 1
uppl_add models/props_buildings/row_res_1_fullscale.mdl 1
uppl_add models/props_buildings/row_res_2_ascend_fullscale.mdl 1
uppl_add models/props_buildings/row_res_2_fullscale.mdl 1
uppl_add models/props_buildings/watertower_001a.mdl 16
uppl_add models/props_buildings/watertower_002a.mdl 8
uppl_add models/props_canal/canal_bridge01.mdl 4
uppl_add models/props_canal/canal_bridge02.mdl 4
uppl_add models/props_canal/canal_bridge03a.mdl 10
uppl_add models/props_canal/canal_bridge03b.mdl 5
uppl_add models/props_combine/combine_citadel001.mdl
uppl_add models/props_combine/combineinnerwallcluster1024_001a.mdl 4
uppl_add models/props_combine/combineinnerwallcluster1024_002a.mdl 4
uppl_add models/props_combine/combineinnerwallcluster1024_003a.mdl 2
uppl_add models/props_wasteland/rockcliff_cluster01b.mdl 8
uppl_add models/props_wasteland/rockcliff_cluster02a.mdl 8
uppl_add models/props_wasteland/rockcliff_cluster02b.mdl 8
uppl_add models/props_wasteland/rockcliff_cluster02c.mdl 8
uppl_add models/props/de_nuke/storagetank.mdl 3
uppl_add models/props/de_train/biohazardtank.mdl 0 // This gibs and never goes away
uppl_add models/props_combine/combine_train02a.mdl 1
uppl_add models/props_combine/combine_train02b.mdl 1
uppl_add models/props_combine/CombineTrain01a.mdl 1
uppl_add models/props_trainstation/train003.mdl 1
uppl_add models/props_trainstation/train002.mdl 1
uppl_add models/Cranes/crane_frame.mdl 1

// Phx big/annoying
uppl_add models/props_phx/misc/big_ramp.mdl 2
uppl_add models/props_phx/misc/small_ramp.mdl 4
uppl_add models/props_phx/playfield.mdl 4
uppl_add models/props_phx/huge/tower.mdl 1
uppl_add models/props_phx/huge/evildisc_corp.mdl 1
uppl_add  models/props_c17/column02a.mdl 2
uppl_add models/props_wasteland/cargo_container01.mdl 4
uppl_add models/props_wasteland/cargo_container01c.mdl 4
uppl_add models/props_wasteland/cargo_container01b.mdl 4
uppl_add models/props_canal/canal_bridge01.mdl 0
uppl_add models/props_canal/canal_bridge02.mdl 0
uppl_add models/props_canal/canal_bridge03a.mdl 0
uppl_add models/props_canal/canal_bridge03b.mdl 0
uppl_add models/Combine_Helicopter.mdl 0
uppl_add models/Cranes/crane_frame.mdl 1

// Gmow3 big/annoying
uppl_add models/trailer1.mdl 4
uppl_add models/ramps/ramp1.mdl 4
uppl_add models/ramps/ramp2.mdl 2

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #124 on: September 30, 2011, 11:28:50 AM »
Try adding it to the ULX config?
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: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #125 on: September 30, 2011, 02:14:23 PM »
Lua now and for some time initializes after cfg files.
If you exec a UPPL file before lua has initialized (which, exec <file> does when run from server.cfg), you'll most likely get errors about the server having invalid/unknown commands in its server.cfg

Megiddo's idea should work, or even better;
If you wish to keep a separate UPPL only commands file, add "ulx exec <uppl_file>.cfg"
Pretty sure you'd have to have the uppl cfg in your rootgmod/cfg file.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Meekal

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
I should have mentioned that I use Exsto as my admin mod. I used to use ULX, it just lacks a few things.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
For another admin mod, you would need to find some other way of executing the "uppl" config file after the lua engine had started.
I'm not familiar with how other admin mods configure themselves or run commands at startup that set themselves up.
If Exsto has an ini settings file that it reads in after the engine starts, that might work. Though, Exsto files may not run "exec upplfileconfig" the same way ours does.

Megiddo, with cfg files now being run before lua engine, perhaps an additional autorun file added to UPPL would be a good thing to keep it compatibile with other admin mods?
Or at the least, an edited readme/original post saying how to run it.

Meekal, please post what "few things" you were looking for (if you haven't already) that aren't in ULX in our Suggestions or General Help and SUpport forum areas.
No guarantee we'll add them, but at least we'll know. It's possible that 1) We've already considered them in the past but didn't add them or 2) There may be a way to do it already in ULX.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline airidas338

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #128 on: November 05, 2011, 12:10:35 AM »
 Ulysses Per Prop Limit not working for me, i set limit phx rocket 10 but i spawned 100 rockets and no limiting

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #129 on: November 05, 2011, 10:43:21 AM »
Where did you place the uppl line to limit?
What line did you put?
See past few posts..UPPL works, it just won't allow you to use the cfg file automatically anymore.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline nexbr

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 5
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #130 on: November 05, 2012, 07:15:05 AM »
This still working?
With Gmod13?
With a updated ULX & ULIB?

Because we need this addon.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #131 on: November 05, 2012, 07:27:55 AM »
Change info.txt to addon.txt and it should still work fine.
Experiencing God's grace one day at a time.

Offline nexbr

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 5
Re: Uppl -- Ulysses Per Prop Limit. Restrict specified props to a certain number!
« Reply #132 on: November 05, 2012, 07:34:22 AM »
No not working.

Code: [Select]
[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69


[ERROR] addons/uppl/lua/autorun/server/uppl.lua:149: bad argument #2 to 'Exists'
 (string expected, got no value)
  1. Exists - [C]:-1
   2. unknown - addons/uppl/lua/autorun/server/uppl.lua:149
    3. unknown - lua/includes/modules/concommand.lua:69

Offline nexbr

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 5
« Last Edit: November 27, 2012, 04:31:58 AM by nexbr »

Offline walalang023

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
I Fixed https://dl.dropbox.com/u/18850333/uppl.zip

Hey guys, I got the uppl from this guy and it works..

Only problem I have now is that after modifying stacker tool to obey uppl, I can't seem to stack anything at all!

It only ghosts the prop but doesn't actually stack it when left clicking.

I get the following error on the console ;

Code: [Select]
[ERROR] ...s/stacker stool/lua/weapons/gmod_tool/stools/stacker.lua:76: attempt
to index global 'ent' (a nil value)
  1. LeftClick - ...s/stacker stool/lua/weapons/gmod_tool/stools/stacker.lua:76
   2. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:249

I've no proper idea what I'm doing, I also tried the stacker code from page 8 of this thread but that just resulted in "too many lua errors" and getting booted out.

Help?

Walalang023