Web Rarely

Dying is a very dull, dreary affair. My advice to you is to have nothing whatever to do with it. -- W. Somerset Maugham, his last words

Capitalism 2 Balance Mod

2013-03-03

As mentioned in my previous post, I wanted to make a mod for Capitalism 2 to rebalance it and fix various bugs. I did that today.

Main features

  • Rebalances profit margins: In the original game, the average profit margin for a product was over 14000% and went up to a million percent. At the same time, most semifinished products had negative profit margins (including citric acid, coconut oil, corn syrup, dyestuff, flour, linen, polyester, textiles, and wheat germ oil). I've rebalanced them somewhat so that you can make a profit selling any product, but the average profit margin is much lower -- "only" about 150%, with a median of about 67%. I would like to eventually get it down to 30-40%, but that requires more extensive changes.
  • Rebalances demand: The original game balanced the demand for products so that every product or product group had roughly the same revenue ceiling. This resulted in people buying ridiculously large or small numbers of some products, and overall people bought too little. I tried to make the demand a bit more realistic. Overall, people buy a lot more things, which helps counteract the reduced profit margins, and some fields are now much more lucrative than others.
  • Reduces freight costs: One of the main complaints about the original game was that freight costs were so high that it was pointless to try to ship products between cities, and even within the same city you may not be able to make much of a profit unless you placed your production buildings close to your retail stores. On average I cut freight costs in half, but I also made them somewhat more realistic by basing them on the approximate weight and size of the objects, so the freight costs for a few items are actually higher than before. But overall, it's now worthwhile to ship some finished products to other cities.
  • Warehouses: I converted one of the factory types into a warehouse. Now there are 1 small, 2 medium, and 2 large factories, and the warehouse. Essentially, it's a building with a large amount of internal space and low monthly overhead. You can use it to merge product flow from multiple sources or buffer goods from unreliable manufacturers. However, it's not possible to prevent you from manufacturing things there, so only the honor system prevents you from using it as a large, cheap factory; the AI has no honor and uses warehouses for manufacturing, but I figure it's not a problem because the AI is so weak that it needs all the help it can get. :-P
  • Increased costs for extractive industries: I've greatly increased the setup and monthly costs for logging camps, mines, and oil wells. Nonetheless, those industries are still overpowered. In fact, they may be even more profitable now due to the reduced freight costs, but you'd better make sure you have some demand lined up before setting up shop now.
  • Increased competition and activity: This wasn't exactly planned, but due to the changes I made, the AI seems to be a lot more active. There's a lot more competition and a lot more products available from the AI. The AI also seems to buy products that you produce more often. Perhaps it's due to the fact that semifinished products are now profitable, so the AI produces them and is then able to produce the finished products that they enable. Additionally, the reduced freight costs probably allow the AI to be more flexible in its operations.
  • Executives are cheaper to hire: In the original game, executives often demanded a salary higher than the company's entire annual profit! They were worse than useless. I've decreased their salary demands by about 80%, and now it may actually be worthwhile to hire some executives.

Minor features / miscellaneous changes

  • R&D buildings and advertising cost a bit more. $5,000 is really too cheap to set up an advertising unit, so I raised it to $50,000.
  • I made the AI value oil and chemical minerals a bit more, because they enable the creation of many other products even if they're not that profitable in their own right.
  • On a few products, such as computers, I made people care more about the quality of the product than about the brand. I guess that's just my personal bias. :-)

Known problems

  • The game is still too easy. I need to reduce profit margins more and find a way to make extractive industries more expensive without discouraging the AI from entering the market.
  • The mod hasn't been extensively tested. I've played a couple games, and it seems like a real improvement, but I certainly haven't tried out all the industries and products.

Download and installation instructions

You can download the mod (version 0.91) here. The mod was built with version 1.03 of Capitalism 2 but should work with 1.05 as well. (I tested it.)

Method 1 (quick and easy):

  1. Navigate to the "gameset" directory within your Capitalism 2 installation directory.
  2. Make a backup of the 1STD.SET file.
  3. Replace the 1STD.SET file with the one from the archive.
  4. Enjoy!

Method 2 (more flexible, requires Microsoft Excel):

  1. Navigate to the "gameset" directory within your Capitalism 2 installation directory.
  2. Make a backup of the 1STD.SET file.
  3. Download the Capitalism 2 mod kit from here.
  4. Use the mod kit to import BalanceMod.xlsx into the game database.

To uninstall (after using either method)

  1. Restore your backup of the original 1STD.SET file.
Feel free to contact me if you have any trouble.

Comments

Thank you 2013-03-25 01:45PM
Thank you for the patch! i was bothered without being able to produce some semi-finished products because of the loss they generated.

