Code Monkey home page Code Monkey logo

game-patches's Introduction

Xenia Canary Game Patches

This repository contains game patches for Xenia Canary.

Game Patches Discord

Installing

Game patches are now included with Xenia Canary.

  • Xenia Canary must be set to portable. See all patches

Updating

  1. Delete patches folder.
  2. Continue to Installing all patches.

All patches

  1. Download the zip file.
  2. Extract the patches folder to the proper location:
    Location
    Default Documents\xenia
    portable.txt (Portable mode) Same directory as xenia.exe
  3. Continue to enabling patches.

Individual patch(es)

  1. Open the patch file on GitHub.
  2. Right click Raw, and click Save Page As.
  3. Place the file into the patches folder.
  4. Continue to enabling patches.

Enabling patches

apply_patches must be set to true in the Xenia Canary config!

To enable patches, open the .patch.toml file that corresponds to your game in a text editor (Notepad, VSCode, VSCodium, Notepad++, etc.), and change is_enabled from false to true.

Note about aspect ratio patches

present_letterbox must be changed from true to false!

These patches do not increase resolution!

While most aspect ratio patches are 21:9 (3440/1440), they can be changed to other aspect ratios as well;

  1. Divide your monitor's resolution width by height (i.e. 3440/1440)
  2. Convert the result to hex.
  3. Change the value to 0x######## replacing ######## with the hex value.

Troubleshooting

If the above sections didn't help, you can try the following:

  1. Make sure you followed Enabling patches.
  2. Try deleting all of your patches and updating them.
  3. Try commenting out the hash of the patch like so:
    # Add # before hash
    hash = "################"
    # like this
    #hash = "################"
    This isn't guaranteed to work, and may cause crashes.
    Hashes are used to verify the correct version of a game is being patched, and this bypasses it.

Contributing

Prerequisites

Setting up Cheat Engine

Memory Breakpoints can be set in Cheat Engine or MSVC with emit_source_annotations = true. This will give annotations in disassembly.

  • Cheat Engine 7.2+ includes Big Endian types, but they must be enabled;
    • Click Edit > Options > Extra Custom Types and check all of them.
  • Go to Scan Settings and enable MEM_MAPPED.
  • Change 'Memory Scan Options' to:
    All
    Start 100000000
    Stop 200000000
    • This may change depending on the programs you have running.
    • Once you find a value you can attach Cheat Engine's debugger to see what reads/writes to that address.
      This will show an xex address when a breakpoint is hit, although there is currently no way to set a breakpoint on execution within the Xenia Debugger.

Creating patch

To make things easier, it's recommended to put Xenia Canary in the directory that contains /patches and run it with portable.txt.

  1. Set log_level to at least 2 (default) in the Xenia Canary config; See How to use for location.
  2. Run the game at least once.
  3. Close Xenia.
  4. Obtain module hash/title ID/title name;
    • Search Ctrl+F for Module hash: in xenia.log
      You should see something like:
      i> ######## Module \Device\Cdrom0\default.xex:
      Module Hash: ################
      

game-patches's People

Contributors

5c8 avatar aphelionwastaken avatar bomabomaboma avatar emoose avatar etokapa avatar gliniak avatar hasster1 avatar hyperbx avatar icup321 avatar illusion0001 avatar margen67 avatar oserenity avatar retrobenny 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.