D2Stats 3.11.1

Discuss Median XL!
Kyromyr
Cog
207 | 115
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Contribution Badge
Has collaborated to our forums, realms or mod
Minor update. Changelog in OP. :)
User avatar
void
Shadowgate Totem
1771 | 97
Common Posting Badge
Posted over 1.000 messages
Great Popularity Badge
Has a thread with over 50.000 views
Common Love Badge
Earned over 20 cookies
Common Guide Badge
Created a complete character guide
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?
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
Hey, do you use Git?
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
Kyromyr
Cog
207 | 115
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Contribution Badge
Has collaborated to our forums, realms or mod
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.

Quirinus wrote:Hey, do you use Git?

I have it set up and everything, but don't it use much. I really should though.
User avatar
void
Shadowgate Totem
1771 | 97
Common Posting Badge
Posted over 1.000 messages
Great Popularity Badge
Has a thread with over 50.000 views
Common Love Badge
Earned over 20 cookies
Common Guide Badge
Created a complete character guide
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?
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
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.
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
Kyromyr
Cog
207 | 115
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Contribution Badge
Has collaborated to our forums, realms or mod
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?

In this case, the item_getilvl function was already there in the original script, so I lucked out on that part. Otherwise Blizzhackers have some good resources on diablo 2 modding/hacking in general, including lists of function/variable pointers and structs for various game versions.

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.

I was going to, but if you already have it set up we can use that. Havn't used gitlab though, so will have to create an account and stuff.
User avatar
Quirinus
Team Member
1510 | 184
Common Posting Badge
Posted over 1.000 messages
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Supporter Badge
Donated 1 time
Legendary Contribution Badge
Median XL Team Member
Doesn't matter, you can create one, no problem. :)
You use GitHub?
"but if it's simple it's not that hard" - Quirinus 2017
"small things like this are not a big deal" - Quirinus 2017
User avatar
void
Shadowgate Totem
1771 | 97
Common Posting Badge
Posted over 1.000 messages
Great Popularity Badge
Has a thread with over 50.000 views
Common Love Badge
Earned over 20 cookies
Common Guide Badge
Created a complete character guide
ok ty :)
Kyromyr
Cog
207 | 115
Legendary Popularity Badge
Has a thread with over 250.000 views
Great Love Badge
Earned over 100 cookies
Common Contribution Badge
Has collaborated to our forums, realms or mod
There, took a while but github is now available. :P https://github.com/Kyromyr/D2Stats