Aller au contenu
Top-Metin2.org - Vous êtes à la recherche d'un serveur Metin 2 ? ×
×
×
  • Créer...
  • 0

Compilation game


XDarkKillerX

Question

Bonsoir, je me suis enfin décidé à m'intéresser à ces fameuses fucking sources et bien sûr à peine commencé j'ai déjà des erreurs *-*

 

J'utilise la VM proposée dans le tuto de Calypso avec sources + FreeBSD inclus, un truc fort bien au passage ^^

J'ai installé les choses suivantes : gmake, makedepend, devil et g++ (le 48 je crois mais j'ai cru comprendre qu'on s'en foutait un peu surtout dans mon cas où ma VM est neutre.)

 

Ensuite j'ai modifié le makefile (toujours dans le tuto de Calypso), un simple remplacement de contenu.

 

Juste pour le fun j'ai testé de compiler le game voir si ça fonctionne (bien sûr que non, sinon c'est pas drôle :P)

 

Voilà un screen :

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Si on ignore tous les warning qui font peur, la grosse erreur semble être version.o, qui n'est pas présent dans OBJDIR/, du coup j'ai voulu supprimer les lignes le concernant dans le makefile mais quand j'ai vu que ça parlait "host, id, password", j'me suis dit NOPE pas toucher :3

 

Je me tourne donc vers vous, j'ai loupé un truc visiblement car ce fichier n'existe pas dans le répertoire annoncé :/

 

Merci d'avance,

Cordialement

Modifié par Funky Emulation
Core X - External 2 Internal
Lien vers le commentaire
Partager sur d’autres sites

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

Meilleurs contributeurs dans cette question

Jours populaires

Meilleurs contributeurs dans cette question

Messages recommandés

  • 0
  • Funkiest

Salut,

 

Il te faut ouvrir le fichier "version.cpp" qui est dans /game/src/, et remplacer le contenu du fichier par:

#include 

void WriteVersion()
{
#ifndef __WIN32__
FILE* fp = fopen("VERSION.txt", "w");

if (fp)
{
	fprintf(fp, "game svn revision: %s\n", __DATE__);
	fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__);
	fclose(fp);
}
#endif
}

 

 

 

La différence:

P4_VERSION n'est pas défini de base, il faut utiliser un script officiel pour compiler, et ça devient vraiment chiant à gérer :D

Deux solutions donc: utiliser la date, via __DATE__, pour quand même avoir des informations sur la date de compilations, voire même autre chose, comme le SVN_VERSION, ou alors supprimer tout bonnement le contenu du void.

Lien vers le commentaire
Partager sur d’autres sites

  • 0

Voilà :

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Y'a que moi pour galérer à ce point :3 J'en connais qui ont commencé tout doux avec un beau lanceur / client à jour + un beau game avec plein d'ajouts x)

Modifié par Funky Emulation
Core X - External 2 Internal
Lien vers le commentaire
Partager sur d’autres sites

  • 0

Hidden Content

    Give reaction to this post to see the hidden content.

 

Il a été plus long cette fois, mais j'ai peur de la fin quand même x)

Les warning je fais un arrêt cardiaque à chaque fois que j'en vois un ou je laisse passer ? (Sinon j'ai de quoi claquer x_x)

Modifié par Funky Emulation
Core X - External 2 Internal
Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Pour le temps de compilation, c'est normal: je t'ai fait regénérer tout le game.

 

Il faut que tu ouvre le fichier Makefile, toujours dans game/src, et que tu change la ligne:

 

TARGET = $(BINDIR)/game_r$(P4_VERSION)_$(PLATFORM)

 

Par:

 

TARGET = $(BINDIR)/game

 

Explication: Vu que P4 n'est pas défini, ça plante quand il doit créer le fichier game, du coup indiquer directement game devrait supprimer l'erreur.

Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Tu peux me refaire un screen?

 

Dans ce cas, aux alentours de la ligne 127 de ton makefile, tu devrais avoir ceci:

 

$(OBJDIR)/version.o: version.cpp
@$(CC) $(CFLAGS) -D__USER__=\"$(USER)\" -D__HOSTNAME__=\"$(HOSTNAME)\" -D__PWD__=\"$(PWD)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@
@echo compile $<

 

Il faut enlever le

-D__P4_VERSION__=\"$(P4_VERSION)\" 

Lien vers le commentaire
Partager sur d’autres sites

  • 0

Hidden Content

    Give reaction to this post to see the hidden content.

 

Là c'est bagdad :/

 

