Skip to content

Commit

Permalink
fix for game version 3.9, and itembox offset fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fexty12573 committed Feb 24, 2022
1 parent f3b0ccf commit 26a4ae6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion RisePCItemEditor/Data.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ enum Offsets : uintptr_t {
// Equipment
EquipmentBox = 0x80,

EquipmentList = 0x20,
EquipmentList = 0x28,
EquipmentItems = 0x10,
EquipmentSize = 0x18,

EquipmentListStart = 0x20,

// Currency
HandMoney = 0x58,
Zenny = 0x18,
Expand Down
8 changes: 4 additions & 4 deletions RisePCItemEditor/RisePCItemEditor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CLRSupport>true</CLRSupport>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions RisePCItemEditor/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ System::Void RisePCItemEditor::Window::CollectItems()
{
UInt32 id, count;

RPM(itemData + Offsets::ItemInfo, &id, sizeof(id));
RPM(itemData + Offsets::ItemID, &id, sizeof(id));
RPM(itemData + Offsets::ItemCount, &count, sizeof(count));

Itembox->Add(gcnew ItemData(id, count));
Expand Down Expand Up @@ -986,7 +986,7 @@ System::Void RisePCItemEditor::Window::ReadEquipmentBox_Click(System::Object^ se
ReadProcessMemory(ProcessHandle, LPVOID(eqList + Offsets::EquipmentSize), &size, sizeof(size), NULL); // mSize
ReadProcessMemory(ProcessHandle, LPVOID(eqList + Offsets::EquipmentItems), &eqList, sizeof(eqList), NULL); // mItems

eqList += Offsets::EquipmentList;
eqList += Offsets::EquipmentListStart;
for (UInt32 i = 0; i < size; ++i, eqList += 0x8)
{
uintptr_t item = NULL;
Expand Down

0 comments on commit 26a4ae6

Please sign in to comment.