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 3 utilisateurs et 115 invités en ligne.

Utilisateurs en ligne

  • Jozsf
  • GambitUK
  • evader23

Languages

  • English English
  • French French

Parcourir les archives

« Août 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 31
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

How to read the Fleet name

Soumis par Franky007 le Mar, 2007-08-14 20:41 SE:V MODs

I am working in a mod that will assign each fleet to a system to patrol.

I was thinking of using the name of the System as the Fleet name.
But here is the catch, i can't find a way to read the Fleet name, once set.

Any idea ?

‹ AI research facility priority Empire size information in facility ability 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.

Re: How to read the Fleet name

Soumis par Lord Shleepy le Jeu, 2007-08-16 01:02

I'm not sure that I understand. Are you saying that you want to take EXISTING fleets and rename them to system names?

If so, it might be tricky - I don't see any specific "Rename Fleet to X" function. I do see a few other possibilities though:

1) Bypass this problem by creating the fleets with the desired name using the Sys_Create_Empire_Fleet (which allows you to name the fleet) in the first place.

2) Dissolve the existing fleets and re-create using the
Sys_Create_Empire_Fleet command.

3) I don't know if you can use a "space object"
function on a fleet...probably not...but if it worked
you could try Sys_Give_Space_Object_Order_Any
and the ORDER_CHANGE_NAME constant. This is REALLY a longshot though because not only will this probably not
work for a fleet, ORDER_CHANGE_NAME might not work with this function anyway.

Hope one of these works for ya...never tried anything quite like that before.

By the way...I assume that this is a mod involving AI scripts right? Or is this something completely different?

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

Re: How to read the Fleet name

Soumis par Franky007 le Ven, 2007-08-17 09:23

Yes that is for the AI scripts. My goal was to store in memory for each fleet a system to protect.
One way of storing that would have been using the same name between the fleet name and the system name.
But i don't think it is possible right now. I have resorted to find the nearest system to protect each turn.

Here's a scoop:
I have been coding like crazy for the past 2 weeks. I hope to have in a few weeks a new script AI for Ships orders.
This is a heavily rewrited script with a lot of new idea and improvement... i hope!

But i still have a lot of debugging to do...

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

Re: How to read the Fleet name

Soumis par Captain Kwok le Ven, 2007-08-17 09:29

One idea would be to store the fleet's ID along with the System ID it's protecting from turn to turn.

-----

Space Empires Depot | SE:V Balance Mod

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

Re: How to read the Fleet name

Soumis par Franky007 le Ven, 2007-08-17 09:44

I thought about that, but what happen when a fleet is destroyed ?

Will the fleet_id stay the same or be reassigned with a new one ?

Thanks

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

  • Any chance of different setup options for each player?
  • Balace Mod for Stock SEV Petition
  • Ok What am I missing
  • Space Empires V 1.74
  • 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 :

  • No more game crashes...
  • Retrofit Minister moving space stations
  • BALANCE MOD: heavy hulls rebalance needed
  • SE:V Changelog v1.24
  • Ground Combat mod 2.05 (for SEV 1.33 patch) ready for download
(c) Strategy First, Inc. All rights reserved.