GithubHelp home page GithubHelp logo

macthings / robinhood-thelegendofsherwood-resolution-patcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phiresky/robinhood-thelegendofsherwood-resolution-patcher

0.0 0.0 0.0 13.88 MB

Patch the resolution of Robin Hood: The Legend of Sherwood to support any resolution (e.g. 1920x1080)

C++ 69.86% Makefile 30.14%

robinhood-thelegendofsherwood-resolution-patcher's Introduction

Robin Hood: The Legend of Sherwood is a great game that was released in 2002. The Linux version (Desura) was released in 2005.

Before:

before.jpg

After:

after.jpg

hd.jpg

hd.gif

The game natively only supports 640x480, 800x600 and 1024x768. Which is tiny on a modern display. I found the location where the current resolution is saved by chosing all different resolutions ingame and doing a binary diff on the resulting savegame file.

The resolution is stored per profile slot in the save game file, with the first save game being at binary offset 0x104, and the second at binary offset 0xd5e. They are stored as floats for some reason, but you can simply replace those floats and the game will run at any resolution.

$ ./respatcher.elf 2560 1440
Savegame Offset 0x104, Resolution was 1920x1080
Resolution set to 2560x1440

I opened an issue about this on the public issue tracker (https://bitbucket.org/runesoftdev/robinhood_public/issues/2/maximum-resolution-available-belongs-in) since I knew the fix was fairly easy. They said they didn't want to change it because higher resolutions result in some issues such as the UI not scaling 100% correctly. I still think 1920x1080 is far better than running at 1024x768, but I recommend not setting the resolution any higher since then some maps are smaller than your screen which causes the cursor to freak out a bit at the edges.

I first posted this patch in 2012 on Desura (http://www.desura.com/games/robin-hood-the-legend-of-sherwood) where I bought the Linux version.

Since there is still discussion about this on the Steam version and people are playing this game in 2018 (

I'm posting this patcher again on GitHub.

On a semi-related note, there are some undocumented flags on the (Linux) executable.

  • -NOINPUTGRAB
  • -NOFULLSCREEN
  • -FULLSCREEN
  • -NOSCRIPT
  • -CHECKSOUNDDATA
  • -GENERATESKIPDATA
  • -SETREG
  • -GETMAJORVER
  • -GETMINORVER
  • -GETBUILRHER
  • -SIMULATE
  • -EXTRACTHUNK
  • -GAMEPAD

I always run the game in windowed mode without input grab (-NOFULLSCREEN -NOINPUTGRAB) moving the screen around with the keyboard instead. Alt+G (Or Ctrl+G) toggles the mouse grab.

robinhood-thelegendofsherwood-resolution-patcher's People

Contributors

macthings avatar phiresky 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.