Kxnrl / GenshinDiscordRpc

Enables Discord Rpc for Genshin Impact. 在Disocrd上显示原神
MIT License
34 stars 6 forks source link

[Feature request] Add Player Level and Player Character #3

Open ScarVite opened 4 years ago

ScarVite commented 4 years ago

You could implement this using the small image and for hover text the level Every Char could have a Different Image, which represents the character, just as FF XIV is doing it

Kxnrl commented 4 years ago

No, we can not access game process memory. This is an external tool.

ScarVite commented 4 years ago

Is there no way to access the player data? where are you getting the world infos from then?

ThePotato97 commented 4 years ago

Is there no way to access the player data? where are you getting the world infos from then?

It's static

howyay commented 4 years ago

This is definitely achievable by reading memory (if the developers are willing to, of course), The thing I'm more interested in is that will reading memory alone trigger the game's anti cheat? Heard this game's got a pretty good anti-cheat but I'm not sure how strict its behaviours are

Kxnrl commented 4 years ago

This is definitely achievable by reading memory (if the developers are willing to, of course), The thing I'm more interested in is that will reading memory alone trigger the game's anti cheat? Heard this game's got a pretty good anti-cheat but I'm not sure how strict its behaviours are

ofc, I am sure it will trigger ban by anti-cheat, the mihoyo anticheat from tencent protect.

howyay commented 4 years ago

Well that's harsh, I wasn't very familiar with their anti-chat, but I also just looked up some reverse and cheating discussion, apparently this whole thing is harder than I imagined.

Perhaps this isn't that doable after all. Hope someday someone could share their ideas on reversing or bypass so it can help us all. We await a saviour.

Kxnrl commented 4 years ago

I can bypass that. but I can not promise never get ban.

howyay commented 4 years ago

u r the saviour

maufirf commented 4 years ago

Hello, so around one or two weeks ago I have been using this project and I really loved It. I also got my time to read through this issue before, and it's just today for me to be able to probably contribute something to help to solve this problem because I had to grind until AR 40.

I have an idea to scrape informations that is visible on the HUD, therefore I'm using OpenCV, Tesseract, and pywin32 to capture and process the screen information, and currently I'm using python because I'm familiar to it. The python back end should be able to be replaced with C#, because C# is the closest you can get to the Windows API to manipulate windows, and Tesseract is basically a Windows binary which is universally callable through command prompt.

I have uploaded the project, at least on the state of proof of concept in the genshingrab repository. The code is still messy and not optimized, but It works without too much problem in my machine. I hope this helps the development of this project!

Edit: My code probably still able to get player level without guessing only by cropping to the part where the screen shows the level player.

saieeshb commented 3 years ago

Looking forward to see if this gets implemented in the next version!