.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old November 10th, 2006, 06:13 PM
DarkHorse's Avatar

DarkHorse DarkHorse is offline
Sergeant
 
Join Date: Dec 2002
Location: U.S.A
Posts: 311
Thanks: 1
Thanked 0 Times in 0 Posts
DarkHorse is on a distinguished road
Default Research by population?

Would it be possible in SE:V to mod research points so that they are generated by population rather than by facilities?
__________________
Vogon ships are yellow chunky slablike somethings, huge as office buildings, silent as birds. They hang in the air in much the same way that bricks don't.
(R.I.P. Douglas Adams)

-War is peace -Freedom is slavery -Ignorance is strength

In peace there's nothing so becomes a man as modest stillness and humility.
- W. Shakespeare (Henry V)
Reply With Quote
  #2  
Old November 10th, 2006, 06:35 PM
Puke's Avatar

Puke Puke is offline
Lieutenant General
 
Join Date: Dec 2000
Location: california
Posts: 2,961
Thanks: 0
Thanked 0 Times in 0 Posts
Puke is on a distinguished road
Default Re: Research by population?

it would be possible to mod facilities that function based on population level, i think. you could make those facilities basically "free"
__________________
...the green, sticky spawn of the stars
(with apologies to H.P.L.)
Reply With Quote
  #3  
Old November 10th, 2006, 09:09 PM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: Research by population?

Quote:
Puke said:
it would be possible to mod facilities that function based on population level, i think. you could make those facilities basically "free"
However then you would need to know a function which returns the population of the planet and is usable from facilities.txt file to add in the amount of the research ability.

Would you know such function ?
Reply With Quote
  #4  
Old November 11th, 2006, 12:31 AM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Research by population?

I spent some time looking over this one. To make it happen you would need the research ability and the formula you would use would have to call on a manner to count the current population of the planet. Let’s call it Get_Current_Planet_Population. Now once you have that you will need to build it into a series of if statements. Something like this:

iif(Get_Current_Planet_Population() <= 100, 500, iif(Get_Current_Planet_Population() <= 200, 600, 100) and so on and so forth.

Note that I am using multiples of 1 million; so 100 equals 100 million population. You could use a straight formula with a multiplier too; however, I am willing to bet that after some play testing you will prefer the “step” increments that an if statement can give.

A straight formula example:

500 + (Get_Current_Planet_Population() * 50)

So now you need to email Aaron with a request.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #5  
Old November 11th, 2006, 01:24 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Research by population?

You could always just make all production proportional to population in settings.txt...

Facilities then represent percentage "focus", rather than explicit factories and such.
Reply With Quote
  #6  
Old November 11th, 2006, 04:44 AM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Research by population?

I just had a thought. You should be able to adjust the amount of research generated by adding to the Settings.txt as a population modifier. I haven’t tested this yet but I can’t see any reason why it shouldn’t work. This will have no effect on the research facility so it may not produce the results you are looking for. If you want to give it a try open the Settings.txt and do a find for “Number Of Population Modifiers” or just scroll to the very bottom.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #7  
Old November 11th, 2006, 07:06 AM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: Research by population?

Quote:
President_Elect_Shang said:


So now you need to email Aaron with a request.
There is a thread in the modding sub forums about the list of variables and functions to ask Aaron so that we can send him a list in one email instead of 30 requests in every direction.
Reply With Quote
  #8  
Old November 11th, 2006, 12:19 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Research by population?

I know; however, that sub-forum was created originally when we requested Mindi to make a place were we could discuss actual moding questions, effects, tips, and tricks not wish lists. A wish list would have been more appropriate here in this forum area.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #9  
Old November 11th, 2006, 09:46 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Research by population?

President_Elect_Shang said:
You should be able to adjust the amount of research generated by adding to the Settings.txt as a population modifier.


You can't really add new fields to the data files.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #10  
Old November 11th, 2006, 10:01 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Research by population?

Ok I see what you’re saying. For some reason I was thinking I had tweaked something like this in SE4.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:55 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.