Jump to content
×
×
  • Create New...
  • 0

Problème exp pet table


blouh

Question

[Message d'introduction]

 

Version des files : 2016 by TeamFE V3

Domaine (Base de données, Core, etc.) : Source

Votre niveau (débutant, intermédiaire, avancé) : Débutant Moins

 

Description du problème : [main] Impossibile caricare la tabella exp valore non valido

Comment reproduire le problème : sh start.sh sur les files de la Team FE

Recherches et tests effectué : remplacer le chemin de exppettable.txt dans le fichier main.cpp

Résultat des recherches et tests : Même erreur

Message d'erreur, capture d'écran

La partie du fichier main.cpp en question : 

 

#ifdef NEW_PET_SYSTEM
std::string temp_exp_line;
std::ifstream exppet_table_open("/share/locale/france/exppettable.txt");
/*if (!exp_table_open.is_open())
return 0;*/

 

Edit : A la compilation du main.cpp j'ai ça (Le fichier se compile quand même) : 

 

compile main.cpp
New_PetSystem.cpp:1346:2: warning: no newline at end of file
questlua_petnew.cpp:286:2: warning: no newline at end of file
item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
New_PetSystem.cpp: In member function 'void CNewPetActor::SetExp(DWORD, int)':
New_PetSystem.cpp:326: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:326: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:335: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:335: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:345: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:346: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:366: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:369: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:372: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:378: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:379: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp:390: warning: comparison between signed and unsigned integer expressions
New_PetSystem.cpp: In member function 'DWORD CNewPetActor::Summon(const char*, CItem*, bool)':
New_PetSystem.cpp:534: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
New_PetSystem.cpp:534: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
New_PetSystem.cpp: In member function 'virtual bool CNewPetActor::_UpdateFollowAI()':
New_PetSystem.cpp:650: warning: unused variable 'bDoMoveAlone'
New_PetSystem.cpp: In member function 'CNewPetActor* CNewPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
New_PetSystem.cpp:1251: warning: unused variable 'petVID'
questlua_petnew.cpp: In function 'int quest::newpet_increaseskill(lua_State*)':
questlua_petnew.cpp:135: warning: NULL used in arithmetic
questlua_petnew.cpp: In function 'int quest::newpet_increaseevolution(lua_State*)':
questlua_petnew.cpp:155: warning: NULL used in arithmetic
questlua_petnew.cpp: In function 'int quest::newpet_get_level(lua_State*)':
questlua_petnew.cpp:174: warning: NULL used in arithmetic
questlua_petnew.cpp: In function 'int quest::newpet_get_evo(lua_State*)':
questlua_petnew.cpp:194: warning: NULL used in arithmetic
questlua_petnew.cpp: In function 'int quest::newpet_restore_pet(lua_State*)':
questlua_petnew.cpp:213: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
questlua_petnew.cpp:213: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
../../../Extern/include/cryptopp/misc.h: At global scope:
../../../Extern/include/cryptopp/misc.h:548: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used
main.cpp: In function 'int main(int, char**)':
main.cpp:559: warning: unused variable 'tmppet_exp'
linking ../game_r40250_32....
linking ../game_r40250_32_striped
[email protected]:/usr/src/mainline/Srcs/Server/game/src #

 

Cordialement. 

 

En postant ma demande d'aide, j'affirme avoir lu et accepté le règlement des demandes d'aides.

Link to comment
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0
  • Administrateur

Bonjour ?

 

Selon moi, tu as un fais un lien dit absolu, ça sera toujours la même erreur.

Laisse simplement "exppettable.txt" puis recompile.

Et tu mets exppettable.txt dans le même dossier que le game.

 

Si me trompe, quelqu'un te dira quoi faire :)

Link to comment
  • 0
  • Bot

Normal c'est std::ifstream exppet_table_open("/usr/metin2/share/locale/france/exppettable.txt");

et non

std::ifstream exppet_table_open("share/locale/france/exppettable.txt");

 

Enfin il faut que ça corresponde exactement au même chemin, si tes files s'appellent glsbkf tu mets glbskf à la place de metin2

090100logo.png 090149logo-4-bis.png

Link to comment
Guest
This topic is now closed to further replies.


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.