Great blog but there is an issue with it, i am hungry now :-( (after checking the Baking section) keep it up!
an anonymous Nicolás
RE: Thank you 2013-03-25 03:54PM
I'm glad you found it useful. :-) Let me know if you have any problems with it. Can always use more testers...
Mods for Mac? 2013-07-15 01:07PM
Hi this is my first time modding this game, is it possible to mod Capitalism 2 on Mac?
an anonymous Jared Allister
RE: Mods for Mac? 2013-07-26 02:47PM
Hi, Jared. It's definitely possible to mod the Mac version of the game. In fact, there's a good chance that the 1STD.SET file is identical with the PC version, in which case you could apply my rebalance mod using installation method #1. (If it doesn't work, just restore the backup.) As for creating your own mods, my mod kit does not work on a Mac, unfortunately, but information needed to edit the 1STD.SET file can be found in my previous post, titled "Reverse Engineering Capitalism 2".
CapLab 2013-09-03 04:47AM
Can you make a mod editor for Caplab ? This one does not seem to work on the Caplab 1STD.SET file. I think some of the database format is different.
an anonymous CapLab Lover
RE: CapLab 2013-09-06 12:54AM
The database tables are definitely different, but more importantly, the CapLab development team has not properly maintained the database, so the data in the database seems to violate the schema. (The game still works because it ignores the schema and just hardcodes the offsets into the rows.)

It would be possible to develop an editor for CapLab but because of the schema/data mismatch it would have to work completely differently, and would be fragile. The main reason I can't (easily) do it, though, is that I don't have a copy of CapLab. :-P
city population keep decreasing over the time 2013-12-20 08:36AM
hi adam.. can u help me.. i have a problem in capitalism 2 when i keep playing it around 70 years and more the city population keep decrease to be half.. can you made something so the population can increasing
an anonymous rizki
mod kit not response 2014-01-01 02:12AM
Hi Adam,

I already use your rebalance mod, its a great works, and makes AI more hard to conquer, very challanging.

How to use dbmod,always shows 'encounter problem and needs to close' on my XP.

I already install .NET 3.5 SP1. And my excel 2007, I'm using XP Pro 2002 service pack 2.

Thanks for your help
an anonymous rudy
RE: city population keep decreasing 2014-01-27 05:41AM
Hi rizki, usually city populations decrease if you have the complex economic model enabled and there is a prolonged recession. There may be other reasons population may decrease but in any case the parameters to control it are not exposed in any data file but are hardcoded within the game. That means it would be very difficult to mod, unfortunately.
RE: mod kit not response 2014-01-27 05:42AM
Hi rudy, thanks for emailing me and I'm glad you got it working now. If anybody else has the same problem, feel free to email me and I'll try to help.
mod 2014-02-02 09:13AM
There is a 10 cities mod some one know where to download it and install ?
an anonymous Kamil
RE: mod 2014-02-22 10:58PM
Hi Kamil, I was able to increase the number of cities up to 7 or 8 by editing the 9th byte of the CONFIG.DAT file and starting a new custom game (without changing any settings), but unfortunately that made the game unstable. (After playing for a short time, the game crashed.)
Thanks 2014-03-11 02:34AM
Thank you for your work on this game. I'm testing your mod now and it seems fine.
an anonymous AN
RE: Thanks 2014-03-11 05:17PM
And thanks for trying it out. :-) I hope you enjoy it.
Same Problem with Rudy 2014-05-09 11:35AM
Hy Adam, i have the same problem as Rudy, when using dbmod.exe, the program immediately close itself..

I using windows 7, ms. excel from ms. office 2010, and activated .Net framework 3.5 from windows feature..

Hmm, sorry if my english bad, and thanks for your help.. :)
an anonymous Wahyu
RE: Same Problem with Rudy 2014-05-15 04:24PM
The program must be run from a command prompt. If an error occurs, copy and paste the error message.
error 2015-01-19 05:08PM
Hi Fantastic mod but I keep getting this error please kindly tell me how to fix this fantastic work! USAGE:cap2mod {import:export} 1std.set data.xlsx it closes very fast. OS: Windows 7 Microsoft 2007 excel installed and 3.5
an anonymous tom
RE: error 2015-01-20 05:03AM
Hi Tom,

If you just want to use the mod, you can simply overwrite the 1STD.SET file with the one from the mod package.

Running the mod tool is only for the case that you want to change the way the mod works or create your own mod. In that case you'd need to use the command prompt. You'd need to change to the gameset directory and run either dbmod import 1std.set yourdata.xlsx or dbmod export 1std.set yourdata.xlsx depending on whether you want to apply new values to the game database or extract the current values from the game database, respectively.

If you're unfamiliar with the command prompt, I recommend searching online for some tutorials on using the command prompt to do those things.

