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 0 users and 136 guests online.

Languages

  • English English
  • French French

Browse archives

« October 2008  
Mo Tu We Th Fr Sa Su
    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 31    
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Component placement restrictions based on hull size - possible?

Psieye's picture
Submitted by Psieye on Wed, 2007-11-14 10:27. SE:V MODs

Namely, is it possible to have components with "this ship is too large to equip this" or "even though you have the space, this hull size is too small to equip this" restrictions?

If not, then I can always think about having 3 Ship-types (actually, would make life easy in many ways)... er wait, is that even possible? I know you can define your own Unit-types, but is there only 1 Ship-type allowed?

‹ Way to make 'All Players Human' with Cheats turned off? Small Crystalline Fighter ›
» 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.
ekolis's picture
Mod Designer

Re: Component placement restrictions based on hull size - possib

Submitted by ekolis on Wed, 2007-11-14 10:49.

The Get_Vehicle_Size() function does not work in Components.txt, so you cannot do the "too big/small to equip" trick Sad

There's also no way to define more than one ship type either - I tried making a second by renaming bases to capital ships for the Capship Mod, but that kind of failed as bases seem to be hardcoded to be immobile and spin around in combat Sticking out tongue

All I can say until someone comes up with a clever workaround is, start asking Aaron for a "VehicleShipTypes.txt" file or a working Get_Vehicle_Size() in Components.txt; as evidenced by the v1.58 patch, if he doesn't have too many bugs to fix he's not averse to adding new features Eye-wink One other thing I'd like to see BTW is the ability to modify an *arbitrary* ability's values (and weapon fire rate and target types) in a component mount... Eye-wink

~~~
The power of the ancients is now yours to command. You are truly the Master... of the obvious Sticking out tongue

» login or register to post comments
Psieye's picture

Re: Component placement restrictions based on hull size - possib

Submitted by Psieye on Wed, 2007-11-14 11:18.

*nods* Well, I wasn't thinking of starting on this mod (I'm planning on writing it from ground up - i.e. start the data files virtually from scratch, slowly copy/pasting) until after my Postgrad years - there's 2 years for things like this to mature.

Mind, I could probably figure out some kind of work-around for what I have in mind and keep it balanced. Er hang on... why is it that Get_Vehicle_Size_Tonnage() works in ComponentEnhancements.txt (i.e. mounts) but not in components?

Mmm... I assume you can have a "ship must be smaller than 500 kT" requirement for a mount. In which case, that certainly allows me to do something like what I have in mind.

---Sig---
Playing Touhou games (Go here if interested . No, nobody else is that good/insane as that replay). No rush for SE V bug fixing.

» login or register to post comments

Re: Component placement restrictions based on hull size - possib

Submitted by jdunson on Wed, 2007-11-14 12:25.

Psieye wrote:
Mmm... I assume you can have a "ship must be smaller than 500 kT" requirement for a mount. In which case, that certainly allows me to do something like what I have in mind.

Playing around with ComponentEnhancements.txt has some interesting potential. The file looks to support "mounts" for things other than just direct fire weapons, and appears to support arbitrary formula for restrictions.

I don't think you can *require* a component to be in a mount, but with some fiddling around you could create a system where components without a mount are basically useless, and the (determined by size or whatever else) mounts provide most of the stats.

» login or register to post comments
Mod Designer

Re: Component placement restrictions based on hull size - possib

Submitted by Fyron on Wed, 2007-11-14 13:08.

Scale mounts are a long established tradition of cludgery in SE modding. Please make sure to spam Aaron with emails requesting Get_Vehicle_Size() in Componenents.txt, however!

Another option is to add a special ability tag (AI Tags work nicely) to classes of components that can only be used on a certain hull, or group of hulls. Then, add requirements to those hulls that prevents usage of anything with the ability, for the hulls where you don't want it used. All such components will still appear in the list on the left; unfortunately there is no way to remove them for the restricted hulls. For an example, check out this thread on preventing weapons from being mounted on carrier hulls.


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments
Psieye's picture

Re: Component placement restrictions based on hull size - possib

Submitted by Psieye on Wed, 2007-11-14 13:55.

Hmm, the AI tag trick certainly does look appealing if I absolutely run into a wall.

On another note, is it possible to have 'mounts' for Armour? Since it's "Component Enhancements", is it possible to have say... "your ship needs to be >1000 kT to use this armour enhancement for FAT HP"?

---Sig---
Playing Touhou games (Go here if interested . No, nobody else is that good/insane as that replay). No rush for SE V bug fixing.

» login or register to post comments
ekolis's picture
Mod Designer

Re: Component placement restrictions based on hull size - possib

Submitted by ekolis on Wed, 2007-11-14 14:39.

