Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 13:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Dekaron-Server launcher for Win7 / Win2k8R2

Discussion on [RELEASE] Dekaron-Server launcher for Win7 / Win2k8R2 within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
T04STY's Avatar
 
elite*gold: 380
Join Date: Mar 2008
Posts: 374
Received Thanks: 136
[RELEASE] Dekaron-Server launcher for Win7 / Win2k8R2

Hi,
I made a program that starts the DekaronServer.exe under Windows 7 without crashing.
Just put the Win7_DKLauncher.exe in the same Folder as DekaronServer.exe and open Win7_DKLauncher.exe instead of DekaronServer.exe.
You have to run the program as administrator.

I tested the program under Windows 7 (32bit and 64bit) and Windows Server 2008 R2 (64bit).

Virustotal:

Because some people asked, here is the Sourcecode:
Code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>
#include <io.h>


int _tmain(int argc, _TCHAR* argv[])
{
	printf("Dekaron-Server Launcher by Toasty\n");

	//Look if file "DekaronServer.exe" exists
	if(_access("DekaronServer.exe", 0) == -1)
	{
		printf("DekaronServer.exe not found!\n");
		printf("Program will close in 5seconds\n");
		Sleep(5000);
	}
	else
	{
		
		//Only needed for the CreateProcess function below, no more use in this programm. More info at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx
		STARTUPINFO si;

		//Structure where the CreateProcess function will write the ProcessID and ThreadID of the created Process. More info at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms684873(v=vs.85).aspx
		PROCESS_INFORMATION pi;

		//Debug event structure, needed for WaitForDebugEvent and ContinueDebugEvent. More info at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms679308(v=vs.85).aspx
		DEBUG_EVENT dbge;

		//Commandline that will used at CreateProcess
		LPTSTR szCmdline = _tcsdup(TEXT("DekaronServer.exe"));

		ZeroMemory( &si, sizeof(si) ); //Set memory of the startupinfo structure to Zero (because no initialization was made)
		si.cb = sizeof(si); //Size of the Structure (see msdn)
		ZeroMemory( &pi, sizeof(pi) ); //Set memory of the process_information structure to Zero (because no initialization was made)



		//Start DekaronServer.exe 
		//More info fore CreateProcess function at: http://msdn.microsoft.com/en-us/library/windows/desktop/ms682425(v=vs.85).aspx
		if( !CreateProcess( NULL,   // No module name (use command line)
			szCmdline,        // Command line
			NULL,           // Process handle not inheritable
			NULL,           // Thread handle not inheritable
			FALSE,          // Set handle inheritance to FALSE
			DEBUG_PROCESS,  // Enables Debugging for the started Process http://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx
			NULL,           // Use parent's environment block
			NULL,           // Use parent's starting directory 
			&si,            // Pointer to STARTUPINFO structure
			&pi )           // Pointer to PROCESS_INFORMATION structure
		) 
		{
			printf( "CreateProcess failed (%d).\n", GetLastError() );
			return 0;
		}
		//Creating Process was sucessful
		else
		{
			printf("Sucessfully launched DekaronServer.exe\n");

			//Write ProcessId and ThreadId to the DEBUG_EVENT structure
			dbge.dwProcessId = pi.dwProcessId;
			dbge.dwProcessId = pi.dwThreadId;

			while(true) //infinite loop ("Debugger")
			{
				WaitForDebugEvent(&dbge, INFINITE); //Wait for an debugevent to occur http://msdn.microsoft.com/en-us/library/windows/desktop/ms681423(v=vs.85).aspx

				/*
				Normally you have to handle the different Debug Events (which get written to dbge.dwDebugEventCode) here,
				this is actually not needed because the DekaronServer handles the exeptions that causes the DekaronServer to crash at Windows 7
				itself, the problem is that the Exeption doesnt get handled the way Windows 7 likes it and terminates the Process therefore.
				*/

				//Continue the Programm and tell him that the exeption wasnt handelt (to let him handle the exeption)
				ContinueDebugEvent(dbge.dwProcessId, dbge.dwThreadId, DBG_EXCEPTION_NOT_HANDLED); //http://msdn.microsoft.com/en-us/library/windows/desktop/ms679285(v=vs.85).aspx
			}
		}


		//Due to the infinite Loop Programm normally never should reach this part ;)

		//Wait until child process exits.
		WaitForSingleObject( pi.hProcess, INFINITE );

		//Close process and thread handles. 
		CloseHandle( pi.hProcess );
		CloseHandle( pi.hThread );
	}
	return 0;
}
I added many comments and links to the msdn to make the code easy to understand
Feel free to modify/do whatever you want with the code
Attached Files
File Type: rar Win7_DKLauncher.rar (21.0 KB, 4684 views)
File Type: txt SourceCode_Win7DKLauncher.txt (3.8 KB, 1079 views)
T04STY is offline  
Thanks
42 Users
Old 01/31/2012, 23:42   #2
 
