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!

Overriding Schema or Clockwork functions

Discussion in 'Development' started by kurozael, May 12, 2013.

  1. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    In 0.88, when a plugin overrides a Schema or Clockwork function, an error will appear in the console stating that it is bad.

    The reason is because I don't want people filing support tickets because something breaks when a piece of code being overwritten by a plugin is actually different to the latest revision.

    Just a heads up.
     
  2. RJ

    RJ no pay Legend Clockwork Customer

    What do you mean when it "overrides?"

    Example?
     
  3. From what I understand, when it doesn't just add onto a hook, but you know..overrides it. Makes your code replace the code, not add onto it.

    I think kuro is talking about when people use

    Code:
    function Clockwork:PlayerThink(player, curTime, infoTable)
    instead of

    Code:
    function PLUGIN:PlayerThink(player, curTime, infoTable)
    Is that right?
     
  4. kurozael

    kurozael Cloud Sixteen Director Staff Member Administrator Investor

    That's right yeah :)
     
  5. RJ

    RJ no pay Legend Clockwork Customer

    Ah okay, that makes sense.
     
  6. Anything kurozael says makes sense.

    (you asked for this, kurozael.)
     
  7. RJ

    RJ no pay Legend Clockwork Customer

    I was referring to SomeSortOfDuck's explanation, but okay :p
     
  8. Razor

    Razor Guest

    I do it a lot on my plugins when it's just impossible to do otherwise.
     

Previous Readers (Total: 0)