re: SevenSpirits, thanks! and yikes! that's an odd bug :-o will think on that but for the life of me can't think what would be causing that.
My thoughts exactly.
Here, I did some testing. (First tried reinstalling CiV and your program, just to be sure.)
I open it up and drag Great Engineer onto Agriculture. Visually, there are now TWO GE icons on Agriculture. Only the rightmost duplicate icon is ever selectable/draggable. (That's true for the one I added, and the other dupes.)
Soon, the following lines show up in autosave:
Code:
<Units>
<Update>
<Set ID="186" PrereqTech="TECH_AGRICULTURE" />
<Where Type="UNIT_ENGINEER" />
</Update>
<Update>
<Set ID="186" PrereqTech="TECH_AGRICULTURE" />
<Where Type="UNIT_ENGINEER" />
</Update>
<Update>
<Set PrereqTech="TECH_AGRICULTURE" />
<Where Type="UNIT_ENGINEER" />
</Update>
</Units>
Now I drag the (rightmost) GE icon back to unassigned. The left icon stays. In the autosave, the new lines stay exactly the same!
Edit: Wrong, the prereqtech is now blank.
Now I drag Worker from unassigned to Pottery. The icons behave in the same pattern (there are now two Worker icons on Pottery). The autosave now says:
Code:
<Units>
<Update>
<Set ID="181" PrereqTech="TECH_POTTERY" />
<Where Type="UNIT_WORKER" />
</Update>
<Update>
<Set ID="186" PrereqTech="" />
<Where Type="UNIT_ENGINEER" />
</Update>
<Update>
<Set ID="181" PrereqTech="TECH_POTTERY" />
<Where Type="UNIT_WORKER" />
</Update>
<Update>
<Set ID="186" PrereqTech="" />
<Where Type="UNIT_ENGINEER" />
</Update>
<Update>
<Set PrereqTech="TECH_POTTERY" />
<Where Type="UNIT_WORKER" />
</Update>
<Update>
<Set PrereqTech="" />
<Where Type="UNIT_ENGINEER" />
</Update>
</Units>
Of note:
- Same problem.
- Engineer lines are still unchanged.
Edit: The prereqtech is blank as noted above.
- They are interleaved - just like how all the dupe icons are interleaved for things of the same class (e.g. unit, or worker action).
So the short of it is that dragging a tech in from "unassigned" adds 3 xml lines instead of 1, and one extra image, and the extra image never goes away. And upon loading, techs get another extra image, I'm guessing either because they are in some sense loaded twice or because the third XML line only translates to a third image under some conditions and not others.
One last test: applying the xml I pasted above works just fine. So the brokenness appears to be limited to the initial db copy and the drag and drop from unassigned, I guess.
Yup, that's bizarre. I think I'll give up on trying to use it for now, try new versions as you post them, and let you know if it starts working. Good luck.