.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

Reply
 
Thread Tools Display Modes
  #1  
Old February 21st, 2004, 01:44 AM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default modding DefaultDesignTypes.txt

Is there a way to attach a default strategy to the entries in DefaultDesignTypes.txt? For example, if I wanted to add "Missile Ship" as a design type, how would I set it's default strategy to "Maximum Range"?

Thanks!
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #2  
Old February 22nd, 2004, 09:07 AM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: modding DefaultDesignTypes.txt

*bump*

Nobody knows this? It seems like all my new entries get assigned the "Don't get hurt" strategy. I would think there was a way to get around this...
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #3  
Old February 22nd, 2004, 10:49 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: modding DefaultDesignTypes.txt

Nope, there is no way to do that. I believe that all new ship designs are given the first strategy in your strategies. Is Don't Get Hurt the first on there?
__________________
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
  #4  
Old February 22nd, 2004, 05:55 PM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default Re: modding DefaultDesignTypes.txt

Then why is there a default strategy line for every design?

Default Strategy := Optimal Firing Range

Any proof that it doesn't work? The AI is pretty simple minded, but as far as I know the ships do follow the strategies they are given.

[ February 22, 2004, 15:56: Message edited by: Baron Munchausen ]
Reply With Quote
  #5  
Old February 22nd, 2004, 06:19 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: modding DefaultDesignTypes.txt

Quote:
Originally posted by Imperator Fyron:
Nope, there is no way to do that. I believe that all new ship designs are given the first strategy in your strategies. Is Don't Get Hurt the first on there?
This isn't right. If you make any new ship type (say missile ship) it gets Don't Get Hurt. But if you use a default one, say Attack Ship, it gets Optimal Weapon range. Troop transports get Drop Troops, colony ships and pop transports get Don't GEt Hurt, etc.
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #6  
Old February 22nd, 2004, 07:38 PM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: modding DefaultDesignTypes.txt

Quote:
Originally posted by Imperator Fyron:
Is Don't Get Hurt the first on there?
Sort of - I had removed all the default entries and added all new ones (it's for the fantasy mod so I wanted different names).
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #7  
Old February 22nd, 2004, 07:49 PM

spoon spoon is offline
First Lieutenant
 
Join Date: Apr 2002
Location: California
Posts: 790
Thanks: 0
Thanked 0 Times in 0 Posts
spoon is on a distinguished road
Default Re: modding DefaultDesignTypes.txt

Quote:
Originally posted by Phoenix-D:
quote:
Originally posted by Imperator Fyron:
Nope, there is no way to do that. I believe that all new ship designs are given the first strategy in your strategies. Is Don't Get Hurt the first on there?
This isn't right. If you make any new ship type (say missile ship) it gets Don't Get Hurt. But if you use a default one, say Attack Ship, it gets Optimal Weapon range. Troop transports get Drop Troops, colony ships and pop transports get Don't GEt Hurt, etc.
I think he means that the existing ones are hard-coded, and any additional (modded) entries get assigned Optimal Firing Range (or whatever pre-existing designType you happen to have listed first)
__________________
Try out the Fantasy Empires Mod, a full conversion, fantasy based mod for SEIV Gold.
Click here to download.
Click here for the Fantasy Empires Mod discussion thread.
Reply With Quote
  #8  
Old February 22nd, 2004, 08:01 PM
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: modding DefaultDesignTypes.txt

Quote:
Originally posted by Baron Munchausen:
Then why is there a default strategy line for every design?

Default Strategy := Optimal Firing Range

Any proof that it doesn't work? The AI is pretty simple minded, but as far as I know the ships do follow the strategies they are given.
DefaultDesignTypes.txt is in the Data folder. There is no such line. It is just a listing of design types that will be available to the player when he designs a ship. You are thinking of Default_AI_DesignCreation.txt.

Quote:
Originally posted by Phoenix-D:
quote:
Originally posted by Imperator Fyron:
Nope, there is no way to do that. I believe that all new ship designs are given the first strategy in your strategies. Is Don't Get Hurt the first on there?
This isn't right. If you make any new ship type (say missile ship) it gets Don't Get Hurt. But if you use a default one, say Attack Ship, it gets Optimal Weapon range. Troop transports get Drop Troops, colony ships and pop transports get Don't GEt Hurt, etc.
I have added new types to DefaultDesignTypes.txt and used them, and they get Optimal Range if they are armed. They only get Don't Get Hurt if they have no weapons. Check out USM. It has a lot of extra designs in its DefaultDesignTypes.txt. The only one that is special is Troop Transport, which gets Drop Troops by default. All other designs get Optimal Weapons Range if they have weapons, or Don't Get Hurt if they are unarmed.

Quote:
Originally posted by spoon:
quote:
Originally posted by Imperator Fyron:
Is Don't Get Hurt the first on there?
Sort of - I had removed all the default entries and added all new ones (it's for the fantasy mod so I wanted different names).
It appears that SE4 looks for Optimal Firing Range, Don't Get Hurt, and Drop Troops strategies. If there is no Optimal Firing Range strategy, then apparently it gives up looking for other strategies. Try adding it back in and see if that fixes the problem. Also, try making a strategy similar to Optimal Firing Range as the first listed strategy. Maybe SE4 uses the first strategy for armed ships? Or maybe it just looks for the default Optimal Firing Range. I do know that in USM, it will assign Soft Planet Capture as the strategy for troop transports instead of Capture Planets. They both have the drop troops movement type. Maybe SE4 needs the first strategy to have the Optimal Weapons Range firing type?
__________________
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
Reply

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 07:03 AM.


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