Intrebare Cube_renewal

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
WinrraR
Nivel 5

Nivel 5
Mesaje: 799
Membru din: 14 Mai 2017, 14:50
Server: Metin2BW
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 84  
Medalii

*Problemă/Întrebare: Ca sa pot pune cube_renewal trebuie sa scot tot cube normal?
Tipologie server: -
*Resursă folosită: Cube Renewal
*ServerFiles utilizat: -
*Syserr:

Cod: Selectaţi tot

.obj/char_battle.o: In function `CHARACTER::DeathPenalty(unsigned char)':
/usr/src/Acolo/Colossus2/game/src/char_battle.cpp:314: undefined reference to `Cube_close(CHARACTER*)'
.obj/char_battle.o: In function `CHARACTER::Dead(CHARACTER*, bool)':
/usr/src/Acolo/Colossus2/game/src/char_battle.cpp:1585: undefined reference to `Cube_close(CHARACTER*)'
.obj/cmd_general.o: In function `do_cube(CHARACTER*, char const*, int, int)':
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3088: undefined reference to `Cube_request_material_info(CHARACTER*, int, int)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3098: undefined reference to `Cube_open(CHARACTER*)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3133: undefined reference to `Cube_make(CHARACTER*)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3106: undefined reference to `Cube_show_list(CHARACTER*)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3102: undefined reference to `Cube_close(CHARACTER*)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3116: undefined reference to `Cube_add_item(CHARACTER*, int, int)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3126: undefined reference to `Cube_delete_item(CHARACTER*, int)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3077: undefined reference to `Cube_request_result_list(CHARACTER*)'
/usr/src/Acolo/Colossus2/game/src/cmd_general.cpp:3137: undefined reference to `Cube_make(CHARACTER*)'
.obj/cmd_gm.o: In function `do_reload(CHARACTER*, char const*, int, int)':
/usr/src/Acolo/Colossus2/game/src/cmd_gm.cpp:2386: undefined reference to `Cube_init()'
.obj/input_db.o: In function `CInputDB::Boot(char const*)':
/usr/src/Acolo/Colossus2/game/src/input_db.cpp:1099: undefined reference to `Cube_InformationInitialize()'
.obj/main.o: In function `main':
/usr/src/Acolo/Colossus2/game/src/main.cpp:472: undefined reference to `Cube_init()'
collect2: error: ld returned 1 exit status
gmake: *** [../game_r41022] Error 1
[/spoiler]
Poză: -
*Detalii suplimentare: Mentionez ca in sysser sunt errorile ca nu este pus in makefille nici cube_renewal nici cube.cpp, pentru ca daca las cube.cpp in makefile primes sysser de la de la Cube_data ca nu e definit, daca il scot si pun cube_renewal.cpp la fel primesc erroare, nu inteleg :-w
Afișează semnătura
Avatar utilizator
Kidro
Membru Club

Membru Club
Mesaje: 2487
Membru din: 29 Aug 2019, 16:49
Aprecieri: 331  
Mulţumiri: 5190  
Discord: Copiază ID
Medalii

Scoți din makefile cube.cpp și faci tutorialul ala

[ Postat de pe Android ] Imagine
Avatar utilizator
WinrraR
Nivel 5

Nivel 5
Mesaje: 799
Membru din: 14 Mai 2017, 14:50
Server: Metin2BW
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 84  
Medalii

M. Daniel scrie: ↑13 Aug 2020, 13:01 Scoți din makefile cube.cpp și faci tutorialul ala

[ Postat de pe Android ] Imagine
exact ce am spus, am facut chestia asta, am adaugat si in makefile cube_renewal.cpp si degeaba (imi da erroare dupa la cube_renewal.cpp) daca il scot si pe ala din makefile aveti erroarea mai sus.
EDIT: erroarea de la cuberenewall.cpp :

Cod: Selectaţi tot

cuberenewal.cpp:18:20: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
 static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
                    ^
cuberenewal.cpp:18:38: error: template argument 1 is invalid
 static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
                                      ^
cuberenewal.cpp:18:38: error: template argument 2 is invalid
cuberenewal.cpp:18:52: error: invalid type in declaration before ';' token
 static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
                                                    ^
cuberenewal.cpp:20:21: error: 'CUBE_RENEWAL_VALUE' was not declared in this scope
 typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
                     ^
cuberenewal.cpp:20:39: error: template argument 1 is invalid
 typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
                                       ^
cuberenewal.cpp:20:39: error: template argument 2 is invalid
cuberenewal.cpp:20:57: error: invalid type in declaration before ';' token
 typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
                                                         ^
cuberenewal.cpp:29:2: error: 'CUBE_RENEWAL_VALUE' does not name a type
  CUBE_RENEWAL_VALUE   reward;       // º¸»ó?? ¹¹³?
  ^
compiling questlua_arena.cpp
compiling questlua_ba.cpp
cuberenewal.cpp: In function 'bool FN_check_valid_npc(WORD)':
cuberenewal.cpp:57:20: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                    ^
cuberenewal.cpp:57:38: error: template argument 1 is invalid
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                      ^
cuberenewal.cpp:57:38: error: template argument 2 is invalid
cuberenewal.cpp:57:50: error: invalid type in declaration before 'iter'
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                  ^
cuberenewal.cpp:57:50: error: invalid use of qualified-name '::iterator'
cuberenewal.cpp:57:50: error: expected ';' before 'iter'
cuberenewal.cpp:57:50: error: 'iter' was not declared in this scope
cuberenewal.cpp:57:70: error: request for member 'begin' in 's_cube_proto', which is of non-class type 'int'
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                                      ^
cuberenewal.cpp:57:100: error: request for member 'end' in 's_cube_proto', which is of non-class type 'int'
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                                                                    ^
cuberenewal.cpp:57:105: error: expected ')' before ';' token
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                                                                         ^
cuberenewal.cpp:57:107: error: 'iter' was not declared in this scope
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                                                                           ^
cuberenewal.cpp:57:114: error: expected ';' before ')' token
  for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
                                                                                                                  ^
cuberenewal.cpp: At global scope:
cuberenewal.cpp:67:33: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
 static bool FN_check_cube_data (CUBE_RENEWAL_DATA *cube_data)
                                 ^
cuberenewal.cpp:67:52: error: 'cube_data' was not declared in this scope
 static bool FN_check_cube_data (CUBE_RENEWAL_DATA *cube_data)
                                                    ^
cuberenewal.cpp:68:1: error: expected ',' or ';' before '{' token
 {
 ^

[/spoiler]
Afișează semnătura
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Deci problema e rezolvata sau? Ca sa stim si noi ce sa facem.
Avatar utilizator
WinrraR
Nivel 5

Nivel 5
Mesaje: 799
Membru din: 14 Mai 2017, 14:50
Server: Metin2BW
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 84  
Medalii

Vaynz scrie: ↑18 Aug 2020, 10:43 Deci problema e rezolvata sau? Ca sa stim si noi ce sa facem.
o data ce compilezi sursa iti da erroare la cube_renewal.cpp direct adica nu la ce este modificat
cuberenewal.cpp:18:20: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
^
cuberenewal.cpp:18:38: error: template argument 1 is invalid
static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
^
cuberenewal.cpp:18:38: error: template argument 2 is invalid
cuberenewal.cpp:18:52: error: invalid type in declaration before ';' token
static std::vector<CUBE_RENEWAL_DATA*> s_cube_proto;
^
cuberenewal.cpp:20:21: error: 'CUBE_RENEWAL_VALUE' was not declared in this scope
typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
^
cuberenewal.cpp:20:39: error: template argument 1 is invalid
typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
^
cuberenewal.cpp:20:39: error: template argument 2 is invalid
cuberenewal.cpp:20:57: error: invalid type in declaration before ';' token
typedef std::vector<CUBE_RENEWAL_VALUE> TCubeValueVector;
^
cuberenewal.cpp:29:2: error: 'CUBE_RENEWAL_VALUE' does not name a type
CUBE_RENEWAL_VALUE reward; // º¸»ó?? ¹¹³?
^
compiling questlua_arena.cpp
compiling questlua_ba.cpp
cuberenewal.cpp: In function 'bool FN_check_valid_npc(WORD)':
cuberenewal.cpp:57:20: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:38: error: template argument 1 is invalid
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:38: error: template argument 2 is invalid
cuberenewal.cpp:57:50: error: invalid type in declaration before 'iter'
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:50: error: invalid use of qualified-name '::iterator'
cuberenewal.cpp:57:50: error: expected ';' before 'iter'
cuberenewal.cpp:57:50: error: 'iter' was not declared in this scope
cuberenewal.cpp:57:70: error: request for member 'begin' in 's_cube_proto', which is of non-class type 'int'
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:100: error: request for member 'end' in 's_cube_proto', which is of non-class type 'int'
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:105: error: expected ')' before ';' token
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:107: error: 'iter' was not declared in this scope
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp:57:114: error: expected ';' before ')' token
for ( std::vector<CUBE_RENEWAL_DATA*>::iterator iter = s_cube_proto.begin(); iter != s_cube_proto.end(); iter++ )
^
cuberenewal.cpp: At global scope:
cuberenewal.cpp:67:33: error: 'CUBE_RENEWAL_DATA' was not declared in this scope
static bool FN_check_cube_data (CUBE_RENEWAL_DATA *cube_data)
^
cuberenewal.cpp:67:52: error: 'cube_data' was not declared in this scope
static bool FN_check_cube_data (CUBE_RENEWAL_DATA *cube_data)
^
cuberenewal.cpp:68:1: error: expected ',' or ';' before '{' token
{
^
Nu inteleg de la ce...
Afișează semnătura
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Ai facut include la cuberenewal.cpp?
Avatar utilizator
WinrraR
Nivel 5

Nivel 5
Mesaje: 799
Membru din: 14 Mai 2017, 14:50
Server: Metin2BW
Regat: Chunjo
Aprecieri: 377  
Mulţumiri: 84  
Medalii

Vaynz scrie: ↑18 Aug 2020, 18:50 Ai facut include la cuberenewal.cpp?
Da, degeaba
Afișează semnătura
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Refa tutorialul din nou pe sursa game
Avatar utilizator
Asky
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 1472
Membru din: 08 Oct 2014, 17:32
Regat: Chunjo
Aprecieri: 98  
Mulţumiri: 4811  
Discord: Copiază ID
 Contact:
Medalii

Arhivat! Subiect inactiv!
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
137
Răspunsuri
9
Vizualizări
671
Răspunsuri
2
Vizualizări
128

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 99 vizitatori