Difference between revisions of "New Horizons:Game Memory"

From Animal Crossing Mods Wiki
(fixing page's syntax)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== ModelResLoader ==
== ModelResLoader ==
=== Object Position ===
=== Object Position ===
With ModelResLoader as our base (155AF3DC674), the object's position lives base-15C, or 155AF3DC518. [[File:ModelResLoader Object Position Example.png|thumb|Example of a modified ModelResLoader's Object Position.|left]]
[[File:ModelResLoader_Object_Position_Example.png|450px]][[File:ModelResLoader_Object_Position_Example_2.png|450px]]
 
 


With ModelResLoader as our base (155AF3DC674), the object's position lives base-15C, or 155AF3DC518.


[[File:ModelResLoader Object Position.png|none|thumb|Cheat Engine Memory View of ModelResLoader Object Position]]


=== Object Scale ===
[[File:ModelResLoader_Object_Scale_Example.png|450px]]


=== Object Scale ===
With ModelResLoader as our base, (155AF3DC674), the object’s scale is base+1ABC , or 155AF3DE130.
With ModelResLoader as our base, (155AF3DC674), the object’s scale is base+1ABC , or 155AF3DE130.
[[File:ModelResLoader Object Scale Example.png|thumb|Example of a modified ModelResLoader's Object Scale.|left]]
[[File:ModelResLoader Object Scale.png]]
 
 
 
 
 
 
 
 


== BYML ==
== BYML ==
Line 28: Line 18:
Something about the Structure/Filters (there are several in memory) have a pointer to the different StructureParams
Something about the Structure/Filters (there are several in memory) have a pointer to the different StructureParams


↓ Points to 09AC   ↓ 09AC address beginning of StructureParams
[[File:StructureParams Unknown.png|450px]]


AC 09 2B 99 20 00 00 00 40 00 00 00 53 74 72 75 63 74 75 72 65 50 61 72 61 6D 73
{|
|↓{{Note|Points to 09AC}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|↓{{Note|09AC address beginning of StructureParams}}
|
|
|
|
|
|
|
|
|
|-
|AC
|09
|2B
|99
|20
|00
|00
|00
|40
|00
|00
|00
|53
|74
|72
|75
|63
|74
|75
|72
|65
|50
|61
|72
|61
|6D
|73
|}
 
[[File:StructureParam Pointer.png]]


== NPC ==
== NPC ==
Line 36: Line 84:
=== States ===
=== States ===
As NPCs / Villagers move around, their internal state includes the action/animation they are currently performing. cSitOnGround, cWalk, cWait, etc.
As NPCs / Villagers move around, their internal state includes the action/animation they are currently performing. cSitOnGround, cWalk, cWait, etc.
[[File:NPC States Demo.gif]]
[[File:NPC States.png|none|thumb|In memory view of an NPC's current state]]


== BSCV ==
== BSCV ==


=== InsectAppearParam.bcsv ===
=== InsectAppearParam.bcsv ===
[[File:InsectAppearParam.bcsv.png|none|thumb|A modified InsectAppearParam that spawns only tarantulas.]]


== StaticParam.pack ==
== StaticParam.pack ==
Line 56: Line 108:


Type: float
Type: float
[[File:PlayerActor.mMoveSpeedMax.png]]
[[File:StaticParam Actor PlayerActor mMoveSpeedMax.gif]]


===== mJumpValleyMaxDist_Water.f32 =====
===== mJumpValleyMaxDist_Water.f32 =====
Line 67: Line 123:


Type: float
Type: float
[[File:StaticParam Actor PlayerActor mJumpValleyMaxDist Water.gif]]
== Notes ==
{{Note list}}
[[Category:New Horizons]]

Latest revision as of 05:25, 22 September 2021

ModelResLoader

Object Position

ModelResLoader Object Position Example.pngModelResLoader Object Position Example 2.png

With ModelResLoader as our base (155AF3DC674), the object's position lives base-15C, or 155AF3DC518.

Cheat Engine Memory View of ModelResLoader Object Position

Object Scale

ModelResLoader Object Scale Example.png

With ModelResLoader as our base, (155AF3DC674), the object’s scale is base+1ABC , or 155AF3DE130. ModelResLoader Object Scale.png

BYML

StructureParams

Something about the Structure/Filters (there are several in memory) have a pointer to the different StructureParams

StructureParams Unknown.png

[nb 1] [nb 2]
AC 09 2B 99 20 00 00 00 40 00 00 00 53 74 72 75 63 74 75 72 65 50 61 72 61 6D 73

StructureParam Pointer.png

NPC

States

As NPCs / Villagers move around, their internal state includes the action/animation they are currently performing. cSitOnGround, cWalk, cWait, etc.

NPC States Demo.gif

In memory view of an NPC's current state

BSCV

InsectAppearParam.bcsv

A modified InsectAppearParam that spawns only tarantulas.

StaticParam.pack

Includes all the static parameters in the game in byml format for NpcRoom, Gfx, NpcHouse, Layout, Insect, Seafood, Structure, Fish, Gizmo, ModelBlindLight, Camera, Actor, Weather, Item, Creature, UI, Fg, Npc, Ftr, MuseumStampRackItem, Net, Others.

Actor

PlayerActor.byml

mMoveSpeedMax.f32

Description: Controls the max run speed for the player

Pattern: 20 00 00 00 40 00 00 00 50 6C 61 79 65 72 41 63 74 6F 72 00 00 00 00 00

Offset: 768

Type: float

PlayerActor.mMoveSpeedMax.png

StaticParam Actor PlayerActor mMoveSpeedMax.gif

mJumpValleyMaxDist_Water.f32

Description: Controls the max distance between a valley for a player to jump over water

Pattern: 20 00 00 00 40 00 00 00 50 6C 61 79 65 72 41 63 74 6F 72 00 00 00 00 00

Set base to “PlayerActor”

Offset: + 0xD88 - 0x20

Type: float

StaticParam Actor PlayerActor mJumpValleyMaxDist Water.gif

Notes

  1. Points to 09AC
  2. 09AC address beginning of StructureParams