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 1 user and 127 guests online.

Online users

  • Firzen_Zero

Languages

  • English English
  • French French

Browse archives

« Juillet 2008  
Lu Ma Me Je Ve Sa Di
  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

Population-drven Economy

Submitted by Helker on Sat, 2007-03-17 11:05. SE:V MODs

I want to create a mod which gives a great importance to the population of the Empire. One of the thing I have to modify is the facilities output, which I want to be based on the population on the planet instead of a fixed amount, but how can I do that?

The standard formula for an Organics Farm Facility, for example, is the following:

Ability 1 Amount 1 Formula := 3000 + (([%Level%] - 1) * 100)

Which produces 3000 + 100 per level of the facility after the first.

I'd like to modify it with something like 300 per 1000 units of population, up to 3000 per facility. With a bonus for higher facility level. (The actual numbers have to be defined...)

Is something like this even possible or I'm just wasting time?

Something simplier would be to just multiply the standard output with the percentage of the population on the planet ( [Current_Population] / [Total_population] )...

‹ Help with mod debugging Planetary Pictures & Models ›
» 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.

Re: Population-drven Economy

Submitted by Mylon on Sun, 2007-03-18 01:48.

You can do this, however you need to edit the last bits in the setting.txt file. You won't be able to edit this in the facilities file. And, unfortunately, there's no formula function available. It took me a good long while to create a custom curve so mineral production ramps up pretty quickly at low pops but is overtaken by production at later pops. This makes heavy pop planets the industry, and new planets the mining colonies. Smiling

» login or register to post comments

Re: Population-drven Economy

Submitted by zelos on Sun, 2007-03-18 02:25.

where, to what and how did you manish this?

» login or register to post comments

Re: Population-drven Economy

Submitted by Mylon on Mon, 2007-03-19 04:23.

Open up settings.txt - It's the last block of text in that file. Think of how to want population to work and also plot the important data points along the production and SY rate curves you have chosen. Unfortunately, it does not take formulas, so you'll have to input data points. This process is slow and annoying, unfortunately.

It set it up so that SY Rate goes linerally to 100% at 1 billion, and the square root of the population (in billions) thereafter. Production runs at the cubic root the whole way, again, using 1 billion as a the "base". Colonies with small populations will produce more minerals than they manufacture. Conversely, colonies with big populations manufacture more than they produce. Getting a good size population for your empire is important.

» login or register to post comments

Re: Population-drven Economy

Submitted by Grumble314 on Mon, 2007-03-19 05:20.

Try
http://imagemodserver.mine.nu/other/MM/SE5/Tools/SE4+5PopModifier.zip
By Suicide Junkie creates the entries from a formula then just copy it into the settings.txt

» login or register to post comments

Re: Population-drven Economy

Submitted by Mylon on Mon, 2007-03-19 05:56.

Damn. That could have saved me like, an hour or two. I should really learn to use this pyhton thing I have to create this stuff by script. Smiling

» login or register to post comments
Mod Designer

Re: Population-drven Economy

Submitted by Gideon on Sun, 2007-04-08 16:08.

Grumble314 wrote:
Try http://imagemodserver.mine.nu/other/MM/SE5/Tools/SE4+5PopModifier.zip By Suicide Junkie creates the entries from a formula then just copy it into the settings.txt

Unfortunatly, this software will only perform the most basic functions. I need it to accept exp entries, or at least accept the long hand version.

The math I'm trying (unsuccessfully) to get it to use is: 500-400*(EXP(-0.000075*[%Pop%])).

The software sees EXP as a variable.

This long hand version: 500-400*((5+(1/[%Pop%]))^(-0.000046*[%Pop%])) causes the software to choke on an exception (probably divide by zero, even though it gives you no zero pop entry on the chart).

So, this software is basically unusable for me.

Edit for typoes.

» login or register to post comments
Mod Designer

Re: Population-drven Economy

Submitted by Fyron on Sun, 2007-04-08 20:22.

Then write your own script? Learn a little python and you can do it in 5 minutes...


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments

Re: Population-drven Economy

Submitted by Galvorte on Mon, 2007-05-14 21:34.

Is there any way to change Research and Intel output to not use the production value?

» login or register to post comments

Re: Population-drven Economy

Submitted by edge1218 on Thu, 2008-03-20 19:39.

Sys_Get_Planet_Population: long
planet_id: long
This function returns the total population on a planet. The planet_id is the ID
of the space object.

This combined with use of the Max population value per planet size would give you the percentage. I am pretty sure it would need to be scripted.

» login or register to post comments

Re: Population-drven Economy

Submitted by rahlubenru on Sun, 2008-03-23 15:02.

so since it doesn't take formulas then having efficiency as
%planet pop used/%facility space used
with max at 100%, maybe 120% would be impossible then it'd probably want to be linear until 100 then exponentially declining to 120% or an S curve, I can't remeber the maths that makes one, ^3?

» 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:

  • Research By Percentage SUCKS
  • Cloaked Warp Points
  • Capturing suicidal colony ships of Balance Mod AI empires
  • Space Empires V 1.74
  • Space Empires V

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:

  • Unnamed Mod and 1.74
  • Ministers
  • Planet Creator Bug
  • Hello! Some questions that will decide whether or not I buy SE V at this time.
  • AI talking problems
(c) Strategy First, Inc. All rights reserved.