Code Monkey home page Code Monkey logo

notitg-winstealth-patch's Introduction

Winestealth

If you've ever run NotITG through wine, you've probably noticed that stealth renders differently. This bash script patches NotITG v4.3.0 to make stealth render as it's intended.

Winestealth in action (normal): https://youtu.be/p1l1lPyS0AI
Winestealth not in action (fixed): https://youtu.be/bXpeyOiDX_Y

Dependencies

For checksum validation, you'll need sha256sum. You can install it via homebrew with

brew install coreutils

If you don't want checksum validation, put -n in the command below.

Usage

Open your terminal of choice and cd to wherever you downloaded the patch.sh.
Run:

./patch.sh -i <your-path-to-the-nitg-v4.3.0-exe>

If the checksum passes, congrats! The patched file will be called NotITG-v4.3.1.exe by default and it should be in the same directory as the original exe.
If the checksum fails, make sure your filepath is correct.
If you're running this script on a different NotITG version, pass -n to disable the checksum. This script should still correctly patch all past versions of NotITG. The output exe will be changed to NotITG.exe because I can't be bothered to update the version number for more than one build.

Explanation

In Stepmania v2, a RageDisplay method called SetTextureModeGlow was implemented to achieve a white glowing effect on actors[1][2]. This method was later used for the stealth modifier. In the method, the game checks if the player's GPU has EXT_texture_env_combine, a new extension that not everyone in 2003 had. Nowadays, all modern GPUs have this, but because this extension is so old, wine doesn't even recognize it, and fails the check. Windows passes the check, which leaves wine users with the gross fallback rendering.

Credits

  • HeySora for explaining to me back in early 2023 why winestealth existed
  • Jousway for fact-checking some of the readme explanation
  • jj for general decompilation and assembly help, giving me the ghidra SavePatch.py script, and for writing the original bash script that I then modified
  • My stubbornness

notitg-winstealth-patch's People

Contributors

spiritaxolotl avatar

Stargazers

 avatar Mathew avatar fangs avatar

Watchers

 avatar

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.