.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
  #1  
Old August 6th, 2007, 04:19 AM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Need a little help with DesignCreation.txt

Specificly, it's the 'spaces per one' thing that's confusing me.

If I set:

Shields Spaces Per One := 200
Armor Spaces Per One := 1200

How many shield generators should I expect to see on, say, an 800kt battleship? Also, how many armor components should I expect to see, assuming each armor plate is 30kt in size?
Reply With Quote
  #2  
Old August 6th, 2007, 04:53 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: Need a little help with DesignCreation.txt

Size of the component doesn't matter.

I forget the exact logic, but it is something like:

1) Add a component.
2) Increment some counter by the Spaces Per One value.
3) If the counter is less than the hull size of the ship, goto 1. Else, goto next component type.

==0==

You should expect to see 4 shield generators and 1 armor component added.
__________________
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
  #3  
Old August 6th, 2007, 05:57 AM
Mephisto's Avatar

Mephisto Mephisto is offline
Brigadier General
 
Join Date: Sep 2000
Location: Frankfurt, Germany
Posts: 1,994
Thanks: 0
Thanked 0 Times in 0 Posts
Mephisto is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

The line should better read "1 Component per X kt", i.e. "Shield Spaces per One := 200" is 1 Shield Generator per 200 kt hull space. I think the result is always at least "1". The line "Armor per One := 1200" in a 800 kt Hull (0,66 Components...) will be rounded up to 1 component.

Actually adding a component works like a loop. Assume
"Shields per One := 200 kt", Hull Space = 800 kt, Shield Component Size 50 kt, free hull space on design only 60 kt.

1. Loop
- "Shields per One := 200 kt" results in 4 components for this hull
- Add 1 component
- Free Space is now 10 kt since the component has a size of 50 kt

2. Loop
- "Shields per One := 200 kt" results in 4 components for this hull
- Add another component to a total of 2 components
- ERROR: Not sufficient hull space to add component
- End loop and proceed with design

If you now add a component with 10 kt it will be added to the design. Everything bigger is ignored.

SE4 reads the design file from top to bottom. Therefore placing your components in a specific order is crucial for designing. Don't add "killer lines" like "X per Once := 10" except for the last line since this will fill your complete design with the component.

I hope this was clear enough to understand. If not, just keep asking!
__________________
For, in the final analysis, our most basic common link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's futures. And we are all mortal. - JFK
Reply With Quote
  #4  
Old August 6th, 2007, 11:03 AM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

Ups, sorry, I'm out of practice. I wanted to respond to your post, not edit it!
Reply With Quote
  #5  
Old August 6th, 2007, 12:43 PM
Mephisto's Avatar

Mephisto Mephisto is offline
Brigadier General
 
Join Date: Sep 2000
Location: Frankfurt, Germany
Posts: 1,994
Thanks: 0
Thanked 0 Times in 0 Posts
Mephisto is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

This worked for me:

Name := Attack Ship
Design Type := Attack Ship
Vehicle Type := Ship
Default Strategy := Optimal Firing Range
Size Minimum Tonnage := 500
Size Maximum Tonnage := 600
Num Must Have At Least 1 Ability := 1
Must Have Ability 1 := Weapon
Minimum Speed := 5
Desired Speed := 6
Majority Weapon Family Pick 1 := 31
Majority Weapon Family Pick 2 := 25
Majority Weapon Family Pick 3 := 0
Majority Weapon Family Pick 4 := 0
Majority Weapon Family Pick 5 := 0
Secondary Weapon Family Pick 1 := 0
Secondary Weapon Family Pick 2 := 0
Secondary Weapon Family Pick 3 := 0
Secondary Weapon Family Pick 4 := 0
Secondary Weapon Family Pick 5 := 0
Shields Spaces Per One := 600
Armor Spaces Per One := 0
Majority Comp Spaces Per One := 1500
Majority Comp Ability := Weapon
Secondary Comp Spaces Per One := 0
Secondary Comp Ability := Weapon
Num Misc Abilities := 11
Misc Ability 1 Name := Shield Generation From Damage
Misc Ability 1 Spaces Per One := 100
Misc Ability 2 Name := Point-Defense
Misc Ability 2 Spaces Per One := 600
Misc Ability 3 Name := Combat To Hit Offense Plus
Misc Ability 3 Spaces Per One := 10000
Misc Ability 4 Name := Quantum Reactor
Misc Ability 4 Spaces Per One := 10000
Misc Ability 5 Name := Supply Storage
Misc Ability 5 Spaces Per One := 10000
Misc Ability 6 Name := Combat To Hit Defense Plus
Misc Ability 6 Spaces Per One := 10000
Misc Ability 7 Name := Scanner Jammer
Misc Ability 7 Spaces Per One := 10000
Misc Ability 8 Name := Cloak Level
Misc Ability 8 Spaces Per One := 10000
Misc Ability 9 Name := Multiplex Tracking
Misc Ability 9 Spaces Per One := 10000
Misc Ability 10 Name := Combat Best Experience
Misc Ability 10 Spaces Per One := 10000
Misc Ability 11 Name := Extra Movement Generation
Misc Ability 11 Spaces Per One := 10000

