Duplicate units
Posted: Mon Apr 07, 2008 4:19 am
This happened with a scenario I'm fiddling with. Unfortunately over-wrote it in debugging so probably not a very useful report but anyway ...
- Duplicate copies of units somehow appeared (ie same unit number, same unit number#, but two units in different positions on the map). This happened with a number of units in two different regimes.
- No idea if relevant but they appeared after I had been fooling around trying to add in a new "desert" landscape type & changing hexes on which the original units were placed to this type. Units in other areas not affected.
- Duplicates *may* have arisen by placing new units and copying contents of original units (ie copy unit #) or *may* have arisen in conjunction with moving the original units a couple of hexes. Can't remember exact sequence, sorry.
- AI run time error resulted. Stack dump showed an "index out of range error" in a function called something like MoveAPCostPreview (didn't copy the dump, sorry).
- In human turn, only one of the unit instances could be moved. The other appeared to be a normal unit except attempts to move it failed.
- Deleting one instance removed the other, too. Deleting all copied units fixed the prob.
- Duplicate copies of units somehow appeared (ie same unit number, same unit number#, but two units in different positions on the map). This happened with a number of units in two different regimes.
- No idea if relevant but they appeared after I had been fooling around trying to add in a new "desert" landscape type & changing hexes on which the original units were placed to this type. Units in other areas not affected.
- Duplicates *may* have arisen by placing new units and copying contents of original units (ie copy unit #) or *may* have arisen in conjunction with moving the original units a couple of hexes. Can't remember exact sequence, sorry.
- AI run time error resulted. Stack dump showed an "index out of range error" in a function called something like MoveAPCostPreview (didn't copy the dump, sorry).
- In human turn, only one of the unit instances could be moved. The other appeared to be a normal unit except attempts to move it failed.
- Deleting one instance removed the other, too. Deleting all copied units fixed the prob.