• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Fixed Daycare crash

Status
Not open for further replies.

AlessaGarnish

Dragon Tamer
Contributor
So I had put up two Pokemon in Daycare for a day, and then decided to take one of them out (Since I already have 5 Pokemon in my party) and put another in, and then it crashes. With every Pokemon in my party. I checked log.dat and I got this:

ErrorMessage: An item with the same key has already been added.

What does it mean?
 

nilllzz

Original Developer
Administrator
P3D Developer
I messed up some place IDs.
That means, if you take out the Pokémon with ID 0 (the first one), it will remove ID 0 from the Dictionary.
If you add another Pokémon to the Daycare then, it will count the Pokémon in the daycare and adds the Pokémon with the ID based on the counts (which is 1 in this example). So it wants to add a Pokémon with ID 1 to the list where there already is a Pokémon with ID 1. This will cause the game to crash.

I fixed it by letting the game search for an ID that is not taken.
 
Status
Not open for further replies.
Top