Solved Modding without Patching

Status
Not open for further replies.

athenegg

Platinian
Original poster
Dec 20, 2023
18
3
3
33
public class ItemGeneratorEnemy : RGCharacterComponent
{
// Fields
public Int32 item_value; // 0x28
public Int32 drop_item_level; // 0x2c
public Int32 drop_gold_level; // 0x30
protected List`1 unit_list; // 0x38
public Boolean disable_drop; // 0x40
public Boolean calculate_drop_value; // 0x41
private Single d_value; // 0x44

// Properties

// Methods
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
public override Void InitComponent() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
private Void OpenChest() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
protected virtual Void SetUpDropValue() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
private Void OnOverDead() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
protected Void StartDropItem() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
protected Void StartDropExtra() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
protected Void StartDropGold() { }
// RVA: 0xd2a174 VA: 0x7fff3cb2a174
private Void AddItemToList(Int32 f_count) { }
// RVA: 0xd2a174 VA: 0x7fff3cb2a174
private Void AddGoldToList(Int32 f_count) { }
// RVA: 0xd224dc VA: 0x7fff3cb224dc
private static Int32 GetGoldValue() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
private Void DropFeather() { }
// RVA: 0xd29e88 VA: 0x7fff3cb29e88
public Void .ctor() { }
Let's say I want to monitor the value of public Int32 drop_item_level; // 0x2c.
And somehow change that value in the future, how would I go about it?

I'm leaning more on Frida, but my "public class ItemGeneratorEnemy : RGCharacterComponent" does not have an offset to it.
Do I just use Frida to point to my libil2cpp.so and point it to "ItemGeneratorEnemy" and use the 0x2c offset to monitor drop_item_level?
And if so, do I need to include RGCharacterComponent?
I've tried using gameguardian to monitor the value of drop_item_level, but I have no idea how to point it to that as my dump.cs has no offset to the classes.

And let's say I want to hook and call "protected Void StartDropItem()",
It has duplicate offsets, RVA: 0xd29e88 VA: 0x7fff3cb29e88.
How would I specifically call only Void StartDropItem()?
 
Status
Not open for further replies.