Ulysses

Ulysses Stuff => Suggestions => Topic started by: jlj1 on February 01, 2009, 11:39:04 AM

Title: Wire Limits
Post by: jlj1 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
Title: Re: Wire Limits
Post by: Megiddo on February 01, 2009, 11:52:12 AM
I believe someone already made this somewhere on the forums...
Title: Re: Wire Limits
Post by: jlj1 on February 01, 2009, 11:53:29 AM
Yeah in 2007 and the link is dead
Title: Re: Wire Limits
Post by: Megiddo 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. :)
Title: Re: Wire Limits
Post by: ahref 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
Title: Re: Wire Limits
Post by: Megiddo on February 08, 2009, 10:08:59 AM
Create a file under modules. Doesn't matter what the file is named.
Title: Re: Wire Limits
Post by: Stephen304 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.
Title: Re: Wire Limits
Post by: jay209015 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.
Title: Re: Wire Limits
Post by: Stephen304 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.
Title: Re: Wire Limits
Post by: JamminR 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.
Title: Re: Wire Limits
Post by: Stephen304 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?
Title: Re: Wire Limits
Post by: Stephen304 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?