Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: JamminR on May 11, 2007, 07:27:12 PM

Title: Code Bits FAQ - Not quite full releases, but helpful
Post by: JamminR on May 11, 2007, 07:27:12 PM
People often come here and ask us for help with code or with functions not (sometimes, yet) written into ULX or ULib.
I intend to make this a gathering spot for various links to code bits that we (Team Ulysses) and the community (you) have worked together on.

Consider it like the FAQ of our Help and Support, but for Lua.
If you ever have coding questions, please post in Developers Corner
Also, if you find bits (read, non-releases) on our forums that I've missed (OR, FacePunchStudios that Megiddo, Spbogie or I have posted), please reply with them here.
Or if you want the question/link to your code removed from this thread, let me know that too.


Please remember this good rule of practice: Don't edit ULib/ULX files. If you make your own commands/code, add them to your gmod/addons/Ulib/lua/Ulib/modules folder.
This will prevent them from being overwritten when we update ULib or ULX.

NOTE:
1) The 'final' working code may be buried in the threads linked below. Please make sure to read all of the post. Not just the first one.
2) The code may be out of date/incompatible with current versions of ULX/ULib. They are meant as guides for you Lua coders out there.


Q: How do I ban larger props from being spawned?
A: Long winded discussion (http://forums.ulyssesmod.net/index.php/topic,682.0.html). The wind brought good code!

Q: How do I limit ability to spawn props to admins only?
A: Smoot178 asked that question and got good discussion here (http://forums.ulyssesmod.net/index.php/topic,858.0.html)

Q: How can I restrict players to spawning a certain number of specific props?
A: Megiddo answers quickly! (http://forums.ulyssesmod.net/index.php/topic,721.0.html)
UPDATE - Jun 3, 2007
A2: See our RELEASES (http://forums.ulyssesmod.net/index.php/board,15.0.html) section for Uppl (http://forums.ulyssesmod.net/index.php/topic,922.0.html)

Q: How do I make a separate file for Gimp sayings instead of server.ini?
A: Griff was shown a way how! (http://forums.ulyssesmod.net/index.php/topic,160.0.html)

Q: How do I make a "custom group" adduser command.
A: Cold12141 worked on a custom "addtrustie" command (http://forums.ulyssesmod.net/index.php/topic,864.0.html). It wouldn't be too difficult to edit for your custom groups.
UPDATE
A2: ULX v. 3.11 released the week of 6/18/07 allows for use of adduser and your custom groups.

Q: How can I add Wiremod limits to ULX?
A: Dripfed worked on the same question in "this thread (http://forums.ulyssesmod.net/index.php/topic,712.msg3199.html)"

Q: How do I limit spawning of weapons in my Weapons list to admins only?
A: See Avien's answer here (http://forums.ulyssesmod.net/index.php/topic,743.msg3389.html#msg3389)

Q:
A:

Q:
A:


Title: Re: Code Bits - Not quite full releases, but helpful
Post by: Megiddo on May 11, 2007, 08:10:54 PM
How can I restrict players to spawning a certain number of props?
http://forums.ulyssesmod.net/index.php/topic,721.0.html
Title: Re: Code Bits FAQ - Not quite full releases, but helpful
Post by: spbogie on October 30, 2007, 03:15:37 PM
Limit weapons that players spawn with
http://forums.ulyssesmod.net/index.php/topic,2940.0.html
Title: Re: Code Bits FAQ - Not quite full releases, but helpful
Post by: Megiddo on October 30, 2007, 03:18:37 PM
Definitely want to update "How can I add Wiremod limits to ULX?" there JamminR :)
Title: Re: Code Bits FAQ - Not quite full releases, but helpful
Post by: JamminR on October 30, 2007, 05:47:45 PM
Definitely want to update "How can I add Wiremod limits to ULX?" there JamminR :)
Link?
Title: Re: Code Bits FAQ - Not quite full releases, but helpful
Post by: Megiddo on October 30, 2007, 06:12:18 PM
No link, we just have functions set up to do that now instead of tables.
Title: Re: Code Bits FAQ - Not quite full releases, but helpful
Post by: Avien on January 29, 2008, 09:57:09 AM
Here are all the commands for wiremod if you truly want to add something to the FAQ's.

Code: [Select]
//WireMod Settings
"sbox_maxwire_addressbuss"                       
        "sbox_maxwire_adv_inputs"                           
        "sbox_maxwire_buttons"                             
        "sbox_maxwire_cams"                                 
        "sbox_maxwire_colorers"                             
        "sbox_maxwire_consolescreens"                       
        "sbox_maxwire_cpus"                                 
        "sbox_maxwire_data_satellitedishs"                 
        "sbox_maxwire_data_stores"                         
        "sbox_maxwire_data_transferers"                     
        "sbox_maxwire_dataplugs"                           
        "sbox_maxwire_dataports"                           
        "sbox_maxwire_datarates"                           
        "sbox_maxwire_datasockets"                         
        "sbox_maxwire_detonators"                           
        "sbox_maxwire_digitalscreens"                       
        "sbox_maxwire_dual_inputs"                         
        "sbox_maxwire_emitters"                             
        "sbox_maxwire_explosive"                           
        "sbox_maxwire_forcers"                             
        "sbox_maxwire_gate_comparisons"                     
        "sbox_maxwire_gate_duplexer"                       
        "sbox_maxwire_gate_expressions"                     
        "sbox_maxwire_gate_logics"                         
        "sbox_maxwire_gate_memorys"                         
        "sbox_maxwire_gate_selections"                     
        "sbox_maxwire_gate_times"                           
        "sbox_maxwire_gate_trigs"                           
        "sbox_maxwire_gates"                               
        "sbox_maxwire_gpss"                                 
        "sbox_maxwire_grabbers"                             
        "sbox_maxwire_graphics_tablets"                     
        "sbox_maxwire_gyroscopes"                           
        "sbox_maxwire_hdds"                                 
        "sbox_maxwire_holoemitters"                         
        "sbox_maxwire_hologrids"                           
        "sbox_maxwire_hoverballs"                           
        "sbox_maxwire_igniters"                             
        "sbox_maxwire_indicators"                           
        "sbox_maxwire_inputs"                               
        "sbox_maxwire_keyboards"                           
        "sbox_maxwire_lamps"                               
        "sbox_maxwire_las_receivers"                       
        "sbox_maxwire_lights"                             
        "sbox_maxwire_locators"                             
        "sbox_maxwire_nailers"                             
        "sbox_maxwire_numpads"                             
        "sbox_maxwire_oscilloscopes"                       
        "sbox_maxwire_outputs"                             
        "sbox_maxwire_panels"                               
        "sbox_maxwire_pixels"                               
        "sbox_maxwire_plugs"                               
        "sbox_maxwire_pods"                                 
        "sbox_maxwire_radioes"                             
        "sbox_maxwire_rangers"                             
        "sbox_maxwire_relays"                               
        "sbox_maxwire_screens"                             
        "sbox_maxwire_sensors"                             
        "sbox_maxwire_simple_explosive"                     
        "sbox_maxwire_sockets"                             
        "sbox_maxwire_spawners"                             
        "sbox_maxwire_speedometers"                         
        "sbox_maxwire_target_finders"                       
        "sbox_maxwire_textscreens"                         
        "sbox_maxwire_thrusters"                           
        "sbox_maxwire_trails"                               
        "sbox_maxwire_turrets"                             
        "sbox_maxwire_twoway_radioes"                       
        "sbox_maxwire_users"                               
        "sbox_maxwire_values"                               
        "sbox_maxwire_watersensors"                         
        "sbox_maxwire_waypoints"                           
        "sbox_maxwire_weights"                             
        "sbox_maxwire_wheels"