fbeaudet / ips.py Goto Github PK
View Code? Open in Web Editor NEWA tool to apply and create IPS patches
License: GNU General Public License v3.0
A tool to apply and create IPS patches
License: GNU General Public License v3.0
Hello, I have an error that I can not adjust myself because I do not know the principle of the script.
In fact there is an overshoot of the maximum value of the byte (greater than 256).
I tried with two different roms without success.
Here is the error (thanks in advance):
Traceback (most recent call last):
File "ips.py", line 371, in
main()
File "ips.py", line 360, in main
taskResult = createPatch(sys.argv[2], sys.argv[3], sys.argv[4])
File "ips.py", line 232, in createPatch
size[x] = len(record) >> (8 - x * 8)
ValueError: byte must be in range(0, 256)
Trying to create a patch and getting an error. The unmodified file is Super Mario Bros nes rom, and I tried various modified versions, all gave an error:
Traceback (most recent call last):
File "ips/ips.py", line 373, in <module>
main()
File "ips/ips.py", line 362, in main
taskResult = createPatch(sys.argv[2], sys.argv[3], sys.argv[4])
File "ips/ips.py", line 194, in createPatch
offset[x] = a >> (16 - x * 8)
ValueError: byte must be in range(0, 256)```
Windows 7 Pro x64
Python 3.8.2
When creating a patch for a file & the file size changes, the following error occurs :
Traceback (most recent call last):
File "./ips.py", line 371, in <module>
main()
File "./ips.py", line 360, in main
taskResult = createPatch(sys.argv[2], sys.argv[3], sys.argv[4])
File "./ips.py", line 194, in createPatch
offset[x] = a >> (16 - x * 8)
ValueError: byte must be in range(0, 256)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.