Difference between revisions of "Memory Addresses (SM2)"

From Wulinshu
Jump to navigation Jump to search
m (Added resolution table)
m
Line 37: Line 37:
* Shenmue2.exe+3EE12E8 - [float] Frame Time  
* Shenmue2.exe+3EE12E8 - [float] Frame Time  
* Shenmue2.exe+3EE10C0 - [string] Frame Time including FPS
* Shenmue2.exe+3EE10C0 - [string] Frame Time including FPS
====Weather====
====Weather====
(v1.04 offsets)
(v1.04 offsets)
Line 53: Line 54:


===Settings===
===Settings===
====Controls====
====Audio====
====Graphics====
====Graphics====
* Shenmue2.exe+81688EC - [int] Display Mode
* Shenmue2.exe+81688EC - [int] Display Mode
Line 125: Line 128:
* Shenmue2.exe+81687F4 - [float] UI Display Area (menu variable)
* Shenmue2.exe+81687F4 - [float] UI Display Area (menu variable)


====Audio====
====Text====


===NPCs===
===NPCs===
===Controls===


===Interface===
===Interface===

Revision as of 18:13, 23 December 2018

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

Memory Addresses

General

  • Shenmue2.exe+96D238 - [pointer] Character Structure(?)
    • +0x84 - [float] Position X axis
    • +0x88 - [float] Position Y axis
    • +0x8C - [float] Position Z axis
    • +0x178 - [float] Camera Distance from Player (defaults to 3.100f)
    • +0x1D8 - [float] Camera Distance from Player (defaults to 3.100f)
  • Shenmue2.exe+1D2A270 - [string] Current Map ID
  • Shenmue2.exe+81D0EB8 - [int] Player Money
  • Shenmue2.exe+81D0EBC - [int] Player SEGA Coins

Camera

  • Shenmue2.exe+D20430 - [float] Camera Position X Axis
  • Shenmue2.exe+D20438 - [float] Camera Position Y Axis
  • Shenmue2.exe+D20434 - [float] Camera Position Z Axis
  • Shenmue2.exe+D02944 - [int] Camera State (defaults to 0, 38 locks camera at current position) (V1.04)

Time

  • Shenmue2.exe+81CEE82 - [byte] Time of Day: Day
  • Shenmue2.exe+81CEE83 - [byte] Time of Day: Week
  • Shenmue2.exe+81CEE81 - [byte] Time of Day: Month
  • Shenmue2.exe+81CEE80 - [byte] Time of Day: Year
  • Shenmue2.exe+81CEE84 - [byte] Time of Day: Hours
  • Shenmue2.exe+81CEE85 - [byte] Time of Day: Minutes
  • Shenmue2.exe+81CEE86 - [byte] Time of Day: Seconds
  • Shenmue2.exe+3EE1DAC - [byte] Time of Day: Freeze Game Time
  • Shenmue2.exe+3EE1DA8 - [float] Game Time Multiplier (defaults to 1)

Rendering

  • Shenmue2.exe+3EE0B9E - [int] 60 FPS (defaults to 0, 1 = 60fps)
  • Shenmue2.exe+44BA7E0 - [int] 200+ FPS (defaults to 0, 1 = 200+fps)
  • Shenmue2.exe+3EE12E8 - [float] Frame Time
  • Shenmue2.exe+3EE10C0 - [string] Frame Time including FPS

Weather

(v1.04 offsets)

  • Shenmue2.exe+8E056C - [float] Weather related (defaults to 4, higher values increase brightness) (v1.07)
  • Shenmue2.exe+8D0C20 - [float] Sun Direction(?)
  • Shenmue2.exe+8CFC60 - [float] Wind Simulation force/power(?) (defaults to 0.005)
  • Shenmue2.exe+8CFAF4 - [float] Wind Simulation force/power(?)
  • Shenmue2.exe+953414 - [byte] Skydome related (defaults to 1, 0 causes darker skydome)
  • Shenmue2.exe+953420 - [byte] Skydome texture bool (defaults to 1, 0 causes no skydome texture)

Stats

(v1.04 offsets)

  • Shenmue2.exe+CE1A28 - [byte] First Gacha toy unlock
    • +0x20 (for a total of 0x2240) - [byte] Gacha Unlocked? flag (0 if locked, 1 if unlocked)
  • Shenmue2.exe+CE3C68 - [byte] Last Gacha toy unlock

Settings

Controls

Audio

Graphics

  • Shenmue2.exe+81688EC - [int] Display Mode
  • Shenmue2.exe+8168A0C - [int] Display Mode
    • 0 = Windowed
    • 1 = Borderless
    • 2 = Fullscreen
  • Shenmue2.exe+95A828 - [int] Display Mode (menu variable)
  • Shenmue2.exe+81687CC - [int] Display Mode (menu variable)
  • Shenmue2.exe+81688F4 - [byte] Screen Resolution
  • Shenmue2.exe+8168A14 - [byte] Screen Resolution
    • 0 = 640x480
    • 1 = 720x480
    • 2 = 720x576
    • 3 = 800x600
    • 4 = 1024x768

