[Compilare sursa] Team la prieteni / Ban system

Încuiat
Avatar utilizator
AnonyOPS3
4Metin
4Metin
Mesaje: 39
Membru din: Lun Feb 26, 2024 12:30 am
Status: Activ
Multumiri acordate: 2
Multumiri primite: 1
Contact:

[Compilare sursa] Team la prieteni / Ban system

Mesaj de AnonyOPS3 »

Tipologie server PVM
Resursă folosită: Nu il mai gasesc, este unul facut fara quest direct intern din Sv side si client
ServerFiles utilizat: --
Syserr: poza mai jos. Dupa implementarea lui in serverside, imi tot apar aceste erori de compilare. Functiile au fost adaugate in totalitate.

Sursa server - sistem membri echipei in lista de prieteni
Imagine


Ce au fost adaugate in messenger_manager.h

Cod: Selectaţi tot

//Find
		void	LoadList(SQLMsg * pmsg);
///Add
#ifdef ENABLE_MESSENGER_TEAM
		void	SendTeamLogin(keyA account, keyA companion);
		void	SendTeamLogout(keyA account, keyA companion);
		void	LoadTeamList(SQLMsg * pmsg);
		void	SendTeamList(keyA account);
#endif
		
//Find
		std::set<DWORD>			m_set_requestToAdd;
///Add
#ifdef ENABLE_MESSENGER_TEAM
		std::map<keyT, std::set<keyT> >	m_TeamRelation;
		std::map<keyT, std::set<keyT> >	m_InverseTeamRelation;
#endif
Eroare CLIENT dupa adaugarea ban system din client

Cod: Selectaţi tot

0331 00:26:07922 :: invalid idx 0
0331 00:26:16561 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\game\ban\ban_bg.png
0331 00:26:16561 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\game\ban\input_id.png
0331 00:26:16561 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\game\ban\input_re.png
0331 00:26:16561 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\game\ban\id.png
0331 00:26:16561 :: Traceback (most recent call last):

0331 00:26:16561 ::   File "networkModule.py", line 247, in SetGamePhase

0331 00:26:16562 ::   File "game.py", line 98, in __init__

0331 00:26:16562 ::   File "interfaceModule.py", line 284, in MakeInterface

0331 00:26:16562 ::   File "interfaceModule.py", line 258, in __MakeBan

0331 00:26:16562 ::   File "uiBan.py", line 15, in __init__

0331 00:26:16563 ::   File "uiBan.py", line 39, in __Load

0331 00:26:16563 :: TypeError
0331 00:26:16563 :: : 
0331 00:26:16563 :: SAFE_SetStringEvent() takes exactly 3 arguments (4 given)
0331 00:26:16563 :: 

Fisierele mentionate in folderul de mai sus, exista. Cu aceleasi denumiri. Sistemul folosit este acesta ->
BAN SYSTEM
Avatar utilizator
RazVan
Administrator
Administrator
Mesaje: 695
Membru din: Mie Oct 19, 2022 5:25 pm
Localitate: München
Status: Activ
Multumiri acordate: 12
Multumiri primite: 18
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de RazVan »

Sa ai grija sa nu fi adăugat #ifdef ENABLE_MESSENGER_TEAM într o funcție inactiva și din cauza asta sa îți facă eroare.
La sistemul de ban încearcă sa convertești pozele în.tga
Imagine
Avatar utilizator
AnonyOPS3
4Metin
4Metin
Mesaje: 39
Membru din: Lun Feb 26, 2024 12:30 am
Status: Activ
Multumiri acordate: 2
Multumiri primite: 1
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de AnonyOPS3 »

RazVan scrie: Lun Apr 01, 2024 5:13 pm Sa ai grija sa nu fi adăugat #ifdef ENABLE_MESSENGER_TEAM într o funcție inactiva și din cauza asta sa îți facă eroare.
La sistemul de ban încearcă sa convertești pozele în.tga
Multumesc! Am rezolvat problama, Acum va ca ia crashcore odata ce se conecteaza. Singurul syserr din client este urmatorul :

Cod: Selectaţi tot

0401 22:12:09456 :: invalid idx 0
Avatar utilizator
RazVan
Administrator
Administrator
Mesaje: 695
Membru din: Mie Oct 19, 2022 5:25 pm
Localitate: München
Status: Activ
Multumiri acordate: 12
Multumiri primite: 18
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de RazVan »

