Jump to content

Recommended Posts

  • Honorable Member

M2 Download Center

This is the hidden content, please
( Internal )

This is the hidden content, please
( GitHub )

e32497e11f.png

---------------------------------

20511268747470733a2f2f7075752e73682f464e

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 105
  • Eyes 2
  • Scream 1
  • Good 38
  • Love 3
  • Love 84

 

Link to comment
https://metin2.dev/topic/23904-channel-status-update-player-count/
Share on other sites

Hi everyone!

Do you guys also have compiling problems with the db source?
First there's need to be a space between those > marks at the ClientManager.h:
 

typedef boost::unordered_map<short, std::pair<BYTE, int>> TChannelStatusMap;

Correct form maybe:
 

typedef boost::unordered_map<short, std::pair<BYTE, int> > TChannelStatusMap;

Umm and I get many errors when I try to compile the ClientManager.cpp:
spacer.png

Sorry guys I don't really understand the programming language (I only understand the PHP language  so I'm just a copy-paste guy) but I think there is something near the one of the for cycles that not correct in my case.
(Btw I use P3NG3R's no TXT ClientManager.cpp version.)
 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Honorable Member
1 hour ago, Werwolf94 said:

 I don't really understand the programming language

You don't understand the programming language,

but you are saying there's need to be a space (wtf?):

 

1 hour ago, Werwolf94 said:

First there's need to be a space between those > marks at the ClientManager.h:


typedef boost::unordered_map<short, std::pair<BYTE, int>> TChannelStatusMap;

Correct form maybe:


typedef boost::unordered_map<short, std::pair<BYTE, int> > TChannelStatusMap;

 

 

1 hour ago, Werwolf94 said:

I think there is something near the one of the for cycles that not correct in my case.

?

use at least gcc49 compiler for c++11

Edited by Mali61
gcc

 

If you have ChangeChannel system implemented with this function 

Quote

    if app.ENABLE_MOVE_CHANNEL:
        def __GetServerID(self):
            serverID = 1
            for i in serverInfo.REGION_DICT[0].keys():
                if serverInfo.REGION_DICT[0]["name"] == net.GetServerInfo().split(",")[0]:
                    serverID = int(i)
                    break
    
            return serverID
        
        def RefreshChannel(self, channel):
            channelName = ""
            serverName = serverInfo.REGION_DICT[0][self.__GetServerID()]["name"]
            if channel in serverInfo.REGION_DICT[0][self.__GetServerID()]["channel"]:
                channelName = serverInfo.REGION_DICT[0][self.__GetServerID()]["channel"][int(channel)]["name"]
            elif channel == 99:
                channelName = "Special CH"
            else:
                channelName = "Unknow CH"
                
            net.SetServerInfo("%s, %s" % (serverName,channelName))
            if self.interface:
                self.interface.wndMiniMap.serverInfo.SetText(net.GetServerInfo())

You wil take that error.. 

Quote

0524 17:34:36311 :: TypeError
0524 17:34:36311 :: : 
0524 17:34:36311 :: NotifyChannelState() takes exactly 3 arguments (4 given)

 

  • 4 weeks later...

ClientManager.cpp: In member function 'void CClientManager::UpdateChannelStatus(TChannelStatus*)':
ClientManager.cpp:4326:30: error: 'TChannelStatus' has no member named 'player_count' it->second.second = pData->player_count;


ClientManager.cpp:4329:80: error: 'TChannelStatus' has no member named 'player_count' m_mChannelStatus.emplace(pData->nPort, std::make_pair(pData>bStatus, pData->player_count));
 

Thanks in advance

 

EDIT: Solved the errors, but: spacer.png and it changes spacer.png (1 player logged in)

 

EDIT2: Solved.

Edited by Metin2 Dev
Core X - External 2 Internal
  • 1 month later...
  • Premium

hello, i have some problem with it...
there is the picture

 

spacer.png

 

what should i do? or what did i wrong?

Help me please.

Edited by Metin2 Dev
Core X - External 2 Internal

Ulthar

1 hour ago, Ulthar said:

hello, i have some problem with it...
there is the picture

 

spacer.png

 

what should i do? or what did i wrong?

Help me please.

Seems like you have some syntax errors  (maybe you forgot a } or something like that)

Edited by Metin2 Dev
Core X - External 2 Internal
  • 4 months later...
  • 4 years later...

Is there any way we can show people from CH99 too ? @ Mali

“𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.