Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Mon May 20, 2013 7:28 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: [Release] D2Extra! Late christmas present
PostPosted: Wed Dec 29, 2010 1:37 pm 
 
BHDev
BHDev
User avatar

Joined: Mon Jul 13, 2009 5:13 pm
Location: Denmark
Happy x-mas!

This is just a quick edit of the project DiaApi found here: viewtopic.php?f=182&t=472500
All credits for figuring this out goes too Murder567 and butcher/polite/therain.

So what is this?
It's a small tool that allows opening multiple Diablo II instances, totally safe.

How does it work?
Diablo checks for other instances upon loading by using FindWindowA. Hacks like d2multi and d2loader patches this check. This program temporarily changes the parent of all the opened Diablo II windows to a selfcreated, hidden gui, opens a new Diablo instance, and sets them back again. So simple!

How to use it?
Edit the .ini to your like. You can add paramaters to the cmdline, like "-w". You can also change the title of the Diablo II window.
It should be used exactly like D2Multi, initially, if you rename this and replace it with d2multi, you can use this instead without problems :)

New in version 1.2:
Passes working directory to diablo
Should parse parameters correctly now.
New in version 1.1:
Some better, failsafe methods for obtaining handles
If renamed to D2Multi.exe, it reads from d2multi.ini instead
Accepts cmdline -title "yourtitle" now (which OOG uses)


Compability
I have only tested this with OOG. It works after some tweaking, but if one instance crashes, OOG immidiatly tries to reopen a new. In this short amount of time, the others windows will be hidden (which isn't a problem for the bot, it works anyway) but OOG believes the others crashed and it can quickly try to open mass amounts of windows.
If OOG didn't use hardcoded delays this could work nicely..

Note that this has no features for cdkeys whatsoever, so you need different Diablo folders if you want to use this on b.net

AutoIt rules the world

D2Extra 1.2 binaries + source

~ Shaggi

_________________
Autumn, Itemdumper & D2ExtraImage


Last edited by Shaggi on Sat Sep 17, 2011 11:58 am, edited 3 times in total.
Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Dec 29, 2010 3:10 pm 
 
User
User

Joined: Fri May 07, 2010 10:54 am
Very nice work :) maybe soon we will see some treads on how to setup D2Extra! instead of a plethora of Sandboxie, which people seem to think is the only sandboxing program O_O

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Dec 29, 2010 6:03 pm 
 
User
User

Joined: Fri Aug 08, 2008 6:00 pm
Shaggi wrote:
AutoIt rules the world

That's all I saw :D

_________________
[img]http://i36.tinypic.com/314taft.gif[/img]

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Dec 29, 2010 9:38 pm 
 
Banned
Banned
User avatar

Joined: Sun Mar 06, 2005 8:52 am
very nice shaggi good work :D

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Dec 29, 2010 10:53 pm 
 
User
User

Joined: Sun Aug 26, 2007 1:19 am
I have to say, I have gotten far with AutoIt when I was still using it, but never really thought anybody would take it this far. Most people capable of doing such things like this and your pseudo-maphack move on to other languages, but you are doing damn good bro.

PS: I like your method used here, think outside the box :)

_________________
Image

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Thu Dec 30, 2010 2:40 am 
 
User
User

Joined: Sat Apr 25, 2009 3:54 pm
TK_Inc0rperate wrote:
Most people capable of doing such things like this and your pseudo-maphack move on to other languages, but you are doing damn good bro.

PS: I like your method used here, think outside the box :)


Another brilliant coder, very nice work shaggi, ;)

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Jan 05, 2011 5:35 pm 
 
User
User
User avatar

Joined: Thu Jun 03, 2004 4:55 am
This is ill...very much appreciated and your mule dumper is sick too!!!

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Thu Jan 06, 2011 4:09 pm 
 
BHDev
BHDev
User avatar

Joined: Mon Jul 13, 2009 5:13 pm
Location: Denmark
Thanks all :)

_________________
Autumn, Itemdumper & D2ExtraImage

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Thu Jan 06, 2011 9:37 pm 
 
User
User
User avatar

Joined: Fri Aug 08, 2008 2:33 pm
Brilliant.

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Mon Jan 10, 2011 8:09 pm 
 
BHDev
BHDev
User avatar

Joined: Mon Jul 13, 2009 5:13 pm
Location: Denmark
Thanks again. As a learning project, i rewrote it to c++ which turned out to be a bitch of an task compared to doing it in Au3. Goes to show i guess...
#include "D2Extra.cpp"
#include "IniReader.cpp"
/*
* Opens a Diablo II window, bypassing the FindWindowA check
* by hiding the current Diablo II windows in a hidden,
* selfcreated window.
* @author Shaggi

* CInireader:
* http://www.codeproject.com/KB/cpp/IniReader.aspx
*/

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
{
    char* path;
    char* parameters;
    char* title;

   //Making a CIniReader instance
    CIniReader ini(".\\D2Extra Settings.ini");

    path = ini.ReadString("CONFIG","D2Folder",false);
    strcat(path,"\\game.exe");
    //checking if path is valid
    if (!FileExists(path))
    {
        error("Please type in an existing path!");
        end(1);
        return false;
    };

    parameters = ini.ReadString("CONFIG","Parameters",false);
    title = ini.ReadString("CONFIG","Title",false);

    //build up diablo list
    D2Extra::WinList();

    //create background window
    hDia = D2Extra::crtWindow(hInstance);
    if(!hDia)
        end(2);

    //hide all windows which match the class
    D2Extra::HideWindows();

    //create another d2 window
    if(!D2Extra::CreateDia(path,parameters,title))
        end(3);

    //Show all windows
    D2Extra::ShowWindows();

    //delete own gui
    if(!D2Extra::delWindow())
        end(7);

    return ERROR_SUCCESS;
};

