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!

Using Clockwork.kernel:AddFile() causes the server to not start?

Discussion in 'Discussion' started by MP6767, Jun 16, 2013.

  1. MP6767

    MP6767 wesavages.org

    I've tried to add some models using Clockwork.kernel:AddFile and a directory for the materials using Clockwork.kernel:AddDirectory().

    After saving the files and restarting the server, it automatically closes. Any reason for this?

    The code I'm using is in sv_schema.lua:

    Code:
    Clockwork.kernel:AddFile("models/retrocop.mdl");
    Clockwork.kernel:AddDirectory("materials/dpfilms/");
     
  2. ZeMysticalTaco

    ZeMysticalTaco yo i'm a taco have some lunch Clockwork Customer

    I don't know, But I think I heard somewhere that editing sv_schema and not doing it correctly.

    basically fucks everything up.

    EDIT: This might be your problemo.

    From the 0.88 changelog.
     
  3. Nah.

    That's for when plugins (or some other chiz) completely override a schema function, instead of adding onto it.
     
  4. MP6767

    MP6767 wesavages.org

    But I'm not overriding a schema function, I'm just calling it.
     
  5. I know. That's why I said taco was wrong.

    That's a framework function, not a schema one, btw.
     
  6. MP6767

    MP6767 wesavages.org

    That still doesn't solve my problem, I need to know why it's crashing my server when I try to use it.
     
  7. I know it doesn't solve your problem dude. Lol.

    Enter -condebug into your server's command line, restart the server, and paste the contents of the generated console.log file (located in the server's garrysmod directory) to pastebin.com

    After you have done so, just copy the URL of the paste and include it in your response.
     
  8. Arbiter329

    Arbiter329 Owner of Arc-Factory Roleplay

    IIRC If the folder used in AddDirectory has any subfolders it causes a crash.
     

Previous Readers (Total: 0)