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!

NightAngel's Development Thread

Discussion in 'Development' started by NightAngel, Jul 20, 2014.

  1. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    Messing around with my itembuilder plugin hurhurhur

    [​IMG]

    For some reason, the items show up in the itembuilder main menu, and save every restart, and they all register properly, but the only problem is that I can't see them in my inventory when I give them to myself, and they don't show up in the salesmen. Hmmmmm...

    More Pics..

    [​IMG]

    [​IMG]
     
  2. Sophia

    Sophia Guest

    Re: NightAngel's Development Thead

    So nice, I love it.
     
  3. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    I'm still trying to get it work atm, will add more features like being able to create weapons, consumables and removing items from the custom list later. I really can't understand why I can't see the custom items in my inventory or within the salesmanadd/edit menus though....

    Help me.. <3 [member=5482]duck[/member] [member=5522]Atebite[/member] [member=1476]Gr4Ss[/member] [member=5787]Sophia[/member]
     
  4. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    They use the register function from the framework, it doesn't have to be in their own sh_item.lua file. I can give them to myself with /chargiveitem, and I can find them with the function:
    Code:
    Clockwork.item:FindByID() 
    But I just can't see them in my inventory or the salesman derma menu.
     
  5. duck

    duck Phant0m Legend

    Re: NightAngel's Development Thead

    Need to see the code.
     
  6. NightAngel

    NightAngel Fuck off Lev

  7. Badhamknibbs

    Badhamknibbs /me snaps neck Clockwork Customer

    Re: NightAngel's Development Thead

    Looks good, hope you make some more good stuff.
     
  8. Re: NightAngel's Development Thead

    You can't see them because they aren't networked to the client (I assume) if you only make them server side. Item's are shared files, so they get both loaded client and server-side. When your inventory gets made, or the salesman menu, it uses the client-side item list (as it should be the same as the server-side one if all items are shared).
     
  9. duck

    duck Phant0m Legend

    Re: NightAngel's Development Thead

    This was the case. I told her earlier today.
     
  10. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    [member=1476]Gr4Ss[/member] Senpai still helped me out doe~ <3
     
  11. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    Thanks to [member=1476]Gr4Ss[/member] and [member=5482]duck[/member] for helping me along with all the networking thingies.

    Got a basic in-game item maker now.

    http://youtu.be/NPLX3dROnPw
     
  12. Owl

    Owl smoke weed

    Re: NightAngel's Development Thead

    try and add something that allows you to make weapons, like a tick box thingy or something.
     
  13. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    Oh don't you worry, that's right on my list. Just trying to get the framework of it all set up and make sure it all works before adding more features to it.
     
  14. Re: NightAngel's Development Thead

    Add saving to it. Save the created item tables as JSON/vON within a file in the data folder and then load them on init.
     
  15. NightAngel

    NightAngel Fuck off Lev

    Re: NightAngel's Development Thead

    already had that done, senpai~ <3

    proof :D
    Code:
    sv_hooks.lua
    
    local PLUGIN = PLUGIN;
    
    -- Called just after data should be saved.
    function PLUGIN:PostSaveData()
    	self:SaveCustomItems();
    end;
    
    -- Called after a player's config is initialized.
    function PLUGIN:PlayerSendDataStreamInfo(player)
    	Clockwork.datastream:Start(player, "GiveStartItems", self.customItems);
    end;
     
  16. Crater

    Crater Hostell Roleplay

    Might be more work than it's worth (because you might have to edit the item base completely), but a color picker inside the item creation menu would be cool. Essentially it would change the text color when you look at it, among other things (halo.Add maybe?).
     
  17. NightAngel

    NightAngel Fuck off Lev

    k so I've been trying to add on to the itembuilder to allow for selecting different bases like weapons and such, but I've pretty much broken it, especially with trying to open the menu in tab menu, and now the thing doesn't even load the items on startup. I'm so frustrated right now, AAAA!

    So I get this error

    [​IMG]

    Whenever I try to open up the menu with the tab menu, and it just shows up as a blank window.

    [​IMG]

    Here's my shitty code, try not to cringe too hard. I've just made a mess of everything trying to do this and I'm so frustrated with it atm.

    Download

    plz send help <3

    [member=5482]duck[/member] [member=1476]Gr4Ss[/member] [member=1220]RJ[/member] [member=5522]Atebite[/member] [member=4580]TheGarry[/member]
     
  18. Based on the post only it looks like you're trying to/doing something that make vON serialize a panel. That doesn't work.
     
  19. NightAngel

    NightAngel Fuck off Lev

    I have no idea what vON is or does ;-;

    I'm trying to get Clockwork to open up a derma panel with the tab menu, which when it initializes networks the data of the custom items from the server and populates it with that data.
     
  20. duck

    duck Phant0m Legend

    vON is like JSON. It's a way to turn tables into a string and back. It's what the datastream library uses.

    http://www.facepunch.com/showthread.php?t=1194008

    Code:
    Clockwork.datastream:Start("RequestData", self);
    You are attemping to send the panel through the datastream on line 34 in cl_itemmainmenu.
     

Previous Readers (Total: 0)