Jump to content

Client Problem !!!


Recommended Posts

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
Share on other sites

  • 3 weeks later...
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
Share on other sites

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

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 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
Share on other sites

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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      We are looking for a C++ and Python programmer

    2. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    3. 111

      Ulthar SF V2 (TMP4 Base)

    4. 0

      Quest function when 102.kill definition whereabouts help

    5. 5

      [M2 FILTER] Customized Client Filter

    6. 0

      [INGAME] RGB Color on chat broken

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.