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 2 users and 124 guests online.

Online users

  • The Antigeek
  • crazydog

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

Fleets register as Space_Object_Type_Ship

Submitted by unnamed on Tue, 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 ›
» 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.
Captain Kwok's picture
Mod Designer

Re: Fleets register as Space_Object_Type_Ship

Submitted by Captain Kwok on Tue, 2007-11-27 20:39.

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


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

Re: Fleets register as Space_Object_Type_Ship

Submitted by unnamed on Wed, 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

» login or register to post comments
Mod Designer

Re: Fleets register as Space_Object_Type_Ship

Submitted by Gideon on Wed, 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

» login or register to post comments
Mod Designer

Re: Fleets register as Space_Object_Type_Ship

Submitted by unnamed on Mon, 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

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

  • Combat issues
  • Anyone made a flagset creator?
  • How do I change the Resolution for windowed mode? (Steam Version, Friends list problems)
  • I need Challegers
  • Star Wars SEV ship set available
(c) Strategy First, Inc. All rights reserved.