ULX

Author Topic: Wire Limits  (Read 6511 times)

0 Members and 1 Guest are viewing this topic.

Offline jlj1

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Wire Limits
« on: February 01, 2009, 11:39:04 AM »
Works in the same way as the other limits with a slider between 1-100 (depending on the component)

Thanks in-advance

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Wire Limits
« Reply #1 on: February 01, 2009, 11:52:12 AM »
I believe someone already made this somewhere on the forums...
Experiencing God's grace one day at a time.

Offline jlj1

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Wire Limits
« Reply #2 on: February 01, 2009, 11:53:29 AM »
Yeah in 2007 and the link is dead

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Wire Limits
« Reply #3 on: February 01, 2009, 12:01:50 PM »
Hmm, well, it's one line of code per cvar you add to the menu. I'm sure there's someone that will be kind enough to make a 5-minute script for you. :)
Experiencing God's grace one day at a time.

Offline ahref

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 4
Re: Wire Limits
« Reply #4 on: February 08, 2009, 09:46:33 AM »
where would the limits sliders be added i have the commands:

Code: [Select]
ulx.addToMenu( ulx.ID_MADMIN, Max Wire lights :, { max=32, cvar="sbox_maxwire_lights " } )
but into which lua file should they be pasted :D?

thanks

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Wire Limits
« Reply #5 on: February 08, 2009, 10:08:59 AM »
Create a file under modules. Doesn't matter what the file is named.
Experiencing God's grace one day at a time.

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Wire Limits
« Reply #6 on: July 01, 2009, 08:36:30 AM »
where would the limits sliders be added i have the commands:

Code: [Select]
ulx.addToMenu( ulx.ID_MADMIN, Max Wire lights :, { max=32, cvar="sbox_maxwire_lights " } )
but into which lua file should they be pasted :D?

thanks

Hey can you give me the module file and the path to put it in? I don't know anything about how to do this stuff and i haven't been able to even FIND the variables fr the max wire stuff. thanks.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Wire Limits
« Reply #7 on: July 01, 2009, 09:38:35 AM »
If you need to find the variables, ingame, type in the console "find sbox_maxwire"
you will get a full list.
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 Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Wire Limits
« Reply #8 on: July 02, 2009, 08:10:42 AM »
Oh, ok thanks. What do i call teh file?(what extension? .mod?)
And where is the module folder? There is one in Ulib somewhere and there's another in ulx.
« Last Edit: July 02, 2009, 08:02:05 PM by Stephen304 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Wire Limits
« Reply #9 on: July 02, 2009, 09:37:19 PM »
.lua
And, in the ulx modules..can't load using ULX menu commands if ULX isn't yet loaded.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Wire Limits
« Reply #10 on: July 03, 2009, 08:58:21 AM »
I havent put the module in the place yet, but whenever i open the admin menu i get this:
ulx/modules/cl/adminmenu.lua:15: bad argument #1 to 'SetText' (string expected, got nil)

Is it something to worry about or not?

Offline Stephen304

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 0
Re: Wire Limits
« Reply #11 on: July 05, 2009, 04:37:45 PM »
And there are multiple module folders in the ulx addon folder, so can you specify a specific directory?