Git Product home page Git Product logo

Comments (3)

KN4CK3R avatar KN4CK3R commented on May 20, 2024 2

Mein Fehler. Der IntPtr, der ReadNodeInfo übergeben wird, ist nicht die Adresse, sondern der Wert des Knotens an dieser Adresse. Ich habe jetzt noch einen neuen Parameter für die Knoten-Adresse hinzugefügt.

from reclass.net.

KN4CK3R avatar KN4CK3R commented on May 20, 2024 1

A node doesn't know its address only the offset to the parent class. The real address is only important while rendering the node and then there is a related view object which knows the address.
To get the address of the parent of the current node you can calculate it from the information you have.

string ReadNodeInfo(BaseNode node, IntPtr value, MemoryBuffer memory)
{
	var parentAddress = value - node.Offset;
	
	...
}

I hope this helps. Should the ReadNodeInfo contain more informations?

(Du kannst auch auf deutsch schreiben, wenns dann klarer wird.)

from reclass.net.

Mik4sa avatar Mik4sa commented on May 20, 2024

Well ok, I'm trying it in german, sry to the non-german people :'(

Also ich brauch wohl von der View die Adresse (oder einfach die ganze View, das "Wie" ist dabei dir überlassen :) ).

Ich versuche es nochmal an einem Beispiel zu erklären.

Im nachfolgenden Screenshot befinde ich mich in der VeniceSoldierCustomizationAsset Klasse, die sieht wie folgt aus:
image

und in ReClass in etwa so:
image

So, und damit ich jetzt für den Offset 0x50 den Namen bspw. auslesen kann (also m_ClassSpecializationTable), muss ich wissen, in welcher TypeInfo-Klasse ich mich befinde (also VeniceSoldierCustomizationAsset). Damit ich das kann muss ich aber den Pointer 0x141C44180 lesen.
Diesen wiederrum kann ich nicht alleine aus den übergebenen Argumenten (eine BaseNode mit dem Offset 0x50 und ein IntPtr mit dem Wert 0xD3A9E0A0) ermitteln, aber aus 0xD3A9DDD0 (also der View-Adresse) und dem Offset.

Wenn du also zusätzlich die View-Adresse an die Methode mit übergeben könntest, wäre ich dir sehr verbunden :)

from reclass.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.