Çözülemedi Kanal Değiştirme sistemi db build hatası yardım

  • Konuyu açan Konuyu açan muhammet53
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 6
  • Gösterim Gösterim 179
Ne yazık ki bu konuda sorulara çözüm bulunmuyor. Eğer konuda yorumlar varsa hepsini inceleyebilirsiniz. Belki sizlerin sorununuzu çözmek için için ipuçları bulabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

muhammet53

Üye
Üye
Mesaj
302
Çözümler
3
Beğeni
19
Puan
454
Ticaret Puanı
0
Kod:
Genişlet Daralt Kopyala
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from DBManager.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerBoot.cpp:4:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from NetBase.cpp:4:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from Cache.cpp:6:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from Main.cpp:5:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerEventFlag.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManager.cpp:8:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerParty.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerGuild.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ItemIDRangeManager.cpp:5:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ItemAwardManager.cpp:7:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerLogin.cpp:4:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from LoginData.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from Marriage.cpp:5:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from MoneyLog.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from ClientManagerHorseName.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from PrivManager.cpp:3:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
In file included from GuildManager.cpp:4:
ClientManager.h:347:51: error: 'TPacketChangeChannel' has not been declared
  347 |  void  FindChannel(CPeer* pkPeer, DWORD dwHandle, TPacketChangeChannel* p);
      |                                                   ^~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:61: .obj/DBManager.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [Makefile:61: .obj/NetBase.o] Error 1
gmake: *** [Makefile:61: .obj/Cache.o] Error 1
gmake: *** [Makefile:61: .obj/ItemIDRangeManager.o] Error 1
gmake: *** [Makefile:61: .obj/LoginData.o] Error 1
gmake: *** [Makefile:61: .obj/ClientManagerEventFlag.o] Error 1
gmake: *** [Makefile:61: .obj/ClientManagerHorseName.o] Error 1
gmake: *** [Makefile:61: .obj/MoneyLog.o] Error 1
ClientManager.cpp:65:70: error: 'TPacketChangeChannel' has not been declared
   65 | void CClientManager::FindChannel(CPeer* requestPeer, DWORD dwHandle, TPacketChangeChannel* p)
      |                                                                      ^~~~~~~~~~~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::FindChannel(CPeer*, DWORD, int*)':
ClientManager.cpp:67:10: error: request for member 'lMapIndex' in '* p', which is of non-class type 'int'
   67 |  if (!p->lMapIndex || !p->channel)
      |          ^~~~~~~~~
ClientManager.cpp:67:27: error: request for member 'channel' in '* p', which is of non-class type 'int'
   67 |  if (!p->lMapIndex || !p->channel)
      |                           ^~~~~~~
ClientManager.cpp:73:32: error: request for member 'channel' in '* p', which is of non-class type 'int'
   73 |   if (peer->GetChannel() != p->channel)
      |                                ^~~~~~~
ClientManager.cpp:79:19: error: request for member 'lMapIndex' in '* p', which is of non-class type 'int'
   79 |    if (midx == p->lMapIndex)
      |                   ^~~~~~~~~
gmake: *** [Makefile:61: .obj/ClientManagerGuild.o] Error 1
ClientManager.cpp:91:2: error: 'TPacketReturnChannel' was not declared in this scope
   91 |  TPacketReturnChannel r;
      |  ^~~~~~~~~~~~~~~~~~~~
gmake: *** [Makefile:61: .obj/ClientManagerLogin.o] Error 1
ClientManager.cpp:92:2: error: 'r' was not declared in this scope
   92 |  r.lAddr = lAddr;
      |  ^
gmake: *** [Makefile:61: .obj/Main.o] Error 1
ClientManager.cpp:94:28: error: 'HEADER_DG_CHANNEL_RESULT' was not declared in this scope; did you mean 'HEADER_DG_CHANGE_NAME'?
   94 |  requestPeer->EncodeHeader(HEADER_DG_CHANNEL_RESULT, dwHandle, sizeof(r));
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~
      |                            HEADER_DG_CHANGE_NAME
gmake: *** [Makefile:61: .obj/ClientManagerPlayer.o] Error 1
gmake: *** [Makefile:61: .obj/ItemAwardManager.o] Error 1
gmake: *** [Makefile:61: .obj/ClientManagerParty.o] Error 1
gmake: *** [Makefile:61: .obj/PrivManager.o] Error 1
gmake: *** [Makefile:61: .obj/Marriage.o] Error 1
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:2399:8: error: 'HEADER_GD_FIND_CHANNEL' was not declared in this scope
 2399 |   case HEADER_GD_FIND_CHANNEL:
      |        ^~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:2400:33: error: 'TPacketChangeChannel' was not declared in this scope
 2400 |    FindChannel(peer, dwHandle, (TPacketChangeChannel*)data);
      |                                 ^~~~~~~~~~~~~~~~~~~~