Yes, you can have mounts for components other than weapons, such as armor.

~~~
The power of the ancients is now yours to command. You are truly the Master... of the obvious Sticking out tongue

» login or register to post comments

Re: Component placement restrictions based on hull size - possib

Submitted by shinyhalo on Fri, 2007-12-21 11:34.

You CAN use the Get_Vehicle_Size() function in the Components file, but it is limited somewhat.

You can't use Get_Vehicle_Size() to filter the item out of the Availability list.

You can use Get_Vehicle_Size() to make a warning pop up for either Usage or Placement, thereby restricting components based on a ship's size.

I warn you though, the problem I am finding is that IF you have different components for different ship sizes THEN the list of components becomes very long and you have to get good at naming components to be able to find anything in the scroll list.

This problem would be eliminated if the Availability Requirement worked with the Get_Vehicle_Size() function, but it doesn't right now.

Here is an example from my files:

Name := FIGHTER PROJECTILE Shield
Description := FIGHTER/TROOP class shield generator that functions against PROJECTILE and ENERGY BEAM weapons, but is bypassed somewhat by ENERGY BOLT weapons.
Picture Number := 65
Maximum Level := 1
Tonnage Space Taken Formula := 15
Tonnage Structure Formula := 1
Cost Minerals Formula := 10
Cost Organics Formula := 0
Cost Radioactives Formula := 10
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Fighter, Troop
Can Be Placed In Ship Sections := Inner Hull, Outer Hull
Component Type List := Technological
General Group := Shields
Custom Group := 0
Number Of Requirements := 3
Requirements Evaluation Availability := 2, 3
Requirements Evaluation Allows Placement := 1
Requirements Evaluation Allows Usage := 2
Requirement 1 Description := The vehicle size must be at least 90kT size.
Requirement 1 Formula := Get_Vehicle_Size_Tonnage() >= 90
Requirement 2 Description := Empire must have at least tech level 1 in Shields.
Requirement 2 Formula := Get_Empire_Tech_Level("Shields") >= [%Level%]
Requirement 3 Description := Empire must have at least tech level 2 in Projectile Weapons.
Requirement 3 Formula := Get_Empire_Tech_Level("Projectile Weapons") >= 2
Number Of Abilities := 1
Ability 1 Type := Shield Generation
Ability 1 Description := Shield Generators provide [%Amount2%] normal shield points.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := "Normal Shields"
Ability 1 Amount 2 Formula := 30
Weapon Type := None

» login or register to post comments

Re: Component placement restrictions based on hull size - possib

Submitted by Lector Rae on Fri, 2007-12-21 14:21.

Indeed, I've used component mounts to accomplish a few things. I got the idea from the Gritty Galaxy mod, you might look at it for some ideas.

One thing I especially liked was the Drone Component mount that reduces the cost of any component using it by cost/10; this makes drones more cost effective and faster to build and can only be used on drones.

I also created a component-Advanced mount that doesn't accept weapons, but reduces the tonnage and structure of other components (advanced materials/construction but more fragile and expensive). I also added a durable component mount that doesn't increase the tonnage, but 'hardens' it, increasing the structure and cost. Really effective on armor.

Anyway, the way the mounts are designed, you can fix them up so they can only be used on specific components or tonnage sizes, so that might accomplish what you want, albeit indirectly.

ETA:
You might also edit damagetypes.txt to get some of the effects you want. I've been experimenting with that as well.

The added bonus of using mounts is that the AI seems programmed to make use of custom mounts (probably through some hard coded cost/benefit or damage/range equation) pretty well, and I play with a stock AI for the moment. I've noticed that the AI won't always use new weapon or armor types, but modifying those components via mounts seems to have a better effect unless you can mod the AI to use the new stuff too.

» login or register to post comments
Psieye's picture

Re: Component placement restrictions based on hull size - possib

Submitted by Psieye on Fri, 2007-12-21 17:04.

Hmm? Month old topic - I've found my workaround for not using "Get_Vehicle_Size()" in component requirement evaluation: check for Crew/Life Support amounts instead (I already wanted to re-define ships and those components - may as well make it so you must have the exact number of crew supported, without going over or under).

---Sig---
Playing Touhou games (Go to this Wiki if interested. No, nobody else is that good/insane as that replay). No rush for SE

» 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:

  • Star Wars SEV ship set available
  • No Point Defence in Technology in Balance mod
  • New Engine System
  • Research By Percentage SUCKS
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List

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:

  • Smart automatic build queues
  • Questions about multiplayer from a 100% SE5 newbie...
  • Lockup at "Player Placement"
  • Killing crew
  • mixing different armor types / shield types
(c) Strategy First, Inc. All rights reserved.