The portraits for a planet size are listed in that size's StellarObjectTypes.txt entries. Those entries reference a XfileClasses_Stellar.txt entry, which is what specifies the model and texture used for the planet. Portraits are stored in Pictures\Planets. The model and texture are stored in Pictures\Models.
It is not possible to control what type of planet is created from asteroids, other than the size. However, with artificially created planets from stars, like the Ringworld, there is a lot you can do.
First note that all of the magic in artificial planet creation revolves around the Special ID field.
Here is an example of how to make an "Artificial Rock Oxygen" planet. It will have the same attributes as a huge planet. I've chosen a special ID value based on the order of the planet and atmosphere types in PlanetPhysicalTypes.txt and AtmosphereTypes.txt, respectively. This results in the Artificial Rock Oxygen planet having a value of 11.
PlanetSize.txt, add:
Code:
Name := Artificial Rock Oxygen
Physical Type := Planet
Stellar Size := Huge
Max Population := 8000
Max Facility Space := 25000
Max Cargo Space := 32000
Max Supply Storage := 80000
Max Ordnance Storage := 80000
Domed Max Population := 2000
Domed Max Facility Space := 5000
Domed Max Cargo Space := 8000
Domed Max Supply Storage := 16000
Domed Max Ordnance Storage := 16000
Constructed := True
Special Ability ID := 11
Next, in StellarObjectTypes.txt you need to create a stellar object type for this planet. This example will reference a huge rock oxygen xfile model entry.
Code:
Stellar Object Name := Planet Artificial Rock Oxygen 0001
Physical Type := Planet
XFile Class Name := Planet Terr 0001 Huge
Maximum Model Size := 16.0
Hex Size := 1
Picture Index := 376
Portrait Filename := planet_terr_0001_huge.bmp
Large Portrait Filename := planet_terr_0001_huge_lp.jpg
Description :=
Planet Size := Artificial Rock Oxygen
Planet Physical Type := Rock
Planet Atmosphere := Oxygen
Planet Gravity := Formula Planet Gravity
Planet Temperature := Formula Planet Temperature
Planet Radiation := Formula Planet Radiation
Planet Surface Empty := PlanetSurface_Rock_Oxygen_Empty.bmp
Planet Surface Colonized := PlanetSurface_Rock_Oxygen_Colonized.bmp
Now that we have our planet and stellar object entries, it is time to create the components we need to build the planet.
Code:
Name := Artificial Rock Oxygen Placement Generator
Description := Provides the gravitational matrix needed to assemble an artificial rock oyxgen planet.
Picture Number := 82
Maximum Level := 1
Tonnage Space Taken Formula := 2000
Tonnage Structure Formula := 2000 + (([%Level%] - 1) * 10)
Cost Minerals Formula := 500 + (([%Level%] - 1) * 5)
Cost Organics Formula := 50000 + (([%Level%] - 1) * 500)
Cost Radioactives Formula := 50000 + (([%Level%] - 1) * 500)
Supply Amount Used Formula := 800
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship, Base
Can Be Placed In Ship Sections := Inner Hull, Outer Hull
Component Type List := Technological
General Group := Stellar Manipulation
Custom Group := 0
Number Of Requirements := 8
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 70 in Stellar Manipulation.
Requirement 1 Formula := Get_Empire_Tech_Level("Stellar Manipulation") >= (70 + ([%Level%] - 1))
Requirement 2 Description := Ring World can only be built if there is a single star in the solar system.
Requirement 2 Formula := TRUE
Requirement 3 Description := No other stellar constructions can be present in the solar system.
Requirement 3 Formula := TRUE
Requirement 4 Description := No colonies can be present within 6 sectors of the star.
Requirement 4 Formula := TRUE
Requirement 5 Description := No vehicles other than those carrying required components can be present within 6 sectors of the star.
Requirement 5 Formula := TRUE
Requirement 6 Description := All planets, asteroids, and storms within 6 sectors of the star will be destroyed.
Requirement 6 Formula := TRUE
Requirement 7 Description := Any warp points within 6 sectors of the star will be moved.
Requirement 7 Formula := TRUE
Requirement 8 Description := All vehicles containing Placement Generator, Gravity Plating, and Hyper-Dense Cables will be used to build the Ring World.
Requirement 8 Formula := TRUE
Number Of Abilities := 4
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 := 11
Ability 1 Amount 2 Formula := 2
Ability 2 Type := Constructed Planet - Requirements
Ability 2 Description := Must have [%Amount2%]kT of Small Gravity Plating present at location.
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := 3
Ability 2 Amount 2 Formula := 10000
Ability 3 Type := Constructed Planet - Requirements
Ability 3 Description := Must have [%Amount2%]kT of Small Hyper-Dense Cables present at location.
Ability 3 Scope := Space Object
Ability 3 Range Formula := 0
Ability 3 Amount 1 Formula := 4
Ability 3 Amount 2 Formula := 10000
Ability 4 Type := Constructed Planet - Clear Radius
Ability 4 Description :=
Ability 4 Scope := Space Object
Ability 4 Range Formula := 0
Ability 4 Amount 1 Formula := 6
Ability 4 Amount 2 Formula := 20000
Weapon Type := None
Note the Constructed Planet - Requirements ability amount 1. This value corresponds to the planet size special ID value we assigned earlier (11). This key is what tells SE5 the type of planet that will be constructed from this planet.
Also, note how I have changed the Ability 2 and Ability 3 amount 1 formulae to new numbers. With this, I have changed what the other required components are to build the planet. This is not necessary to the stated goal, but it is instructive. These values correspond to the Custom Group values in the following components. Note that the Constructed Planet - Requirements ability values have no relation whatsoever to Special ID values, or the value for the Constructed Planet - Create ability.
Code:
Name := Small Planetary Gravity Plating
Description := Provides the ground material used in artificial planet construction.
Picture Number := 84
Maximum Level := 1
Tonnage Space Taken Formula := 2000
Tonnage Structure Formula := 2000 + (([%Level%] - 1) * 10)
Cost Minerals Formula := 1000 + (([%Level%] - 1) * 10)
Cost Organics Formula := 10000 + (([%Level%] - 1) * 100)
Cost Radioactives Formula := 10000 + (([%Level%] - 1) * 100)
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship, Base
Can Be Placed In Ship Sections := Inner Hull, Outer Hull
Component Type List := Technological
General Group := Stellar Manipulation
Custom Group := 3
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 70 in Stellar Manipulation.
Requirement 1 Formula := Get_Empire_Tech_Level("Stellar Manipulation") >= (70 + ([%Level%] - 1))
Number Of Abilities := 0
Weapon Type := None
Name := Small Hyper - Density Cables
Description := Provides the infrastructure for holding ground material used in artificial planet construction.
Picture Number := 85
Maximum Level := 1
Tonnage Space Taken Formula := 2000
Tonnage Structure Formula := 2000 + (([%Level%] - 1) * 10)
Cost Minerals Formula := 1000 + (([%Level%] - 1) * 10)
Cost Organics Formula := 10000 + (([%Level%] - 1) * 100)
Cost Radioactives Formula := 10000 + (([%Level%] - 1) * 100)
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship, Base
Can Be Placed In Ship Sections := Inner Hull, Outer Hull
Component Type List := Technological
General Group := Stellar Manipulation
Custom Group := 4
Number Of Requirements := 1
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 70 in Stellar Manipulation.
Requirement 1 Formula := Get_Empire_Tech_Level("Stellar Manipulation") >= (70 + ([%Level%] - 1))
Number Of Abilities := 0
Weapon Type := None
I didn't change anything about these components, besides name and custom group. I could have made them cheaper, or reduced the amount of tonnage you need, to correspond with the smaller artificial planet size, but that is not necessary for the illustration.
Assuming all goes well, you now have a way to explicitly create an artificial rock oxygen planet. The reason this type of planet will always come out as rock oxygen is that there is exactly 1 entry in the StellarObjectTypes.txt file matching the planet size. The way SE5 determines what type and atmosphere a new RW will have is to randomly choose from a list of all Ringworld sized planets in the file. Since there is only one option for our new planet size, it will always be selected.
The next step is to create the other 13 planet type/atmosphere combinations of planet sizes you need, all with unique ID numbers. Make sure to use a consistent numbering scheme, to make things easier to keep track of. You will also need 1 Stellar Object entry of each new size, and 1 Placement Generator component for each size (corresponding to the used Special ID numbers). I'd recommend reusing the same Cable and Plating components, cause they do not need to be so unique. Making them unique to each planet placemnet type would only serve to massive clutter the components list (more than is necessary for the 14 placement generators, anyways). Alternatively you can use only a sincle Cable and Plating component set for all artificial planets (or even none at all!). Smarter than your average Texrak. Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download, and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2007 Nolan Kelly.
Syndicate news: - Syndicate forums:
Page Generation: 0.22 Seconds