Coder Social home page Coder Social logo

sm3e's People

Contributors

djuttmann avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

sm3e's Issues

Bugs in Compression.cs

Hello,

I've found bugs in Compression.cs:

Compress method:

  • "if (i - CopyLengths [i].Address < 32)" => not 32 but 0xFF as the address is stored on one byte, otherwise it uses WriteCopy instead of WriteNegativeCopy which uses one more byte

CalculateWordFill method:

  • if carry == 3 write 2 instead, because no compression is achieved when replacing [b0, b1, b0] with [cmd, b0, b1]
  • missing last carry value in WordFillLengths

MatchSubSequences method:

  • the method was buggy, I've replaced its content

You can find the corrected code there (it's in Python): https://github.com/theonlydude/RandomMetroidSolver/blob/master/compression.py

Anyway, thanks for your work on SM3E, we've used it as a documentation when we needed to get the doors information (for the areas randomization) and now the compression/decompression (for the palettes randomization) for the VARIA Randomizer.

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.