.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPMBT
Notices


Reply
 
Thread Tools Display Modes
  #1  
Old November 20th, 2011, 06:07 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 6,007
Thanks: 497
Thanked 1,956 Times in 1,263 Posts
Mobhack is on a distinguished road
Default Re: Reassigning units

Units don't have a "number" - they are numbered in the sequence they appear in the list of 500 units. Formations are also listed in order of the master list. The list is basically an ordinary C++ array.

Sometimes there may also be a gap in the list - due to removal of a formation, or deletion of units. The insertion of a new unit into a vacant slot way up the list sometimes will do odd things to numbering as well.

It is structural with the way the original SSI code was written.

Also - the formation command unit is not always the 0th unit, in a campaign, if the command unit was killed and another of the formation took over.

Cheers
Andy
Reply With Quote
  #2  
Old November 20th, 2011, 06:33 PM

scJazz scJazz is offline
Sergeant
 
Join Date: Jun 2005
Posts: 312
Thanks: 5
Thanked 8 Times in 7 Posts
scJazz is on a distinguished road
Default Re: Reassigning units

Quote:
Originally Posted by Mobhack View Post
Units don't have a "number" - they are numbered in the sequence they appear in the list of 500 units. Formations are also listed in order of the master list. The list is basically an ordinary C++ array.

Sometimes there may also be a gap in the list - due to removal of a formation, or deletion of units. The insertion of a new unit into a vacant slot way up the list sometimes will do odd things to numbering as well.

It is structural with the way the original SSI code was written.

Also - the formation command unit is not always the 0th unit, in a campaign, if the command unit was killed and another of the formation took over.

Cheers
Andy
I understand what your saying. Still, if a unit knows that it has been reassigned to the "D" formation then it is possible to know that before the assignment there were X units in that formation. You would have to walk the Unit Arrays "Name" field to determine what X happens to be. Doesn't seem to be that big a deal. Doable?

And yes I know about the command unit not always being 0th in a campaign I have this handy sticky note on my monitor to inform me of each instance where this is now the case in this campaign. Handy thing to have when I do stupid stuff and get my platoon and company commanders killed
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2026, Shrapnel Games, Inc. - All Rights Reserved.