[C#] Enigma.D3 menu

User Tag List

Page 13 of 63 FirstFirst ... 91011121314151617 ... LastLast
Results 181 to 195 of 940
  1. #181
    ileandros's Avatar Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tgo View Post
    There are some very interesting projects from enigmas framework, many fun ideas.

    Bitterbee I have done something similar to your project and have my web interface that shows a minimap and all character stats, if anyone is interested or has questions I can post samples of the code. My suggestion is to use Asp.Net Mvc5 great web framework to add a web layer to their project.

    I wish to thank everyone for their contributions and discoveries, special thanks to enigma!
    Well post them... It is good for everyone to see what this framework is capable of.

    [C#] Enigma.D3
  2. #182
    ileandros's Avatar Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    60
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So far i managed turning coords from d3 world to screen coords and managed to create MoveToPosition(double _x,double _y,double _z) function to performe click on diablo 3 world.
    And it works on every screen resolution

    I am starting to like this framework.

  3. #183
    Ferroks's Avatar Member
    Reputation
    8
    Join Date
    Dec 2012
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ileandroscan you share function MoveToPosition?

  4. #184
    bitterbee's Avatar Member
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public static Point FromD3toScreenCoords(Vector3 objectGameLocation)
            {
                Vector3 currentCharGameLoc = Game.Me.Location;
    
                double xd = objectGameLocation.X - currentCharGameLoc.X;
                double yd = objectGameLocation.Y - currentCharGameLoc.Y;
                double zd = objectGameLocation.Z - currentCharGameLoc.Z;
    
                double w = -0.515 * xd + -0.514 * yd + -0.686 * zd + 97.985;
                double X = (-1.682 * xd + 1.683 * yd + 0 * zd + 7.045e-3) / w;
                double Y = (-1.54 * xd + -1.539 * yd + 2.307 * zd + 6.161) / w;
    
                double width = Engine.Current.VideoPreferences.x0C_DisplayMode.x20_Width;
                double height = Engine.Current.VideoPreferences.x0C_DisplayMode.x24_Height;
    
                double aspectChange = (double)((double)width / (double)height) / (double)(4.0f / 3.0f); // 4:3 = default aspect ratio
    
                X /= aspectChange;
    
                float rX = (float)((X + 1) / 2 * width);
                float rY = (float)((1 - Y) / 2 * height);
    
                return new Point((int)rX, (int)rY);
            }
    Credit goes to raler for posting this a month ago in this thread. Obviously you need to add the click functionality, but this converts a 3D vector containing in-game coords to a point on the screen.

    -B
    Last edited by bitterbee; 06-13-2014 at 01:32 AM.

  5. #185
    bitterbee's Avatar Member
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tgo View Post
    There are some very interesting projects from enigmas framework, many fun ideas.

    Bitterbee I have done something similar to your project and have my web interface that shows a minimap and all character stats, if anyone is interested or has questions I can post samples of the code. My suggestion is to use Asp.Net Mvc5 great web framework to add a web layer to their project.

    I wish to thank everyone for their contributions and discoveries, special thanks to enigma!
    Yeah my biggest concern is to how to present the minimap. Currently it is outputting an image file every second of the minimap. The idea is to retrieve it using AJAX to provide a near real-time minimap overview of where the bot is. I hope to spend some of the weekend working on this project, and hopefully get to the point where I can interact with the bot using a web page

    -B
    Last edited by bitterbee; 06-13-2014 at 01:48 AM.

  6. #186
    Thacai's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bitterbee View Post
    Code:
    public static Point FromD3toScreenCoords(Vector3 objectGameLocation)
            {
                Vector3 currentCharGameLoc = Game.Me.Location;
    
                double xd = objectGameLocation.X - currentCharGameLoc.X;
                double yd = objectGameLocation.Y - currentCharGameLoc.Y;
                double zd = objectGameLocation.Z - currentCharGameLoc.Z;
    
                double w = -0.515 * xd + -0.514 * yd + -0.686 * zd + 97.985;
                double X = (-1.682 * xd + 1.683 * yd + 0 * zd + 7.045e-3) / w;
                double Y = (-1.54 * xd + -1.539 * yd + 2.307 * zd + 6.161) / w;
    
                double width = Engine.Current.VideoPreferences.x0C_DisplayMode.x20_Width;
                double height = Engine.Current.VideoPreferences.x0C_DisplayMode.x24_Height;
    
                double aspectChange = (double)((double)width / (double)height) / (double)(4.0f / 3.0f); // 4:3 = default aspect ratio
    
                X /= aspectChange;
    
                float rX = (float)((X + 1) / 2 * width);
                float rY = (float)((1 - Y) / 2 * height);
    
                return new Point((int)rX, (int)rY);
            }
    Credit goes to raler for posting this a month ago in this thread. Obviously you need to add the click functionality, but this converts a 3D vector containing in-game coords to a point on the screen.

    -B
    Hey i've also been working on this, but seems i'm missing the 45 degree angle when using it for minimap, i'm no expect in 3D vectors so how would you go about that ?

  7. #187
    NoCopyPaste's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi axlrose,
    I tried everything as you said, but I fell really dumb right now, maybe you can find my mistake, this is how I tried to get the scenes step by step:
    Code:
     public ObjectManager ObjectManager { get { return Dereference<ObjectManager>(0x01CE3814); } }
    public Storage x798_Storage { get { return Field<Storage>(0x798 ); } }
    public Container<SceneRaw> x1BC_Scenes { get { return Dereference<Container<SceneRaw>>(0x1BC); } }
    public T[] x11C_Items { get { return Dereference<T>(0x11C, x100_Capacity); } }
    then I do
    Code:
    foreach (SceneRaw scr in (Engine.Current.ObjectManager.x798_Storage.x1BC_Scenes.x11C_Items)) {
                    Console.WriteLine(scr.x0FC_MeshMinX);
                    Console.WriteLine("ID: " + scr.x0E8_SceneSnoId);
                    Console.WriteLine(scr.x100_MeshMinY);
                }
    while SceneRaw is a class I wrote inspired by Darthtons Code:
    Code:
     public class SceneRaw : MemoryObject
        {
            public const int SizeOf = 0x2A8;
    
            public SceneRaw(ProcessMemory memory, int address)
                : base(memory, address) { }
    
            public int x000_id_scene { get { return Field<int>(0x000); } }          // 0x000
            public NavMeshRaw x004_Navmesh { get { return Field<NavMeshRaw>(0x004); } }     // 0x004
            public float x0FC_MeshMinX { get { return Field<float>(0x0FC); } }
            public float x100_MeshMinY { get { return Field<float>(0x100); } }
            public int x0E8_SceneSnoId { get { return Field<int>(0x0E8); } }   
        }
    I tried getting a dump of the legacy scenes in the struct by changing the Containers generic type to Legacy.Scene and
    Code:
    Enigma.D3.Helpers.CodeGeneratorHelper.GetDump<Enigma.D3.Legacy.Scene>(Engine.Current.ObjectManager.x798_Storage.x1BC_Scenes.x11C_Items)
    but it throws ArgumentOutOfRangeException for the address, every time I use it

    NoCopyPaste
    Last edited by NoCopyPaste; 06-13-2014 at 03:45 AM.

  8. #188
    bitterbee's Avatar Member
    Reputation
    1
    Join Date
    Feb 2013
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Thacai View Post
    Hey i've also been working on this, but seems i'm missing the 45 degree angle when using it for minimap, i'm no expect in 3D vectors so how would you go about that ?
    I solved this in an ugly, ugly way. Basically I measured the size of the minimap, and then simply remapping the X,Y screen coord to the minimap coord based on my own resolution. It worked for me so I didnt put a lot of effort in getting a generic solution that would work for all resolutions. Some time ago, some people were toying around with it in this thread but I don't know if they have working source code available or hints that could help you out in that manner.

    Edit: I guess I should invest some time in learning how UI elements work since it would help me tremendiously.
    Last edited by bitterbee; 06-13-2014 at 04:02 AM.

  9. #189
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NoCopyPaste View Post
    I tried getting a dump of the legacy scenes in the struct by changing the Containers generic type to Legacy.Scene and
    Code:
    Enigma.D3.Helpers.CodeGeneratorHelper.GetDump<Enigma.D3.Legacy.Scene>(Engine.Current.ObjectManager.x798_Storage.x1BC_Scenes.x11C_Items)
    but it throws ArgumentOutOfRangeException for the address, every time I use it

    NoCopyPaste
    Would need more specific info on where the exception is thrown. Check the callstack when exception occurs to figure out how far it got. If it's throwing it for address then somewhere it was trying to read something as a pointer which wasn't really a valid pointer.

  10. #190
    NoCopyPaste's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep, you're right, the exception occurs while dereferring a Linked List from Legacy.Scene.
    how would you recommend to use the dump on outdated structs like these? should I just print the pointer instead of trying to derefer it?

  11. #191
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NoCopyPaste View Post
    yep, you're right, the exception occurs while dereferring a Linked List from Legacy.Scene.
    how would you recommend to use the dump on outdated structs like these? should I just print the pointer instead of trying to derefer it?
    Yea, I would change it to Field<int> instead.

  12. #192
    NoCopyPaste's Avatar Member
    Reputation
    1
    Join Date
    Apr 2014
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, thanks
    then this is my dump:
    I couldn't manage to upload the whole dump, because the upload manager didn't let me do so (not even zipped :/)
    so it's only from the first 3 Scene Objects, does this help?
    How do you view these dumps? is there a way to fit them into an excel-table or something? because right now it's pretty confusing^^
    Attached Files Attached Files

  13. #193
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NoCopyPaste View Post
    ok, thanks
    then this is my dump:
    I couldn't manage to upload the whole dump, because the upload manager didn't let me do so (not even zipped :/)
    so it's only from the first 3 Scene Objects, does this help?
    How do you view these dumps? is there a way to fit them into an excel-table or something? because right now it's pretty confusing^^
    Tried just pasting it into Excel? That's what I do You might have to help Excel if it can't figure out to layout the data Split names by using the Convert Text to Columns Wizard - Excel

    If it helps you then it helps ^^

  14. #194
    Thacai's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bitterbee View Post
    I solved this in an ugly, ugly way. Basically I measured the size of the minimap, and then simply remapping the X,Y screen coord to the minimap coord based on my own resolution. It worked for me so I didnt put a lot of effort in getting a generic solution that would work for all resolutions. Some time ago, some people were toying around with it in this thread but I don't know if they have working source code available or hints that could help you out in that manner.

    Edit: I guess I should invest some time in learning how UI elements work since it would help me tremendiously.
    i seem to get the scaling somewhat right, and remapped as you can see below, but it seems the angle is off, if i tilted the coordinate system by ~45 degrees left it would look correctly compared to the direction of my character, and now that i'm typing this it actually looks like i need to account for the direction of my character instead, back to the drawing board
    [C#] Enigma.D3-tsqibwr-jpg
    Last edited by Thacai; 06-13-2014 at 10:30 AM. Reason: i need to be more humble...

  15. #195
    enigma32's Avatar Legendary
    Reputation
    912
    Join Date
    Jan 2013
    Posts
    551
    Thanks G/R
    4/738
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by enigma32 View Post
    Just a sneak peak, not having time to finish it before the weekend at least. Don't like the performance I'm getting (mainly due to WPF) and there is a bit of re-factoring to do as well. But it works nonetheless
    Attachment 17806
    Originally Posted by mrnoodle View Post
    Engima did you ever go any farther with this project?
    Originally Posted by enigma32 View Post
    I didn't like the structure of what I came up with, so it's dead for now. Going to need an event based ACD tracker before I continue with it.
    Since you people seem really interested in a map hack I'll post/commit this later today or tomorrow. Have to finish some other stuff before I have time to deal with it. If anyone wanna be prepared, go learn WPF

Page 13 of 63 FirstFirst ... 91011121314151617 ... LastLast

Similar Threads

  1. [Hack] Enigma TriggerBot - AutoIT
    By Zolyrica in forum Overwatch Exploits|Hacks
    Replies: 9
    Last Post: 09-12-2016, 02:37 PM
  2. [Release] [C#] 1.0.8.16603 Enigma.D3
    By enigma32 in forum Diablo 3 Memory Editing
    Replies: 33
    Last Post: 05-16-2015, 01:40 PM
  3. Enigma's Smartcast Manager
    By da_bizkit in forum League of Legends
    Replies: 3
    Last Post: 10-22-2012, 02:11 PM
  4. request Blue suede boots -> enigma boots
    By Geico in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 12-27-2007, 05:40 AM
All times are GMT -5. The time now is 04:43 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search