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

This Month's Specials

Armored Task Force- Save $9.00
War Plan Pacific- Save $8.00


Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Thread Tools Display Modes
Old November 15th, 2006, 04:17 AM

Devnullicus Devnullicus is offline
Join Date: Feb 2001
Location: Belmont, CA USA
Posts: 285
Thanks: 0
Thanked 0 Times in 0 Posts
Devnullicus is on a distinguished road
Default PlanetSize.txt knowledge base

1) In PlanetSize.txt, there is a field for "Special Ability ID". Ring and Sphere worlds have this value set to 1 and 2 respectively, while all the other planet sizes have a 0.

I'm guessing this field is referring to something in some other file, but I can't figure out which file/field it's referring to. Does anyone know?

2) Where does the field Stellar Size get it's possible values from? Another file or are these just hard-coded values?
How's my Programming? Call 1-800-DEV-NULL
Get the Space Empires V Editor and DevnullMod at http://www.devnullsoftware.com/se5
Reply With Quote
Old November 15th, 2006, 03:24 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: PlanetSize.txt knowledge base

1. In stock, this refers to components.txt, the Ring World and Sphere World Placement Generators

2. Not sure. Hopefully modable but my tests haven't been promising.

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
Reply With Quote
Old April 1st, 2007, 05:52 PM

Docwho Docwho is offline
Join Date: Nov 2006
Location: Mars
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Docwho is on a distinguished road
Default Re: PlanetSize.txt knowledge base

Yes you can add new types of ConstructedWorld to the game. It is a real pain right now but it can be done.
Reply With Quote
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


Thread Tools
Display Modes

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:35 AM.

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