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

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 1 utilisateur et 166 invités en ligne.

Utilisateurs en ligne

  • Hammond

Languages

  • English English
  • French French

Parcourir les 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
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Keeping weapons off a ship???

Soumis par Lord Kasdar le Dim, 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??? ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Re: Keeping weapons off a ship???

Soumis par Lastdreamer le Lun, 2007-10-22 03:19

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Keeping weapons off a ship???

Soumis par Lord Kasdar le Lun, 2007-10-22 08:22

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de ekolis
Mod Designer

Re: Keeping weapons off a ship???

Soumis par ekolis le Lun, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Keeping weapons off a ship???

Soumis par Nevyn le Lun, 2007-10-22 20:19

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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: Keeping weapons off a ship???

Soumis par Gideon le Mer, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: Keeping weapons off a ship???

Soumis par Fyron le Jeu, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Keeping weapons off a ship???

Soumis par Lord Kasdar le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Mod Designer

Re: Keeping weapons off a ship???

Soumis par Fyron le Jeu, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Keeping weapons off a ship???

Soumis par Lord Kasdar le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Keeping weapons off a ship???

Soumis par Lord Kasdar le Jeu, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • 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

Depuis toujours :

  • 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

Dernier accès :

  • This is soooo Starfire!
  • Quick question about editing ship strategy.
  • Disappearing Planet Info
  • Is the game for sale as Digital Download?
  • Ground Combat mod 2.07
(c) Strategy First, Inc. All rights reserved.