However, there is not enough space to put all components in, at least if you use the energy weapon.

Remember, that SE4 will add items from top to bottom and then fills up with weapons. The "Majority Comp Spaces Per One" weapon line should therefore only call for 1 weapon. If you chose more it will fill up the design with weapons and nothing else (btw, Malfador did exactly this error in the original SE4 before the first patch arrived).
You need to consider that the "Armor Spaces Per One" line will call the best armor hitpoint wise, not ability wise. If you wish to have the crystal armor, you should call it with its unique ability "Shield Generation From Damage". Else your AI may get better armor from ruins or by a deal and will use this armor instead of the crystaline armor.

For many diverse ship designs and better AI, look here: http://tdm.otaku42.de/
__________________
For, in the final analysis, our most basic common link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's futures. And we are all mortal. - JFK
Reply With Quote
  #6  
Old August 6th, 2007, 06:18 PM
Urendi Maleldil's Avatar

Urendi Maleldil Urendi Maleldil is offline
Major
 
Join Date: Oct 2000
Location: New York, NY
Posts: 1,066
Thanks: 1
Thanked 1 Time in 1 Post
Urendi Maleldil is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

It's simple once you figure it out, but the data files are very poorly worded and can get confusing.
__________________
Ken vs. The City

-Km :�
Reply With Quote
  #7  
Old August 6th, 2007, 09:38 PM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

Awesome! Thanks Mephisto! I was still having a problem getting supply storage added, until I remembered I modded the engines to hold extra supplies in their II and III versions, so an extra engine was being added instead of a supply storage component. The tip about the armor is one I'll have to remember, considering quite a few components share abilities, it could be interesting.
Reply With Quote
  #8  
Old August 8th, 2007, 01:12 PM

bearclaw bearclaw is offline
Captain
 
Join Date: Oct 2001
Location: Prince George BC, Canada
Posts: 840
Thanks: 0
Thanked 0 Times in 0 Posts
bearclaw is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

Quote:
StarShadow said:
Awesome! Thanks Mephisto! I was still having a problem getting supply storage added, until I remembered I modded the engines to hold extra supplies in their II and III versions, so an extra engine was being added instead of a supply storage component. The tip about the armor is one I'll have to remember, considering quite a few components share abilities, it could be interesting.
And that's where AI Tags become your best friend.
__________________
Nick (bearclaw)
You don't know the Power of the Dark Side. I must obey my Master.
Potestatem obscuri lateris nescitis
A+ Se+++ GdY $++ Fr- C+ Csp Sf* AuO M++ MpTFdAM St RTNH Pw++ Fq++ Nd++ Rp++ G++ Mm++ Bb++ L+ Tcp-
Reply With Quote
  #9  
Old August 8th, 2007, 06:13 PM
Mephisto's Avatar

Mephisto Mephisto is offline
Brigadier General
 
Join Date: Sep 2000
Location: Frankfurt, Germany
Posts: 1,994
Thanks: 0
Thanked 0 Times in 0 Posts
Mephisto is on a distinguished road
Default Re: Need a little help with DesignCreation.txt

Yes, but AI Tags will only help you if you mod the data files, too, while not using Tags allows compatibility with stock and mods.
__________________
For, in the final analysis, our most basic common link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's futures. And we are all mortal. - JFK
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 01:39 AM.


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