Good luck!
error 2015-01-20 01:51PM
Hi I figured it out thanks for the fantastic mod! one question I know its not realistic but is it possible to do free freight charges? thanks for your help
an anonymous tom
RE: error 2015-01-21 06:11PM
For free freight charges, try setting all the values in the FREIGHT column in the ITEM table to zero and importing the new values into the database with the dbmod tool. I haven't tested it, but I believe that will work.
freight charges 2015-01-22 07:54PM
didn't work
an anonymous tom
RE: freight charges 2015-01-22 11:48PM
Can you be more specific? How did it not work? Did the game crash or give bizarre values? Did the freight charges remain unchanged?

If the game crashed, try changing the freight values to 1 instead of 0. This will set freight charges to be very low. If the freight charges remained unchanged, then you probably didn't import the new values into the database correctly.
freight charges 2015-01-23 01:38PM
The freight charges didn't change game didn't crash. I'm using command prompt to import it into the 1STD.SET.
an anonymous tom
RE: freight charges 2015-01-23 06:12PM
Well, can you change anything in the database? For instance, if you change a product name (e.g. "Yogurt" to "Gogurt"), does the new name show up in-game? If so, then are you sure you're editing the right column? There are a couple different freight-related columns. The one that matters is called "FREIGHT" (not "FREIGHT/100KM", for instance). If not, then I don't think you're importing the data correctly, in which case what is the exact command you're entering, and in which directory are you running it (i.e. what is the output of the "cd" command)?
freight charges 2015-01-24 10:13AM
I figured out the problem if I start a new game it will have 0.01 freight charges. Thanks for your help
an anonymous tom
Dissable AI 2015-04-20 08:08PM
Hey i know it has nothing todo with youre mod directly but is there a way to turn off the AI.
i play with friends but it doesnt make sense as the AI floods the market with products and its more a WE against the KI and not we play against us :-(
an anonymous Misc
RE: Disable AI 2015-04-23 06:50PM
There's always a way but unfortunately there's no simple way that I'm aware of. Some significant reverse engineering would have to be done to locate the corresponding code.
Disable AI 2015-05-16 07:16AM
But is there no file where the "AI" is inside what i could delte and then would the AI do nothing anymore.Is there a File for the AI?
an anonymous peter
RE: Disable AI 2015-05-18 05:50PM
There is no file dedicated solely to controlling the AI. The AI code is inside the .exe file along with all the other game code and it's a difficult job to find which parts of the .exe file relate to the AI. Once those parts are found, they can be disabled pretty easily, but finding them in the first place would probably take a month or two of work.

One possibility that's easier than disabling the AI is editing the file that contains your game settings. It might be possible to manually edit that file to set the number of AI companies below what the UI will allow. For instance, you might be able to reduce it to 1 AI company, or possibly even zero. That possibility would only take a couple of hours to test. But I haven't tried it.
Warehouses 2015-07-13 08:05AM
I've installed the mod and noticed that the Warehouse is just a regular factory.

I have this little problem that I have to manually adjust from which factory I want my finished products to be bought, instead of just stockpile-merging all equal products inside the warehouse, and then selling to stores from a single point of sales.

Is there any way to change which products we can buy at the warehouse(or all factories if that is a must)?
an anonymous Gustavo
RE: Warehouses 2015-07-13 10:51AM
Yep. As I wrote above, the warehouse is just a factory with a large amount of internal space and low monthly overhead. I'm not sure exactly what you mean by your question, but it is possible to merge product flow from multiple factories in the warehouse. Just connect multiple purchasing units to one or more inventory units, and then connect the inventory unit(s) to a sales unit. Then your retail stores purchase from the warehouse. Each purchasing unit will need to specify a single source, so if you want to merge products from three factories then you need three purchasing units. There's no easy way to tell a single purchasing unit to buy from multiple sources.
RE:RE:Warehouses 2015-07-13 01:33PM
Desktop Computer would be a good example.

You can't buy inside the warehouse, because they are already a finished product, and in this case you can't merge them.
an anonymous Gustavo
RE: Warehouses 2015-07-14 04:15AM
Ahh, I see. Well I guess there's nothing you can do about it by editing the game database. The restriction is almost certainly part of the game itself, and while it's possible to reverse engineer the game executable and modify the game, it's a significant undertaking, probably about 50-100 hours.
Reverse 2015-07-18 01:28AM
I was trying to see how hard it was to Reverse the code, and your videos helped a lot, but I kind got stuck right at the beginning with this structure: [AM: big bunch of C code removed]
an anonymous Gustavo
RE: Reverse 2015-07-19 09:02AM
Hi, Gustavo. I don't have a function at address 412CD0 in my copy of the game, and a search for the constant 471 didn't locate any code similar to what you posted, so we must be using different versions of the game. Anyway, I'll respond in more detail by email. Please send questions like this to my email since it takes up a lot of space on the page and is unlikely to apply to anyone else.
RE:RE:Reverse 2015-07-19 05:03PM
That helped a lot, I agree with you, showing reversed code would probably be a bad idea, next time I'll definitely e-mail you, thanks for your help, and tips!
an anonymous Gustavo
RE: Reverse 2015-07-20 01:03AM
I'm glad it helped. There's nothing wrong with showing code; it's just that it takes up a whole page and is likely of no interest to other readers.
does not work 2015-12-18 01:21PM
can ue de command line nor do i have any 1std.set file tto replace, what am i suposed to replace?
an anonymous Enio
warehouse 2015-12-18 01:40PM
cant use the warehouse, it looks just like a factory i cant transfer any products nor buy them to store them?did i do something wrong
an anonymous Mikel
RE: does not work 2015-12-18 01:53PM
Hi Enio. You do have a 1STD.SET file if you have Capitalism 2. Look in the GAMESET folder within the game's installation directory.
RE: warehouse 2015-12-18 01:56PM
Hi Mikel. The warehouse is just a type of factory. You can store raw materials and semi-finished products by connecting a purchasing unit to one or more inventory units and connecting those to a sales unit. Unfortunately, it turns out that you can't store finished products there (except finished products that are also inputs for other products), since those can only be bought by a retail outlet...
Notworking 2016-08-26 09:24PM
Hi Adam

The mod kit is not working can you help me ?

Many thanks
an anonymous Ismail
RE: Notworking 2016-08-29 11:00AM
I'm pretty sure it works, but I can't help unless you provide some details on what trouble you're having or some contact information.
Not working 2016-08-29 09:06PM
When I lunch the modkit it just don't run
an anonymous Ismaik
RE: Not working 2016-08-30 01:35PM
You have to run it from the command prompt, not by clicking on it, and you have to have Excel 2007 or later installed.
RE: Not working 2016-08-30 01:36PM
If you just want to install the balance mod, you don't need the mod kit. Just use the "quick and easy" instructions on this page.
R&D 2016-09-05 02:17PM
Hi!
Why R&D center in the window of new technologies can fit up to 6 lines?
an anonymous Hawk
Congratulation 2016-09-10 05:30AM
Nice job!
I also looked through your biography - interesting!
Estonia has in Europe the most advanced e-govermantal system! I love Tallin.

Greetings from Switzerland and all the best.
Nick
an anonymous Nick
RE: R&D and Congratulation 2016-09-14 11:59PM
Hi Hawk,

Is your question related to my balance mod in some way? I don't really understand your question, but I think that's just how the game is...

Hi Nick,

Thank you for your greetings. :-) I'm back in the USA now, but I do wish I could visit Estonia sometimes (when it's not winter)! Too bad we don't have teleportation yet... Anyway, I hope you're well. Take care,

