Difference between revisions of "Memory Addresses (SM1)"

From Wulinshu
Jump to navigation Jump to search
m (Ported camera distance offset to v1.07)
m (Ported display offsets to v1.07)
Line 52: Line 52:
===Settings===
===Settings===
====Display====
====Display====
(v1.00 offsets)
* Shenmue.exe+A6190C - [float] Resolution Scale (defaults to 0.5, changes occur instantly) (v1.00)
* Shenmue.exe+A6190C - [float] Resolution Scale (defaults to 0.5, changes occur instantly)
* Shenmue.exe+A6A5DC - [float] Resolution Scale (menu setting)(defaults to 1)
* Shenmue.exe+A4E088 - [float] Contrast (defaults to 0.5, changes occur instantly)
* Shenmue.exe+9F0FDEC - [float] Resolution Scale (menu setting)(defaults to 1)
* Shenmue.exe+9F11230 - [float] Contrast (defaults to 0.5 - affects menu variables)
* Shenmue.exe+9F0FF0C - [float] Resolution Scale (defaults to 1)
* Shenmue.exe+9F11470 - [float] Contrast (defaults to 0.5 - affects menu variables)
* Shenmue.exe+9F1002C - [float] Resolution Scale (defaults to 1)
 
* Shenmue.exe+A56878 - [float] Contrast (defaults to 0.5, changes occur instantly)
* Shenmue.exe+A6A80C - [float] Contrast (defaults to 0.5 - affects menu variables)
* Shenmue.exe+9F0FE04 - [float] Contrast (defaults to 0.5 - affects menu variables)
* Shenmue.exe+9F10044 - [float] Contrast (defaults to 0.5 - affects menu variables)
 
* Shenmue.exe+9F10048 - [float] UI Display Area (defaults to 1, changes occur instantly)
* Shenmue.exe+A6A8EC - [float] UI Display Area (defaults to 1 - affects menu variables)
* Shenmue.exe+9F0FE08 - [float] UI Display Area (defaults to 1 - affects menu variables)
* Shenmue.exe+9F0FF28 - [float] UI Display Area (defaults to 1 - affects menu variables)


====Audio====
====Audio====

Revision as of 21:48, 22 December 2018

Offsets listed here are for Patch v1.07, unless noted otherwise.

Memory Addresses

General

  • Shenmue.exe+9F50EB8 - [pointer] Character Structure (?)
    • +0x8 - [float] Ryo Position X
    • +0x10 - [float] Ryo Position Y
    • +0xC - [float] Ryo Position Z
  • Shenmue.exe+9F37498 - [int] Player Money
  • Shenmue.exe+9F3749C - [int] SEGA Coins
  • Shenmue.exe+C55948 - [string] Current Map ID
  • Shenmue.exe+9E334CC - [string] MPK/MAP0
  • Shenmue.exe+1330040 - [string] Current Date

Camera

  • Shenmue.exe+5E15208 - [float] Camera Position X/Y
  • Shenmue.exe+5E15200 - [float] Camera Position X/Y
  • Shenmue.exe+5E15204 - [float] Camera Position Z
  • Shenmue.exe+9D6590 - [double] Field of View related (defaults to 57.2957795130824) (v1.00)
  • Shenmue.exe+9D6920 - [float] Field of View related (defaults to 182.0444489) (v1.00)
  • Shenmue.exe+A3BEDC - [float] Camera Distance from Player(?) (defaults to 3.099999905f)

Time

  • Shenmue.exe+9F34622 - [byte] Time of Day: Day
  • Shenmue.exe+9F34621 - [byte] Time of Day: Month
  • Shenmue.exe+9F34620 - [byte] Time of Day: Year
  • Shenmue.exe+9F34624 - [byte] Time of Day: Hours
  • Shenmue.exe+9F34625 - [byte] Time of Day: Minutes
  • Shenmue.exe+9F34626 - [byte] Time of Day: Seconds
  • Shenmue.exe+5E17F67 - [byte] Time of Day: Freeze Game Time (0 is default, odd value freezes the time)
    • side effects:
      • Compass is also frozen;
      • When pausing, there is no longer that darken fade with game tips, only the clock gets hidden.
  • Shenmue.exe+9F34622 - [byte] Weather Pattern (usually 07, 0B, 19 trigger snow with varying degrees of intensity)

Rendering

  • Shenmue.exe+EB0484 - [float] Frame Time
  • Shenmue.exe+EB0280 - [string] Frame Time and FPS
  • Shenmue.exe+EB04C8 - [byte] 60fps
  • Shenmue.exe+1478530 - [byte] 200+fps
  • Shenmue.exe+9F5D640 - [float] Supersampling (defaults to 1.233333468)
  • Shenmue.exe+9F5EF70 - [float] Supersampling (defaults to 1.233333468) (v1.00)
  • Shenmue.exe+9D6A30 - [float] UI Screen Resolution Vertical (defaults to 1080.0) (v1.00)
  • Shenmue.exe+9D6A04 - [float] UI Screen Resolution Horizontal (defaults to 1920.0) (v1.00)
  • Shenmue.exe+EB054C - [float] Screen Resolution Vertical (defaults to 1080.0)
  • Shenmue.exe+EB0810 - [float] Screen Resolution Horizontal (defaults to 1920.0)

Stats

Settings

Display

  • Shenmue.exe+A6190C - [float] Resolution Scale (defaults to 0.5, changes occur instantly) (v1.00)
  • Shenmue.exe+A6A5DC - [float] Resolution Scale (menu setting)(defaults to 1)
  • Shenmue.exe+9F0FDEC - [float] Resolution Scale (menu setting)(defaults to 1)
  • Shenmue.exe+9F0FF0C - [float] Resolution Scale (defaults to 1)
  • Shenmue.exe+9F1002C - [float] Resolution Scale (defaults to 1)
  • Shenmue.exe+A56878 - [float] Contrast (defaults to 0.5, changes occur instantly)
  • Shenmue.exe+A6A80C - [float] Contrast (defaults to 0.5 - affects menu variables)
  • Shenmue.exe+9F0FE04 - [float] Contrast (defaults to 0.5 - affects menu variables)
  • Shenmue.exe+9F10044 - [float] Contrast (defaults to 0.5 - affects menu variables)
  • Shenmue.exe+9F10048 - [float] UI Display Area (defaults to 1, changes occur instantly)
  • Shenmue.exe+A6A8EC - [float] UI Display Area (defaults to 1 - affects menu variables)
  • Shenmue.exe+9F0FE08 - [float] UI Display Area (defaults to 1 - affects menu variables)
  • Shenmue.exe+9F0FF28 - [float] UI Display Area (defaults to 1 - affects menu variables)

Audio

Text

NPCs

Debug

  • Shenmue.exe+C64DEC - [int/boolean] Debug Talk Status (locks cutscenes when set to 1, 0 is default)

Controls

Interface

Menu

Physics

  • Shenmue.exe+64C8FA8 - [byte] Remove door collisions (default 255, set to 0 for no collision)

Undocumented

(v1.00 offsets) Camera related???

  • Shenmue.exe+5E16AD8 - [float]
  • Shenmue.exe+5E16AD4 - [float]
  • Shenmue.exe+5E16AD0 - [float]
  • Shenmue.exe+5E16AE4 - [float]
  • Shenmue.exe+5E16AE0 - [float]
  • Shenmue.exe+5E16ADC - [float]

Physics related (should it be included in this wiki?):

  • Shenmue.exe+8EBD9 [2 bytes] (default 7028 [je], 7147 [jmp] for no collision)