Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Commit

Permalink
Identify HHA evaluation stuff in player struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Slattz committed Sep 30, 2018
1 parent de70e35 commit 0acacbf
Showing 1 changed file with 102 additions and 2 deletions.
104 changes: 102 additions & 2 deletions 010 Templates/garden_plus.dat.bt
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,49 @@ string EmoteString(ubyte Emote)
}
}

string HHAHouseThemeString(ubyte Theme)
{
string init = "House Theme: ";

switch (Theme)
{
case 0x0:
return init += "Harmonious";
case 0x1:
return init += "Antique";
case 0x2:
return init += "Rusty";
case 0x3:
return init += "Trendy";
case 0x4:
return init += "Fairy Tale";
case 0x5:
return init += "Toy Shop";
case 0x6:
return init += "Sci-Fi";
case 0x7:
return init += "Quirky";
case 0x8:
return init += "No Theme";
default:
return init += "Invalid House Theme";
}
}

string HHAHouseEvaluatedString(ubyte Eval)
{
string init = "Evaluation Status: ";

if ((Eval & 1))
{
if ((Eval & 2)) // & 3
return init += "Indoor and Exterior";

else return init += "Indoor Only";
}
else return init += "Not Evaluated";
}

/* EXTRA STRUCTS */

typedef struct MiiData
Expand Down Expand Up @@ -714,6 +757,60 @@ typedef struct PlayerBadges

};

typedef struct HHAHouseInfo
{
int32 HHAHousePoints; //0x5764 -> 0x5767
uint16 HHAItem1 <format=hex, comment="Only used if no theme">; //0x5768 -> 0x5777
uint16 HHAItem2 <format=hex, comment="Only used if no theme">; //0x5768 -> 0x5777
uint16 HHAItem3 <format=hex, comment="Only used if no theme">; //0x5768 -> 0x5777
uint16 HHAItem4 <format=hex, comment="Only used if no theme">; //0x5768 -> 0x5777
uint16 HHAItem5 <format=hex, comment="Only used if no theme">; //0x5768 -> 0x5777
uint16 Item_Exterior <format=hex, comment="Only used if you have a theme">; //0x5768 -> 0x5777
uint16 Item_Interior <format=hex, comment="Only used if you have a theme">; //0x5768 -> 0x5777
uint16 HHAItem7 <format=hex, comment="Only used if you have a theme">; //0x5768 -> 0x5777
ubyte CurrentHouseTheme <comment=HHAHouseThemeString>; //0x5778 -> 0x5778
ubyte EvaluationStatus <comment=HHAHouseEvaluatedString>; //0x5779 -> 0x5779
ubyte HouseUnk0 <comment="Valid values: 0, 1, 2, 3">; //0x577A -> 0x577A
ubyte HouseUnk1 <comment=" ">; //0x577B -> 0x577B
ubyte HouseUnk2 <comment="Read if HouseUnk0==3">; //0x577C -> 0x577C
ubyte HouseUnk3 <comment=" ">; //0x577D -> 0x577D
ubyte HouseUnk4 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk5 <comment=" ">; //0x577F -> 0x577F
ubyte HouseUnk6 <comment=" ">; //0x5780 -> 0x5780
ubyte HouseUnk7 <comment=" ">; //0x5781 -> 0x5781
ubyte HouseUnk8 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk9 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk10 <comment=" ">; //0x577E -> 0x577E
ubyte HouseExteriorObeyingTheme <comment="Not Verified; 5 is max, 0 = Not obeying(?); higher better(?)">; //0x577E -> 0x577E
ubyte HouseInteriorObeyingTheme <comment="Not Verified; 5 is max, 0 = Not obeying(?); higher better(?)">; //0x577E -> 0x577E
ubyte WhichFloorWasImpressive <comment="Not Verified; 5 is max">; //0x577E -> 0x577E
ubyte HouseUnk14 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk15 <comment=" ">; //0x577E -> 0x577E
ubyte FutureAdvice <comment="Values: 0 - 10">; //0x577E -> 0x577E
ubyte HHAAwardsUnlocked <comment="Not Verified; 8 is max">; //0x577E -> 0x577E
ubyte HHAAwardsRecieved <comment="Not Verified; 8 is max; 0 = None">; //0x577E -> 0x577E
ubyte GoldExteriorsUnlocked <comment="5 is max">; //0x577E -> 0x577E
ubyte GoldExteriorsApplied <comment="Not Verified; 5 is max">; //0x577E -> 0x577E
ubyte HouseUnk21 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk22 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk23 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk24 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk25 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk26 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk27 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk28 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk29 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk30 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk31 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk32 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk33 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk34 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk35 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk36 <comment=" ">; //0x577E -> 0x577E
ubyte HouseUnk37 <comment=" ">; //0x577E -> 0x577E

};

typedef struct ACNL_Pattern
{
wchar_t Title[21];
Expand Down Expand Up @@ -883,8 +980,9 @@ typedef struct ACNL_Player
ubyte DayRegistered; //0x5679
uint16 ZeroPad_5; //0x567A: Zero Padding; Always 0x0000
PlayerBadges Badges; //0x567C -> 0x5753
ubyte Unknown1[76]; //0x5754 -> 0x57BF
//ubyte PlayerFlags[54]; //0x57A0 -> 0x57D5
ubyte Unknown1[16]; //0x5754 -> 0x5763
HHAHouseInfo HHAHouse; //0x5764 -> 0x579F
//ubyte PlayerFlags[54]; //0x57A0 -> 0x57D5
Player_Flags PlayerFlags; //0x57A0 -> 0x57D5
uint16 ZeroPad_10; //0x57D6 -> 0x57D7
ubyte TPCPic[0x1400]; //0x57D8 -> 0x6BD7
Expand Down Expand Up @@ -930,6 +1028,8 @@ typedef struct ACNL_Player
ubyte ZeroPad_12; //0x8A99 -> 0x8A99
uint16 SpotpassDLCRecievedIds[32] <comment= "Not Verified; 0xFFFF is default, then 0xXXXX is ID of DLC recieved">; //0x8A9A -> 0x8AD9
uint16 ZeroPad_13; //0x8ADA -> 0x8ADB

//0x8B63 = READU8(CurrentHouseTheme+1) | 0x80;


//uint32 SantaBagInv[10]; //0x9048 -> 0x906F
Expand Down

0 comments on commit 0acacbf

Please sign in to comment.