Jump to content
  • 0

Question with editing methods? (pixel force 3)


Crystal_Mods100x

Question

Hi guys a friend of mine dumped a lib file for pixel force 3 and i now know how to make lib base scripts but.

i don't know really what to do with the offsets or edit to what number that calls them. it makes the games crash lol

here is a class from the file: 

//[Namespace + reqire component
//RVA:0x2E63D0 Offset: 0x3E63D0   VA: 0x2E63D0
public class Oildrum: MonoBehaviour //TypeDefIndex: 2958
{
private Hitpoints hp; //0x18
  private Death death; //0x20 the oil drum death  means exploding 
  private particleSystem smoke; //0x28
  private bool burning; //0x30
  
  //methods
  //0x2F98E8 same for va and offset
  public void .ctor() {}
  
  //0x2F98F0 same for va and offset
  public void Start() {} 
  
  //0x2F99D0 same for va and offset
  private void onHit(object sender, HitpointsEventArgs e) { }
  
  //[debugger hidden attribute] RVA: 0x2F9AE0 same for its offset and va
  
  //RVA 0x2F9AE0
  private IEnumerator die() {}
}

so how do i use the offsets in a class like this? and those private keywords are giving me concerns about the value not being edited because its private

but if anyone has answers i would like to hear 😄

thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

The two digit offsets are field offsets they can't just be patched like usual, I think the best course of action would be to try and hook it

I think start will only call once so try to hook onHit if you can, I don't know hooking that well though so I can't exactly tell you how to do it

Link to comment
Share on other sites

On 6/21/2021 at 5:16 AM, AKidWithMidgetFriend said:

The two digit offsets are field offsets they can't just be patched like usual, I think the best course of action would be to try and hook it

I think start will only call once so try to hook onHit if you can, I don't know hooking that well though so I can't exactly tell you how to do it

Oh well thanks! ill talk to hollowmods so i can see if onHit( ) can be hooked!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.