Eroare compilare Offline Shop

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Eroare compilare Offline Shop

Mesajde leo2993 » 12 Mai 2018, 14:05

Salut am o mica problema la compilare la Offline Shop si nu stiu de ce, totul a fost facut exact cum e tutorialul...


[Sursa=]root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake clean
root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake -j20
gmake: Warning: File `../../common/utils.h' has modification time 270093 s in the future
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
char.cpp:7463: warning: this decimal constant is unsigned only in ISO C90
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
char.cpp: In member function 'void CHARACTER::OpenOfflineShop(const char*, BYTE, BYTE, BYTE, TShopItemTable*, BYTE)':
char.cpp:755: warning: comparison is always false due to limited range of data type
char.cpp:757: warning: comparison is always false due to limited range of data type
char.cpp:759: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3262: error: 'pkChrCauser' was not declared in this scope
char.cpp:3268: error: 'pkChrCauser' was not declared in this scope
char.cpp:3278: error: 'pkChrCauser' was not declared in this scope
char.cpp:3284: error: 'pkChrCauser' was not declared in this scope
char.cpp:3290: error: 'pkChrCauser' was not declared in this scope
char.cpp:3315: warning: comparison between signed and unsigned integer expressions
compile char_item.cpp
char_change_empire.cpp: In member function 'bool CHARACTER::CanChangeEmpireOfflineShopCheck()':
char_change_empire.cpp:30: warning: too many arguments for format
char_change_empire.cpp:30: warning: too many arguments for format
compile char_manager.cpp
gmake: *** [OBJDIR/char.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:645: warning: comparison is always false due to limited range of data type
char_item.cpp:671: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2396: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2400: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2412: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2416: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2443: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2451: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5096: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5168: warning: unused variable 'wDestCell'
char_item.cpp:5169: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6169: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6233: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6245: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7431: warning: unused variable 'itemType'
char_item.cpp:7432: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:684: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6280: warning: 'pBuff' may be used uninitialized in this function
root@host:/usr/src/mainline_leo/Srcs/Server/game/src #
[/Sursa]

Am impresia ca poate fi de la aceasta linie:
char.cpp:3290: error: 'pkChrCauser' was not declared in this scope

Sursa e mainline_released si tutorialul/resursa e:
[RELEASE] Offline Shop - Koray

Deconectat
Avatar utilizator
[Bullseye]
Nivel 1
Nivel 1
Mesaje: 123
Membru din: 16 Oct 2017
Status: squad2.ro
Server Metin2: squad2.ro
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 11

Re: Eroare compilare Offline Shop

Mesajde [Bullseye] » 12 Mai 2018, 15:20

refa partea din char_item si ai grija unde scrie before/after in tutorial.
DACĂ TE-AM AJUTAT DĂ-MI UN THX


Imagine

Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Re: Eroare compilare Offline Shop

Mesajde leo2993 » 12 Mai 2018, 23:43

[Bullseye] scrie:refa partea din char_item si ai grija unde scrie before/after in tutorial.


Refact char_item.cpp si revin
Mersi de raspuns

Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Re: Eroare compilare Offline Shop

Mesajde leo2993 » 13 Mai 2018, 00:34

[Bullseye] scrie:refa partea din char_item si ai grija unde scrie before/after in tutorial.


Am refacut char_item.cpp si char.cpp si acum am o alta erroare legata de desc_manager.h (refacut cum trebuie)...

[Sursa=]root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake clean
root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
In file included from char.cpp:25:
shop_manager.h:59:7: warning: no newline at end of file
In file included from char.cpp:61:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7468: warning: this decimal constant is unsigned only in ISO C90
compile char_battle.cpp
In file included from building.cpp:13:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
compile char_change_empire.cpp
In file included from char_battle.cpp:27:
shop_manager.h:59:7: warning: no newline at end of file
In file included from char.cpp:13:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
gmake: *** [OBJDIR/building.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from char_battle.cpp:5:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
char.cpp: In member function 'void CHARACTER::OpenOfflineShop(const char*, BYTE, BYTE, BYTE, TShopItemTable*, BYTE)':
char.cpp:760: warning: comparison is always false due to limited range of data type
char.cpp:762: warning: comparison is always false due to limited range of data type
char.cpp:764: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3283: warning: comparison between signed and unsigned integer expressions
gmake: *** [OBJDIR/char.o] Error 1
char_change_empire.cpp: In member function 'bool CHARACTER::CanChangeEmpireOfflineShopCheck()':
char_change_empire.cpp:36: warning: too many arguments for format
char_change_empire.cpp:36: warning: too many arguments for format
gmake: *** [OBJDIR/char_battle.o] Error 1
root@host:/usr/src/mainline_leo/Srcs/Server/game/src #[/Sursa]

Presupun ca e vorba de linea asta:

go: prnt.sc/jh4co6

Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Re: Eroare compilare Offline Shop

Mesajde leo2993 » 13 Mai 2018, 00:41

leo2993 scrie:
[Bullseye] scrie:refa partea din char_item si ai grija unde scrie before/after in tutorial.


Am refacut char_item.cpp si char.cpp si acum am o alta erroare legata de desc_manager.h (refacut cum trebuie)...

[Sursa=]root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake clean
root@host:/usr/src/mainline_leo/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
In file included from char.cpp:25:
shop_manager.h:59:7: warning: no newline at end of file
In file included from char.cpp:61:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7468: warning: this decimal constant is unsigned only in ISO C90
compile char_battle.cpp
In file included from building.cpp:13:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
compile char_change_empire.cpp
In file included from char_battle.cpp:27:
shop_manager.h:59:7: warning: no newline at end of file
In file included from char.cpp:13:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
gmake: *** [OBJDIR/building.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from char_battle.cpp:5:
desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared
char.cpp: In member function 'void CHARACTER::OpenOfflineShop(const char*, BYTE, BYTE, BYTE, TShopItemTable*, BYTE)':
char.cpp:760: warning: comparison is always false due to limited range of data type
char.cpp:762: warning: comparison is always false due to limited range of data type
char.cpp:764: warning: comparison is always false due to limited range of data type
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3283: warning: comparison between signed and unsigned integer expressions
gmake: *** [OBJDIR/char.o] Error 1
char_change_empire.cpp: In member function 'bool CHARACTER::CanChangeEmpireOfflineShopCheck()':
char_change_empire.cpp:36: warning: too many arguments for format
char_change_empire.cpp:36: warning: too many arguments for format
gmake: *** [OBJDIR/char_battle.o] Error 1
root@host:/usr/src/mainline_leo/Srcs/Server/game/src #[/Sursa]

Presupun ca e vorba de linea asta:

go: prnt.sc/jh4co6


EDIT: Am comentat linia 73 cu un "//" si acum a compilat pana la desc_manager.cpp cu erorile astea:

go: prntscr.com/jh4fw4

Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Re: Eroare compilare Offline Shop

Mesajde leo2993 » 14 Mai 2018, 10:49

#UP

Deconectat
Avatar utilizator
Redder
Nivel 2
Nivel 2
Mesaje: 175
Membru din: 10 Iun 2017
Status: Sunt bine mersi
Mulțumiri acordate: 8
Mulțumiri primite: 2

Re: Eroare compilare Offline Shop

Mesajde Redder » 14 Mai 2018, 11:55

desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared, nu este declarat cel mai probabil din cauza ca ai comentat linia in char_item.cpp, scrie-mi privat cu skype id si iti rezolv eu.

Deconectat
Avatar utilizator
leo2993
Nou Venit
Nou Venit
Mesaje: 12
Membru din: 28 Noi 2014
Status: Sunt bine mersi ^.^
Regat: Shinsoo
Mulțumiri acordate: 2
Mulțumiri primite: 0

Re: Eroare compilare Offline Shop

Mesajde leo2993 » 14 Mai 2018, 19:14

Redder scrie:desc_manager.h:73: error: 'eFileUpdatedOptions' has not been declared, nu este declarat cel mai probabil din cauza ca ai comentat linia in char_item.cpp, scrie-mi privat cu skype id si iti rezolv eu.


Scuzele mele eu no pot sa-ti trimit mesaje findca nu am suficiente posturi... iti las sykpe-ul meu ca altfel nush cum sa fac, mersi de raspuns..
skype : leo2993

Deconectat
Avatar utilizator
dragos001
Nivel 4
Nivel 4
Mesaje: 546
Membru din: 01 Mar 2014
Localitate: Iasi
Mulțumiri acordate: 0
Mulțumiri primite: 26
Contact:

Re: Eroare compilare Offline Shop

Mesajde dragos001 » 14 Mai 2018, 23:16

Scrie acest cod dupa

Cod: Selectaţi tot

#include <boost/unordered_map.hpp>

Cod: Selectaţi tot

enum eFileUpdatedOptions
{
   e_FileUpdate_None = -1,
   e_FileUpdate_Error,
   e_FileUpdate_Deleted,
   e_FileUpdate_Modified,
   e_FileUpdate_AttrModified,
   e_FileUpdate_Linked,
   e_FileUpdate_Renamed,
   e_FileUpdate_Revoked,
};
Ai nevoie de support? Contacteaza-ma!
Contact:
Discord: Trebuie să fii logat sau înregistrat pentru a vedea acest link.
Skype: nonamedragos

Conectat
Avatar utilizator
Sherlock
Membru Club
Membru Club
Mesaje: 548
Membru din: 21 Feb 2018
Reputație: Nume anterior: .Valy., Vettel
Membru Club ( 16 apr - 16 mai )
Mulțumiri acordate: 21
Mulțumiri primite: 30

Re: Eroare compilare Offline Shop

Mesajde Sherlock » Astăzi, , 11:18

Coș!
Inactiv de 3 zile !


Înapoi la “Arhivă Probleme şi Întrebări”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: AdiArabu, bunicapetarda, F4NTOM4, Martinez-Work, Simplw, urloiudenis, Z3ulAnormal și 32 vizitatori