Y'a énormément de lignes comme ça, en tous cas le version.o semble ne plus poser problème mais le "error 1" correspond à quoi ? c'est vaste comme erreur mdr x)

Modifié par Funky Emulation
Core X - External 2 Internal
Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Grosso modo:

Error 1 = Il y a eu une erreur

 

Voilà, fin de l'explication :D

 

Dans ton fichier makefile, rends toi ici:

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lpng -ltiff -lmng -llcms -ljpeg

 

Et change comme ceci:

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -LIL -lpng -ltiff -lmng -llcms -ljpeg

Lien vers le commentaire
Partager sur d’autres sites

  • 0

Parce que j'avais un tas d'erreur aussi, donc bon... x)

Et le fait d'avoir réinstallé par dessus c'est pas si grave je pense, en tous cas j'arrive plus loin que la dernière fois en ayant installé tout *-*

 

Dans tous les cas impossible de compiler correctement faut toujours que j'me tape des bugs j'suis comme ça mdr ^^'

Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Re,

 

Copie/colle ce code dans un fichier build.sh, et met le dans le dossier game/src.

Ensuite, compile en utilisant un "sh build.sh"

 

echo "### Nettoyage avant compilation ###"

gmake clean
echo "### Démarrage de la compilation - GAME ###"
gmake default > ../"Rapport de compilation - GAME.txt" 2> ../"Rapport d'erreur - GAME.txt"

 

