Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: how to make new armor in LCS  (Read 1281 times)

flapjack3

  • Bay Watcher
    • View Profile
how to make new armor in LCS
« on: February 21, 2013, 05:11:19 pm »

how do i edit the XML file to add armour, because all i get is "Attempting to open filename: sitemaps.txt FAILED to load armors.xml!
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: how to make new armor in LCS
« Reply #1 on: February 21, 2013, 06:25:00 pm »

There's no special trick to it, just edit the file and launch the game, which is what you're doing. I suspect you're getting an error because something is not formatted correctly in the changes you made, which is preventing the game from parsing the file. I might be able to help if you post the changes you made.
Logged

KA101

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #2 on: February 21, 2013, 07:17:20 pm »

Might try this one: http://www.bay12forums.com/smf/index.php?topic=120839.msg3898938#msg3898938

(Carlos Gustavos! it was all his helping! Blame him!)
Logged

flapjack3

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #3 on: February 22, 2013, 06:16:38 am »

here's the code:

Spoiler (click to show/hide)
Logged

flapjack3

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #4 on: February 22, 2013, 10:34:49 am »

here's the code:

Spoiler (click to show/hide)
also i'm not editing them im making new armour(using army uniform as a templete)
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: how to make new armor in LCS
« Reply #5 on: February 23, 2013, 07:16:29 am »

here's the code:

Spoiler (click to show/hide)

1. In your quoted section, there's an extra </armortype> tag at the start. This could just be part of the previous entry, but make sure you didn't add an extra one of these in the actual file when you were copying and pasting.

2. In the <armor></armor> section, you added <legs>10</legs> and <arms>10</arms>. The correct way to do this is to create a single <limbs>10</limbs>, rather than have separate sections for leg and arm armor. See ARMOR_HEAVYARMOR for an example:

Code: [Select]
    <armortype idname="ARMOR_HEAVYARMOR">
        <make_difficulty>17</make_difficulty>
        <make_price>5000</make_price>
        <armor>
            <body>10</body>
            <head>8</head>
            <limbs>4</limbs>
        </armor>
        <body_covering>
            <head>true</head>
        </body_covering>
        <name>Heavy Ceramic Armor</name>
        <shortname>HeavyBodyArmor</shortname>
        <fencevalue>400</fencevalue>
        <interrogation>
            <basepower>2</basepower>
        </interrogation>
        <professionalism>1</professionalism>
    </armortype>

Let me know whether that fixes the issue!
Logged

flapjack3

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #6 on: February 23, 2013, 10:13:46 am »

nope, heres the new code
Code: [Select]
<armortype idname="ARMOR_LCS_UNIFORM">
        <make_difficulty>5</make_difficulty>
        <make_price>500</make_price>
        <armor>
            <body>10</body>
            <head>10</head>
        <limbs>10</limbs>
     
            </armor>
           
        <body_covering>
            <head>true</head>
            <arms>true</arms>
            <legs>true</legs>
        </body_covering>
        <name>Rebal Armour</name>
        <shortname>LCS</shortname>
        <fencevalue>250</fencevalue>
        <interrogation>
            <basepower>6</basepower>
            <assaultbonus>4</assaultbonus>
        </interrogation>
        <professionalism>9</professionalism>
        <stealth_value>1</stealth_value>
        <appropriate_weapon>WEAPON_SMG_MP5</appropriate_weapon>
        <appropriate_weapon>WEAPON_CARBINE_M4</appropriate_weapon>
        <appropriate_weapon>WEAPON_AUTORIFLE_M16</appropriate_weapon>
        <appropriate_weapon>WEAPON_SEMIRIFLE_AR15</appropriate_weapon>
    </armortype>

Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: how to make new armor in LCS
« Reply #7 on: February 23, 2013, 10:26:25 am »

That armor definition is correctly formatted and works in-game for me. Make sure it's between the outermost <armors> ... </armors> tags like the other definitions. If that's not the problem, you may have accidentally damaged one of the other armor definitions in the file.

If all else fails, redownload the game, get the original armors.xml, and then copy and paste the fixed armor definition you pasted above into that file, making sure it's above the last line of the file containing the </armors> closing tag. It should work for you.
Logged

flapjack3

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #8 on: February 23, 2013, 12:52:52 pm »

Finaly got it  :D
Logged

Teh Barple

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #9 on: February 23, 2013, 02:40:04 pm »

or you could use xml notepad, which has a nice gui
Logged

flapjack3

  • Bay Watcher
    • View Profile
Re: how to make new armor in LCS
« Reply #10 on: February 23, 2013, 03:31:27 pm »

or you could use xml notepad, which has a nice gui
Really I went thro all that trouble and all I needed to do was install XML Notepad
Logged