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

Commit

Permalink
Update Entity Viewer and Equipment override (#310)
Browse files Browse the repository at this point in the history
* Update some comments in cooking mod

Update comments in cooking mod to correct mistakes.

* Update interface while dead

Update patch and pattern for interface while dead.

* Update color Alt Text

Update pattern and offsets for color alt text

* Update don't close title window

Update pattern for don't close title window mod

* Update Equipment Override and EntityViewer

Update scan for Equipment Override setEquipmentInfo

Update index order of entity viewer's equipment list to reflect the current client's index ordering.

---------

Co-authored-by: cursey <[email protected]>
  • Loading branch information
kohupallintrax and cursey authored Aug 23, 2023
1 parent 86c5122 commit d282a64
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions Kanan/EntityViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,20 +244,20 @@ namespace kanan {

void EntityViewer::displayEquipment(CCharacter::CEquipment* equipment) {
static const map<int, string> equipmentNames{
{ 1, "Torso\\Armor\\Shirt" },
{ 2, "Head\\Helmet\\Hat" },
{ 4, "Hands\\Gauntlets\\Gloves" },
{ 5, "Feet\\Boots\\Shoes" },
{ 7, "Hair" },
{ 8, "Back\\Wings\\Robe" },
{ 10, "Weapon 1" },
{ 11, "Weapon 2" },
{ 12, "Arrow\\Shield 1" },
{ 13, "Arrow\\Shield 2" },
{ 15, "Face Accessory" },
{ 16, "Accessory 1" },
{ 17, "Accessory 2" },
{ 18, "Tail" }
{ 0, "Torso\\Armor\\Shirt" },
{ 1, "Head\\Helmet\\Hat" },
{ 3, "Hands\\Gauntlets\\Gloves" },
{ 4, "Feet\\Boots\\Shoes" },
{ 6, "Hair" },
{ 9, "Weapon 1" },
{ 10, "Weapon 2" },
{ 11, "Arrow\\Shield 1" },
{ 12, "Arrow\\Shield 2" },
{ 13, "Back\\Wings\\Robe" },
{ 14, "Face Accessory"},
{ 15, "Accessory 1" },
{ 16, "Accessory 2" },
{ 17, "Tail" }
};

for (auto [id, name] : equipmentNames) {
Expand Down
2 changes: 1 addition & 1 deletion Kanan/EquipmentOverride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace kanan {
m_equipmentOverrides[17].name = "Accessory 2";
m_equipmentOverrides[18].name = "Tail";

if (auto call_address = scan("client.exe", "E8 ? ? ? ? 90 E9 ? ? ? ? 44 39 B6 A4 1B 00 00")) {
if (auto call_address = scan("client.exe", "E8 ? ? ? ? 90 48 8B ? ? ? 48 85 ? 74 ? E8 ? ? ? ? 4C 89 ? ? ? 41 8D")) {
log("[EquipmentOverride] Found address of call setEquipmentInfo %p", *call_address);

auto set_equip_info = rel_to_abs(*call_address + 1);
Expand Down

0 comments on commit d282a64

Please sign in to comment.