OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: MontyDrake on October 29, 2020, 11:23:41 am

Title: [Solved] Soldiers cloning themselves when loading
Post by: MontyDrake on October 29, 2020, 11:23:41 am
Lately I've been experimenting with a mod that gave me three soldiers with predefined stats and names.
It all run smoothly until I started noticing some of my soldiers went MIA without reason, and then I noticed while testing that anytime I saved in battlescape and loaded, the first three normal soldiers in the craft took the identities of these three specific soldiers, becoming efectively new clones of these three guys when in battle, and their original soldiers in place becoming missing in action when the craft returned to base.

Crazy thing is, if I happen to have the three guys in the craft, then I save and load, the next three guys after them, become clones, so I have two iterations of these soldiers running around. The second set of them, without any equipment.

I went to my ruleset, commented every data regarding this three guys in the startingBase section, started a new campaing, and everything went back to the normal behavior when saving and loading in battlescape.

Is there any chance the information on the startingBase section of my rulest interferes with the savegame information in the battlescape?

Can anybody replicate this? Am I doing something wrong?
Title: Re: Soldiers cloning themselves when loading
Post by: Meridian on October 29, 2020, 11:52:33 am
The IDs of your predefined soldiers and IDs of normal new soldiers are clashing.
Title: Re: Soldiers cloning themselves when loading
Post by: MontyDrake on October 29, 2020, 02:19:52 pm
That was it. My bad. Thank you very much Meridian