Need help with this mod
Need help with this mod
Can anybody help me with this mod?
"Every single NPC have 100 in stength so it is not so strange that they throw like gods. Just open up "Hired Guns\basis\scripts\logic\persons.xml" and change the strength for the NPCs (I recommend just copying their dexterity value)."
It says change strength value but I can only find one instance of strength and it has no data value.
<Cell ss:StyleID="s27"><Data ss:Type="String">strength</Data></Cell>
Same with dexterity, the above says make strength value the same as dexterity. This is all I find for dexterity.
<Cell ss:StyleID="s27"><Data ss:Type="String">dexterity</Data></Cell>
Search for NPC and there are numerous entries but nothing in the block that refers to strength or dexterity.
Also, there are three different persons.xml files so I would assume one would have to change the file depending on what level of skill you are playing at. There is persons.xml, persons_easy.xml and persons_hard.xml. persons.xml must refer to normal difficulty level.
I am using notepad to edit the xml files and had no trouble modifying the action_cost.xml file so why can't I find what I am supposed to edit in persons.xml? It would be appreciated if someone posted the exact string I have to edit. Thanks.
"Every single NPC have 100 in stength so it is not so strange that they throw like gods. Just open up "Hired Guns\basis\scripts\logic\persons.xml" and change the strength for the NPCs (I recommend just copying their dexterity value)."
It says change strength value but I can only find one instance of strength and it has no data value.
<Cell ss:StyleID="s27"><Data ss:Type="String">strength</Data></Cell>
Same with dexterity, the above says make strength value the same as dexterity. This is all I find for dexterity.
<Cell ss:StyleID="s27"><Data ss:Type="String">dexterity</Data></Cell>
Search for NPC and there are numerous entries but nothing in the block that refers to strength or dexterity.
Also, there are three different persons.xml files so I would assume one would have to change the file depending on what level of skill you are playing at. There is persons.xml, persons_easy.xml and persons_hard.xml. persons.xml must refer to normal difficulty level.
I am using notepad to edit the xml files and had no trouble modifying the action_cost.xml file so why can't I find what I am supposed to edit in persons.xml? It would be appreciated if someone posted the exact string I have to edit. Thanks.
RE: Need help with this mod
Simply use excel from ms office. worked for me. Also, yes, you only need to modify persons.xml for normal, the other 2 contain diff data, easy mode and hard mode.
- ShadoWarrior
- Posts: 164
- Joined: Sat Dec 06, 2008 5:14 am
- Location: Florida space coast
RE: Need help with this mod
Assuming he has MS Office ...
RE: Need help with this mod
Or he could use OpenOffice i guess. Thats free and can edit excel spreads no?
RE: Need help with this mod
Open Office is a good freeware alternative for MS Office for dealing with .xml files.
edit: damn, beat to the punch
edit: damn, beat to the punch
RE: Need help with this mod
I don't have MS Office but have OPenOffice somewhere on an external HDD. I see there are other free xml editors available but I thought notepad can edit xml files anyway? When I right click an xml file it gives me the option to edit with notepad. Guess not and I need a proper xml editor. Thanks.
- Erik Rutins
- Posts: 39642
- Joined: Tue Mar 28, 2000 4:00 pm
- Location: Vermont, USA
- Contact:
RE: Need help with this mod
You can edit an XML file just as you would edit any text file, but a proper XML editor makes it a lot easier. I use Oxygen, but there are good free ones too:
http://www.microsoft.com/downloads/deta ... laylang=en
http://www.activestate.com/Products/kom ... edit.mhtml
http://en.wikipedia.org/wiki/XML_editor
http://www.microsoft.com/downloads/deta ... laylang=en
http://www.activestate.com/Products/kom ... edit.mhtml
http://en.wikipedia.org/wiki/XML_editor
Erik Rutins
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
- Hard Sarge
- Posts: 22145
- Joined: Sun Oct 01, 2000 8:00 am
- Location: garfield hts ohio usa
- Contact:
RE: Need help with this mod
for me, I don't like to mod my own files, feels too much like cheating, but if the gang here wants to make a up a simi Off mod, I would be all for using it 
(I did do the camera one)

