.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 > SEV Modders Knowledge Base

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old April 2nd, 2007, 12:22 AM
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: PlanetSize.txt knowledge base

Its no worse than SE4, where it was quite easy too. Just need to add new SM comps to create them, and add all the requisite bits for a new planet type (planetsize entry, stellarobjectypes entries, possibly xfileclass_stellar entries).

The Special Ability ID value in PlanetSize.txt is the basis for each type of constructed planet:

Name := Ringworld
Special Ability ID := 1

If you look up the Ringworld Placement Generator, you will see this number on its ability 1 Amount 1 value:

Ability 1 Type := Constructed Planet - Create
Ability 1 Description := Will create a Ring World around a star.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 1
Ability 1 Amount 2 Formula := 2

Amount 1 refers to which planet type will be created. You would need to make your new type have a "3" to make it distinct. I'm not positive what Amount 2 refers to; both RW and SW placement generators have it listed as 2.

Next, look at the req for gravity plating:

Ability 2 Type := Constructed Planet - Requirements
Ability 2 Description := Must have [%Amount2%]kT of Gravity Plating present at location.
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := 1
Ability 2 Amount 2 Formula := 10000

The amount 1 here refers to the custom group value for the type of req component you need (and the amount 2 refers to the kT total you need). Take a look at the Gravity Plating component:

Name := Planetary Gravity Plating
...
Custom Group := 1

The cables have a Custom Group value of 2.
__________________
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
 

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 11:52 AM.


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