...

    • 19 = 1920x1080

...

    • 25 = 3840x2160
    • 26 = 4096x2160
  • Shenmue2.exe+95A908 - [byte] Screen Resolution (menu variable)
  • Shenmue2.exe+81687D4 - [byte] Screen Resolution (menu variable)


  • Shenmue2.exe+81688F8 - [float] Resolution Scale
  • Shenmue2.exe+8168A18 - [float] Resolution Scale
  • Shenmue2.exe+95A97C - [float] Resolution Scale (menu variable)
  • Shenmue2.exe+81687D8 - [float] Resolution Scale (menu variable)


  • Shenmue2.exe+81688FC - [float] Supersampling
  • Shenmue2.exe+8168A1C - [float] Supersampling
  • Shenmue2.exe+95A9EC - [float] Supersampling (menu variable)
  • Shenmue2.exe+81687DC - [float] Supersampling (menu variable)
  • Shenmue2.exe+8168900 - [byte] FXAA
  • Shenmue2.exe+95AA58 - [byte] FXAA (menu variable)
  • Shenmue2.exe+9F6E04 - [byte] FXAA (menu variable)
  • Shenmue2.exe+81687E0 - [byte] FXAA (menu variable)
  • Shenmue2.exe+8168A20 - [byte] FXAA (menu variable)
  • Shenmue2.exe+8168904 - [int] Bloom
  • Shenmue2.exe+8168A24 - [int] Bloom
    • 0 = Off
    • 1 = Low
    • 2 = High
  • Shenmue2.exe+95AAC8 - [int] Bloom (menu variable)
  • Shenmue2.exe+81687E4 - [int] Bloom (menu variable)
  • Shenmue2.exe+816890C - [float] Gamma
  • Shenmue2.exe+95AB3C - [float] Gamma (menu variable)
  • Shenmue2.exe+81687EC - [float] Gamma (menu variable)
  • Shenmue2.exe+8168A2C - [float] Gamma (menu variable)
  • Shenmue2.exe+8168908 - [byte] Aspect Ratio
  • Shenmue2.exe+8168A28 - [byte] Aspect Ratio
  • Shenmue2.exe+95AC18 - [byte] Aspect Ratio (menu variable)
  • Shenmue2.exe+81687E8 - [byte] Aspect Ratio (menu variable)
  • Shenmue2.exe+8168914 - [float] UI Display Area
  • Shenmue2.exe+8168A34 - [float] UI Display Area
  • Shenmue2.exe+95AC8C - [float] UI Display Area (menu variable)
  • Shenmue2.exe+81687F4 - [float] UI Display Area (menu variable)


NPCs

Interface

(v1.04 offsets)

  • Shenmue2.exe+81B2F98 - [byte] set to 0 by default, set to 1 to pause, if paused, set to 1 again to unpause
  • Shenmue2.exe+3D7C6C3 - [byte] set to 1 by default, 0 hides clock
  • Shenmue2.exe+BCB6EC - [float] 'am/pm' text position (x)
  • Shenmue2.exe+BCB6E0 - [float] 'am/pm' text position (y)
  • Shenmue2.exe+BCB6E4 - [float] 'am/pm' text position (z)
  • Shenmue2.exe+BCB6E8 - [float] 'am/pm' text scale(?)
  • Shenmue2.exe+BB7214 - [float] 'date/time' text in menu position (z)
  • Shenmue2.exe+BB7210 - [float] 'date/time' text in menu position (y) (text clip at values <-230)
  • Shenmue2.exe+BB6EF8 - [float] 'date/time' icon in menu scale
  • Shenmue2.exe+BB6EF4 - [float] 'date/time' icon in menu position (z)

Gacha Collection

(v1.04 offsets)

  • Shenmue2.exe+CE1950 - [byte] Gacha Table Horizontal (defaults to 8)
  • Shenmue2.exe+CE1954 - [byte] Gacha Table Vertical (defaults to 4)
  • Shenmue2.exe+CE19C8 - [int] Number of Gacha Toys (defaults to 275)
  • Shenmue2.exe+CE5A20 - [int] Number of Gacha Toys (defaults to 275)
  • Shenmue2.exe+CE3C88 - [int] Unlock flag for new item #1 (+0x20 for each subsequent additional toy)
  • Shenmue2.exe+CE3C80 - [int] New Item Category ID (1 for capsule toys) (+0x20 for each subsequent additional toy)
  • Shenmue2.exe+CE3C84 - [int] New Item item/model ID (+0x20 for each subsequent additional toy)

Menu