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

    Martz Guest

    Hey, even though you rate everyones posts dumb.
    This is perfect. Well done as usual, duck.
     
  2. Tommy

    Tommy used to be relevant Moderator Clockwork Customer

    business menu buttons
    need a crafting plugin for skidhive?
    im currently banned on your server permanently because apparently anywhere my playermodel cant hide ooc, i cant hide ic, under a bed i.e. etc



    [​IMG]
     
  3. duck

    duck Phant0m Legend

    Yes, they are only buttons. RJ's are actual items.
     
  4. RJ

    RJ no pay Legend Clockwork Customer

    Why are you comparing to my old version? Here's what it actually looks like:
    http://pastebin.pw/4fsntd

    Additionally, my crafting automatically shows the requirements.

    I haven't gotten a support ticket in over a month and everyone is always free to add me on Steam.
     
  5. duck

    duck Phant0m Legend

    Ah, I didn't really know it was an old version. Still, there's a ridiculous amount of lines and lua.
     
  6. Nano

    Nano please die

    -huge announcer voice-


    DUCK
    IS
    BACK​
     
  7. duck

    duck Phant0m Legend

  8. RJ

    RJ no pay Legend Clockwork Customer

    Not a great comparison considering the fact I have a bunch of comments and some extra spacing to improve readability. Plus mine has weight, description overriding and an extra function. Yours just takes and gives, mine has separate checking, taking and giving.
     
  9. duck

    duck Phant0m Legend

    The spacing contributes to the problem. Even with the comments on new lines removed, your blueprints still take up 4 times as much space as mine do. With my plugin, comments aren't really needed as much as yours because your blueprints are much more obscure and unreadable to inexperienced people.

    Most people don't want additional checking. Most people just want to go

    "You need this stuff to get this stuff".

    It's unneeded complexity.
     
  10. RJ

    RJ no pay Legend Clockwork Customer

    My blueprint takes up more space because it has more functionality. Commenting on how things work is just good practice, especially when someone not as knowledgeable in programming is working with your program. I've also had numerous people come to me asking if they can do X and I say they can with Y (one of the checks). I'm also using the basis of all crafting: What you need, give and get. I don't see how it can get any simpler.
     
  11. Greekin

    Greekin Clockwork Customer

    Thanks duck, amazing work. I can see this being used a lot.

    I like the thought of you adding workbenches or crafting tables. Sounds cool.

    10/10 would install again.
     
  12. duck

    duck Phant0m Legend

    >_<

    Ah well. Anyways, Atebite has done a fantastic job and has implemented requiring entities around the player. I have also added the requiring of tokens. Here's an example of requiring entities (it goes by the entity's class, this is sort of a more advanced feature).

    Code:
    RECIPE:RequireEntity("cw_vendingmachine", "Vending Machine");
    Code:
    RECIPE.cost = 50;
    http://i.imgur.com/Kp5Bzrs.png

    Of course, these are optional. There is also a config option, Crafting radius, that specifies the radius it will look for entities around the player.

    https://dl.dropboxusercontent.com/u/32687773/recipes.zip

    thanks :3
     
  13. Lev

    Lev certified honorable guy

    Duck to rescue!
    You're so good at lua. q.q
     
  14. TheHipster

    TheHipster rhenz is a fairly decent fellow

    Hmm. I wonder. Duck, If I draw you a picture if a duck can I get a custom plugin like you used to do in the past?

    Kay Thanks babe. <3

    [member=5482]duck[/member]
     
  15. Greekin

    Greekin Clockwork Customer

    Now you need to have faction specific requirements as well.

    [​IMG]
     
  16. duck

    duck Phant0m Legend

    Maybe when the new plugin site is up.

    Sure thing.
     
  17. I don't mean to sound rude but it won't be easy to beat free RJ. Duck is adding more and more things to his plugin by the day. You're going to need to do something impressive to win this battle.
     
  18. RJ

    RJ no pay Legend Clockwork Customer

    It's not a battle to me, people are free to choose and do what they like.
     
  19. duck

    duck Phant0m Legend

    Added RECIPE:Factions. Here's how to use it.

    Code:
    RECIPE:Factions("Citizen", "Metropolice Force", "Vortigaunt", "Civil Workers Union");
    You can add as many factions there as you want. Be sure to separate them with commas, and use proper capitalization. If the player is not in any of the factions, they will not see the recipe in the list. Also, new hooks. Good news if you're a developer that wants to extend the plugin.

    clientside
    Code:
    -- Called just before the requirements are added to the tooltip.
    function Clockwork:PreRecipeRequired(recipeTable, toolTip) end;
    
    -- Called just after the requirements are added to the tooltip.
    function Clockwork:PostRecipeRequired(recipeTable, toolTip) end;
    
    -- Called just before the outputs are added to the tooltip.
    function Clockwork:PreRecipeOutputs(recipeTable, toolTip) end;
    
    -- Called just after the outputs are added to the tooltip.
    function Clockwork:PostRecipeOutputs(recipeTable, toolTip) end;
    
    -- Called just after a recipe is clicked.
    function Clockwork:RecipeClicked(recipeTable) end;
    serverside
    Code:
    Clockwork:ShouldPlayerCraftRecipe(player, recipeTable)
    https://dl.dropboxusercontent.com/u/32687773/recipes.zip
     
  20. Greekin

    Greekin Clockwork Customer

    You're amazing.

    Desktop background for those interested:

    [​IMG]
     

Previous Readers (Total: 0)