Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 0 users and 145 guests online.

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Flat cost curve mod

Submitted by Szumo on Thu, 2006-10-26 12:36. SE:V MODs

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 Smiling

‹ Componant restrictions for mounts AI building problems ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Here's the source

Submitted by Szumo on Thu, 2006-10-26 12:56.

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

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • I am so impressed!
  • Space Empires V 1.74
  • Neutral pack 1.10 released, now adds three neutral races.
  • Stuipd Question
  • Research By Percentage SUCKS

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • The Daily WTF
  • .: Released :. Genesis - SE5 Map Editor
  • Racial technology
  • Space Empires V
  • Scripting inteligence/events
(c) Strategy First, Inc. All rights reserved.