
void wrote:i dont understand how you made it so the program can read and output the ilvl of the item under the cursor. mind to explain a bit how the program knows where the cursor is and what item its pointing at, as well as how it gets the ilvl of an item?
Quirinus wrote:Hey, do you use Git?
Kyromyr wrote:void wrote:i dont understand how you made it so the program can read and output the ilvl of the item under the cursor. mind to explain a bit how the program knows where the cursor is and what item its pointing at, as well as how it gets the ilvl of an item?
Well, it's a bit complicated, but basically: the game stores a pointer to the item which is on the cursor at a certain place in memory. We can use that to get the item data, including ilvl. To display it on screen, I use code injection - the same thing Plugy uses to add all those nifty features in single-player.
Kyromyr wrote:Quirinus wrote:Hey, do you use Git?
I have it set up and everything, but don't it use much. I really should though.
void wrote:Kyromyr wrote:void wrote:i dont understand how you made it so the program can read and output the ilvl of the item under the cursor. mind to explain a bit how the program knows where the cursor is and what item its pointing at, as well as how it gets the ilvl of an item?
Well, it's a bit complicated, but basically: the game stores a pointer to the item which is on the cursor at a certain place in memory. We can use that to get the item data, including ilvl. To display it on screen, I use code injection - the same thing Plugy uses to add all those nifty features in single-player.
mmm and how did you know about the pointer and how did you know how to access it?
Quirinus wrote:Kyromyr wrote:Quirinus wrote:Hey, do you use Git?
I have it set up and everything, but don't it use much. I really should though.
Want to start a repo? Or we could use the one I created:
https://gitlab.com/Quirinus/D2Stats
I added an icon and your name to the about section. Didn't add the newest changes yet, though.