1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

General Clockwork questions and answers

Discussion in 'Discussion' started by duck, Oct 26, 2014.

  1. Crater

    Crater Hostell Roleplay

    I've managed to do this with names on the scoreboard, but the settings menu is proving difficult. I'm attempting to use :SetTextColor(Color(200, 200, 200, 255)). Since the settings panel uses different tables and things to add custom additions to a DForm (as far as I can understand, at least), I'm not sure how to go about changing the associated label that's built into numberSlider and multiChoice (and the others). Is there some kind of catch-all that I can use to set all of the built-in labels to a specified color, or some place I can change the default Derma text color? I don't mind doing it individually, but I've looked at the GMod wiki and I couldn't find any function like :SetTextColor (for DLabels) that is the equivalent.
     
  2. RJ

    RJ no pay Legend Clockwork Customer

    Probably, try looking at gmod's wiki: http://wiki.garrysmod.com/page/Main_Page
     
  3. Crater

    Crater Hostell Roleplay

    Right, I said:

    If you read that part, I don't think you understand. I can't find any sort of function for DForm that changes the associated label-esque text.
     
  4. Zoo

    Zoo title

    Do the clockwork tables automatically appears on the MySQL database when you start the schema for the first time?

    Oh yeah, a broad question, but how do you change the starting models for a faction? and how to change a faction/whitelist's name?
     
  5. RJ

    RJ no pay Legend Clockwork Customer

    Oh, sorry about that. I'm not sure what else I can suggest then.
     
  6. Crater

    Crater Hostell Roleplay

    Yes, as long as you have your MySQL information entered correctly in clockwork.cfg. The tables will build themselves after that.

    To change the model selection put this in the faction's file:

    Code:
    FACTION.models = {
    	female = {
    		"models/firstmodel.mdl",
    		"models/secondmodel.mdl"
    	},
    	male = {
    		"models/firstmodel.mdl",
    		"models/secondmodel.mdl"
    	};
    };
    
    To change the name, simply open up the faction's file and change the string at the bottom of the file.

    For instance, to change the Wastelander faction in the New Vegas schema, we would scroll down to the bottom and find the following:

    Code:
    FACTION_WASTELANDER = Clockwork.faction:Register(FACTION, "Wastelander");
    All we have to do to change the name is change the string - the part in quotations. So say we wanted to change it to Vault Dweller, we'd do:

    Code:
    FACTION_WASTELANDER = Clockwork.faction:Register(FACTION, "Vault Dweller");
    This will change the name on the scoreboard. Since FACTION_WASTELANDER is only used to identify the faction in the schema code, we aren't required to change it to change the name. If we wanted to duplicate the faction to make another similar one, for example a Vault Dweller faction alongside the Wastelander faction, we would need to change that because it's used as an identifier. We'd also have to rename the file it's stored in, but if you're only changing the scoreboard name (as you suggest you're trying to do) you don't have to do that.
     
  7. Zoo

    Zoo title

    Hey, thanks for your help!
    I just have three more questions:
    How do you get rid of the <:: before speaking with the MPF and OTA whitelists?
    How do you get rid of the visor for MPF and OTA?
    How do you get rid of voice commands? (like, typing GRID says Grid! in chat)
     
  8. I attempted to look all over this forum and I keep going in circles, so I'm posting in here because the search fails.

    I am the head admin of a community, though I am not the owner. What is the command to demote a player who is offline? Isn't there a way to demote them via IP address?
     
  9. duck

    duck Phant0m Legend

    Press tab, go to system, and go to the group manager.
     
  10. Thank you so much for your quick reply. <3
     
  11. Shavargo

    Shavargo Clockwork Customer

    When will the "Please wait while Clockwork initializes" bug be getting fixed?

    I installed Duck's "fix" but it seems to have made it worse.
     
  12. willy pete

    willy pete i'm going to cut off your face and wear it

    Is it possible to develop a local data storage system for Clockwork? Like, where it stores all information in files in a directory in garrysmod and doesn't require MySQL or any of the derivatives?
     
  13. duck

    duck Phant0m Legend

    Possible, but a bad way to do it.
     
  14. willy pete

    willy pete i'm going to cut off your face and wear it

    Why is that? If anything, it would seem easier.
     
  15. duck

    duck Phant0m Legend

    There are many reasons. Databases are easily interfaced, structured, indexed, searched, communicable, and scalable. Files are easy for people who are inexperienced, but MySQL is easy for those experienced in it. MySQL offers human readable queries that are pretty much just plain English with a few perks.

    Then there's also the fact that nobody is going to rewrite how Clockwork gets and sets data.
     

Previous Readers (Total: 0)