LaPeTiTTe scrie: Mar Apr 02, 2024 2:58 am
RazVan scrie: Lun Apr 01, 2024 5:13 pm Sa ai grija sa nu fi adăugat #ifdef ENABLE_MESSENGER_TEAM într o funcție inactiva și din cauza asta sa îți facă eroare.
La sistemul de ban încearcă sa convertești pozele în.tga
Multumesc! Am rezolvat problama, Acum va ca ia crashcore odata ce se conecteaza. Singurul syserr din client este urmatorul :

Cod: Selectaţi tot

0401 22:12:09456 :: invalid idx 0
syerr client / game99 / db nimic ?
Imagine
Avatar utilizator
AnonyOPS3
4Metin
4Metin
Mesaje: 39
Membru din: Lun Feb 26, 2024 12:30 am
Status: Activ
Multumiri acordate: 2
Multumiri primite: 1
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de AnonyOPS3 »

DB SYSERR

Cod: Selectaţi tot

SYSERR: Apr  3 03:34:52 :: pid_init: 
Start of pid: 4090

SYSERR: Apr  3 03:34:52 :: Start: TABLE_POSTFIX not configured use default
SYSERR: Apr  3 03:34:53 :: Load:  DirectQuery failed(SELECT IP_FROM, IP_TO, COUNTRY_NAME FROM iptocountry)
SYSERR: Apr  3 03:35:30 :: Process: FDWATCH: peer null in event: ident 21
SYSERR: Apr  3 03:35:30 :: Process: FDWATCH: peer null in event: ident 22
SYSERR: Apr  3 03:35:31 :: Process: FDWATCH: peer null in event: ident 24
SYSERR: Apr  3 03:35:34 :: Process: FDWATCH: peer null in event: ident 23
DB LOG

Cod: Selectaţi tot

Apr  3 03:35:28 :: QID_ITEM 4
Apr  3 03:35:28 :: ITEM_LOAD: count 0 pid 10
Apr  3 03:35:28 :: QID_QUEST 4
Apr  3 03:35:28 :: QUEST_LOAD: count 47 PID 10
Apr  3 03:35:28 :: info of pLoginData1 before call ItemAwardfunction 550622976
Apr  3 03:35:28 :: QID_AFFECT 4
Apr  3 03:35:30 :: Connection closed. (host: 127.0.0.1)
Apr  3 03:35:30 :: ItemIDRange: returned. 20000001 ~ 30000000
Apr  3 03:35:30 :: ItemIDRange: Build: 20000001 ~ 30000000 start:20001604
SYSERR: Apr  3 03:35:30 :: Process: FDWATCH: peer null in event: ident 21
Apr  3 03:35:30 :: Connection closed. (host: 127.0.0.1)
Apr  3 03:35:30 :: ItemIDRange: returned. 40000001 ~ 50000000
Apr  3 03:35:30 :: ItemIDRange: Build: 40000001 ~ 50000000 start:40000445
SYSERR: Apr  3 03:35:30 :: Process: FDWATCH: peer null in event: ident 22
Apr  3 03:35:31 :: Connection closed. (host: 127.0.0.1)
Apr  3 03:35:31 :: ItemIDRange: returned. 80000001 ~ 90000000
Apr  3 03:35:31 :: ItemIDRange: Build: 80000001 ~ 90000000 start:80000001
SYSERR: Apr  3 03:35:31 :: Process: FDWATCH: peer null in event: ident 24
Apr  3 03:35:32 :: [      400] return 0/0/0 async 0/0/0
Apr  3 03:35:34 :: SetPlay off 321918035 test
Apr  3 03:35:34 :: Connection closed. (host: 127.0.0.1)
Apr  3 03:35:34 :: ItemIDRange: returned. 60000001 ~ 70000000
Apr  3 03:35:34 :: ItemIDRange: Build: 60000001 ~ 70000000 start:60000739
SYSERR: Apr  3 03:35:34 :: Process: FDWATCH: peer null in event: ident 23
Apr  3 03:35:37 :: [      450] return 0/0/0 async 0/0/0
Apr  3 03:35:42 :: [      500] return 0/0/0 async 0/0/0
Apr  3 03:35:47 :: [      550] return 0/0/0 async 0/0/0
Apr  3 03:35:52 :: [      600] return 0/0/0 async 0/0/0
Apr  3 03:35:57 :: [      650] return 0/0/0 async 0/0/0
Apr  3 03:36:02 :: [      700] return 0/0/0 async 0/0/0
Apr  3 03:36:07 :: [      750] return 0/0/0 async 0/0/0
Apr  3 03:36:12 :: [      800] return 0/0/0 async 0/0/0
Apr  3 03:36:17 :: [      850] return 0/0/0 async 0/0/0
Apr  3 03:36:22 :: [      900] return 0/0/0 async 0/0/0
Apr  3 03:36:27 :: [      950] return 0/0/0 async 0/0/0
AUTH LOG

