Author Topic: Code Bits FAQ - Not quite full releases, but helpful  (Read 11311 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7885
  • Karma: 372
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Code Bits FAQ - Not quite full releases, but helpful
« 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. 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

Q: How can I restrict players to spawning a certain number of specific props?
A: Megiddo answers quickly!
UPDATE - Jun 3, 2007
A2: See our RELEASES section for Uppl

Q: How do I make a separate file for Gimp sayings instead of server.ini?
A: Griff was shown a way how!

Q: How do I make a "custom group" adduser command.
A: Cold12141 worked on a custom "addtrustie" command. 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"

Q: How do I limit spawning of weapons in my Weapons list to admins only?
A: See Avien's answer here

Q:
A:

Q:
A:


« Last Edit: June 23, 2007, 01:59:05 PM by JamminR »
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6196
  • Karma: 394
  • Project Lead
Re: Code Bits - Not quite full releases, but helpful
« Reply #1 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
Experiencing God's grace one day at a time.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #2 on: October 30, 2007, 03:15:37 PM »
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6196
  • Karma: 394
  • Project Lead
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #3 on: October 30, 2007, 03:18:37 PM »
Definitely want to update "How can I add Wiremod limits to ULX?" there JamminR :)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 7885
  • Karma: 372
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #4 on: October 30, 2007, 05:47:45 PM »
Definitely want to update "How can I add Wiremod limits to ULX?" there JamminR :)
Link?
The price one pays for pursuing any profession or calling is an intimate knowledge of its ugly side. - James Baldwin

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6196
  • Karma: 394
  • Project Lead
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #5 on: October 30, 2007, 06:12:18 PM »
No link, we just have functions set up to do that now instead of tables.
Experiencing God's grace one day at a time.

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: Code Bits FAQ - Not quite full releases, but helpful
« Reply #6 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"