rakesh37187 / BBSaveEditor

A simple python script for easily modifying bloodborne save data. This is a work in progress and might not work as I have also used some weird method to find certain memory places.
2 stars 1 forks source link

Callback error #2

Open Ishikudeska opened 1 month ago

Ishikudeska commented 1 month ago

Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1921, in call__ File "app.py", line 292, in _process_data_user TypeError: cannot unpack non-iterable bool object

Spits this error out when trying to process game save. Using newest BB version

rakesh37187 commented 1 month ago

I'll be honest. I never really got around finishing this up properly and was more of a program to develop some skills. If you want I could look into why that exception gets thrown. Any chance you could provide the save file?

Ishikudeska commented 1 month ago

Well actually its in the code: ` def _process_data_user(self): if self.file_location is None: messagebox.showwarning("User not loaded!", "No file selected") self.data, self.user = process_user(self.file_location) self._set_original_users_stats()

def _process_data_gems(self):
    if self.file_location is None:
        messagebox.showwarning("File not loaded!", "No file selected")
    self.data, self.gems = process_gems(self.file_location)
    self._load_all_gems()`

Both of these call for 2 seperate pieces of data. Which is what is causing the exception to be thrown

DraconicOv commented 1 month ago

From what I can tell, this happens when the file fails to start with "41000000000000" (I've also had this error.) Some save files seem to simply not work, and this could be due to an issue with your code or with how PlayStation stores save files. Possibly related: #3 Here are a few files with which you can reproduce the error, it was found in "User Editor" mode, although it may exist in the others as well.