Aller au contenu
Top-Metin2.org - Vous êtes à la recherche d'un serveur Metin 2 ? ×
×
×
  • Créer...
  • 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
root@host:/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.

Lien vers le commentaire
Partager sur d’autres sites

  • Réponses 3
  • Créé
  • Dernière réponse

Meilleurs contributeurs dans cette question

Jours populaires

Meilleurs contributeurs dans cette question

3 réponses à cette question

Messages recommandés

  • 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 :)

Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Robot

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

french_banner.gif

Lien vers le commentaire
Partager sur d’autres sites

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.


  • brilliantdiscord_widget
  • Flux d'Activité

    1. 6

      problème de connexion à mon serveur local (je suis débutant dans ce genre d'entreprise )

    2. 2

      problème de lancement serveur

    3. 9
    4. 0

      [PVM/PVP] ATLAX2 - EASY PLAY

    5. 2

      problème de lancement serveur

Information importante

Conditions d’utilisation / Politique de confidentialité / Règles / Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.