Giter VIP home page Giter VIP logo

ips.py's People

Contributors

fredbeaudet avatar leogouttefarde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ips.py's Issues

ValueError: byte must be in range(0, 256)

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)

Error creating patch

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

Different file size issue

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.