elite*gold: 0
Join Date: Nov 2011
Posts: 44
Received Thanks: 42
Very cool release. What did you do to make it work?
Ike™ is offline  
Old 01/31/2012, 23:49   #3
 
T04STY's Avatar
 
elite*gold: 380
Join Date: Mar 2008
Posts: 374
Received Thanks: 136
the program launches the dekaronserver.exe in debug mode and passes all unhandled exeptions that caused the dekaron server to crash.
im not at my pc atm, if you want i can send you the source code tomorow.
T04STY is offline  
Old 01/31/2012, 23:53   #4
 
elite*gold: 0
Join Date: Nov 2011
Posts: 44
Received Thanks: 42
Quote:
Originally Posted by T04STY View Post
the program launches the dekaronserver.exe in debug mode and passes all unhandled exeptions that caused the dekaron server to crash.
im not on my pc atm, if you want i can send you the source code tomorow.
That'd be cool to look at. It would be good to test it to make sure that it didn't break anything as well.

PS: check your PMs .
Ike™ is offline  
Old 02/01/2012, 02:07   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 285
Received Thanks: 41
good release then we can set a local server in win7 32 or 64 bit os right ?
elitepvpersfans is offline  
Old 02/01/2012, 06:14   #6
 
T04STY's Avatar
 
elite*gold: 380
Join Date: Mar 2008
Posts: 374
Received Thanks: 136
yes, then u can make a server on windows 7 without vmware
T04STY is offline  
Old 02/01/2012, 08:26   #7
 
elite*gold: 0
Join Date: Jan 2012
Posts: 285
Received Thanks: 41
win7 64bit could not run dekaronserver.exe .
elitepvpersfans is offline  
Old 02/01/2012, 09:07   #8
 
T04STY's Avatar
 
elite*gold: 380
Join Date: Mar 2008
Posts: 374
Received Thanks: 136
as i said, i only tested it with win7 32bit and win2k8 64bit, but because it worked on win2k8 64bit, im quite sure that it will work on win7 64bit too.
T04STY is offline  
Old 02/01/2012, 09:39   #9
 
elite*gold: 0
Join Date: Jan 2012
Posts: 285
Received Thanks: 41
i try run dekaronserver.exe in win7 64 bit failed , so i think maybe you will test it in win7 64bit later ?
elitepvpersfans is offline  
Old 02/01/2012, 15:01   #10
 
elite*gold: 0
Join Date: Jan 2012
Posts: 285
Received Thanks: 41



see it and now the program stoppting working .
elitepvpersfans is offline  
Old 02/01/2012, 15:21   #11
 
T04STY's Avatar
 
elite*gold: 380
Join Date: Mar 2008
Posts: 374
Received Thanks: 136
I just tried it with Windows 7 64bit and it worked at me.

What process reported the last error (RtlWerpReportExeption (PID: 5128))?
Is it possible that u disabled Windows Error Reporting?

You should set preferences at DekaronServer.exe and Win7_DKLauncher.exe to start normally (without any compatibility mode).
T04STY is offline  
Old 02/03/2012, 15:38   #12
 
ronaldfa's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 305
Received Thanks: 45
Fuuuuuuuuulll Working Thx.
ronaldfa is offline  
Old 02/03/2012, 19:00   #13
 
Element~'s Avatar
 
elite*gold: 0
Join Date: Jan 2012
Posts: 39
Received Thanks: 16
Its working 100%

here SS

Element~ is offline  
Old 02/03/2012, 19:09   #14
 
[DEV]Harmony's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 815
Received Thanks: 431
Sticky this already, I wonder if the mods (Mod) are even reading the **** section.
[DEV]Harmony is offline  
Thanks
3 Users
Old 02/03/2012, 20:02   #15
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
I can confirm that it works on W7 64bit too, great job. many thanks T04STY

Quote:
Originally Posted by ronaldfa View Post
make for Cast Server <-- Login Server <-- Messenger <---- Session Server . Plz
What for? you can start these servises without any errors.
gedimazs is offline  
Reply


Similar Threads Similar Threads
[Release] Universal Launcher for Dekaron
02/16/2010 - Dekaron Private Server - 29 Replies
UPDATED: Update and Setup Engine working with "7z" Engine. Fast, 0 Errors , High Compression Updated: New Layout. ( 01.12.2009 ,21:51 GMT+1) Update Function was tested
[Release] Dekaron Non-update launcher
07/05/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 24 Replies
Hi. I wrote a small application with Microsoft Visual C++ to launch Dekaron without updating the client. This is good for people who don't want to: 1) Update their client 2) Use any command-line arguments to launch dekaron.exe 3) Modify the dekaron.exe binary to run it without a launcher. If this doesn't work on some Dekaron please send me the launcher.exe and dekaron.exe and I'll update this.



All times are GMT +2. The time now is 13:17.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.