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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #11  
Old May 6th, 2007, 06:07 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: How to mod a starting planet?

It helps to provide context to such questions..
__________________
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
  #12  
Old May 7th, 2007, 12:15 AM

GeorgiaBoy GeorgiaBoy is offline
Corporal
 
Join Date: Apr 2007
Location: Hotlanta
Posts: 108
Thanks: 2
Thanked 2 Times in 2 Posts
GeorgiaBoy is on a distinguished road
Default Re: How to mod a starting planet?

Hi Fyron,

Yeah, its growing pains. I will try to provide more info next time... Thanks again douglas and capnky.

GB
__________________
"There is no substitute for victory."--Douglas MacArthur

but, especially in this day and age,

"What is victory?"--Sun Tzu
Reply With Quote
  #13  
Old May 7th, 2007, 01:04 AM
douglas's Avatar

douglas douglas is offline
Major
 
Join Date: Apr 2004
Location: Atlanta, Georgia
Posts: 1,152
Thanks: 0
Thanked 0 Times in 0 Posts
douglas is on a distinguished road
Default Re: How to mod a starting planet?

Ok, here's how to fix that without the "chainsaw" approach: IIRC, the homeworld selection algorithm is hardcoded to look for planets of size "Small", "Medium", or "Large", depending on the homeworld quality game setting. There is no reason you cannot have very similarly named planet sizes with exactly the same characteristics that will be treated identically in (almost) every way except they will not be considered possible homeworlds.

So, put renamed equivalents of the small, medium, and large planet sizes into PlanetSize.txt, and change SystemTypes.txt to use the actual Small, Medium, and Large sizes only for the first planet in each mini-system. The only problem with this is that you can't specify "any except these" for planet size so to be certain no one gets a domed homeworld you'll have to give up the randomness on planet size for all the other planets. As a compromise, you could fill out PlanetSize.txt with tons of extra duplicates so that "Any" size has a very low chance of picking a homeworld candidate.

The one thing you have to watch out for when changing PlanetSize.txt is that the size limits for planet creation and destruction are based on position in the file. If these abilities are used in your mod, you will have to make sure the planet sizes are sorted in the appropriate order for "can destroy planets with size before entry N" to match up with how you want them to work in your mod.
Reply With Quote
  #14  
Old May 8th, 2007, 10:03 AM

GeorgiaBoy GeorgiaBoy is offline
Corporal
 
Join Date: Apr 2007
Location: Hotlanta
Posts: 108
Thanks: 2
Thanked 2 Times in 2 Posts
GeorgiaBoy is on a distinguished road
Default Re: How to mod a starting planet?

(tweaking mod right now). Thanks for the quick response, douglas. Inlaws are coming into town to visit for a week, so finishing up may have to wait a little...

GB
__________________
"There is no substitute for victory."--Douglas MacArthur

but, especially in this day and age,

"What is victory?"--Sun Tzu
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 01:59 AM.


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