D2Extra.cpp @ pastebin
It's some of my first c++ so some will probably laugh their ass off, maybe some will learn off it. I did, anyway :P

_________________
Autumn, Itemdumper & D2ExtraImage

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Tue Jan 18, 2011 12:07 pm 
 
User
User
User avatar

Joined: Fri Jan 31, 2003 4:23 pm
Location: Denmark
Fucking geniussauce

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Mar 02, 2011 2:55 pm 
 
User
User

Joined: Sun Dec 12, 2010 3:43 am
Shaggi, this is AWSOME! BEAUTIFUL job man!!!

Multi-users under XP is a REAL pain in the arse, I HATE switching users. VERY simple setup, works like a charm AND leaves us all feeling much safer using it too! *BONUS!*

The only small (NOTE, REAL small) problem I have is the flag "-skiptobnet" doesn't seem to work. I have the flags set to "-w -skiptobnet". I get windowed, but no skip to Bnet. Maybe if I mess with it a bit more... But I can live with that for the immence ease and SPEED this provides switching char's!

I can't WAIT to try out Autumn & Itemdumper! If this is a sample of your ingenuity and smooth coding we are all lucky to have you here!

Thanks Shaggi !!! :D

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Mar 02, 2011 5:02 pm 
 
User
User

Joined: Sat Apr 03, 2010 7:58 pm
One-Eye wrote:
Shaggi, this is AWSOME! BEAUTIFUL job man!!!

Multi-users under XP is a REAL pain in the arse, I HATE switching users. VERY simple setup, works like a charm AND leaves us all feeling much safer using it too! *BONUS!*

The only small (NOTE, REAL small) problem I have is the flag "-skiptobnet" doesn't seem to work. I have the flags set to "-w -skiptobnet". I get windowed, but no skip to Bnet. Maybe if I mess with it a bit more... But I can live with that for the immence ease and SPEED this provides switching char's!

I can't WAIT to try out Autumn & Itemdumper! If this is a sample of your ingenuity and smooth coding we are all lucky to have you here!

Thanks Shaggi !!! :D


You don't have to switch users ever, there is sandboxie/vmware. Which is kind of pointless to make another loader when sandboxie will never be banned for, as said by blizzard themselves.

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Sat Mar 05, 2011 4:24 pm 
 
User
User

Joined: Sun Dec 12, 2010 3:43 am
Ok, well as usual someone has to cut someone/something down to make themselves feel better. :roll: Shaggi took the code someone did (Credits go to the orignal writer of that program), and improved the project. It's a GREAT LITTLE program. No need to install (Maybe I DIDN'T want to install Sandboxie JUST to run multi D2 instances) or go through multiple steps to get it setup and working. Shaggi made it VERY small, VERY simple and safe. It works for what it was intended for.

----------------------------------------

Post subject: [Tutorial] Multiple Diablo II Instances & No-CD

Posted: Mon Mar 23, 2009 8:15 am

Dark_Mage-

NOTE: Technically, some of these break the EULA of the new warning which states "...any program that allows you to run multiple instances of the game at the same time..." USE EVERYTHING AT YOUR OWN RISK!

*UPDATE* I was talking with a Technical Support guy about some things earlier and decided to ask him about VMWare, Sandboxie, and Multiple Users while the conversation was sliding in that direction. He said that all three were fine as long as you have separate CD-Keys (lol). Just an FYI.

----------------------------------------

If you READ what was said by Dark_Mage-... It wasn't BLIZZARD that said "sandboxie will never be banned for" as you put it, it was a TECH SUPPORT person... Hmmmmm... Do they have the last say on what buzzard will do? Hell, they don't have any say. They just tech support buzzards software. No more, no less. Dark_Mage- was simply passing on what tech support said to him. As Shaggi's little program requires separate folders & CD-Keys, it does the same thing just a much smaller and simpler way to do it.

Ok, I'm done ranting. No offence sskush1, but I still love what Shaggi coded. I prefer it to Sandboxie for my use, as you prefer Sandboxie for you own use.

Thank You, and Goodnight! :D

Top
 Profile  
 Post subject: Re: [Release] D2Extra! Late christmas present
PostPosted: Wed Mar 30, 2011 10:47 pm 
 
User
User

Joined: Tue Mar 01, 2005 2:46 am
I got problem with Params. No matter what i put in .ini file... It always runs in a window. When i put "-skiptobnet" it doesnt work. I run on WinXP.

Plz help to make it run in full screen and with -skiptobnet.

/e: nvm i just edited source and changed -w to -skiptobnet. Dont know why but he did not read paramas from ini.

/e2: Should i use D2Extra_Obfuscated.au3 or D2Extra.au3? Is there any difference? Plz let me know. Thanks


Last edited by Locaj on Wed Mar 30, 2011 11:10 pm, edited 2 times in total.
Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 44 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron