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

Utilisateurs en ligne

  • Deinonychus_Ant...
  • Randallw
  • mudshark
  • MondoMage
  • goduranus

Languages

  • English English
  • French French

Parcourir les archives

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

Fleets register as Space_Object_Type_Ship

Soumis par unnamed le Mar, 2007-11-27 19:55 SE:V MODs

Am I correct in believing that fleets would register as Space_Object_Type_Ship?

-Unnamed

‹ The future of IRM. Balance Mod AI script deciphering questions ›
» 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.
Image de Captain Kwok
Mod Designer

Re: Fleets register as Space_Object_Type_Ship

Soumis par Captain Kwok le Mar, 2007-11-27 20:39

No. The ships in the fleet would register as individual ships.


Space Empires Depot | SE:V Balance Mod

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

Re: Fleets register as Space_Object_Type_Ship

Soumis par unnamed le Mer, 2007-11-28 08:54

Ok,

So if using this code

call Sys_Get_All_Visible_Space_Objects_In_System(sys_long_Player_ID, sys_index, sobj_list) set sobj_count := sobj_list.count() if (sobj_count > 0) then for sobj_index := 1 to sobj_count do

set sobj_id := sobj_list.get(sobj_index)
set sobj_type := Sys_Get_Space_Object_Type(sobj_id)

If one of the space objects was a fleet, what would sobj_type be then. 0?

There is a function (Get_space_Object_Fleet(sobj_id)) so I assume, that fleets are a space object in themselves.

Also lets say I used Sys_Get_Space_Object_Current_Shields(sobj_id) on a fleet. Would it return 0 or would it return the total shields for all the ships in the fleet.

As always Kwok, your help is appreciated. I'm basically trying to build new attack scripts from scratch and fix a bugs left over from the old IRM code.

-Unnamed

Unnamed Mod

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

Re: Fleets register as Space_Object_Type_Ship

Soumis par Gideon le Mer, 2007-11-28 14:31

unnamed wrote:
Ok,

So if using this code

call Sys_Get_All_Visible_Space_Objects_In_System(sys_long_Player_ID, sys_index, sobj_list)
  set sobj_count := sobj_list.count()
  if (sobj_count > 0) then
    for sobj_index := 1 to sobj_count do


      set sobj_id       := sobj_list.get(sobj_index)
      set sobj_type     := Sys_Get_Space_Object_Type(sobj_id)

If one of the space objects was a fleet, what would sobj_type be then. 0?

Maybe as unitgroup? See what happens if you rig up the log system or the debug system to output the space object type for a fleet.

The above code will return all the ships, but not the fact that they are in a fleet, or what fleet that is.

Quote:
There is a function (Get_space_Object_Fleet(sobj_id)) so I assume, that fleets are a space object in themselves.

Or they are a list that proxies a space object.

Quote:
Also lets say I used Sys_Get_Space_Object_Current_Shields(sobj_id) on a fleet. Would it return 0 or would it return the total shields for all the ships in the fleet.

I could be wrong, but I think you have to go through all the space objects in a fleet, and total up their shields (or any other stat). I don't think you can directly get a fleet's shields, etc.

Quote:
As always Kwok, your help is appreciated. I'm basically trying to build new attack scripts from scratch and fix a bugs left over from the old IRM code.

-Unnamed

I'm not Kwok, so I could be wrong, but I hope that helped.

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

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

Re: Fleets register as Space_Object_Type_Ship

Soumis par unnamed le Lun, 2007-12-10 17:27

Thanks for the help.

Upon looking at the debug logs, fleets do not register as a space object at all. Each individual ship or unit group shows up instead.

-Unnamed

Unnamed Mod

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

  • Babylon 5 Wars SEV Mod Update
  • Known SE5 v1.74 Bugs
  • Research By Percentage SUCKS
  • Bad Bookkeeping
  • 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 :

  • Ship/planet detail report window
  • New thoughts on Ships/Research/Other
  • Spoils of War
  • Ramming 101
  • ver 1.71
(c) Strategy First, Inc. All rights reserved.