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

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old March 7th, 2001, 01:16 AM

Codo Codo is offline
Corporal
 
Join Date: Feb 2001
Location: Fishers, IN 46038
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Codo is on a distinguished road
Default More mod\'ing help requested! (Pretty please?)

OK, I have a real neat idea I'd like to add to the game. Thing is, I want to restrict how many of this particular component is installed on each size of ship (Fer example... None on an escort, 1 on frigate, 2 on destroyer...etc).

Now, Obviously, I could do this by weight, making sure that it's damn heavy... 'Cept, I don't want this component to have a weight rating! Sooo, I want to restrict them kind of like engines...

What I need help in understanding is the 'Requirement X Type' section of VehicleSizes.txt

My initial try was to number my item with its own custom group number and put a line for Escorts in that said

Requirement Max 111 := 1

Um, that didn't work... So I changed the General Group type of my item and typed

Requirement Max TestGroup := 1

That didn't work either. I thought that odd, since all engines are in general group 'Engines' and the line for Requirement Max Engines seems to work fine (Yes, I even tried like engines and made a Requirement Uses TestGroup := True and that did nothing).

It got odder when I noticed that colony modules are of type Colonizing... NOT ColonyMods like the Requirement in the VehiclesSizes.txt... *Sigh*

The comments for Requirment are a little cryptic to me, so if someone around here would happen to know how to do this, I would REALLY appreciate the learning experience. I'm trying to put together a real interesting Mod (IMHO) but am acheiving nothing but stumbling blocks for some of my ideas (Someone has to know how to make a fighter wormhole compatible...PLEASE??? )

-Codo
Reply With Quote
  #2  
Old March 7th, 2001, 01:54 AM
Puke's Avatar

Puke Puke is offline
Lieutenant General
 
Join Date: Dec 2000
Location: california
Posts: 2,961
Thanks: 0
Thanked 0 Times in 0 Posts
Puke is on a distinguished road
Default Re: More mod\'ing help requested! (Pretty please?)

only way to make a fighter wormhole compatable is to make it not a fighter. i seem to remember some sort of flag about being able to launch a hull type (y/n) but i dont recall for sure. I do know that you can not add ships to cargo though, so you are probably SOL there.

as far as the 'requires component type' flag, it pulls them from a predefined list that you can not add or subtract from. I think it is listed at the top of the vehicletype file, and yes, it is seperate from component types, but does seem to corelate to a component type. so you could make a colonymod type component and it should fulfill the colonizing requirement.
__________________
...the green, sticky spawn of the stars
(with apologies to H.P.L.)
Reply With Quote
  #3  
Old March 7th, 2001, 02:44 AM

Codo Codo is offline
Corporal
 
Join Date: Feb 2001
Location: Fishers, IN 46038
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Codo is on a distinguished road
Default Re: More mod\'ing help requested! (Pretty please?)

It would seem to me though, that there should be a way to add your own requirement types. The comments section under Reuirement X Type states something about custom Groups. Now, in the components file, it would appear that the default components don't actually utilize Custom Groups...soo....

Again, what I'm trying to do is add a new weapon to the game. It won't have any weight whatsoever (and actually only fires once per combat...30 turn reload and all). Because of the lack of weight, I want to make sure that various size hulls can only mount a certain number of this weapon. It seems to me that the way engines are restricted would be a perfect way to do what I want... If I could figure out how to do it. And again, the description under 'Requirement X Type' would seem to bear out that there should be a way to do this... I hope.

Or is this like Drones... 'We mentioned it, but it doesn't really work.'

Codo
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 06:53 PM.


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