ClientManager.cpp:2400:54: error: expected primary-expression before ')' token
 2400 |    FindChannel(peer, dwHandle, (TPacketChangeChannel*)data);
      |                                                      ^
gmake: *** [Makefile:61: .obj/ClientManagerBoot.o] Error 1
gmake: *** [Makefile:61: .obj/GuildManager.o] Error 1
gmake: *** [Makefile:61: .obj/ClientManager.o] Error 1
root@Razuning:/usr/Razuning-V5/Server/db/src #
 
Muhammet dostum

Kod:
Genişlet Daralt Kopyala
HEADER_GD_FIND_CHANNEL
HEADER_DG_CHANGE_NAME
Şu yukarıdaki ikisi Bulunamadı diyor, bir şeyleri atlamışsın bir daha kontrol et
 
Muhammet dostum

Kod:
Genişlet Daralt Kopyala
HEADER_GD_FIND_CHANNEL
HEADER_DG_CHANGE_NAME
Şu yukarıdaki ikisi Bulunamadı diyor, bir şeyleri atlamışsın bir daha kontrol et
anlatımda olan kodlar bunları ekledim
 

Dosya Eklentileri

tables.h:
Genişlet Daralt Kopyala
typedef struct SPacketChangeChannel
{
    long lMapIndex;
    long x;
    long y;
    int channel;
    SPacketChangeChannel() : lMapIndex(-1), x(-1), y(-1) {};
} TPacketChangeChannel;

tables.h dosyasında buna benzer kodu ekledin mi
 
tables.h:
Genişlet Daralt Kopyala
typedef struct SPacketChangeChannel
{
    long lMapIndex;
    long x;
    long y;
    int channel;
    SPacketChangeChannel() : lMapIndex(-1), x(-1), y(-1) {};
} TPacketChangeChannel;

tables.h dosyasında buna benzer kodu ekledin mi
Şuan işteyim yarın bakarım hocam

tables.h:
Genişlet Daralt Kopyala
typedef struct SPacketChangeChannel
{
    long lMapIndex;
    long x;
    long y;
    int channel;
    SPacketChangeChannel() : lMapIndex(-1), x(-1), y(-1) {};
} TPacketChangeChannel;

tables.h dosyasında buna benzer kodu ekledin mi
hocam o sorunlar gitti ama birde bu hatalar geliyor


Kod:
Genişlet Daralt Kopyala
ClientManager.cpp: In member function 'void CClientManager::ProcessPackets(CPeer*)':
ClientManager.cpp:2361:9: error: 'HEADER_GD_FIND_CHANNEL' was not declared in this scope
 2361 |    case HEADER_GD_FIND_CHANNEL:
      |         ^~~~~~~~~~~~~~~~~~~~~~
ClientManager.cpp: In member function 'void CClientManager::FindChannel(CPeer*, DWORD, TPacketChangeChannel*)':
ClientManager.cpp:3618:3: error: expected initializer before '.' token
 3618 |  r.lAddr = lAddr;
      |   ^
ClientManager.cpp:3619:2: error: 'r' was not declared in this scope
 3619 |  r.port = port;
 
sistemi doğru ekleyemedin anlaşılan bir çok yeri eksik bunların da olması gereken yeri paylaşıyım ama sorunlar devam edecek gibi eklediğin yeri tekrar gözden geçirmeni tavsiye ediyorum
ClientManager.cpp:
Genişlet Daralt Kopyala
case HEADER_GD_REQUEST_CHANNELSTATUS:
// altına
#ifdef //kendi define isminiz ne ise ona göre düzeltilecek
            case HEADER_GD_FIND_CHANNEL:
                FindChannel(peer, dwHandle, (TPacketChangeChannel*)data);
                break;
#endif
bunu eklemen gerek
 
sistemi doğru ekleyemedin anlaşılan bir çok yeri eksik bunların da olması gereken yeri paylaşıyım ama sorunlar devam edecek gibi eklediğin yeri tekrar gözden geçirmeni tavsiye ediyorum
ClientManager.cpp:
Genişlet Daralt Kopyala
case HEADER_GD_REQUEST_CHANNELSTATUS:
// altına
#ifdef //kendi define isminiz ne ise ona göre düzeltilecek
            case HEADER_GD_FIND_CHANNEL:
                FindChannel(peer, dwHandle, (TPacketChangeChannel*)data);
                break;
#endif
bunu eklemen gerek
hocam sistemi sildim konu kapanabilir
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst