Flat cost curve mod |
Introduction:
I think there might be other players out there who do not like the fact that vehicles, components and facilities become more expensive both to build and to maintain as your technology gets better. If you are
one of those, this little mod is for you.
Well, to be honest, that is not actually mod per so, but a mod's mod.
What i have done is I have written a Python script that changes all vehicle/facility/component cost to stay constant and independent of technology level, for example a space yard facility will now cost the same to build whether it's level 1 or 5.
The archived script can be downloaded here: http://rapidshare.com/files/779279/balance_-_flat.zip
You need Python to run, of course do it in mod's directory not where stock game files are! (if you want to use stock files copy them to a mod directory first).
For those of you who don't have python installed i've included changed VehiclesSizes.txt, Components.Txt and Facilites.Txt from Kwok's Balance Mod (0.92) in the above archive.
Let me know if it's of any use to you 




Here's the source
Here's the source code:
import os, re flatteners = [ '(Cost Minerals Formula[^+]+)\+.*', '(Cost Organics Formula[^+]+)\+.*', '(Cost Radioactives Formula[^+]+)\+.*', ] flatteners = [re.compile(flattener) for flattener in flatteners] files_to_flatten = ['Facilities.txt', 'Components.txt', 'VehicleSizes.txt'] for newfilename in files_to_flatten: print newfilename + ":", matchcount = 0 oldfilename = newfilename + '.old' try: os.unlink(oldfilename) except WindowsError: pass os.rename(newfilename, oldfilename) oldfile = file(oldfilename, 'r') oldlines = oldfile.readlines() oldfile.close() newlines = [] for oldline in oldlines: for flattener in flatteners: match = flattener.match(oldline) if match is not None: oldline = match.group(1) + "\n" matchcount += 1 newlines.append(oldline) newfile = file(newfilename, 'w') newfile.writelines(newlines) newfile.close() print "%d matches" % matchcount