-- Adam
Negative profits 2017-06-12 05:14PM
I'm still having negative profits with semifinished products like citric acid and coconut oil. I'm not sure if it worked.

I'm selling citric acid for ~$9, is it normal ? Seaport sells it for ~$0.5.


an anonymous Joe
RE: Negative profits 2017-06-15 01:33PM
Hi Joe,

I don't remember exactly what the prices should be like, but it doesn't sound like the patch was fully applied to your game. Did you start a new game after applying it? Some things only take effect after starting a new game...
2018-08-05 10:50AM
Hello !

Is it possible to increase the reserve of mines?

Thank you :-)
an anonymous Solran
RE: mines 2018-09-03 11:32AM
Hi, Solran. It is possible to increase the reserve of mines, but I suspect it can't be done with the mod kit. The information about raw resources is stored in the RAW table, shown here: http://www.adammil.net/files/112/RAW.html It looks like you can control the resource value, mining speed, maximum number of sites, and mine space.

I guess if you halve the mining speed and double the resource value, you could effectively double the time until a mine is exhaused, but it's not quite the same because it would also double the resource cost to make products from it.
Recourcs file 2020-02-25 07:43AM
Can you change the amount of resources in a map or the speed it extracts
an anonymous Bob
mine 2020-02-25 08:12AM
If possible to change could you tell me how to change mine reserves and speed
an anonymous
RE: mine 2020-03-02 07:18AM
Hi, Bob. You should be able to change the extraction speed by editing the SPEED column of the RAW table using the mod kit. I don't think there is a way to change the reserves by editing the data files, but if there is it'd probably be related to the MINE_SPACE column.

Add a comment

Note: The information you enter (including your name and email address) will be displayed publicly.




Line breaks are converted to <br>'s, and all HTML tags except b, u, i, tt, and pre are filtered out.