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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old October 16th, 2006, 01:08 PM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default Re: Modding SEV Thread Questions

A basic repair for colonies is essential IMO. Otherwise damaged facilities will never be repaired and it is quite unlogical that you can build new facilities, upgrade facilities but not repair them!
Reply With Quote
  #2  
Old October 16th, 2006, 01:14 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Modding SEV Thread Questions

Is there a way to build a component which has a restriction that limits the total number that can be carried? For example:

The Mega Toaster
The mega toaster can toast all bread in the blink of an eye; however, due to the power draw only 1 per 100 hull spaces can be used.

*Mega Toaster Inc. is not responsible for burnt slices or charring of crust.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #3  
Old October 16th, 2006, 02:22 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Modding SEV Thread Questions

Quote:
President_Elect_Shang said:
Is there a way to build a component which has a restriction that limits the total number that can be carried? For example:

The Mega Toaster
The mega toaster can toast all bread in the blink of an eye; however, due to the power draw only 1 per 100 hull spaces can be used.

*Mega Toaster Inc. is not responsible for burnt slices or charring of crust.
Sure, I guess you'd have to give it some unique ability that does nothing (like "AI Tag 1"), then do a requirement that Get_Component_Ability_Count("AI Tag 1") <= Get_Vehicle_Hull_Tonnage() / 100... (not entirely sure about the names of those functions)

Now if you could just restrict based on component NAME that would be much easier... but I never tried that and don't have the function list handy, so it might already be possible
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #4  
Old October 16th, 2006, 02:26 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 SEV Thread Questions

Note: depending on where you use it, Get_Vehicle_Hull_Tonnage has a tendancy to return 0.

It works in the weapon enhancement file, but I've yet to have it work in components.txt.
__________________
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
  #5  
Old October 16th, 2006, 02:40 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 SEV Thread Questions

Quote:
President_Elect_Shang said:
Is there a way to build a component which has a restriction that limits the total number that can be carried?
You must have missed this thread:

http://www.shrapnelcommunity.com/thr...&Number=447917
__________________
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
  #6  
Old October 16th, 2006, 02:59 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Modding SEV Thread Questions

Quote:
Imperator Fyron said:You must have missed this thread:
I do not want to force a ship type to have x many of weapon Toaster. If the designing player wants to put toasters on his ship I want to restrict how many they can emplace based upon the total tonnage; one per 100 tons to be exact. I did miss that thread and after scanning it I can see where you made 50% of the hull dedicated to fighter bays; however, as I mentioned this is not the type of restriction I want.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #7  
Old October 16th, 2006, 03:28 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Modding SEV Thread Questions

If you know the size of the hull, (which you do) then you know how many are allowed simply by doing the X per 100kt math.
Limit to that many. Done.


Restrictions are each an equation. If the equation evaluates to false, then the design is illegal. If it is true, the design is OK.
Reply With Quote
  #8  
Old October 16th, 2006, 03:34 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 SEV Thread Questions

President_Elect_Shang said:
I did miss that thread and after scanning it I can see where you made 50% of the hull dedicated to fighter bays; however, as I mentioned this is not the type of restriction I want.


Well good, cause that is not at all what the thread is talking about. The 50% fighter bay requirement is already a part of SE5. The thread is about how to set up a max number or percentage of space you can use for specific types (or groups) of components (eg: weapons); it is in fact exactly what you want to do. You can't do it from the component itself, it has to be a restriction on each hull.
__________________
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
  #9  
Old October 16th, 2006, 04:30 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Modding SEV Thread Questions

So you are saying give the component say “tag 1” then each ship size the restriction 1 tag 1 per 100 hull spaces. Won’t this cause the ship to NEED that component or else it will warn of an illegal design? Your light cruiser needs 50% fighter bays or it can’t be created correct?

From your thread:

Requirement 7 Description := This vehicle must have at least 50% of its hull dedicated to Fighter Bays

Making a ship take a certain number of a component is an old trick I know well. If I code something along this lines I will be forcing the player to take the component or else. Is there something else that I am missing? The Ultra-Toaster component MUST be purely optional. I managed a very dirty way to do this in SE4 but with SE5 it is another creature. I am trying to learn to mod all over again.

On another question is Aaron going to release a detail of the abilities that can be used for components, et-el?
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #10  
Old October 16th, 2006, 04:33 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 SEV Thread Questions

Huh? The example is a carrier, so it has a fighter bay requirement as the source vehicle from the data file does. That is not what the thread is about though; look at the last requirement (the one the post tells you to add). It is a max space for AI Tag 01. There is no requirement to have any AI Tag 01 abilities present to have a legal design, just a maximum.

Aaron is working on some modding docs.
__________________
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 12:58 AM.


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