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 3 users and 202 guests online.

Online users

  • Captain Kwok
  • solanrix
  • Santiago

Languages

  • English English
  • French French

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

How to read the Fleet name

Submitted by Franky007 on Tue, 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 ›
» 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: How to read the Fleet name

Submitted by Lord Shleepy on Thu, 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?

» login or register to post comments
Mod Designer

Re: How to read the Fleet name

Submitted by Franky007 on Fri, 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...

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

Re: How to read the Fleet name

Submitted by Captain Kwok on Fri, 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

» login or register to post comments
Mod Designer

Re: How to read the Fleet name

Submitted by Franky007 on Fri, 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

» 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
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • What does Environmental Resistance do?
  • OK Ship Mod
  • Space Empires V 1.74

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:

  • Scale font size to fit colums
  • demo save
  • DN5.06 Fix List
  • Are there any MODS that work with the Balance Mod
  • Combat Testing Cargo Controls
(c) Strategy First, Inc. All rights reserved.