tylercamp / palcalc

MIT License
33 stars 5 forks source link

Suggests Pals that are no longer available #15

Closed phiilu closed 5 months ago

phiilu commented 6 months ago

Thanks for this awesome tool!

I noticed that I often get suggestions of Pals that are no longer available. This could be because I have butchered them or condensed them.

For example here:

2024-05-22 17_47_56-Pal Calc

I don't have this Jetdragon anymore, because I condensed it (RIP) and now I need to breed it again.

tylercamp commented 6 months ago

Strange, do you get any pop ups about reading the save file when you open the app?

It should be auto-detecting changes to the save file on startup and re-read the file contents

phiilu commented 6 months ago

Yes you mean that one?

2024-05-22 19_15_29-Pal Calc

Also here the Jetdragon with Clumsy does not exist. Before taking the Screenshot I went back to the menu to force a save and than opened Palcalc and rerun the calculation.

Screenshot 2024-05-22 192205

2024-05-22 19_20_07-Pal

I sort the Palbox by Paldex.

tylercamp commented 6 months ago

Hmm, I suspected that it was referencing a previously-cached version of the save from when you still had that pal, but you only have one entry in your list on the left - was this your first time running Pal Calc? Or did you re-run it later to get this result?

Some possible causes for the root issue:

tylercamp commented 6 months ago

Ah whoops, didn't notice your latest comment

Yes, that's the notification I'm referring to. If that's popping up then I suspect there's an issue with pal container type detection, can you attach the Level.sav file from your save?

phiilu commented 6 months ago

Sure, I had to zip it. Thanks for looking into it!

Level.zip

tylercamp commented 6 months ago

Forgot to mention, could you also provide the files in the "Players" folder next to the Level.sav

phiilu commented 6 months ago

Here you go

Players.zip

tylercamp commented 6 months ago

Seems like the issue is due to an incorrect assumption about how butchered pals are handled. After butchering some pals in my save file I noticed the pal instance data still associates them with my party container, but when looking at the data for that container, the list does not contain the butchered pal. Instead there are now multiple pals which reference the same slot, while the container data lists the actual pals.

The original issues #11 and #12 led to the assumption that butchered/etc. pals would be moved to some untracked container, and those pals should be ignored. Instead we should just be looking at the list of pal containers and the pals within them, and only include pals from those containers.

I'll push a fix soon

tylercamp commented 6 months ago

@phiilu With the new logic I'm seeing 475 "living" pals out of 2407 total pals in your save file, does that sound right? Where missing pals could be butchered/condensed

I'm also only getting paths to a Jetragon with Legend, Nimble, and Swift, i.e. you apparently don't have any living Jetragons with Runner, is that correct?

tylercamp commented 6 months ago

Just loaded up your save to confirm (nice base btw) and don't see any jetragon with Runner

The displayed locations for the Jetragons are also correct 👍

phiilu commented 6 months ago

@tylercamp yes that sounds reasonable and yes I think at that save point I did not have a Runner Jetdragon.

Awesome that you figured it out and really appreciate your work you did with Palcalc!

tylercamp commented 6 months ago

@phiilu Thanks! This should be fixed in v1.4.1, please close this issue once you've confirmed

phiilu commented 6 months ago

I tried it out and for now I did not find any problems 🎉