Coder Social home page Coder Social logo

aoeagepatchstandalone's People

Contributors

janwichelmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aoeagepatchstandalone's Issues

'Defend The Wonder' mode makes the game start at the Dark Age, instead of Post-Renaissance

When playing the 'Defend the Wonder' game mode with the AgePatch installed and properly set-up, the game starts at the Dark Age, instead of post-renaissance.

While looking into this issue with scripter, we found out that this happens because, at the offsets 0x00429A3C, 0x00429C10 and 0x00429AC5, where the game is supposed to force post-renaissance start due to the fact that the 'Defend the Wonder' game mode is being played, the Post-Renaissance Age ID is pushed as a single byte, even though its value is greater than 127, which causes it to be stored as a signed negative 4-byte value in the stack. Thus, the code, when reading that argument from the stack at line 591 in AgePatch.cpp doesn't the positive value it expects.

A good way to solve that bug that doesn't require creating new codecaves just because of 3 extra bytes would be inserting this line:

movzx eax, al

Right after line 591 in AgePatch.cpp. This way, only the last byte of the argument in the stack will be read every time when this function is called.

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.