• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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