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!

Other Clockwork Constructors - Construct your own items, factions, and plugins! (RELEASED)

Discussion in 'Development' started by RJ, Mar 5, 2017.

  1. RJ

    RJ no pay Legend Clockwork Customer

    The Blueprint Constructor for Clockwork Constructors has been released! So has the Quick Construction!

    As usual, feel free to leave some feedback or suggestions. Also pointing out potential exploits is much appreciated, I'll try to fix them ASAP when brought to my attention.

    Some pictures/content:
    [​IMG]

    [​IMG]

    Code:
    --[[
        This blueprint was constructed using http://www.ClockworkConstructors.com, a free
        and easy to use web application to make your own Clockwork items, factions,
        plugins, and more! Brought to you by http://www.JonathanDroogh.com, aka RJ.
    --]]
    
    local BLUEPRINT = Clockwork.crafting:New();
    
    BLUEPRINT.name = "Test Blueprint";
    BLUEPRINT.description = "A test blueprint for testing.";
    BLUEPRINT.model = "model.mdl";
    BLUEPRINT.category = "Test Category";
    BLUEPRINT.takeCash = 50;
    
    BLUEPRINT.itemRequirements = {
        ["item_id1"] = 1,
        ["item_id2"] = 2,
        ["item_id3"] = 3
    };
    
    BLUEPRINT.takeItems = {
        ["item_id4"] = 4,
        ["item_id5"] = 5,
        ["item_id6"] = 6
    };
    
    BLUEPRINT.giveItems = {
        ["item_id7"] = 7,
        ["item_id8"] = 8,
        ["item_id9"] = 9
    };
    
    -- Called just before crafting.
    function BLUEPRINT:OnCraft(player) end;
    
    -- Called just after crafting.
    function BLUEPRINT:PostCraft(player) end;
    
    -- Called when crafting is unsuccessful.
    function BLUEPRINT:FailedCraft(player) end;
    
    BLUEPRINT:Register();
    [​IMG]
     
    • Good Coder Good Coder x 3
    • Like Like x 1
  2. Aspect

    Aspect =) Legend Clockwork Customer

    So the blueprint constructor gets finished 10 minutes after I finish manualy-writting a bunch of crafting blueprints for my server.
    Oh man, my luck.

    Good shit tho, good job.
     
    • Like Like x 1
  3. RJ

    RJ no pay Legend Clockwork Customer

    Well that was unfortunate lol, but thanks anyways!
     
    • Friendly Friendly x 1
  4. RJ

    RJ no pay Legend Clockwork Customer

  5. RJ

    RJ no pay Legend Clockwork Customer

    So the results have pretty much settled down and it looks like the Library Constructor has won the vote. However I will be prioritizing the Faction Constructor (2nd most voted item) because the Library Constructor is a complicated task and I'm not too sure how to approach it right now. In the meantime I'll be reading more about libraries for Clockwork while working on the Faction Constructor.
     
    • Winner Winner x 1
    • Good Coder Good Coder x 1
  6. RJ

    RJ no pay Legend Clockwork Customer

    Initial UI for the Faction Constructor (ignore the bits at the end of the descriptions, that's just for developmental purposes):

    [​IMG]
     
    • Like Like x 3
    • Good Coder Good Coder x 1
  7. RJ

    RJ no pay Legend Clockwork Customer

    Another update on the UI! This will probably be the final version as I'm not seeing anything else to add or improve at this moment:

    [​IMG]
     
    • Like Like x 1
    • Good Coder Good Coder x 1
  8. WestCoastKillers

    WestCoastKillers all links to the manifesto Clockwork Customer

    You should add FACTION.singleGender as an extra option.
     
  9. Nice plugin.
     
    • Agree Agree x 1
    • Funny Funny x 1
  10. RJ

    RJ no pay Legend Clockwork Customer

    Thanks for the suggestion! I'm not sure what that does specifically so I'll be researching it, I'll be sure to add it in as well.

    It's a website, thanks regardless!
     
  11. Aspect

    Aspect =) Legend Clockwork Customer

    You could try to add a connection with the library constructor when it's done.
    Oooor you could add an option to choose the pain / death / walk / run sounds!
    Or both! :D
     
    • Disagree Disagree x 2
  12. RJ

    RJ no pay Legend Clockwork Customer

    Yeah, a lot of it is up in the air right now for the library. That constructor was probably the biggest stretch goal I had for Clockwork Constructors because I didn't know how to approach it. We'll see how things turn out once I figure out more about libraries and how they could work with Clockwork Constructors.
     
    • Good Coder Good Coder x 1
  13. Aspect

    Aspect =) Legend Clockwork Customer

    I've got a suggestion: Allow people to construct more than one blueprint at a time. Then they can download a zip file with all the blueprints they made.

    Oh and add an option to set the file name. So people don't have to rename it.
    Pls.
     
    • Like Like x 2
  14. RJ

    RJ no pay Legend Clockwork Customer

    Sounds good.

    I don't think I'll allow file names to be custom at this moment. The reason the file names aren't user-defined is to avoid any security issues. Once I learn more about how to prevent that issue I may consider adding that as an option.
     
    • Informative Informative x 1
  15. RJ

    RJ no pay Legend Clockwork Customer

    I made up some rudimentary stats counter: https://i.gyazo.com/a3e8bfed803c727782296a668b3a9d3b.mp4

    It's pretty basic, it just reads a number out of a .txt file then spits it out. I just have to add the functionality to increment that stat and then actually record the changes where applicable (e.g. increment the number by 1 after a successful construction takes place).
     
    • Like Like x 1
  16. RJ

    RJ no pay Legend Clockwork Customer

    I worked on a site changelog today: https://i.gyazo.com/339cb851eef0e98e3908acbd617f0d77.mp4

    edit: I'm also implementing Google Analytics so I can get more useful information on how the website is being used.

    This took a bit more time to make than you're probably thinking. I set it up so that the whole menu is automatically formatted for me so that adding new logs can be done with ease. This is all of the data I have to work with in order to add a new log:
    Code:
        $changelogArray = array(
            'TBD: Faction Constructor release. Menu additions.' => array(
                'Initial release of the Faction Constructor.',
                'Added a pop up menu for site statistics.',
                'Added a pop up menu for the site changelog.'
            ),
            '2018-01-30: Blueprint Constructor and Quick Construction release. Menu additions.' => array(
                'Initial release of the Blueprint Constructor.',
                'Initial release of Quick Construction.',
                'Added the Off Canvas Push Menu.',
                'Added a pop up menu for site information.'
            ),
            '2017-07-28: Plugin Constructor release.' => array(
                'Initial release of the Plugin Constructor.'
            ),
            '2017-04-20: Weight field for the Item Constructor.' => array(
                'Added "weight" field to the Item Constructor.'
            ),
            '2017-04-09: Item Constructor reformatting and summary page improvements.' => array(
                'Improved the Item Constructor\'s input format to split up the inputs more appropriately.',
                'Improved the Item Constructor\'s summary page to be more informative.'
            ),
            '2016-04-08: Model and batch fields for the Item Constructor.' => array(
                'Added "model" and "batch" fields to the Item Constructor.',
                'Improved input descriptions for the Item Constructor.'
            ),
            '2016-03-26: Website and Item Constructor release.' => array(
                'Initial Clockwork Constructors website release.',
                'Initial Item Constructor release.'
            )
        );
    
     
    • Good Coder Good Coder x 2
    • Like Like x 1
  17. RJ

    RJ no pay Legend Clockwork Customer

    The Faction Constructor is coming along nicely, there's not much left to do before being able to release it. Here's some pictures:

    edit: Please ignore any spelling mistakes or inconsistencies, I usually fix those things at the end.

    [​IMG]

    [​IMG]

    [​IMG]
     
    • Like Like x 2
  18. RJ

    RJ no pay Legend Clockwork Customer

    Alright, so... I've got the stats implemented/fully working and most of the Faction Constructor completed. All that's left is filling in the blanks for the summary page that shows up after constructing a faction and also testing things. The Faction Constructor release should be pretty soon now.
     
    • Like Like x 1
  19. RJ

    RJ no pay Legend Clockwork Customer

    I think I've got everything completed now. If all goes well then the next post should be a notification of the Faction Constructor's release. Here's some more pictures, this should look pretty close to the finalized version (disregard the debug menu):

    [​IMG]

    [​IMG]

    [​IMG]

    edit: Oh and one other thing, I'm changing up some notes/helpful info in how it's displayed. I'll be replacing them with info/question mark icons that you can hover your mouse over and then some text will pop up.
     
    • Good Coder Good Coder x 1
  20. Aspect

    Aspect =) Legend Clockwork Customer

    Pssssst

     

Previous Readers (Total: 0)