Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 3 users and 135 guests online.

Online users

  • GambitUK
  • OmnusDestoth
  • Shyssiryxius

Languages

  • English English
  • French French

Browse archives

« Septembre 2008  
Lu Ma Me Je Ve Sa Di
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

One component that requires another?

Submitted by Mylon on Wed, 2007-02-07 14:58. SE:V MODs

I want to add nuclear engines to the game. Nuclear engines would provide more thrust than Ion Engines but use a similar amount of supplies. The drawback? It requires a certain amount of tonnage before it becomes effective. I was planning on doing this by adding a component "Nuclear Shielding". A ship only needs one Nuclear Shielding component to use Nuclear engines, so it only becomes useful once a certain number of nuclear engines are being used, and thus it fits the bill of being more useful for bigger ships than smaller ships.

I tried mimicking how Ships require Crew Quarters and such, but it seems when I set the "Requirements Evaluation Allows Placement" to the check for "Get_Design_Ability_Component_Count("Nuclear Shielding") = 1", the engine never shows up in the design window, not even after the shielding has been added.

Anyone know any other means?

‹ Hero-class components with EXP requirements - possible? strange shipdesign SEV1.25 + BM1.03 ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: One component that requires another?

Submitted by Mylon on Wed, 2007-02-07 15:16.

I have also attempted editing the vehicle to add the requirement: "iif(Get_Design_Ability_Component_Count("Nuclear Engine") >= 1, Get_Design_Ability_Component_Count("Nuclear Shielding") = 1, TRUE)"

But this formula does not seem to be evaluated. I see the descriptive part of this requirement, but when I add a Nuclear Engine to the design, a warning does not appear as it should, and I can complete the design.

» login or register to post comments

Re: One component that requires another?

Submitted by Raapys on Wed, 2007-02-07 16:47.

*Double post*

» login or register to post comments

Re: One component that requires another?

Submitted by Raapys on Wed, 2007-02-07 16:48.

Use the Get_Design_Specific_Component_Count function( only works in vehiclesizes ).
I.e.:

iif(Get_Design_Specific_Component_Count("Nuclear Engine") > 0, iif(Get_Design_Specific_Component_Count("Nuclear Shielding") > 0, 1, 0), 1)

» login or register to post comments
Badger's picture

Re: One component that requires another?

Submitted by Badger on Wed, 2007-02-07 16:56.

Nuclear - fusion engines, or fission?

I will pay you money to replace quantum with that.
should hi-energy be a perq to that tech?

and last but not least,
when you say requires tonnage, do you MORE than 10,000 TONS?

Do you REALLY think you will subvert System Vampyre before it subverts YOU?

» login or register to post comments

Re: One component that requires another?

Submitted by Fallen Haven on Wed, 2007-02-07 17:28.

Mylon wrote:
I have also attempted editing the vehicle to add the requirement: "iif(Get_Design_Ability_Component_Count("Nuclear Engine") >= 1, Get_Design_Ability_Component_Count("Nuclear Shielding") = 1, TRUE)"

But this formula does not seem to be evaluated. I see the descriptive part of this requirement, but when I add a Nuclear Engine to the design, a warning does not appear as it should, and I can complete the design.

You do it the wrong way...


Requirements Evaluation Availability := 1

Requirements Evaluation Allows Placement := 2, 3

Requirements Evaluation Allows Usage := TRUE

Requirement 1 Description := Empire must have bla bla bla

Requirement 1 Formula := *the tech you need*

Requirement 2 Description := Need more than one nuclear engine.

Requirement 2 Formula := (Get_Design_Ability_Component_Count("Nuclear Engine") >= 1 )

Requirement 3 Description := Need one nuclear shielding.

Requirement 3 Formula := (Get_Design_Ability_Component_Count("Nuclear Shielding") = 1)

» login or register to post comments
Mod Designer

Re: One component that requires another?

Submitted by Phoenix-D on Wed, 2007-02-07 18:05.

Won't work the way he wants. That will just require nuclear engines AND nuclear shielding; what he wants to do is IF you use a nuclear engine you need nuclear shielding. But you don't have to use either.

The iif statement should work if phrased correctly. You need to use Component count, NOT ability count, because there is no such thing as "nuclear engine" ability.

Try:

iif(Get_Design_Component_Count("Nuclear Engine") >= 1, (Get_Design_Component_Count("Nuclear Shielding") = 1), 1)

» login or register to post comments

Re: One component that requires another?

Submitted by Fallen Haven on Wed, 2007-02-07 18:13.

Phoenix-D wrote:
Won't work the way he wants. That will just require nuclear engines AND nuclear shielding; what he wants to do is IF you use a nuclear engine you need nuclear shielding. But you don't have to use either.

The iif statement should work if phrased correctly. You need to use Component count, NOT ability count, because there is no such thing as "nuclear engine" ability.

Try:

iif(Get_Design_Component_Count("Nuclear Engine") >= 1, (Get_Design_Component_Count("Nuclear Shielding") = 1), 1)

Oups, i overlooked the ability count thing...

» login or register to post comments

Re: One component that requires another?

Submitted by Mylon on Wed, 2007-02-07 21:33.

Raapys wrote:
Use the Get_Design_Specific_Component_Count function( only works in vehiclesizes ). I.e.:

iif(Get_Design_Specific_Component_Count("Nuclear Engine") > 0, iif(Get_Design_Specific_Component_Count("Nuclear Shielding") > 0, 1, 0), 1)

Get_Design_Specific_Component_Count() is the right function! Thanks!

And to Badger: Really? Send me a check when I release my mod, then. Smiling I did not specify whether they were fusion or fission engines. They actually have no tech requirement (other than propulsion, same as ion engines). Heck, Humans almost developed nuclear engines. Development stopped because of a silly no-nuclear-weapons-in-space treaty that also happened to cover these very engines.

I've set up the nuclear engines such that they provide twice as much thrust as ion engines, so the break even point is when one puts as much tonnage in Nuclear Engines as the Nuclear Shielding, which at the moment I have set up to be an arbitrary 200kt in size. On the plus side, it provides 5 times its size in damage resistance, as a significant portion is a lead plate.

A side effect of my learning experience with this component is that I can use it to add requirements for other components as well, including the possible "power" requirements I was asking about earlier, though I'll probably leave that one alone for now.

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Ship Capture Issues
  • Space Empires V
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Hows the current AI?
  • SE5 Multimedia Pack

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Function to check if Intelligence is allowed?
  • Space Empires V 1.63
  • I will purchase SEV
  • Space Empires V 1.58
  • How do you protect Sphereworlds
(c) Strategy First, Inc. All rights reserved.