Thread: Bug Reassigning units
View Single Post
  #3  
Old November 21st, 2011, 01:00 AM

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 scJazz View Post
OMFG! Out of curiosity I just popped open a save file with a hex editor. OK fine you are correct. While I'll never admit that some bit of code can't be done I'll freely admit that it isn't the simple piece of cake I had somehow assumed it would be

I'm not even sure from a quick look just how this thing is keeping track of which units are in which formation.
*Does dog with bone imitation*
OK so having peered into the HEX for the save file I just freaking had to do it I found various bits of unit data, Experience, Morale, INF Command, Arty Command, FORMATION ID and FORMATION UNIT.

So the data is there in identifiable spots. So why can't Re-assign to new HQ routine be fixed? The code already does it badly. Assigning a high formation unit to a low formation unit does name that unit correctly as the last in a formation.

Click button
Select formation
Walk through Unit data one time noting which FORMATION was chosen and read 2 bytes right for unit number
Name unit with not crazy formation unit number

It is not impossible and the code already does it poorly so it definitely is a bug.

You could just say no I am not going to do it and I'll drop it. But you can't say it is not doable
Reply With Quote