.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

Reply
 
Thread Tools Display Modes
  #1  
Old April 1st, 2007, 03:36 AM

Docwho Docwho is offline
BANNED USER
 
Join Date: Nov 2006
Location: Mars
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Docwho is on a distinguished road
Default Planets new sizes, types, and Atmos Knowledge Base

Ok. Here I go.

To add a new type of planet to the system you will need to modify PlanetPhysicalTypes.txt, StellarObjectTypes.txt, SystemTypes.txt, and Components.txt.

Lets say you want to add a new planet type call Organic. You would then add

Name := Organic (Type of planet)
Description :=
Picture Index := 2 (if you add pic to the set of 3 great)
Tech Area For Colonization := Organic Colonization (Need the new component to the Components.txt)

to the PlanetPhysicalTypes.txt.

Then add or change the Stellarobjecttypes.txt with the following.

Stellar Object Name := Planet Gas Ringed 0001 Huge (name of object)
Physical Type := Planet (have not messed with not sure what we could do with it yet.)
XFile Class Name := Planet Ringed 0001 Huge (This is to deal with x class. Not sure how to change it. Suggestion is to leave alone)
Maximum Model Size := 24.0126 (Don't know what this dose. Suggetion leave alone.)
Hex Size := 1
Picture Index := 356 (If you add picture then change this to mach. Pictures/Planets/)
Portrait Filename := planet_gas_ringed_0001_huge.bmp (This is the bmp that you look at (128X128)Pictures/Planets/)
Large Portrait Filename := planet_gas_ringed_0001_huge_lp.jpg (This is the large version.(512x512)Pictures/Planets/)
Description :=
Planet Size := Huge (this is how you would change the size of the planet. This will be cover later in this message.)
Planet Physical Type := Gas Giant (Change this line to the new type)
Planet Atmosphere := Carbon Dioxide (Atmosphere Should be able to be changed. Have not tested but will list the starting points later in massage)
Planet Gravity := Formula Planet Gravity
Planet Temperature := Formula Planet Temperature
Planet Radiation := Formula Planet Radiation
Planet Surface Empty := PlanetSurface_Gas_Carbon_Empty.bmp (If you make you own for your planet great. Else just copy and change. Add to Pictures/Planets/)
Planet Surface Colonized := PlanetSurface_Gas_Carbon_Colonized.bmp(If you make you own for your planet great. Else just copy and change. Add to Pictures/Planets/)

ok now to the systemtypes.txt. You will want to add your new type to the chances to being made.

Chance Type 1 Number of Any Planet Compositions := 5 (How many types of compositions there are)
Chance Type 1 Any Comp 1 Type := Rock (Type)
Chance Type 1 Any Comp 1 Chance := 20 (% of showing up)
Chance Type 1 Any Comp 2 Type := Ice (Type)
Chance Type 1 Any Comp 2 Chance := 20 (% of showing up)
Chance Type 1 Any Comp 3 Type := Gas Giant (Type)
Chance Type 1 Any Comp 3 Chance := 20 (% of showing up)
Chance Type 1 Any Comp 4 Type := Organic (Type)
Chance Type 1 Any Comp 4 Chance := 20 (% of showing up)
Chance Type 1 Any Comp 5 Type := Crystallen (Type)
Chance Type 1 Any Comp 5 Chance := 20 (% of showing up)

Then once you have done that you should be able to test the set and see your new planet type in the game. You will not beable to colonized it yet. The last step is to add the new new component to the Components.txt. like so...

Name := Organic Colony
Description := Materials needed to start a colony on a Organic planet.
Picture Number := 194
Maximum Level := 10
Tonnage Space Taken Formula := 200
Tonnage Structure Formula := 200
Cost Minerals Formula := 200 + (([%Level%] - 1) * 2)
Cost Organics Formula := 1000 + (([%Level%] - 1) * 10)
Cost Radioactives Formula := 1000 + (([%Level%] - 1) * 10)
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 := Colonizing
Custom Group := 0
Number Of Requirements := 2
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Organic Colonization.
Requirement 1 Formula := Get_Empire_Tech_Level("Organic Colonization") >= (1 + ([%Level%] - 1))
Requirement 2 Description := Empire must have racial trait Organic Manipulation.
Requirement 2 Formula := Empire_Has_Racial_Trait("Organic Manipulation")
Number Of Abilities := 2
Ability 1 Type := Planet Colonize Type 4 (Just make sure you use type 1 - 5 since that is what the system would allow at the time of writing this.)
Ability 1 Description := Can colonize a Organic based planet.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 0
Ability 1 Amount 2 Formula := 0
Ability 2 Type := Storage Cargo Space Amount
Ability 2 Description := Provides [%Amount1%]kT worth of cargo space.
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := 40 + (([%Level%] - 1) * 40)
Ability 2 Amount 2 Formula := 0
Weapon Type := None


That is how to add new types of planets to the game.

New size to follow in next post.
Reply With Quote
  #2  
Old April 1st, 2007, 03:53 AM

Docwho Docwho is offline
BANNED USER
 
Join Date: Nov 2006
Location: Mars
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Docwho is on a distinguished road
Default Re: QA on Planets and new sizes and new types.

Sizes....


Need to modify PlanetSize.txt, StellarObjectTypes.txt, SystemTypes.txt.

Start with the PlanetSize.txt. Add your new size there. like the following.

Name := Giant (New size)
Physical Type := Planet (Should be Planet. But you could use someother things.)
Stellar Size := Huge(This is under xfile again so Leave alone. I think.)
Max Population := 36000
Max Facility Space := 100000
Max Cargo Space := 64000
Max Supply Storage := 160000
Max Ordnance Storage := 160000
Domed Max Population := 3000
Domed Max Facility Space := 20000
Domed Max Cargo Space := 16000
Domed Max Supply Storage := 32000
Domed Max Ordnance Storage := 32000
Constructed := False (Constructed would mean adding new components to the components file)
Special Ability ID := 0 (The id use to make sure the right stuff is on hand for making a Constructed planet)


that is the start of it. The next thing is to add the new size in the StellarObjectTypes.txt.

Stellar Object Name := Planet Gas Ringed 0001 Giant
Physical Type := Planet
XFile Class Name := Planet Ringed 0001 Huge
Maximum Model Size := 24.0126
Hex Size := 1
Picture Index := 356
Portrait Filename := planet_gas_ringed_0001_huge.bmp
Large Portrait Filename := planet_gas_ringed_0001_huge_lp.jpg
Description :=
Planet Size := Giant (This line is the only one you would need to change if you wanted to add new sizes. Copy and paste then modify)
Planet Physical Type := Gas Giant
Planet Atmosphere := Carbon Dioxide
Planet Gravity := Formula Planet Gravity
Planet Temperature := Formula Planet Temperature
Planet Radiation := Formula Planet Radiation
Planet Surface Empty := PlanetSurface_Gas_Carbon_Empty.bmp
Planet Surface Colonized := PlanetSurface_Gas_Carbon_Colonized.bmp

Ok that make it so you have pictures with your new planet size.

Now to make it so that they will show up in the game. under the Systemtypes.txt

Chance Type 1 Number of Any Planet Sizes := 8 (Number of sizes to be made)
Chance Type 1 Any Size 1 Type := Tiny
Chance Type 1 Any Size 1 Chance := 9
Chance Type 1 Any Size 2 Type := Small
Chance Type 1 Any Size 2 Chance := 14
Chance Type 1 Any Size 3 Type := Medium
Chance Type 1 Any Size 3 Chance := 19
Chance Type 1 Any Size 4 Type := Large
Chance Type 1 Any Size 4 Chance := 20
Chance Type 1 Any Size 5 Type := Huge
Chance Type 1 Any Size 5 Chance := 30
Chance Type 1 Any Size 6 Type := Giant (Should be add a number 6 size like so)
Chance Type 1 Any Size 6 Chance := 5
Chance Type 1 Any Size 7 Type := Old SphereWorld (Testing this trying to make spheres and rings show up in the game to start)
Chance Type 1 Any Size 7 Chance := 30
Chance Type 1 Any Size 8 Type := Old RingWorld (Testing this trying to make spheres and rings show up in the game to start)
Chance Type 1 Any Size 8 Chance := 30


And that is how to add new sizes to the game. (Ring and sphere are not adding for some reason right now. Still testing them)

Atmospheres are next. Plaese note this has not been tested by me.
Reply With Quote
  #3  
Old April 1st, 2007, 04:05 AM

Docwho Docwho is offline
BANNED USER
 
Join Date: Nov 2006
Location: Mars
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Docwho is on a distinguished road
Default Re: QA on Planets and new sizes and new types.

Atmospheres from what I have seen in the date file this should make them work. (HAVE NOT HAD TIME TO TEST)

Bmp_AtmosphereTypes.bmp, AtmosphereTypes.txt, StellarObjectTypes.txt, and SystemTypes.txt

AtmosphereTypes.txt is where you need to start it looks like.

Name := None (Type)
Description :=
Picture Index := 1 (So your empire can start with it by clicking on the pic)
Allowed On Planet Physical Types := Rock, Ice (What they of planets this atmosphere is found on.)

Then to the Stellarobjecttypes.txt to add it into the game.

Stellar Object Name := Planet Gas Ringed 0001 Giant
Physical Type := Planet
XFile Class Name := Planet Ringed 0001 Huge
Maximum Model Size := 24.0126
Hex Size := 1
Picture Index := 356
Portrait Filename := planet_gas_ringed_0001_huge.bmp
Large Portrait Filename := planet_gas_ringed_0001_huge_lp.jpg
Description :=
Planet Size := Giant
Planet Physical Type := Gas Giant
Planet Atmosphere := Carbon Dioxide (Change this to the new type of Atmo you want)
Planet Gravity := Formula Planet Gravity
Planet Temperature := Formula Planet Temperature
Planet Radiation := Formula Planet Radiation
Planet Surface Empty := PlanetSurface_Gas_Carbon_Empty.bmp
Planet Surface Colonized := PlanetSurface_Gas_Carbon_Colonized.bmp

then to the systemtypes.txt.

Chance Type 1 Number of Any Planet Atmospheres := 5 (Chang to 6 if you are adding new 1 new one atmo higher if you are adding more)
Chance Type 1 Any Atmos 1 Type := None (Type)
Chance Type 1 Any Atmos 1 Chance := 20 (% of coming up)
Chance Type 1 Any Atmos 2 Type := Methane (Type)
Chance Type 1 Any Atmos 2 Chance := 20 (% of coming up)
Chance Type 1 Any Atmos 3 Type := Oxygen (Type)
Chance Type 1 Any Atmos 3 Chance := 20 (% of coming up)
Chance Type 1 Any Atmos 4 Type := Hydrogen (Type)
Chance Type 1 Any Atmos 4 Chance := 20 (% of coming up)
Chance Type 1 Any Atmos 5 Type := Carbon Dioxide (Type)
Chance Type 1 Any Atmos 5 Chance := 20 (% of coming up)

Now you should have been able to make a new Atmo in the game.

Thanks I hope this helps all of you out. I am still working on my mod but will be posting it soon I hope.
Reply With Quote
Reply

Bookmarks

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 04:35 PM.


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