Une fois que tu auras compilé, deux fichiers (Rapport de compilation - GAME.txt et Rapport d'erreur - GAME.txt), vont se créer dans /game (si tu ne les vois pas, fais un refresh).

Il faudrait que tu nous copie/colle le contenu du rapport d'erreur, dans une pastebin par exemple: http://pastebin.com/

Lien vers le commentaire
Partager sur d’autres sites

  • 0

In file included from char.cpp:4:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7221: warning: this decimal constant is unsigned only in ISO C90
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3088: warning: comparison between signed and unsigned integer expressions
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:44:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
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:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: 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:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5087: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5159: warning: unused variable 'wDestCell'
char_item.cpp:5160: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6160: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6224: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6236: 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:7422: warning: unused variable 'itemType'
char_item.cpp:7423: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6271: warning: 'pBuff' may be used uninitialized in this function
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
In file included from PetSystem.cpp:9:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:435: warning: NULL used in arithmetic
config.cpp:459: warning: NULL used in arithmetic
config.cpp:483: warning: NULL used in arithmetic
config.cpp:505: warning: unused variable 'line'
constants.cpp:291: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
cube.cpp: In function 'bool Cube_make(CHARACTER*)':
cube.cpp:544: warning: comparison between signed and unsigned integer expressions
cube.cpp: In function 'void Cube_MakeCubeInformationText()':
cube.cpp:716: warning: unused variable 'npcVNUM'
cube.cpp: In function 'bool Cube_InformationInitialize()':
cube.cpp:783: warning: comparison between signed and unsigned integer expressions
desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
In file included from desc_manager.cpp:15:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
input_auth.cpp:467: warning: unused variable 'last'
In file included from input_db.cpp:13:
shop_manager.h:40:7: warning: no newline at end of file
input_db.cpp:2722:2: warning: no newline at end of file
In file included from input_main.cpp:16:
shop_manager.h:40:7: warning: no newline at end of file
In file included from item.cpp:22:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from item.cpp:23:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
item.cpp:2084:2: warning: no newline at end of file
In file included from item.cpp:22:
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
item.h: In constructor 'CItem::CItem(DWORD)':
item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
item.cpp:25: warning:   when initialized here
item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
item.cpp:1725: warning: unused variable 'vnum'
item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
item.cpp:1758: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
item.cpp:2014: warning: comparison between signed and unsigned integer expressions
item.cpp:2016: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
item.cpp:2038: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GetDuration()':
item.cpp:2069: warning: array subscript has type 'char'
In file included from item_manager.cpp:21:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
monarch.cpp:276:2: warning: no newline at end of file
questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
In file included from questlua_pet.cpp:11:
PetSystem.h:163:31: warning: no newline at end of file
questlua_pet.cpp:157:2: warning: no newline at end of file
In file included from questlua_npc.cpp:9:
shop_manager.h:40:7: warning: no newline at end of file
questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
questlua_npc.cpp:293: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
questlua_npc.cpp:309: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
questlua_npc.cpp:324: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
questlua_npc.cpp:340: warning: unused variable 'q'
questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
questnpc.cpp:500: warning: unused variable 'pPC'
shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
shop.cpp:576: warning: comparison between signed and unsigned integer expressions
In file included from trigger.cpp:8:
shop_manager.h:40:7: warning: no newline at end of file
utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
utils.cpp:243: warning: NULL used in arithmetic
utils.cpp:255: warning: NULL used in arithmetic
utils.cpp:269: warning: NULL used in arithmetic
version.cpp:15:3: warning: no newline at end of file
FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
In file included from ClientPackageCryptInfo.cpp:2:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
ClientPackageCryptInfo.h:50: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after
ClientPackageCryptInfo.h:48: warning:   'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt'
ClientPackageCryptInfo.cpp:9: warning:   when initialized here
../../../Extern/include/cryptopp/algparam.h: In constructor 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string, std::allocator >]':
../../../Extern/include/cryptopp/filters.h:793:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:26: warning: unused variable 'cryptopp_assert_26'
../../../Extern/include/cryptopp/algparam.h: In member function 'void CryptoPP::AlgorithmParametersTemplate::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:397:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:322: warning: unused variable 'p'
../../../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
buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
buff_on_attributes.cpp:113: warning: unused variable 'old_value'
buff_on_attributes.cpp:114: warning: unused variable 'new_value'
In file included from check_server.cpp:1:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
In file included from dragon_soul_table.cpp:4:
dragon_soul_table.h:74:7: warning: no newline at end of file
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalApplys()':
dragon_soul_table.cpp:223: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSettings()':
dragon_soul_table.cpp:283: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTables()':
dragon_soul_table.cpp:311: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGradeTables()':
dragon_soul_table.cpp:343: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:372: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStepTables()':
dragon_soul_table.cpp:397: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:427: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStrengthTables()':
dragon_soul_table.cpp:453: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHeartExtTables()':
dragon_soul_table.cpp:494: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:513: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:522: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoulExtTables()':
dragon_soul_table.cpp:545: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = std::string]':
dragon_soul_table.cpp:129:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = BYTE]':
dragon_soul_table.cpp:134:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = int]':
dragon_soul_table.cpp:201:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = float]':
dragon_soul_table.cpp:260:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = float]':
dragon_soul_table.cpp:828:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = int]'
dragon_soul_table.cpp:612:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = unsigned int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = unsigned int]'
dragon_soul_table.cpp:884:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
In file included from DragonSoul.cpp:9:
dragon_soul_table.h:74:7: warning: no newline at end of file
DragonSoul.cpp: In function 'int Gamble(std::vector >&)':
DragonSoul.cpp:19: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp:25: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(CItem*)':
DragonSoul.cpp:203: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(CItem*)':
DragonSoul.cpp:273: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
DragonSoul.cpp:350: warning: unused variable 'sum'
DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
DragonSoul.cpp:435: warning: unused variable 'dwVnum'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 3 has type 'double'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 4 has type 'double'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:555: warning: unused variable 'prob_sum'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:763: warning: unused variable 'sum'
group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
group_text_parse_tree.cpp:5: warning:   when initialized here
group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::LoadGroup(CGroupNode*)':
group_text_parse_tree.cpp:99: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, const CGroupNode::CGroupNodeRow**) const':
group_text_parse_tree.cpp:206: warning: comparison between signed and unsigned integer expressions
char_dragonsoul.cpp:143:2: warning: no newline at end of file
char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck(int)':
char_dragonsoul.cpp:91: warning: control reaches end of non-void function
In file included from shop_manager.cpp:22:
shop_manager.h:40:7: warning: no newline at end of file
shop_manager.cpp: In function 'bool ConvertToShopItemTable(CGroupNode*, TShopTableEx&)':
shop_manager.cpp:473: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = DWORD]'
shop_manager.cpp:381:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = std::basic_string, std::allocator >]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = std::string]'
shop_manager.cpp:387:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned char]':
group_text_parse_tree.h:136:   instantiated from 'bool CGroupNode::GetValue(size_t, const std::string&, T&) const [with T = BYTE]'
shop_manager.cpp:442:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
shopEx.cpp: In member function 'virtual int CShopEx::Buy(CHARACTER*, BYTE)':
shopEx.cpp:159: warning: comparison between signed and unsigned integer expressions
item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
OBJDIR/MarkImage.o: In function `CGuildMarkImage::GetData(unsigned int, unsigned int, unsigned int, unsigned int, void*)':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:128: undefined reference to `ilBindImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:129: undefined reference to `ilCopyPixels'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::PutData(unsigned int, unsigned int, unsigned int, unsigned int, void*)':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:122: undefined reference to `ilBindImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:123: undefined reference to `ilSetPixels'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Save(char const*)':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:48: undefined reference to `ilEnable'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:49: undefined reference to `ilBindImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:51: undefined reference to `ilSave'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Create()':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:43: undefined reference to `ilGenImages'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Destroy()':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:34: undefined reference to `ilDeleteImages'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Load(char const*)':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:92: undefined reference to `ilBindImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:93: undefined reference to `ilEnable'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:94: undefined reference to `ilOriginFunc'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:96: undefined reference to `ilLoad'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:102: undefined reference to `ilGetInteger'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:108: undefined reference to `ilGetInteger'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:114: undefined reference to `ilConvertImage'
OBJDIR/MarkImage.o: In function `CGuildMarkImage::Build(char const*)':
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:64: undefined reference to `ilBindImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:65: undefined reference to `ilEnable'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:66: undefined reference to `ilOriginFunc'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:71: undefined reference to `ilTexImage'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:79: undefined reference to `ilEnable'
/usr/src/mainline/Srcs/Server/game/src/MarkImage.cpp:81: undefined reference to `ilSave'
OBJDIR/main.o: In function `main':
/usr/src/mainline/Srcs/Server/game/src/main.cpp:456: undefined reference to `ilInit'
gmake: *** [../game] Error 1

 