Cod: Selectaţi tot

Apr  3 03:35:20 :: SYSTEM: new connection from [192.168.1.70] fd: 16 handshake 895736066 output input_len 0, ptr 0x212c8700
Apr  3 03:35:21 :: Handshake: client_time 0 server_time 27087
Apr  3 03:35:21 :: AUTH_PHASE 0x212c8700
Apr  3 03:35:21 :: InputAuth::Login : test (8) desc 0x212c8700
Apr  3 03:35:21 :: SetLoginKey 321918035
Apr  3 03:35:21 :: InputAuth::Login : key 321918035:0x7c3c7883 login test
Apr  3 03:35:21 :: QID_AUTH_LOGIN: START 321918035 0x212c8700
Apr  3 03:35:21 :: Create_Time 1711171986 20240323
Apr  3 03:35:21 :: Block Time -1 
Apr  3 03:35:21 :: SetRemainSecs test 0 type 2
Apr  3 03:35:21 :: SendAuthLogin test key 1
Apr  3 03:35:21 :: AuthLogin result 1 key 321918035
Apr  3 03:35:21 :: SYSTEM: closing socket. DESC #16
Apr  3 03:35:28 :: BILLING: ON test key 321918035 ptr 0x213b90e0
Apr  3 03:35:34 :: SetRemainSecs test 0 type 2
Apr  3 03:35:34 :: BILLING: PUSH test 6 type 2
Apr  3 03:35:34 :: BILLING: OFF test key 321918035 ptr 0x213b90e0
Apr  3 03:35:34 :: FLUSH_USE_TIME: count 1

GAME99 , CH NU AU SYSERR ...
Avatar utilizator
AnonyOPS3
4Metin
4Metin
Mesaje: 39
Membru din: Lun Feb 26, 2024 12:30 am
Status: Activ
Multumiri acordate: 2
Multumiri primite: 1
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de AnonyOPS3 »

O sa refac toate fisierele cu cele originale si modific din nou.

Pentru Echipa activa la lista de prieteni, singura problema care inca o am este aceasta la compilare :

Cod: Selectaţi tot

messenger_manager.cpp:52:39: error: no member named 'bind1st' in namespace 'std'
   52 |         DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&MessengerManager::Lo           adTeamList), this),
      |                                         ~~~~~^
messenger_manager.cpp:52:52: error: no member named 'mem_fun' in namespace 'std'
   52 |         DBManager::instance().FuncQuery(std::bind1st(std::mem_fun(&MessengerManager::Lo           adTeamList), this),
      |                                                      ~~~~~^
2 errors generated.
gmake: *** [Makefile:102: OBJDIR/messenger_manager.o] Error 1
Messenger_manager arata cam asa

Avatar utilizator
AnonyOPS3
4Metin
4Metin
Mesaje: 39
Membru din: Lun Feb 26, 2024 12:30 am
Status: Activ
Multumiri acordate: 2
Multumiri primite: 1
Contact:

Re: [Compilare sursa] Team la prieteni / Ban system

Mesaj de AnonyOPS3 »

REZOLVAT T/C Va rog.

Rezolvarea pt cei care doriti - schimbati linia de cod de la sistemul de prieteni in felul urmator

Cod: Selectaţi tot

DBManager::instance().FuncQuery(std::bind(&MessengerManager::LoadTeamList, this, std::placeholders::_1),
    "SELECT '%s',mName FROM common.gmlist WHERE mName!='%s' and mAuthority!='LOW_WIZARD'", account.c_str(), account.c_str());
Încuiat