Results 1 to 22 of 22

HOW TO: fix invisible weapons

  1. #1

    HOW TO: fix invisible weapons

    This little tut will teach you how to move weapons from one soldier to another without it becoming invisible. For this tutorial, I will use the engineers. the first step is to go to the ebps of the rifleman (experienced users should know what im talking about) then copy his combat_ext

    Step 1: go to the engineer's ebps and paste it on his combat, statwise the engineers will have garands, but theyre invisible.

    Step 2: this is the hard part, go to "data\art\models\races\allies\soldiers\ and open up engineer.abp, you'll see something like this:

    model =
    {
    "..\\..\\Common\\CompleteMotionTree.abp",
    "..\\..\\Common\\CommonMeshes.abp",

    "Weapons\\M3_GreaseGun",

    "Engineer\\Engineer",
    "Weapons\\Flamethrower",
    }

    simvis_attributes =
    {
    model_scale = 1.0,
    SingleBoneSkinningDistance = 0, -- engineer's backpack stretches in single bone mode
    }

    This little bit of code tells the game what models to give to the engineer, to give weapons not included here add this (PS, i added 2 extra lines for fun)

    model =
    {
    "..\\..\\Common\\CompleteMotionTree.abp",
    "..\\..\\Common\\CommonMeshes.abp",

    "Weapons\\M3_GreaseGun",

    "Engineer\\Engineer",
    "Weapons\\Flamethrower",
    "Weapons\\M1911A1_Colt_45",
    "Weapons\\M1_Carbine",
    }

    simvis_attributes =
    {
    model_scale = 1.0,
    SingleBoneSkinningDistance = 0, -- engineer's backpack stretches in single bone mode
    }

    now your'e wondering, how do i do this with other weapons? that answer is simple in the race's art folder you will se a folder called "weapons". Open it up in corsix's then you will see a lot of folders. these are the names say you wanted to give engineers sniper rifles, simply add "Weapons\\m1903 springfield" or if using another weapons "weapons\\(weapon name)". that concludes this part of the tutorial

    PART 2

    if you were to give k98s to a rifleman squad, you need to change the directory. open up the riflemans abp and type "..\\..\\Axis\\Soldiers\\Weapons\\Kar98", this code is pretty self explanatory, so i wont add any more
    Last edited by newcomer; 16th May 08 at 1:51 PM.
    "Airborne, death from above"

  2. #2
    GJ that you created this How To. Although, I already knew how to do it, but it's quite useful for new coders.
    "Not a day goes by, that I don't think of the men I served with, who never got to enjoy the world without war." Major Richard Dick Winters.

  3. Company of Heroes Senior Member  #3
    Moderator Lethal Dosage's Avatar
    Join Date
    Sep 2007
    Location
    In the back of my mind.
    Quite good for people new to that aspect, hell it took me more than a few minutes to figure it out.

    But only entering the Weapon\\etc. into the .abp only works if the weapon you gave that unit is from that faction. If you want to give that unit a weapon from a different faction you got to type in the long winded version. An example of this is the PE's PGrenadier and their Axis Kar98., the entre for that would go something like below;

    "..\\Axis\\Soldiers\\Weapons\\Kar98",

    But thats just going off the top of my head here.

  4. #4
    oops forgot about that part, will fix right away, thanks!

  5. #5
    Member bwc153's Avatar
    Join Date
    Aug 2007
    Location
    Shawnee, Kansas, United States
    would this fix the problem where if you give a tommy squad a sten they have a rifle grenade that doesnt shoot?

  6. #6
    i have no clue, i didnt even knew that bug existed

  7. #7
    Member bwc153's Avatar
    Join Date
    Aug 2007
    Location
    Shawnee, Kansas, United States
    just tried fixing the rifle nade bug with what you put above, but replacing the stuff with the sten, i got a "Let there be panic! Consult warnings log for details. missing RGMs error , same with the bren too (tried making a SL for the squad with a bren or sten, both dont work)

  8. #8
    could you post your abp here? i might find whats wrong

  9. #9
    Member bwc153's Avatar
    Join Date
    Aug 2007
    Location
    Shawnee, Kansas, United States
    ok, ill re-do that, i reverted it back to normal.
    ill edit this post with it.


    model =
    {
    "..\\..\\Common\\CompleteMotionTree.abp",
    "..\\..\\Common\\CommonMeshes.abp",

    -- Main Mesh
    "..\\..\\Commonwealth\\Soldiers\\Tommy",

    -- Allied Weapons
    "..\\..\\Allies\\Soldiers\\Weapons\\M3_GreaseGun",
    "..\\..\\Allies\\Soldiers\\Weapons\\m1903 springfield",
    "..\\..\\Allies\\Soldiers\\Weapons\\Flamethrower",

    -- Commonwealth weapons
    "..\\..\\Commonwealth\\Soldiers\\Weapons\\Lee_Enfield_Mk1",
    "..\\..\\Commonwealth\\Soldiers\\Weapons\\light_mg",
    "..\\..\\Commonwealth\\Soldiers\\Weapons\\cw_smg",
    }
    Last edited by bwc153; 18th May 08 at 12:00 PM.

  10. #10
    i found it, there is no such weapon as "cw_smg" its supposed to
    be "..\\..\\Commonwealth\\Soldiers\\Weapons\\Sten_Sub_MG",

  11. #11
    Member bwc153's Avatar
    Join Date
    Aug 2007
    Location
    Shawnee, Kansas, United States
    oh, lol stupid me, i put a lot of things in, that was just one of them. i thought it was simpler than that (look at the one for bren, i think it was \\Commonwealth\\Soldiers\\Weapons\\light_mg)

  12. Child's Play Donor  #12
    Col. (Ret.) Tempe's Avatar
    Join Date
    Apr 2007
    Location
    NGC 6334
    Any idea if this works for vehicle weapon mounts?
    'All that is solid melts into air, all that is holy is profaned, and man is at last compelled with sober senses, his real conditions in life, and his relations with his kind.'

  13. #13
    dont think so, they use a different style i think

  14. Child's Play Donor  #14
    Col. (Ret.) Tempe's Avatar
    Join Date
    Apr 2007
    Location
    NGC 6334
    I've tried this to give Tommies a sten but instead they have the Lee Enfield with a nade launcher and the sten is floating in front of them with half the barrel missing. Any ideas what I did wrong?

    [edit]
    I managed to fix it now.

    Cheers.
    Last edited by Tempe; 11th Jun 08 at 2:35 PM.

  15. #15
    I don't mean to be a bother, but can someone help me with getting the Grenadier to wield the Mp40? I cant seem to get the gun to be visible.

    model =
    {
    "..\\..\\Common\\CompleteMotionTree.abp",
    "..\\..\\Common\\CommonMeshes.abp",

    "Weapons\\Stielgranate",

    "Weapons\\Kar98",
    "Panzergrenadier\\Panzergrenadier",
    }

    is this the correct abp? This is before the Mp40 is added.
    Last edited by Duke_Binsbury; 12th Aug 08 at 8:59 AM.

  16. Child's Play Donor  #16
    Col. (Ret.) Tempe's Avatar
    Join Date
    Apr 2007
    Location
    NGC 6334
    Just add this to the abp and it should work.

    Code:
    	"Weapons\\MP40",

  17. #17
    Hi i Cant seem to grt the mp44 to work with the luftwaffe men

    model =
    {
    "..\\..\\Common\\CompleteMotionTree.abp",
    "..\\..\\Common\\CommonMeshes.abp",

    -- Axis Weapons

    "..\\..\\Axis\\Soldiers\\Weapons\\Stielgranate",
    "..\\..\\Axis\\Soldiers\\Weapons\\Kar98",
    "..\\..\\Axis\\Soldiers\\Weapons\\MP44",


    -- PanzerElite Weapons

    "..\\..\\PanzerElite\\Soldiers\\Luftwaffe\\Luftwaffe",
    "..\\..\\PanzerElite\\Soldiers\\Weapons\\FG42",

    }

    How do i get this to work
    this is whith the mp44 - that i cant get to work

  18. #18
    johntamtamtam
    Guest
    I tried to let tommy hold sten, but it is floating in front of them with half the barrel missing.Can anyone help me??

  19. #19
    Member gambit51's Avatar
    Join Date
    Oct 2006
    Location
    middle of nowhere
    try this http://forums.relicnews.com/showthre...highlight=sten
    work for me
    i have a problem the sten appears but is not the silencer version
    how i correct this
    A good general does not lead an army to destruction just because he knows it will follow

  20. #20
    Member Kyle243's Avatar
    Join Date
    Jul 2008
    Location
    Scotland
    The pipers don't seem to react well with new weapons, mainly the sten, it just causes them to float around with their hands out and legs straight. Good if you wanted ghosts though, lol.

  21. #21
    Member bloocobalt's Avatar
    Join Date
    Jun 2008
    Location
    Washington, USA
    That is called a "T" pose.

  22. #22
    thanks. that fixes that problem. appreciate this how it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •