Jump to content

How i activate Test Mode? Debug Mode?


Recommended Posts

  • Premium

It already exists in your config.cpp

 

Go to your CONFIG of all channels, edit/add this line:

test_server: 1

 

Restart server.

__

Confirm that you have something like this at questmanager.cpp:

Spoiler

        sys_err ("LUA_ERROR: quest %s.%s %s", GetCurrentQuestName().c_str(), state_name, event_index_name.c_str());
        if (GetCurrentCharacterPtr() && test_server) {
            GetCurrentCharacterPtr()->ChatPacket (CHAT_TYPE_PARTY, "LUA_ERROR: quest %s.%s %s", GetCurrentQuestName().c_str(), state_name, event_index_name.c_str());
        }

and at questlua.cpp:

Spoiler

else {
            sys_err ("LUA_ERROR: %s", lua_tostring (qs.co, 1));
        }
        WriteRunningStateToSyserr();
        SetError();
        GotoEndState (qs);
        return false;

questlua.h:

Spoiler

extern int test_server;

 

  • Love 1
Link to comment
Share on other sites

On 23/04/2018 at 1:09 PM, tierrilopes said:

It already exists in your config.cpp

 

Go to your CONFIG of all channels, edit/add this line:

test_server: 1

 

Restart server.

__

Confirm that you have something like this at questmanager.cpp:

  Hide contents

        sys_err ("LUA_ERROR: quest %s.%s %s", GetCurrentQuestName().c_str(), state_name, event_index_name.c_str());
        if (GetCurrentCharacterPtr() && test_server) {
            GetCurrentCharacterPtr()->ChatPacket (CHAT_TYPE_PARTY, "LUA_ERROR: quest %s.%s %s", GetCurrentQuestName().c_str(), state_name, event_index_name.c_str());
        }

and at questlua.cpp:

  Hide contents

else {
            sys_err ("LUA_ERROR: %s", lua_tostring (qs.co, 1));
        }
        WriteRunningStateToSyserr();
        SetError();
        GotoEndState (qs);
        return false;

questlua.h:

  Reveal hidden contents

extern int test_server;

 

I have all like this, and nothing happen

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



×
×
  • 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.