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. NightAngel

    NightAngel Fuck off Lev

    [me=NightAngel]tears apart, looking for da derma muaahahahahahaha[/me]
     
  2. duck

    duck Phant0m Legend

    Watcha gonna make?
     
  3. NightAngel

    NightAngel Fuck off Lev

    Gonna look at your layout to improve my itembuilder plugin.
    I'm still inexperienced with derma. I'm looking at how you did it, but it's sooo confusing.. xD
     
  4. duck

    duck Phant0m Legend

    It's a lot of math and whatnot. I'll use this as an example.

    Code:
    self.requiredItems:SetPos((w * .5) + 8, 28);
    self.requiredItems:SetSize((w * .5) - 13, h * .5 - 18);
    w is the width of the form, and h is the height of the form. Width comes first, and height second. 0, 0 is the topmost leftmost position.

    15, 0 is the topmost position that is 15 units to the right.

    The width * .5 is half of the size of the form. Any number * .5 is equal to any number / 2. What the first line does is basically say "set it to the center, but push it towards the right by 8 units". 28 is telling it to set the control 28 units from the top of the form. Setting the size is pretty much the same thing.

    Just keep in mind that the topmost leftmost part is 0, 0.

    Width, Height. The more width there is, the more to the right it goes. The more height there is, the more to the bottom it goes.
     
  5. Are you sure you released it WITH the on success/failure functions? I checked the file in libraries which contains all the functions, and it wasn't there. I guess I need to switch to linux or something.

    EDIT: Oh, so it's in other file. Dammit duck, y u so complicated ._.
     
  6. duck

    duck Phant0m Legend

    I may get to adding a recipe browser so you can see all loaded recipes and modify them without having to create a new one.
     
  7. Maybe update the Recipe Maker with stuff like Tokens, Atts, Entities.
     
  8. duck

    duck Phant0m Legend

    It'd be relevant because all of that stuff is only able to be added by editing the file directly. Those should be in the recipe creator for advanced users, but there's only so much room on a monitor for all of the buttons, textboxes, and list of things. It wouldn't be feasible for me to add all of that stuff to the creator, especially since I was aiming for extreme simplicity.

    TL;DR - It's supposed to be simple, and it would take up too much room anyways.
     
  9. Pawn

    Pawn Registered User

    @duck @Atebite
    Hey, I know it's been a while since you've posted on this....don't know if it's still updated or naw, but, I was wondering where the recipes coding goes after you make it with the Recipe Creator, so you can clear it and all.

    Plus, I have a suggestion, probably been suggested and all but...
    You should try to make it so you can decide if it needs the crafting bench or not. Stuff like that on the recipe builder. Also, put something where you can delete the recipe in-game (Don't know if that's already a thing, that I've yet to find.)

    Thanks!
     
  10. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    I believe there's a clear button in the recipe creator.
    Also, you can make it require an entity (crafting bench) if you create your own recipe using Lua, duck shows how to make a recipe on the OP. You can make it require an entity with RECIPE:RequireEntity. Don't think it is in the recipe creator though.
     
  11. duck

    duck Phant0m Legend

    They go to either the main schema directory or main Clockwork directory. You should see a folder called recipes. Deleting recipes in game is something I may add. For the bench thing, Vortix is right, you need to use Lua. I can't add everything to the recipe creator cause I'd run out of room.
     
  12. A bit late but,
    Maybe add a "reload recipes" button
    and also, add fields for thecategory and the required entities to the recipe creator

    (And/or add the functions to the first page :D)
     
  13. Zoo

    Zoo title

    What's the workbench for?
     
  14. duck

    duck Phant0m Legend

    It's a simple entity in case you want to require players to be at a workbench to craft a certain recipe.
    Code:
    RECIPE:RequireEntity("cw_workbench", "Workbench")
     
  15. Darsenvall

    Darsenvall Clockwork Customer

    Seems like it's broken after the update: when I'm going to Recipes frame it's just empty.
     
  16. vova82004

    vova82004 Clockwork Customer

    I get this error in console.
    Code:
    [Clockwork:Recipes]
    The 'ClockworkSchemaLoaded' hook has failed to run.
    gamemodes/cwphasefour/plugins/recipes/plugin/sh_plugin.lua:8: bad argument #1 to 'pairs' (table expected, got nil)
     
    • Informative Informative x 1
  17. You deserve a kiss for this! Come here you virgin!
     
  18. karl-police

    karl-police Hotrod turret Clockwork Customer

    Minecraft?
    A mini workshop like those "iPhones" to craft stuff.

    WHATS ABOUT THAT THE PLAYER NEEDS SOME CIND OF EXPERIENCE TO CRAFT THIS?
     
  19. grafikerror

    grafikerror Clockwork Customer

    -SNIP-
     
    Last edited: Jun 19, 2016
  20. Alien_Halls

    Alien_Halls Clockwork Customer

    I think the plugin its broke too
     

Previous Readers (Total: 0)