Jump to content
×
×
  • Create New...
  • 0

Client Problem !!!


Renco

Question

  • Answers 21
  • Created
  • Last Reply

Top Posters For This Question

21 answers to this question

Recommended Posts

  • 0

Binary source :)

You have to open UserInterface.cpp file in UserInterface project.

Go on line 283 (not really accurated xD)

Replace all #ifdef _DISTRIBUTE function (from #ifdef _DISTRIBUTE to #endif) to this code:

  Hide contents

#ifndef _DEBUG
        stRegisterDebugFlag ="__DEBUG__ = 0";
#else
        stRegisterDebugFlag ="__DEBUG__ = 1";
#endif

Link to comment
  • 0
On 18.11.2016 at 10:40 PM, Undead2014 said:

Binary source :)

You have to open UserInterface.cpp file in UserInterface project.

Go on line 283 (not really accurated xD)

Replace all #ifdef _DISTRIBUTE function (from #ifdef _DISTRIBUTE to #endif) to this code:

  Dezvaluie continutul ascuns

#ifndef _DEBUG
        stRegisterDebugFlag ="__DEBUG__ = 0";
#else
        stRegisterDebugFlag ="__DEBUG__ = 1";
#endif

 

Don't work, do not compile source.

Link to comment
  • 0
Just now, Renco said:

43fe315621b24d2f87e90c26d7c6c725.png

so looks good but your client source some have error.

if solve these problems, successfully build.

userinterface.cpp > line 198

pythonplayermodule.. > 978 & 763

networkctormanager.. > 364 & 417

and ime.cpp > 309 & 1182

Link to comment
  • 0
3 minutes ago, Amour said:

so looks good but your client source some have error.

if solve these problems, successfully build.

userinterface.cpp > line 198

pythonplayermodule.. > 978 & 763

networkctormanager.. > 364 & 417

and ime.cpp > 309 & 1182

You think you have not understand my problem. Me I go to compile the source.

Hi, does anyone know how out of this source?

432049f20b7a4431be09f37969dd7a31.png

 

Link to comment
  • 0
34 minutes ago, ѕeмa™ said:

self.isShowDebugInfo  is just a variable to show or hide the frames per second, etc... nothing more.

If you put as my image in False you wont see the fps but if you put True, you will see it.

fc439cf18a2a2a0854cfab34136998ed.png

75cb7b67d4aacd8fed534f4a80848d61.png

aa102ce0be8b001e7949cf44da9a28fc.png

It is the same at me and are still appearing.

Link to comment
  • 0
  • Premium

Nvm Sema, you didnt understood.

Renco, on UserInterface.cpp, inside:

bool RunMainScript (CPythonLauncher &pyLauncher, const char *lpCmdLine)

Add this at the ending (remove what you added previously)

std::string stRegisterDebugFlag;
#ifdef NDEBUG
	stRegisterDebugFlag = "__DEBUG__ = 0";
#else
	stRegisterDebugFlag = "__DEBUG__ = 1";
#endif

 

Example (dont copy paste below code):

bool RunMainScript (CPythonLauncher &pyLauncher, const char *lpCmdLine)
{
	initpack();
	initdbg();
	initime();
	initgrp();
	initgrpImage();
	initgrpText();
	initwndMgr();
	initapp();
	initsystemSetting();
	initchr();
	initchrmgr();
	initPlayer();
	initRandomKey();
	initProtections();
	initObfuscation();
	initTMTAntiCheat();
	initItem();
	initNonPlayer();
	initTrade();
	initChat();
	initTextTail();
	initnet();
	initMiniMap();
	initProfiler();
	initEvent();
	initeffect();
	initfly();
	initsnd();
	initeventmgr();
	initshop();
	initskill();
	initquest();
	initBackground();
	initMessenger();
	initsafebox();
	initguild();
	initServerStateChecker();
	std::string stRegisterDebugFlag;
#ifdef NDEBUG
	stRegisterDebugFlag = "__DEBUG__ = 0";
#else
	stRegisterDebugFlag = "__DEBUG__ = 1";
#endif
	if (!pyLauncher.RunLine (stRegisterDebugFlag.c_str())) {
		TraceError ("RegisterDebugFlag Error");
		return false;
	}
	if (!pyLauncher.RunFile ("system.py")) {
		TraceError ("RunMain Error");
		return false;
	}
	return true;
}

 

Link to comment
  • 0
39 minutes ago, tierrilopes said:

Nvm Sema, you didnt understood.

Renco, on UserInterface.cpp, inside:

bool RunMainScript (CPythonLauncher &pyLauncher, const char *lpCmdLine)

Add this at the ending (remove what you added previously)

std::string stRegisterDebugFlag;
#ifdef NDEBUG
	stRegisterDebugFlag = "__DEBUG__ = 0";
#else
	stRegisterDebugFlag = "__DEBUG__ = 1";
#endif

 

Example (dont copy paste below code):

bool RunMainScript (CPythonLauncher &pyLauncher, const char *lpCmdLine)
{
	initpack();
	initdbg();
	initime();
	initgrp();
	initgrpImage();
	initgrpText();
	initwndMgr();
	initapp();
	initsystemSetting();
	initchr();
	initchrmgr();
	initPlayer();
	initRandomKey();
	initProtections();
	initObfuscation();
	initTMTAntiCheat();
	initItem();
	initNonPlayer();
	initTrade();
	initChat();
	initTextTail();
	initnet();
	initMiniMap();
	initProfiler();
	initEvent();
	initeffect();
	initfly();
	initsnd();
	initeventmgr();
	initshop();
	initskill();
	initquest();
	initBackground();
	initMessenger();
	initsafebox();
	initguild();
	initServerStateChecker();
	std::string stRegisterDebugFlag;
#ifdef NDEBUG
	stRegisterDebugFlag = "__DEBUG__ = 0";
#else
	stRegisterDebugFlag = "__DEBUG__ = 1";
#endif
	if (!pyLauncher.RunLine (stRegisterDebugFlag.c_str())) {
		TraceError ("RegisterDebugFlag Error");
		return false;
	}
	if (!pyLauncher.RunFile ("system.py")) {
		TraceError ("RunMain Error");
		return false;
	}
	return true;
}

 

It's work, thx man.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.