1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Weave light to take you to your highest hopes - the 6th Special Effect Contest is here!
    Dismiss Notice
  4. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Disarm: Weaponless Model Creator

Discussion in 'Warcraft Editing Tools' started by Retera, Apr 2, 2014.

?

What feature(s) should Disarm get next?

Poll closed Apr 12, 2014.
  1. More than just weapons --> remove AND ADD any body part (head, leg, etc.)

    5 vote(s)
    55.6%
  2. More than just weapons --> remove any body part (head, leg, etc.)

    1 vote(s)
    11.1%
  3. "Add > Footman" button to add footman's weapon, etc.

    3 vote(s)
    33.3%
  4. Good as it is

    0 vote(s)
    0.0%
  1. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    So the other night I was noting how tons of people on the Simple Model Workshop request people use the Matrix Eater that I wrote to create weaponless models, and I felt like an excess of repeated work is a waste of time. So... I created "Disarm", a tool that can instantly produce a weaponless model for any unit you choose and save the model in ready-to-go MDX format.

    I'm creating this thread because I think the tool is so nifty and simple as a one-night project that I'm considering trying to get it hosted as an official tool (however that works, still haven't actually done that with the Matrix Eater) and so I was curious if anybody wanted to test it / suggest things to it.

    I've been quite busy, but I think if I have time since this program is finding and removing weapons it should be able to also add weapons from other units of your choosing, so you just push "peasant -> remove" and then "add -> footman" or something and it lops off the footman's sword and puts it on the peasant. Doesn't seem so unreasonable to me. Who votes I actually spend the time on that?
    And what do you guys think of Disarm so far? Buggy? Useful? I had fun making it.

    Disarm lets you choose models from either the World Editor Unit Type chooser:
    Unit Type Chooser
    [​IMG]

    Or from the Object Editor's Model Chooser
    Model Chooser
    [​IMG]


    Known bugs:
    - Disarm cannot open MDX files where the MDX includes capital letters, instead of "mdx".

    Recently fixed bugs (try the new download!):
    - Disarm used to corrupt session files used by the Matrix Eater, so that running one after the other forgot all program settings -- including Warcraft directory.
    - Disarm used to delete all MDX files saved, but only after you closed Disarm

    DOWNLOAD DISARM:
    Use the link below or go to the Tools section where it will hopefully soon be approved!
    http://www.hiveworkshop.com/forums/tools-560/disarm-v1-05-a-274778/?prev=org=1

    Older version download link (hard to find because its in another thread)


    See Thumbnails for a picture tutorial of how to use it:
     

    Attached Files:

    Last edited: Jan 18, 2016
  2. Adiktuz

    Adiktuz

    Joined:
    Oct 16, 2008
    Messages:
    9,674
    Resources:
    23
    Models:
    2
    Packs:
    1
    Maps:
    1
    Spells:
    16
    Tutorials:
    1
    JASS:
    2
    Resources:
    23
    so you choose a model, press disarm and proof their weapon is gone? talk about neat. :)
     
  3. Kaizer

    Kaizer

    Joined:
    May 12, 2012
    Messages:
    618
    Resources:
    0
    Resources:
    0
    add a poll for it.
    I vote yes :thumbs_up:
     
  4. Zwiebelchen

    Zwiebelchen

    Joined:
    Sep 17, 2009
    Messages:
    6,929
    Resources:
    12
    Models:
    5
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    JASS:
    4
    Resources:
    12
    I'm curious, how does this work?
    Did you check which vertices are linked to the "weapon" bone?
     
  5. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    Yeah, or to the bone to which the Weapon attachment point was linked.
     
  6. gorillabull

    gorillabull

    Joined:
    Jul 17, 2011
    Messages:
    1,368
    Resources:
    2
    Spells:
    2
    Resources:
    2
    thats good. now lets see if noobs will use it
     
  7. ngoc_viet08

    ngoc_viet08

    Joined:
    Apr 4, 2014
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Just save paladin weapon less and it does not work on my world edit . tested in real game :(
     
  8. ngoc_viet08

    ngoc_viet08

    Joined:
    Apr 4, 2014
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Sorry about above comment as the tool is working fine. just it look funny and need trick around.

    1. when it save model. it will save as name.mdx
    2. when i close the tool , it change/convert name.mdx -> name.mdl
    3. i'm importing the model to WE, however it must use name.mdx so name.mdl will fail!
    4. the trick is after it save as name.mdx , i will copy it into another folder then close it. then i can have name.mdx not convert to name.mdl
    5. then import the mdx.

    one thing and yes, alway that weaponless unit does not have attach point to hand so it can wear weapon as attachment so it useless for me. maybe usefun for some game video. I tried with hand,left and hand,right attachment.

    :(

    Could you try to keep the attachment point so the weaponless model can attach a weapon?

    Thanks!
     
  9. ngoc_viet08

    ngoc_viet08

    Joined:
    Apr 4, 2014
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Omg, this tool is working perfect. My model can wearing the weapon right now! Sorry about my noob use :(((
     
  10. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    So it did work for you? That is good to hear! :)
    Are you saying that I do not need to fix anything? I'm glad to hear it, if it works!

    Note: It saves MDX/MDL both, because I do not have a JAVA exporter to MDX format, so I run the converter when you save to make MDL -> MDX as it is saving. The program technically can only write an MDL.
    (But MDL does not work in the editor; you are right.)

    Edit: New updates in the downloadable version. Now supports rudimentary adding weapons from other models, as well as adding/removing any component that can be found in the model based on words that you type.
    Note that these features could still use some tweaking.

    Edit: @ngoc_viet08 Thank you for your reports -- indeed there was something very wrong with Disarm where it deleted all of the MDX files that you saved when you closed it, which was super annoying. Download the new version for a fix (MDX files no longer deleted on program exit!)!
     
    Last edited: Apr 15, 2014
  11. ngoc_viet08

    ngoc_viet08

    Joined:
    Apr 4, 2014
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Hi,

    Just download and testing to see the the delete name.mdx problem was solved! Now it's working successfully! thanks you for the fix!

    I'll do more disargm weapon later and give you more feedback! Thanks for create this very useful tool and I would like to give credits when I'm making map!

    Thanks! :)
     
  12. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    Thank you for the feedback, and helping me to fix problems like that in the software :)

    Now I just need to add some tweaking for the merger. I have a vision where I'd make 3 or 4 slider bars for x/y/z offset and scale when merging, but I haven't coded it up yet.

    I also think the ability to make "weapon" models to go with the "weaponless" models would be really nice. You can kind of do that right now with the "Isolate" button, but it does not remove animations, nor center the model.

    Edit: Made some silly little disarm tutorial videos:

    Disarm Tutorial 1
    https://www.youtube.com/watch?v=WeE6v8RVDDk&feature=youtu.be

    Disarm Tutorial 2
    http://youtu.be/WRX9-4uTrhE
     
    Last edited: Apr 15, 2014
  13. Zed

    Zed

    Joined:
    Feb 22, 2014
    Messages:
    238
    Resources:
    0
    Resources:
    0
    Can this tool remove bows for Archers?
     
  14. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    Yeah, it should be able to do that for any archer.
     
  15. Johnromar09

    Johnromar09

    Joined:
    Oct 17, 2013
    Messages:
    26
    Resources:
    0
    Resources:
    0
    Can you make it so that it can run with out installed wc3?
     
  16. ngoc_viet08

    ngoc_viet08

    Joined:
    Apr 4, 2014
    Messages:
    17
    Resources:
    0
    Resources:
    0
    Hi,

    Just download the lastest version of this tool and getting a java error. the old versions is working fine. Could you please fix it or send the old versions here?

    Thanks!
     
  17. Deolrin

    Deolrin

    Joined:
    Apr 18, 2008
    Messages:
    7,246
    Resources:
    57
    Models:
    48
    Icons:
    6
    Packs:
    2
    Tutorials:
    1
    Resources:
    57
    I can't believe it took me that long to find out this exists. This should in theory prevent countless requests and submissions to the model section involving simple disarming. I have some concerns over models which don't have a Weapon bone, but rather attach the weapon to the hand, however.
     
  18. Retera

    Retera

    Tool Reviewer

    Joined:
    Apr 19, 2008
    Messages:
    934
    Resources:
    27
    Models:
    19
    Tools:
    2
    Maps:
    6
    Resources:
    27
    I think in the latest version, you can go up in the menus and hit something like "Remove Component" and type "hand" in a box and depending on what you hit in the menus you might be able to get rid of a weapon attached to the hand without removing the hand itself. It's been a while since I was deep in the code and thinking about it, though.

    The latest version of Disarm used to always work on my computers, but does not work on my newest setup, and the Matrix Eater (from which I borrowed my own code to write Disarm) had the same problem. For those experiencing the Java exception when running Disarm, or the bug where you can only open one program that uses the wc3 installation at a time, I believe I have a solution for the Matrix Eater codebase that fixes both of these issues permanently, and I will try to migrate this bugfix into the code of Disarm when I get the time, then upload a new version.

    Edit: The new version is up! Hope it fixes the java error for you guys!
     
    Last edited: Jan 21, 2016
  19. Weigazod

    Weigazod

    Joined:
    Feb 22, 2009
    Messages:
    176
    Resources:
    0
    Resources:
    0
    It works :))
     
  20. Clanzion

    Clanzion

    Joined:
    Jul 4, 2016
    Messages:
    440
    Resources:
    0
    Resources:
    0
    Anyone know how to fix the error below and what causes it?
     

    Attached Files: