Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Multi Client (Duplicate Process)

I'm retired, I'm already
Banned
Joined
Oct 3, 2011
Messages
832
Reaction score
155
This is very useful to carry out tests while you are working on the code and in general it has helped me a lot for the tests, with that you will not need the support of another person or a server to carry out your tests because with this you can open 2 windows of the play at the same time.

Note: I recommend that you open it in 800x600 resolution window mode, do not use full screen because you will not be able to see both windows at the same time.

Open your stdafx.h add these


Code:
//#define _MULTICLIENT 1

open your main.cpp search these line int PASCAL WinMain(HINSTANCE this_inst, HINSTANCE prev_inst, LPSTR cmdline, int cmdshow)

add these line

Note: I think this line should exist if in case it exists replace and it would be everything.:huh:

Code:
#if defined(_MULTICLIENT)
	if (!fopen("mutex", "r"))
		Mutex = CreateMutex(NULL, TRUE, "Gunz");
	if (GetLastError() == ERROR_ALREADY_EXISTS)
	{
		MessageBox(g_hWnd, "Cannot Open Gunz.exe", NULL, MB_OK);
		mlog("Cannot Open Gunz.exe\n");
		zexit(-1);
		return 0;
	}
#endif

Screenshot

TXHIy00 - Multi Client (Duplicate Process) - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Feb 18, 2021
Messages
25
Reaction score
22
Will definitely be using this when I get time to mess around with GunZ again. Thanks jorklenis2!
 
Back
Top