J'ai copié la dedans c'est la même non ? x)

main.o qui pose problème, celui ci existe en revanche :)

Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Non, ce qui est marqué est trompeur:

 

/usr/src/mainline/Srcs/Server/game/src/main.cpp:456: undefined reference to `ilInit'

 

Seule la partie: "undefined reference to 'ilinit'" nous intéresse.

Cela veut dire qu'il ne trouve pas la librairie qui "contient" les procédures citées au-dessus (ilBindImage, ilEnable, etc...).

 

J'ai fait une petite erreur de frappe: quand je t'ai dis d'ajouter "-LIL", c'est en fait "-lIL" qu'il fallait mettre.

Lien vers le commentaire
Partager sur d’autres sites

  • 0
  • Funkiest

Saches que les serveurs officiels tournent avec ces warnings (pas erreurs, ça port à confusion ^^ ):

 

Une erreur, ça arrête presque net la compilation en cours, parce que le code écrit est juste faux.

Un warning, c'est le compilateur qui t'avertit que ce que tu as écrit dans le code peut créer des problèmes dans ton programme, sans savoir ce qu'il s'y passe!

 

Exemple:

Tu met des nombres de 1 à 10 dans une variable de type float.

Tu bascule le contenu de cette variable dans une autre variable, qui elle est en int.

 

Un float, ça va de      3.4*10^-38     à       3.4*10^38

Un int, ça va de    -2 147 483 648    à    2 147 483 647

 

Eh bah le compilateur va te dire que tu risques de perdre des données, vu que le int est "plus petit" que le float.

Toi, tu sais que ça va marcher, parce que ton nombre de 0 à 10, il n'ira JAMAIS vers les limites des deux types.

Le compilateur, lui, il le sait pas.

 

 

 

 

Importants au point de faire une fixation sur leur suppression, un par un s'il le faut? Non.

Négligeable? Non plus.

 

Certains t'indiquent simplement qu'il n'y a pas de ligne vierge à la fin d'un fichier, d'autres te préviennent d'une possible perte de précision/données à cause d'une attribution de valeur à une variable, etc...

Tu peux les corriger sans soucis en les tapant sur Internet, à toi de choisir si tu veux le faire ou pas :)

Lien vers le commentaire
Partager sur d’autres sites

  • 0

D'accord merci beaucoup en tous cas pour ces explications c'est vrai que j'aurais des tonnes de questions au sujet des sources mais je pense revenir dans aide / support dans très peu de temps concernant le rapport game / lanceur client que je n'ai pas tout à fait saisi.

 

Ayant le lanceur que Liberty à partagé, je peux faire des petites modif avec mon game et tourner avec ça ? A moins qu'il y ai encore une histoire de clé mais j'avais cru comprendre que non :o

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. 37
    2. 21

      Metin2 en 2020 peut-on en parler?

    3. 0

      METIN2Project

    4. 3

      Ressources - UnPack - Metin2 Client - Officiel

    5. 0

      Barre des tâches d'argent étendue

    6. 16

      Redémarrage automatique des channels

    7. 16

      Multi Logo GM / SGM / GA

  • En ligne récemment

    • Aucun utilisateur enregistré regarde cette page.

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.