(I did do the camera one)

- SlickWilhelm
- Posts: 1854
- Joined: Sun Jul 22, 2007 1:52 pm
- Location: Rochester, MN
RE: Need help with this mod
ORIGINAL: Highblur
Also, no, you only need to modify persons.xml, the other 2 contain diff data.
.
Huh? Why wouldn't you want to modify persons_easy.xml if you're playing on "easy" difficulty setting?
Beta Tester - Brother Against Brother
Beta Tester - Commander: The Great War
Beta Tester - Desert War 1940-42
Beta Tester - Commander: The Great War
Beta Tester - Desert War 1940-42
- Hard Sarge
- Posts: 22145
- Joined: Sun Oct 01, 2000 8:00 am
- Location: garfield hts ohio usa
- Contact:
RE: Need help with this mod
ORIGINAL: Slick Wilhelm
ORIGINAL: Highblur
Also, no, you only need to modify persons.xml, the other 2 contain diff data.
.
Huh? Why wouldn't you want to modify persons_easy.xml if you're playing on "easy" difficulty setting?
i think he means there is different info on the different data files, so a base data file, and then a data for for each of the levels

RE: Need help with this mod
Hmm, I'd appreciate and I bet others would to if this NPC strength fix got posted as a download. It's something that should be patched anyway.
- Hard Sarge
- Posts: 22145
- Joined: Sun Oct 01, 2000 8:00 am
- Location: garfield hts ohio usa
- Contact:
RE: Need help with this mod
ORIGINAL: Shin
Hmm, I'd appreciate and I bet others would to if this NPC strength fix got posted as a download. It's something that should be patched anyway.
look in the Mod section, it is already there


RE: Need help with this mod
ORIGINAL: Erik Rutins
You can edit an XML file just as you would edit any text file, but a proper XML editor makes it a lot easier. I use Oxygen, but there are good free ones too:
http://www.microsoft.com/downloads/deta ... laylang=en
http://www.activestate.com/Products/kom ... edit.mhtml
http://en.wikipedia.org/wiki/XML_editor
Thanks, I'll look into those. But why couldn't I find the data needed to modify in persons.xml with notepad anyway? Like I said, I did that mod for action_cost.xml and found and edited the data easy enough using just notepad. In persons.xml I couldn't find what I was supposed to edit at all.
- Erik Rutins
- Posts: 39642
- Joined: Tue Mar 28, 2000 4:00 pm
- Location: Vermont, USA
- Contact:
RE: Need help with this mod
These files are really designed to be opened with Excel, as Sean reminded me today. So scratch what I said earlier, which does apply to XML files in general. These XML files _really_ like being opened in Excel.
Erik Rutins
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
CEO, Matrix Games LLC

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/
Freedom is not Free.
RE: Need help with this mod
OK, guess I am SOL then because I don't have Excel and am not going to buy MS Offiice just for Excel. I will install OPen Office and see how it handles the xml files.
- SlickWilhelm
- Posts: 1854
- Joined: Sun Jul 22, 2007 1:52 pm
- Location: Rochester, MN
RE: Need help with this mod
The "Calc" application in the Open Office suite from Sun Microsystems seems to handle the .xml files just fine.
Beta Tester - Brother Against Brother
Beta Tester - Commander: The Great War
Beta Tester - Desert War 1940-42
Beta Tester - Commander: The Great War
Beta Tester - Desert War 1940-42
RE: Need help with this mod
OK, thanks, saw you post that info in another thread so will definitely install OPenOfiice.
RE: Need help with this mod
I've just tried using OpenOffice Portable (2.0.4) and every file I've edited gives me errors when I try to start the game (in Russian no less). I don't have MS Office at home, and certain files actually cause Excel 2003 to crash at work (Persons.xml and versions thereof)
I'm currently reinstalling and giving it another go (I stupidly didn't take backups of the XML files). Any other suggestions?
I'm currently reinstalling and giving it another go (I stupidly didn't take backups of the XML files). Any other suggestions?
RE: Need help with this mod
Try some of the free xml editors out there. Microsoft has a special notepad version that is for editing xml files. I posted links to that and a couple of others in the mod forum.