Epl persona 4 extracting error?

Describe your problem in as much detail as you can. Other users might help.
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

which line do I paste it in
User avatar
Poipt
Posts: 33
Joined: Sat May 16, 2020 12:10 am
Has liked: 2 posts
Been liked: 8 posts

It replaces

Code: Select all

rmdSize = epl_data[rmdSize : rmdSize + 4].encode("hex")
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

File "epl_extract.py", line 33, in <module>
rmdSize = int(struct.pack('<I', rmdSize).encode("hex"), 16)
AttributeError: 'bytes' object has no attribute 'encode'
User avatar
Poipt
Posts: 33
Joined: Sat May 16, 2020 12:10 am
Has liked: 2 posts
Been liked: 8 posts

replace "rmdSize = int(struct.pack('<I', rmdSize).encode("hex"), 16)" with

Code: Select all

rmdSize = int(codecs.encode(struct.pack('<I', rmdSize), "hex_codec"), 16))
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

File "epl_extract.py", line 33
rmdSize = int(codecs.encode(struct.pack('<I', rmdSize), "hex_codec"), 16))
^
SyntaxError: unmatched ')'
User avatar
Poipt
Posts: 33
Joined: Sat May 16, 2020 12:10 am
Has liked: 2 posts
Been liked: 8 posts

Oops, my bad. Delete one of the parentheses at the end of the line.
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

ok
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

ITS DONE
User avatar
slasherguy21
Posts: 185
Joined: Sun Feb 23, 2020 7:35 pm
Has liked: 35 posts
Been liked: 30 posts
Contact:

thanks for your help also mind if upload this to the wiki.
User avatar
Poipt
Posts: 33
Joined: Sat May 16, 2020 12:10 am
Has liked: 2 posts
Been liked: 8 posts

Yeah go ahead :)
Post Reply
cron

Created by ShrineFox. Maintained 2020 - 2024.
Support | Privacy | Terms
This site is NOT affiliated, associated, authorized, endorsed by, or in any way officially connected with Atlus Co., Ltd, Atlus U.S.A., Inc. or Sega Games Co., Ltd, or any of its subsidiaries or its affiliates.