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!

[Clockwork] Free Crafting

Discussion in 'Plugins' started by duck, Jun 28, 2014.

  1. TheAmerican

    TheAmerican America is the land of the free.

    Welcome to my praise list, Atebite.
     
  2. duck

    duck Phant0m Legend

  3. TheAmerican

    TheAmerican America is the land of the free.

    Thanks duck! Love the plugin! Keep adding things to it!
     
  4. Damn, I think that this is getting better than RJ's plugin. R.I.P. my money.
     
  5. prizonerzr0

    prizonerzr0 Clockwork Customer

    Can someone please put a functional recipe in for something like the flashlight so that I can understand fully how this works? I am trying to write some items for my serer, but for some reason they do not come up in the menu to craft, I am unaware if this is due to the ID I am putting in for the ingredients or what, Please assist.

    Thanks in advance.
     
  6. duck

    duck Phant0m Legend

    There is one in the original post.
     
  7. prizonerzr0

    prizonerzr0 Clockwork Customer

    Ok, Thanks.
     
  8. prizonerzr0

    prizonerzr0 Clockwork Customer

    Can anyone give me a hand? I have written an Item, I placed it in the recipe folder in the plugin, this did not work. I also attempted to make a new recipe folder in the schema, this did not work either.

    local RECIPE = Clockwork.recipe:New("flashlight");
    RECIPE:Require("melon", 1, 0);
    RECIPE:Require("cw_suitcase", 1, 1);
    RECIPE:Output("flashlight", 1);
    RECIPE:Factions("Citizen", "Metropolice Force");
    RECIPE.model = "models/props_junk/watermelon01.mdl";
    RECIPE.description = "Testing";
    RECIPE.cost = 50;
    RECIPE:RequireAttrib("Stamina", 1)
    RECIPE:Register();

    Mind you this is not the final product (Just a test to get a feel for it), nor do you make a flashlight from a suitcase and a watermelon FYI.
     
  9. duck

    duck Phant0m Legend

    What do you mean it didn't work? Are there any errors?

    By the way, you should be calling it the folder recipes

    It should look like schema\recipes\sh_example.lua
     
  10. prizonerzr0

    prizonerzr0 Clockwork Customer

    No errors as far as I know, And it does not appear in the crafting menu in-game, Just the Melon Suitcase thing.

    I have the same file path for the recipes folder.
     
  11. prizonerzr0

    prizonerzr0 Clockwork Customer

    I am continuing to have the issue I stated in the previous post, is anyone able to assist me?
     
  12. Discordia

    Discordia >Implying that I care

    I'm having the same issues unfortunately, not sure what the root of the problem is considering that the coding seems correct. I've moved it from the Recipe in the CW plugin to the schema plugin section, nothing really ever changes and there are 0 console errors.
     
  13. duck

    duck Phant0m Legend

    Oh, yeah I forgot to reply. I'm not really in the mood to provide support for this, anyways. If it doesn't work for you, you're doing something wrong.
     
    • Winner Winner x 1
  14. prizonerzr0

    prizonerzr0 Clockwork Customer

    Alrighty then, Sorry to bug you, I guess i'll keep trying and see if some one else can be kind enough to assist me in the issue.

    Have a nice day.
     
  15. If you want help, upload your plugin with the recipes inside and I'll look at it for you. Alternatively, pastebin it or something like it. "It doesn't work" isn't very descriptive, you see.
     
  16. prizonerzr0

    prizonerzr0 Clockwork Customer

    http://pastebin.com/T6v0yGWV

    This is a test Item, I attempted to make a flashlight using a melon and a suitcase... This is not functional, nor any others I try, if someone can Pastebin a functional Recipe that would be nice.
     
  17. Discordia

    Discordia >Implying that I care

    Le upload plugin file. https://mega.co.nz/#!6R5WEYTL!LP-xW4RiAkTjV0XsR6NtCgRKuwz1VznWeMWg2lY1PGo
     
  18. Use pastebin.pw.

    You're passing the item names as arguments, you need to pass their uniqueID. Unless defined in the item's file (through ITEM.uniqueID), the item's uniqueID is a lowercase version of the item's name where all spaces are replaced with underscores (_).

    For example, looking at your recipe for 9mm bullets, it should be like this:

    Code:
    local RECIPE = Clockwork.recipe:New("9mm Ammo");
    		RECIPE:Require("gunpowder");
    		RECIPE:Require("bullet_casings");
    		RECIPE:Output("9mm_pistol_bullets");
    		RECIPE.description = "Creates 9mm bullets.";
    		RECIPE.model = "models/error.mdl";
    RECIPE:Register();
    
     
  19. prizonerzr0

    prizonerzr0 Clockwork Customer

    Thank you very much, I will try this and post my results.
     
  20. Tomo742

    Tomo742 Guest

    Whenever I create a recipe and the requirements has more than one word in, it keeps the text as red even when I have the item. Is there a fix for this?
     

Previous Readers (Total: 0)