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

WhackEd4 calls deprecated "item", advises :meth:'AddTool', plus Par Time and Booting Files #32

Closed
NeophyteRonin opened this issue Oct 17, 2022 · 3 comments

Comments

@NeophyteRonin
Copy link

Either I'm using an old version of Python (are there system requirements I can look at?) or I'm trying to do something it can't do, period.

While trying to boot up an existing .BEX file, it issues a warning about an inability to locate text, asks if I would like to continue and, between hitting Yes and No, it still spills this out.

This is what it reads:

C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:242: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:244: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:246: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:248: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:250: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:252: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:254: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:256: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:258: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:2423: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:3667: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:3669: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:4077: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:4079: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
Traceback (most recent call last):
File "C:\GitHub\WhackEd4\src\whacked4\ui\dialogs\startdialog.py", line 46, in open_file
File "C:\GitHub\WhackEd4\src\whacked4\ui\mainwindow.py", line 166, in open_file_dialog
File "C:\GitHub\WhackEd4\src\whacked4\ui\mainwindow.py", line 260, in open_file
File "C:\GitHub\WhackEd4\src\whacked4\ui\mainwindow.py", line 451, in update_ui
File "C:\GitHub\WhackEd4\src\whacked4\ui\editors\statesframe.py", line 141, in build
File "C:\GitHub\WhackEd4\src\whacked4\ui\editors\statesframe.py", line 366, in filter_update
File "C:\GitHub\WhackEd4\src\whacked4\ui\state_list.py", line 146, in set_state_query_result
File "C:\GitHub\WhackEd4\src\whacked4\ui\state_list.py", line 110, in build
File "C:\GitHub\WhackEd4\src\whacked4\ui\state_list.py", line 131, in update_row
File "C:\GitHub\WhackEd4\src\whacked4\dehacked\patch.py", line 689, in get_state_name
IndexError: list index out of range

Also, when I press "Add" in the "Par Time" segment, I run into this one:

C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:242: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:244: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:246: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:248: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:250: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:252: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:254: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:256: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:258: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:2423: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:3667: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:3669: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:4077: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
C:\GitHub\WhackEd4\src\whacked4\ui\windows.py:4079: wxPyDeprecationWarning: Call to deprecated item. Use :meth:AddTool instead.
Traceback (most recent call last):
File "C:\GitHub\WhackEd4\src\whacked4\ui\editors\parframe.py", line 132, in par_add
File "C:\GitHub\WhackEd4\src\whacked4\dehacked\entry.py", line 68, in setitem
KeyError: 'Cannot find patch key "episode".'

So, I have python 3.10.8 (or rather, I downloaded and installed it). If WhackEd4 uses Python for its code and the most recent one is stable, here's hoping this will change things.

Update: And, nothing changed. It's still reading errors like crazy.

@GitExl
Copy link
Owner

GitExl commented Oct 20, 2022

The deprecation warnings you can ignore. But something in that patch is causing it to die. What version of Whacked are you using, and could you upload the patch file itself?

@NeophyteRonin
Copy link
Author

I used v1.30Beta with the following file. Note that it's meant to be a .DEH, but GitHub doesn't know what a .DEH is (it's otherwise a Text File).
DEHACKED.TXT

@GitExl
Copy link
Owner

GitExl commented Jul 2, 2024

The patch loads now in current builds, thanks for the report!

@GitExl GitExl closed this as completed Jul 2, 2024
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

2 participants