Enable Debug mode in the source

Results 1 to 3 of 3
  1. #1
    Aspiring Game Developer AuroraUK is offline
    SubscriberRank
    Jul 2010 Join Date
    1,053Posts

    Enable Debug mode in the source

    Hello everyone,

    I am looking to enable debug mode in the source, as I'm looking to make my own custom Login map. The old GunZLoader obviously doesn't work with the newest 1.5 files, and I know that by using the debug/developer mode from the source I can use it to get the coordinates to make the Login.

    However, when I try to build the source I get this error. Has anyone come across it?

    Code:
    Clean source\Gunz\ZChat_Cmds.cpp(1268) : error C2660: 'ZPostLadderRequestChallenge' : function does not take 3 arguments
    Heres the code snippet from that file, I've highlighted where the error triggers:

    Code:
    void ChatCmd_LadderTest(const char* line,const int argc, char **const argv)
    {
    	// »ç¿ëÇÏ´Â ºÎºÐÀÌ ¾ø¾î¼­ µð¹ö±×¿ëÀ¸·Î ¼öÁ¤ÇÔ. -by SungE 2007-04-02
    #ifdef _DEBUG
    	if (argc == 1)
    	{
    		char szPlayerName[MATCHOBJECT_NAME_LENGTH];
    		strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
    		char* pName[1];
    		pName[0] = szPlayerName;
    
    		ZPostLadderRequestChallenge(pName, 1, 0);
    	} else if (argc == 2)
    	{
    		char szPlayerName[MATCHOBJECT_NAME_LENGTH], szTeamMember1[MATCHOBJECT_NAME_LENGTH];
    		strcpy(szPlayerName, ZGetMyInfo()->GetCharName());
    		strcpy(szTeamMember1, argv[1]);
    
    		char*pName[2];
    		pName[0] = szPlayerName;
    		pName[1] = szTeamMember1;
    
    		ZPostLadderRequestChallenge(pName, 2, 0);
    	}
    #endif
    }
    Would appreciate it if anyone could help :-).


  2. #2
    Fuck Army. sahar042 is offline
    True MemberRank
    Jul 2009 Join Date
    832Posts

    Re: Enable Debug mode in the source

    open your zpost.h search for ZPostLadderRequestChallenge and paste here the whole inline
    I am selling the latest National Gunz source (‎March ‎22, ‎2018) for who interested send me a PM for price and the features of the source.

  3. #3
    Aspiring Game Developer AuroraUK is offline
    SubscriberRank
    Jul 2010 Join Date
    1,053Posts

    Re: Enable Debug mode in the source

    Quote Originally Posted by sahar042 View Post
    open your zpost.h search for ZPostLadderRequestChallenge and paste here the whole inline
    Hey, thanks here it is:

    Code:
    inline void ZPostLadderRequestChallenge(char** ppMemberCharNames, const int nMemberCount, unsigned long int nOptions, unsigned long int nAntiLead)	// ÀڽűîÁö Æ÷ÇÔ
    {
    	void* pBlobMembersName = MMakeBlobArray(sizeof(MTD_ReplierNode), nMemberCount);
    	for (int i = 0; i < nMemberCount; i++)
    	{
    		MTD_LadderTeamMemberNode* pMemberNode = (MTD_LadderTeamMemberNode*)MGetBlobArrayElement(pBlobMembersName, i);
    		strcpy(pMemberNode->szName, ppMemberCharNames[i]);
    	}
    
    	ZPOSTCMD4( MC_MATCH_LADDER_REQUEST_CHALLENGE, MCmdParamInt(nMemberCount), MCmdParamUInt(nOptions),
    			   MCmdParamBlob(pBlobMembersName, MGetBlobArraySize(pBlobMembersName)), MCmdParamUInt(nAntiLead) );
    		
    
    	MEraseBlobArray(pBlobMembersName);
    }
    
    inline void ZPostLadderCancel()
    {
    	ZPOSTCMD0(MC_MATCH_LADDER_REQUEST_CANCEL_CHALLENGE)
    }



Advertisement