Page 1 of 2

More Money

Posted: Tue Dec 09, 2008 6:57 pm
by TR Shrum
I've notice several posts regarding "not enough money" or "I keep running out of money." Open the mission_upgrades.xml and tinker with the Intitial Cost, Dailey Cost, and Dailey Bonus/Income numbers. By lowering the intitial cost and raising the dailey income figures I've managed to give myself just "that little extra something." Be advised, this can be abused: $300,000 dailey income and $5 intitial cost...

RE: More Money

Posted: Tue Dec 09, 2008 7:05 pm
by SlickWilhelm
Nice find. Sounds like this could have the makings of a "Beverly Hills Mercs" mod. [8D]

RE: More Money

Posted: Tue Dec 09, 2008 7:40 pm
by CowGod
whenever i modify a file - save it - and try to play, the game gives me a tablekeeper error. what am i doing wrong?

RE: More Money

Posted: Tue Dec 09, 2008 7:45 pm
by SeanD
What are you using to edit these files CowGod?

RE: More Money

Posted: Tue Dec 09, 2008 7:46 pm
by CowGod
scalc from sun.

RE: More Money

Posted: Tue Dec 09, 2008 7:48 pm
by Scautura
I had the same problem using OpenOffice Calc 2.0.4, I'm just installing 3.0 and seeing if I have the same problem.

I don't have MS Office at home, and some of the XML files (Persons.xml and derivatives in particular) cause it to crash on my work laptop, so I can't even use that to edit.

RE: More Money

Posted: Tue Dec 09, 2008 7:48 pm
by SeanD
Can you try Excel or NotePad? I've not used the program you're using and maybe it's screwing up the formatting which is throwing the error.

Bear in mind that these files are designed to natively run in Mircosoft Excel.

RE: More Money

Posted: Tue Dec 09, 2008 7:51 pm
by CowGod
I am already using 3.0 and nothing. same tablekeeper error. In addition after the tablekeeper error if you try to reload the same to return the values to the same original content it just won't save. something is not right.

RE: More Money

Posted: Tue Dec 09, 2008 7:54 pm
by CowGod
It becomes unreadable with notepad:)

RE: More Money

Posted: Tue Dec 09, 2008 7:58 pm
by Scautura
Notepad is fine, but makes it very hard to read (XML is meant to be semantic, and while semantically good for a spreadsheet, it's next to impossible to read for a "config" or "data" file - you can tell where the rows are, but you have to remember which column is which, kinda hard when you've got many columns of data). As I've mentioned before, Office crashes for me on some of the XML files (which can't be good to start with).

With OO, when saving, it asks if you want to keep it in Office 2003 format - it is obviously making some changes to the format, but Excel still reads it fine.

If I could understand the error message (Russian - actually comes out as gobbledygook for me) then I might be able to track it down further.

More weirdness: The file from OO is larger than the original, but has less whitespace (no carriage returns that I can find), and is missing bits (such as the <DocumentProperties> section)
I'd go into it further, but I'm hitting the sack and I'll come back to it later. I'd attach one of the files, but the only one I have left in OO format is a smidge large (Persons_easy.xml at 711Kb)

RE: More Money

Posted: Tue Dec 09, 2008 8:16 pm
by CowGod
i'm reinstalling on my laptop to see if it works on microsoft work excel. i hope it does and will let you know shortly.

RE: More Money

Posted: Tue Dec 09, 2008 8:20 pm
by ArtVan9000
to get more $$$ at start all you have to edit is global_vars in Hired Guns\basis\campaigns\JAZZ

looks like this:

GVARS =
{
&nbsp;&nbsp;&nbsp; Money&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 0,
&nbsp;&nbsp;&nbsp; Start_Money_Easy&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 50000,&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -- Í&#341;÷&#341;ëüí&#369;é &#281;&#341;&#271;&#269;&#328;&#341;ë í&#341; ë&#314;&#259;&#281;î&#283; ó&#273;îâí&#314; &#324;ëî&#263;íî&#324;&#328;&#269;
&nbsp;&nbsp;&nbsp; Start_Money_Normal&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 40000,&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -- Í&#341;÷&#341;ëüí&#369;é &#281;&#341;&#271;&#269;&#328;&#341;ë í&#341; íî&#273;&#283;&#341;ëüíî&#283; ó&#273;îâí&#314; &#324;ëî&#263;íî&#324;&#328;&#269;
&nbsp;&nbsp;&nbsp; Start_Money_Hard&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 30000,&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; -- Í&#341;÷&#341;ëüí&#369;é &#281;&#341;&#271;&#269;&#328;&#341;ë í&#341; &#283;îç&#341;&#337;&#269;&#324;&#328;&#324;&#281;î&#283; ó&#273;îâí&#314; &#324;ëî&#263;íî&#324;&#328;&#269;
&nbsp;&nbsp;&nbsp; Cheats&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = 0,&nbsp;&nbsp;&nbsp;

RE: More Money

Posted: Tue Dec 09, 2008 8:57 pm
by Dryb
I just downloaded OpenOffice to mess with some numbers, and now the game won't load. I also noticed that, for some reason, whenever I save the files after editing them they seem to double in size. The grenade file starts at 14k, then when I go in and change a damage number and save it, it's all of a sudden 29k.

Any ideas?


RE: More Money

Posted: Tue Dec 09, 2008 9:12 pm
by SeanD
Wow that's strange. I've been editing XML files like crazy in Excel 2003 and haven't encountered any of these problems.

Can you send me the files you're trying to mod so I can take a look?

RE: More Money

Posted: Wed Dec 10, 2008 4:22 am
by Scautura
Here's a couple of the files (Persons_easy.xml and action_cost.xml) so you can see what's happening with OO.

I have a feeling they're being saved in Unicode, where the originals aren't, because of the way that they're doubling (or almost doubling) in size, despite having less formatting data and some of the data is missing from the file in the first place.

RE: More Money

Posted: Wed Dec 10, 2008 6:38 am
by CowGod
I tried with microsoft works and it works fine.

RE: More Money

Posted: Wed Dec 10, 2008 10:54 am
by Erik Rutins
I've worked with those files in both Office 2007 and Office 2002 without problems. I'm not sure why they would be causing problems for you?

RE: More Money

Posted: Wed Dec 10, 2008 11:41 am
by Scautura
Working with the files is not a problem - try substituting them into your game folder (take a backup, of course!) and try running the game, start a new game, then watch it crash out with an unintelligible message.

Office can deal with them (they're well formed XML) and fill in the blanks, but HG discards them out of hand (I'm assuming it either can't deal with unicode, or it can't deal with specific missing data - or both)

I've just edited a file (that was already edited with OO) in Excel 2003 and I'll give it a try when I get home (also attached here).

RE: More Money

Posted: Wed Dec 10, 2008 12:30 pm
by milkweg
ORIGINAL: Erik Rutins

I've worked with those files in both Office 2007 and Office 2002 without problems. I'm not sure why they would be causing problems for you?

Because he is trying to use Sun OPenOffice and not Microsoft Office.

Try this, it is a version of notepad from Microsoft designed for handling xml files.

http://www.microsoft.com/downloads/deta ... laylang=en

RE: More Money

Posted: Wed Dec 10, 2008 12:33 pm
by milkweg