isage / sorr-vita

SoRR (BennuGD) vita port.
Other
41 stars 7 forks source link

Python scrpt for fixing DCB is not working #8

Closed danielt3 closed 3 years ago

danielt3 commented 3 years ago

Hello!

I'm trying to use the prepare.sh script to install SoRR in my PSVita but I'm getting an error in the python script.

Here is the the output:

john@debian-generic:~/devel/sorr-vita-git$ ./prepare.sh
Traceback (most recent call last):  
  File "../tools/extract_stub.py", line 33, in <module>  
    nfiles, = unpack('I', f.read(4))  
struct.error: unpack requires a buffer of 4 bytes  
mv: cannot stat 'SorR_stripped.dcb': No such file or directory  
john@debian-generic:~/devel/sorr-vita-git$  

I'm not sure how to fix this one. Could you please help me? I'm using Debian Linux 10 "buster" on a AMD64 VM (Virtual Box) with Python 3.7.3.

isage commented 3 years ago

I'm not that familiar with python (this script comes from bennugd-monolithic), but it looks like it can't actually read from file. Make sure SorR.dat exists and has proper size (300+ Mb) Why VM, btw? if you're on windows, you can use prepare.cmd in cmd prompt (you'll still need python3, though).

danielt3 commented 3 years ago

Well, the script runs fine and works in Windows and, at first, I didn't remember of this particular script being in bennugd-monolithic. So I did some research and I found out that the other programmer for bennugd-monolithic wrote that script. I never used it myself. I'm closing this issue since I got the script working in Windows. Did you try it in Linux?

isage commented 3 years ago

Yeah, it's working fine for me on linux