1. Post #41
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    You need to add onto this, such as make the first tab's stuff saveable, or save all settings to console/to clipboard, or even better, TO A FILE
    Implemented that yesterday evening. The entire configuration can be saved to a glon encoded file. That update will go public once I have viewmodel to worldmodel transfers done.

  2. Post #42
    ozzypozzy's Avatar
    March 2010
    142 Posts
    Awesome. Could you make it so you make it so you can mess around with the power, recoil, accuracy or even launching stuff. I don't code so I don't know how hard it will be.

    I understand that some things simply can't be coded. :)
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 1 (list)

  3. Post #43
    Gold Member
    ralle105's Avatar
    October 2005
    4,625 Posts
    Awesome. Could you make it so you make it so you can mess around with the power, recoil, accuracy or even launching stuff. I don't code so I don't know how hard it will be.

    I understand that some things simply can't be coded. :)
    This isn't a swep creator, it's just a dev tool to create more interesting looking weapons.
    Reply With Quote Edit / Delete Reply Sweden Show Events Agree Agree x 5 (list)

  4. Post #44
    ozzypozzy's Avatar
    March 2010
    142 Posts
    Oh, OK but I'd immediately change the name. When I saw "SWEP Construction Kit" I thought that it'd make SWEP's rather than V_models.

    Don't get the wrong end of the stick this is a good release.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 3 (list)

  5. Post #45
    TheBricktop's Avatar
    September 2008
    77 Posts
    Well, with that tool your first swep might look interesting. awesome work.

  6. Post #46
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    UPDATE:
    * Added worldmodel positioning!
    * Added design saving and loading
    * Fixed sprites being drawn behind models
    * Changing numberwang textfields now directly updates the value



    Updated OP with new tutorial!
    Reply With Quote Edit / Delete Reply Netherlands Show Events Lua King Lua King x 4Optimistic Optimistic x 1 (list)

  7. Post #47
    Cardcapture1's Avatar
    August 2008
    212 Posts
    For some reason I put the self:CreateViewModels() in the shared file under Initialize() and only run for CLIENT, but i still cant see it. I put it in the weapon base I have for TTT. I executed it clientside while I have the weapon out and it works. Also if I ran the command more than once on a client the models/sprites won't stack right?

  8. Post #48
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    For some reason I put the self:CreateViewModels() in the shared file under Initialize() and only run for CLIENT, but i still cant see it. I put it in the weapon base I have for TTT. I executed it clientside while I have the weapon out and it works. Also if I ran the command more than once on a client the models/sprites won't stack right?
    They won't stack. Do mind that for the new version there is new base code.

  9. Post #49
    Cardcapture1's Avatar
    August 2008
    212 Posts
    They won't stack. Do mind that for the new version there is new base code.
    Ya I see that. Plan on adding an import function that opens a text field to input the VElements data in-case you want to edit without having to recreate?

    EDIT:

    Nvm. Lol didn't check the new update before typing that.

    EDIT v2:

    The viewmodel position looks entirely different. It looks a lot closer then normal and none of the animations are working for the AWP when it used to for the other version.

  10. Post #50
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    The viewmodel position looks entirely different. It looks a lot closer then normal and none of the animations are working for the AWP when it used to for the other version.
    Toy with the Weapon settings. I probably changed the default Viewmodel FOV.

    The animations are a different issue. GMod isn't happy that the viewmodel is changed and decides it doesn't want to animate it any more. Can't do much about that.

  11. Post #51
    Cardcapture1's Avatar
    August 2008
    212 Posts
    Toy with the Weapon settings. I probably changed the default Viewmodel FOV.

    The animations are a different issue. GMod isn't happy that the viewmodel is changed and decides it doesn't want to animate it any more. Can't do much about that.
    For your next update can you change the 3rd person view position to the center of the weapon or possibly even the Sprite/Model your working on. It would be of more use.

  12. Post #52
    Ashmourne's Avatar
    August 2010
    127 Posts
    Slight suggestion. How about next update you include a skeleton swep, like the "Swep Creator" that gives you a shared file, only include all of your code so people who don't know how to script can make there sweps work, by just putting in stuff like Damage and recoil and stuff... just a suggestion, will satisfy alot of people who don't take the time to learn lua.

    Though a problem with my suggestion there would be that people would create very simple creations that they think are cool, and suck.

    Still, it would help rack in downloads and pleasure nubs.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 4 (list)

  13. Post #53
    ThePunchmaster's Avatar
    June 2010
    10 Posts
    The only thing that would Perfect this is one thing......

    Make a button, that you can click to make it a Fully working swep. But, then you need to copy the SWEP codes and everything to make it fire etc, into a Garrysmod addon folder. Then restart gmod, and BOOM! you got the sweps :D
    Reply With Quote Edit / Delete Reply Canada Show Events Agree Agree x 3 (list)

  14. Post #54
    jonnspartan's Avatar
    June 2008
    6 Posts
    Can't seem to understand your lua settings.... Ive got the stuff I want... But when it comes time to do the Lua part... I don't understand what to do exactly... Is it possible to post a tutorial on how to do the lua portion... I'm not a lua guy so this is rather difficult for me.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 2 (list)

  15. Post #55
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Slight suggestion. How about next update you include a skeleton swep, like the "Swep Creator" that gives you a shared file, only include all of your code so people who don't know how to script can make there sweps work, by just putting in stuff like Damage and recoil and stuff... just a suggestion, will satisfy alot of people who don't take the time to learn lua.

    Though a problem with my suggestion there would be that people would create very simple creations that they think are cool, and suck.

    Still, it would help rack in downloads and pleasure nubs.
    I could do this, but I don't think I want to. It really is piss easy to add my base code if you know even a tiny bit about how a SWEP script actually works. I'm trying to encourage SWEP creators to actually learn this stuff, instead of being stuck at changing recoil and damage values.

    Edited:

    If you really can't get it to work, dump your SWEP code on pastebin.com and give me a link. I'll tell you where it goes wrong.

    Edited:

    Mr. Green community member NECROSSIN created this design:



    I'd love to see what you guys are making!

  16. Post #56
    Problematic.'s Avatar
    September 2010
    149 Posts
    @Clavus- I thing that Ashmourne is right. You should make SWEP Creator because not everyone have time to learn code but they want have some fun with yours tool. And if you advanced then you can just modify file of sweep :D And if you make it it will become popular like PAC2 (maybe ;p)

  17. Post #57
    Gold Member
    Jamie932's Avatar
    July 2008
    2,589 Posts
    I disagree with all of you who think that this should have a SWEP creator within. In my opinion, this should be used as a developer tool to make your weapons more unique, and to avoid the trouble of getting a modeller. If you don't know how to code - then either learn or leave this alone.

    I'm sure none of us would want a load more 5 second SWEPs coming onto GMod.org.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 7 (list)

  18. Post #58
    mark12996's Avatar
    July 2010
    2 Posts
    :P
    Reply With Quote Edit / Delete Reply Denmark Show Events Dumb Dumb x 4 (list)

  19. Post #59
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Added a gallery to OP.

    Reply With Quote Edit / Delete Reply Netherlands Show Events Artistic Artistic x 4 (list)

  20. Post #60
    Gold Member
    Jamie932's Avatar
    July 2008
    2,589 Posts
    I think I found a bug. In the current version on Toybox, when you save and load (tried this with a few sprites) - the second size box reverts to what the first box says.

    For example, is what the size boxes first read. Then I saved and loaded it, and it reverted to

  21. Post #61
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Ah right, noted. Bug in how the panels are build up.

    Edited:

    Wait, according to the code this shouldn't happen... I'll take a closer look.

  22. Post #62
    Azaz3l's Avatar
    April 2010
    1,993 Posts
    Tactic00l Deagle :


    Should I upload this to toybox?

    BTW , Great Addon!
    Reply With Quote Edit / Delete Reply France Show Events Artistic Artistic x 4 (list)

  23. Post #63
    mark12996's Avatar
    July 2010
    2 Posts
    how can i get a SWEP script? plz Reply
    Reply With Quote Edit / Delete Reply Denmark Show Events Dumb Dumb x 5Agree Agree x 1 (list)

  24. Post #64
    floof's Avatar
    October 2010
    27 Posts
    Do I put the base script before or after my script? Sorry if this is a stupid question but i'm new to lua :p.
    Im assuming before, but....

    On a side note this is a very great tool. Your tool was actually the only reason I attempted to create a swep, thank you.

  25. Post #65
    Ashmourne's Avatar
    August 2010
    127 Posts
    Like said earlier, you need to include a skeleton swep in next release with your code in it.

  26. Post #66
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Since some of you seem to be so intent on not-learning-how-to-script, I've copied the Desert Eagle code from the default CSS weapons GMod provides and added my base code:

    REMOVED because it's outdated
    

    But promise me this: don't submit any 5-second-SWEPs created with the above base to Toybox. Try to come up with some cool / unique functionality.
    Reply With Quote Edit / Delete Reply Netherlands Show Events Lua Helper Lua Helper x 8 (list)

  27. Post #67
    Ashmourne's Avatar
    August 2010
    127 Posts
    Ah yes that will satisfy most.

  28. Post #68
    floof's Avatar
    October 2010
    27 Posts
    Ok so basically what do I need to add/change to make this script work? There is going to be a lot wrong with it, i'm new to lua, and was never good with those sort of things....
    http://pastebin.com/sqGLsFTa
    Sorry to bother you.

  29. Post #69
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Ok so basically what do I need to add/change to make this script work? There is going to be a lot wrong with it, i'm new to lua, and was never good with those sort of things....
    http://pastebin.com/sqGLsFTa
    Sorry to bother you.
    First off, SWEP.ViewModel and SWEP.WorldModel are the paths to the original viewmodel and the worldmodel that GMod will use for your weapon. Just look at the base code I posted above to see where you place the SWEP.VElements and SWEP.WElements table.

    Secondly, you define SWEP:Initialize twice, which means the last one overrides your first one. Merge them:
    function SWEP:Initialize()
    	
    	util.PrecacheSound(self.Primary.Sound)
        util.PrecacheSound(self.Secondary.Sound)
    		
    	self:SetWeaponHoldType( self.HoldType )
    	self.Weapon:SetNetworkedBool( "Ironsights", false )
         
        if CLIENT then
            self:CreateModels(self.VElements) // create viewmodels
            self:CreateModels(self.WElements) // create worldmodels
        end
     
    end
    
    Reply With Quote Edit / Delete Reply Netherlands Show Events Informative Informative x 2Lua King Lua King x 1 (list)

  30. Post #70
    Dark Slayre's Avatar
    January 2010
    124 Posts
    Works perfectly, the only problem is the recoil of the HL2 SMG model pushes the gun back and the models just stay there, they don't move with the gun itself.

  31. Post #71
    CapsAdmin's Avatar
    August 2005
    3,925 Posts
    call it SWEP Designer maybe?
    Reply With Quote Edit / Delete Reply Norway Show Events Zing Zing x 1Winner Winner x 1Agree Agree x 1 (list)

  32. Post #72
    [NUKE] Snipe's Avatar
    December 2010
    59 Posts
    Or SWEP Appearance Customizer :P haha jk, but on a serious note, this addon is pretty epic and I've yet to encounter any bugs with it.

    Oh btw, that crossbow LOOKS EPIC.

  33. Post #73
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    Works perfectly, the only problem is the recoil of the HL2 SMG model pushes the gun back and the models just stay there, they don't move with the gun itself.
    They do if you select the right bone for the models you added.
    Reply With Quote Edit / Delete Reply Netherlands Show Events Informative Informative x 1Useful Useful x 1 (list)

  34. Post #74
    GoldGrunt's Avatar
    November 2010
    7 Posts
    I can `t open Wmodels.There's nothing.

    http://i065.radikal.ru/1012/6f/84c89886bf94.jpg
    Reply With Quote Edit / Delete Reply Ukraine Show Events Late Late x 1 (list)

  35. Post #75
    Gold Member
    Clavus's Avatar
    September 2009
    6,049 Posts
    I can `t open Wmodels.There's nothing
    You probably still have the first version. Re-download it (from toybox or garrysmod.org).
    Reply With Quote Edit / Delete Reply Netherlands Show Events Lua Helper Lua Helper x 2 (list)

  36. Post #76
    GoldGrunt's Avatar
    November 2010
    7 Posts
    Re-download but swep is gone
    Reply With Quote Edit / Delete Reply Ukraine Show Events Dumb Dumb x 2 (list)

  37. Post #77
    floof's Avatar
    October 2010
    27 Posts
    Ok late reply but
    So I merged the initiatives, and what not and thank you..... but it still dosen't seem to show up.
    http://pastebin.com/bQXGzJmQ
    Sorry for the constant questions.

  38. Post #78
    KwiggALT's Avatar
    April 2008
    697 Posts
    So, I save the config? Because when i open it, i see boxes, and notepad++ has wierd icons everywhere: with SOH and BEL in everywhere

  39. Post #79
    Sergeant Stacker's Avatar
    April 2009
    2,611 Posts
    Holy shit, you deserve all those lua king ratings.

  40. Post #80
    Ashmourne's Avatar
    August 2010
    127 Posts
    Okay so i am using this to make a swep from fallout (Silenced N99 pistol) I already had the N99 pistol, so i used the USP to make it look silenced. Please tell me what i did wrong here

    In swep Construction Kit



    In my Swep


    The swep functions correctly, it makes the correct sound, fires at the right rate at the right damage, And the world model worked perfectly, but the view model did this. I tried restarting but had similar results. i even reinstalled the swep construction kit. Please tell me what i did wrong.
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 9Agree Agree x 1 (list)