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 1 user and 169 guests online.

Online users

  • crazydog

Languages

  • English English
  • French French

Browse archives

« November 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
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Keeping weapons off a ship???

Submitted by Lord Kasdar on Sun, 2007-10-21 22:59. SE:V MODs

I was looking for a way to keep someone from putting weapons on a specific ship size. And also preventing a component from being placed on any but a single or set of ship sizes.

‹ AI Questions for the upcoming BM 1.11 and beyond Formula for finding The max population of a planet??? ›
» 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: Keeping weapons off a ship???

Submitted by Lastdreamer on Mon, 2007-10-22 03:19.

I think you can make this possible by modify Vehiclestypes.txt

» login or register to post comments

Re: Keeping weapons off a ship???

Submitted by Lord Kasdar on Mon, 2007-10-22 08:22.

I have tried several functions I just can't find the one I need.

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

Re: Keeping weapons off a ship???

Submitted by ekolis on Mon, 2007-10-22 09:57.

Add an unused AI tag ability to the components you want to restrict. Then add a requirement to the restricted hulls to prevent components with that ability from being added to it. I forget what the appropriate function's called but it's something like Get_Ability_Component_Count or something.

~~~
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: Keeping weapons off a ship???

Submitted by Nevyn on Mon, 2007-10-22 20:19.

Look at Weapon Mounts, they require a certain hull size, should be able to transfer that code.

» login or register to post comments
Mod Designer

Re: Keeping weapons off a ship???

Submitted by Gideon on Wed, 2007-10-24 13:51.

Nevyn wrote:
Look at Weapon Mounts, they require a certain hull size, should be able to transfer that code.

Last I checked, Get_Vehicle_Size_Tonnage() does not work in the Components.txt file. Has this has changed?

"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
GidMod

» login or register to post comments
Mod Designer

Re: Keeping weapons off a ship???

Submitted by Fyron on Thu, 2007-10-25 01:43.

For a detailed explanation on how to do what ekolis referred to, read this thread:

http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Board=UBB23&Number=447917&Forum=f23,f204,f199,f150,f59,f128,f105,f200,f201,f202&Words=%2Bweapons%20%2Bcarrier&Searchpage=0&Limit=25&Main=447917#Post447917

Gideon:
Sadly, it has not. 130+ versions, and still our mountless-scale mounts are not possible. Sad


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments

Re: Keeping weapons off a ship???

Submitted by Lord Kasdar on Thu, 2007-10-25 02:51.

Fyron wrote:
For a detailed explanation on how to do what ekolis referred to, read this thread:

http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Board=UBB23&Number=447917&Forum=f23,f204,f199,f150,f59,f128,f105,f200,f201,f202&Words=%2Bweapons%20%2Bcarrier&Searchpage=0&Limit=25&Main=447917#Post447917

Gideon:
Sadly, it has not. 130+ versions, and still our mountless-scale mounts are not possible. Sad


SpaceEmpires.net | Space Empires Wiki

Thank you Fyron that was immensly helpful. If only i knew something about python I could speed things up.

» login or register to post comments
Mod Designer

Re: Keeping weapons off a ship???

Submitted by Fyron on Thu, 2007-10-25 18:35.

There's no time like the present to learn! Python is inherently easy to pick up, by design.


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments

Re: Keeping weapons off a ship???

Submitted by Lord Kasdar on Thu, 2007-10-25 21:29.

Actually I downloaded python after making that post and it was increadibly easy to use your script. now to find some tutorials on basic python. I do have a background in programing but I haven't done anything but some scripting for some game mods for the past 10 years.

» login or register to post comments

Re: Keeping weapons off a ship???

Submitted by Lord Kasdar on Thu, 2007-10-25 22:46.

There is another maybe simpler way to prevent weapons from being placed on ships, I just discovered, while perusing my programing books.

You can give all weapons a component type of "Weapon"

and use this formula as a restriction.

NOT (Design_Has_Component_Type("Weapon"))

while the NOT opperand is not listed in the official documentation, I have tested this and it does work.

This also works to keep any other type of component off of a hull. You simply need to give the requisite components a new "component type" and swap it into the formula.

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

  • Research By Percentage SUCKS
  • Troops/Fighter
  • Star Trek Trailers.....
  • drone combat?!
  • 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:

  • New neutral race: The Jirwick Infestation
  • Loading Specific Cargo
  • What does 'Point Blank' mean?
  • Dealing with Missile Drones
  • AI Scripting Technical Details
(c) Strategy First, Inc. All rights reserved.