Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] All items reset! #1465

Open
3 tasks done
Turquoise-Tortoise opened this issue Jan 12, 2020 · 6 comments
Open
3 tasks done

[Bug] All items reset! #1465

Turquoise-Tortoise opened this issue Jan 12, 2020 · 6 comments

Comments

@Turquoise-Tortoise
Copy link

Turquoise-Tortoise commented Jan 12, 2020

I have checked the following before submitting this issue:

  • The bug is still present in the latest release
  • Searched the existing issues so I do not open a duplicate issue
  • Filled out the template, so developers are less likely to ask for more info

Overview

You lose all items collected since the last load after loading, saving after that and loading later and any items you sold return. Also, when you look at the save editor, the items you saved with since the last load appear there, but the actual game won't acknowledge them at all, while the save editor also shows the items you sold back where they were, too.

Essentially, it ignores all changes to your items while still remembering everything else:[Xp gain, interaction choices, cooldown/other timers, number of days, ect.] Also, I accidentally loaded files that were saved on the current version on a previous one before loading on the current one again at one point, if that helps you figure it out.

Edit-Also, when you go to the main menu, it claims that your game difficulty is on Normal no matter what it says on your save slot listing.

Update Edit: If you start a new game and save it over a slot, the items that were on the save slot will show up instead, even if your character doesn't have as many item slots as you have items.

Game version

CoC 1.0.2 - Mod v1.4.18b

Expected behaviour

Items are different from the last save load after it is saved the next time then loaded the next time.

Actual behaviour

Items in both personal inventory and each storage space reset to what they were when you first saved then loaded game from since when the bug starts.

How often can this be reproduced?

Each time

Steps to reproduce the issue

  1. Load a game
  2. Collect items or sell ones you started that load with, save game.
  3. Load same game. You lose all items collected and regain previously existing ones since last load with it and all consecutive saves and loads.

If possible, attach a save file that reproduces the issue.

^"We don't support that file type" (swf, .sol)

@SpearM3064
Copy link

SpearM3064 commented Aug 20, 2020

Confirmed. This is happening with my save game as well. Let me give an example:
I currently have 5 trail mix, 5 hard biscuits, 2 whisker fruit, 3 lust draft, 1 canine pepper, and 3 equinum.
I just leveled up to level 10, so I have 50 XP.

I buy 5 more trail mix, 5 more hard biscuits, 10 reducto, and sell everything else at the pawn shop.
I also explore until I gain 500 XP, so I have a total of 550 XP.
I save my game, quit to the desktop, restart CoC, and reload my saved game.

Loading my saved game in the saved game editor says:
10 trail mix, 10 hard biscuits, 10 reducto, and 550 XP.

Loading my saved game in CoC says:
5 trail mix, 5 hard biscuits, 2 whisker fruit, 3 lust draft, 1 canine pepper, 3 equinum, and 550 XP.

I'm not convinced this has anything to do (directly) with the source code, because I was able to load the game into 1.4.15, 1.4.14, etc., and they all exhibited the same behavior. I think it's got something to do with changes in the way Flash works, such as where it saves its files (the default save location was changed some time ago). Someone needs to look into the Load/Save code.

EDIT: Over the next day or two, I plan to try to find out exactly WHEN this issue happens. For example, does it start after someone takes the Strong Back perk? Does it start after someone buys a backpack? Because it doesn't seem to happen at the start of the game when you have only three inventory slots.

@jackies99
Copy link

Still present. Affects Key Items too

@MezMez
Copy link

MezMez commented Jan 1, 2021

Confirmed. This is happening with my save game as well. Let me give an example:
I currently have 5 trail mix, 5 hard biscuits, 2 whisker fruit, 3 lust draft, 1 canine pepper, and 3 equinum.
I just leveled up to level 10, so I have 50 XP.

I buy 5 more trail mix, 5 more hard biscuits, 10 reducto, and sell everything else at the pawn shop.
I also explore until I gain 500 XP, so I have a total of 550 XP.
I save my game, quit to the desktop, restart CoC, and reload my saved game.

Loading my saved game in the saved game editor says:
10 trail mix, 10 hard biscuits, 10 reducto, and 550 XP.

Loading my saved game in CoC says:
5 trail mix, 5 hard biscuits, 2 whisker fruit, 3 lust draft, 1 canine pepper, 3 equinum, and 550 XP.

I'm not convinced this has anything to do (directly) with the source code, because I was able to load the game into 1.4.15, 1.4.14, etc., and they all exhibited the same behavior. I think it's got something to do with changes in the way Flash works, such as where it saves its files (the default save location was changed some time ago). Someone needs to look into the Load/Save code.

EDIT: Over the next day or two, I plan to try to find out exactly WHEN this issue happens. For example, does it start after someone takes the Strong Back perk? Does it start after someone buys a backpack? Because it doesn't seem to happen at the start of the game when you have only three inventory slots.

It starts from the beginning, Vitality Tinctures get changed into Imp Skulls when this happens too. Possibly in a similar line of issues.

@brrritssocold
Copy link

I'm not convinced this has anything to do (directly) with the source code, because I was able to load the game into 1.4.15, 1.4.14, etc., and they all exhibited the same behavior. I think it's got something to do with changes in the way Flash works, such as where it saves its files (the default save location was changed some time ago). Someone needs to look into the Load/Save code.

Was this a new save game created with corresponding version? Save games are not backwards compatible and there was substantial re-work of the save code in 1.4.16.

How are you running the game? OS & version, method of running the game (e.g. Flash player projector content debugger 32)
If you were playing in the debug player, did you ever get an exception? The partial save looks to me like either the code is crashing or the wrong location is used for the inventory.

If possible, can you zip the save and try to attach it? Having a look at the affected save file would help.

I did a bit of testing but could not trigger the bug (Used chest, stronger back perk 2, pawned items).

@SpearM3064
Copy link

SpearM3064 commented Mar 3, 2021 via email

@Turquoise-Tortoise
Copy link
Author

I'm not convinced this has anything to do (directly) with the source code, because I was able to load the game into 1.4.15, 1.4.14, etc., and they all exhibited the same behavior. I think it's got something to do with changes in the way Flash works, such as where it saves its files (the default save location was changed some time ago). Someone needs to look into the Load/Save code.

Was this a new save game created with corresponding version? Save games are not backwards compatible and there was substantial re-work of the save code in 1.4.16.

How are you running the game? OS & version, method of running the game (e.g. Flash player projector content debugger 32)
If you were playing in the debug player, did you ever get an exception? The partial save looks to me like either the code is crashing or the wrong location is used for the inventory.

If possible, can you zip the save and try to attach it? Having a look at the affected save file would help.

I did a bit of testing but could not trigger the bug (Used chest, stronger back perk 2, pawned items).

I already said I accidentally loaded a save on an older version and now all the slot saves are doing it. I was using Flash Player SA 32. In other words: the most recent version of the regular Stand Alone. If it were where the files are stored now, wouldn't the saves be gone with new ones working normally instead of the opposite problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants