.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   WinSPMBT (http://forum.shrapnelgames.com/forumdisplay.php?f=78)
-   -   Bug: Reassigning units (http://forum.shrapnelgames.com/showthread.php?t=48054)

Mobhack November 20th, 2011 08:15 PM

Re: Reassigning units
 
I wont be doing that - because it cant be done, as I have already said.

Andy

scJazz November 20th, 2011 09:30 PM

Re: Reassigning units
 
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.

scJazz November 21st, 2011 01:00 AM

Re: Reassigning units
 
Quote:

Originally Posted by scJazz (Post 788974)
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 :)

Griefbringer November 21st, 2011 02:31 PM

Re: Reassigning units
 
I'll admit that this is slightly annoying feature. So far I have managed to work around it by trying to first purchase those units that might receive units from other platoons, and then those platoons that might act as donators.


All times are GMT -4. The time now is 07:30 AM.

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