![]() |
Reassigning units
When moving units from one HQ to another sometimes the units are renamed in the way that things would be expected. The unit becomes the last unit in the formation. Most of the time however the units are renamed as the ZERO unit. Doesn't seem like this would be that difficult to clean up. Reassigned units should always be named as the last unit in that formation.
Can this be fixed please? |
Re: Reassigning units
From my own experience reassigning units I believe this is based on the rank of the leader of the reassigned unit.
Example: If the current formation leader is an E-4 and the leader of the unit being reassigned to it is E-5 the new unit with becomes the Zero unit in the formation. |
Re: Reassigning units
Can't imagine that to be the case since the Platoon commander always remains the original ZERO unit.
|
Re: Reassigning units
I think it may be due to the alphabetical order of the formations. For example, if unit B3 is reassigned to formation F then it takes the place of the orignial F0 unit, simply because B (its original parent formation) comes before F in the alphabet. Conversely, if unit F2 is reassigned to formation B, then it becomes the last unit in that formation, again, simply because F comes after B alphabetically.
|
I cannot test this ATM but this could very well be the answer.
The game in a number of areas likes to go up or down lists one way or the other and it wouldn't surprise me in the least if it does there as well. When the picklists look for an AI unit to put in a formation they always start at the bottom of the unit list then work to the top of the list. It's why we sometimes make what should be a more common vehicle rare near the end of the unit OOB list otherwise they get picked first all the time. Don |
Re: Reassigning units
Quote:
The unit being moved can not ever be moved to command. The engine knows or can at least find out how many units exist in a formation. Naming the moved unit to XXNN+1 doesn't seem overly taxing. |
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 |
Re: Reassigning units
Quote:
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 :) |
Re: Reassigning units
There is no idea of "numbers of units in my formation" in the formation data - unless you want to loop through all units and count it every time you need to know...
Determining who is the commander etc is a fun process of following pointers from formation data to leader data and unit data etc. Most of that is from the original "squeeze a quart into a pint pot" design of the original code, which was struggling to fit 50 unit s a side into the memory of an old 286 class PC with 1MB RAM. (Remember that SP 2's PBEM replay needed the full massive 4MB extension that a 386 gave you way back, and playing with all that himem stuff etc. :) - not all computers would have >1MB installed). Basically, it is undo-able with the code base as it stands. Same as with a few other annoyances. Andy |
Re: Reassigning units
Quote:
Still... I'm getting the distinct impression you don't want to do that :) |
All times are GMT -4. The time now is 02:09 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.