Jump to content

Problem with Chest View Drop


Recommended Posts

Hi, today i was try to put this system (Chest View Drop) in my sv. When i compile i get this error:

Spoiler

gmake: Warning: File `item_manager.h' has modification time 1699 s in the future
In file included from packet_info.h:4,
                 from input.h:4,
                 from desc.h:5,
                 from OXEvent.cpp:12:
packet.h:2570: error: conflicting declaration 'HEADER_CG_CHEST_DROP_INFO'
packet.h:2570: error: 'HEADER_CG_CHEST_DROP_INFO' has a previous declaration as '<anonymous enum> HEADER_CG_CHEST_DROP_INFO'
packet.h:2571: error: conflicting declaration 'HEADER_GC_CHEST_DROP_INFO'
packet.h:2571: error: 'HEADER_GC_CHEST_DROP_INFO' has a previous declaration as '<anonymous enum> HEADER_GC_CHEST_DROP_INFO'
packet.h:2574: error: redefinition of 'struct SPacketCGChestDropInfo'
packet.h:2574: error: previous definition of 'struct SPacketCGChestDropInfo'
packet.h:2577: error: invalid type in declaration before ';' token
packet.h:2577: error: conflicting declaration 'typedef int TPacketCGChestDropInfo'
packet.h:2577: error: 'TPacketCGChestDropInfo' has a previous declaration as 'typedef struct SPacketCGChestDropInfo TPacketCGChestDropInfo'
packet.h:2579: error: redefinition of 'struct SChestDropInfoTable'
packet.h:2579: error: previous definition of 'struct SChestDropInfoTable'
packet.h:2584: error: invalid type in declaration before ';' token
packet.h:2584: error: conflicting declaration 'typedef int TChestDropInfoTable'
packet.h:2584: error: 'TChestDropInfoTable' has a previous declaration as 'typedef struct SChestDropInfoTable TChestDropInfoTable'
packet.h:2586: error: redefinition of 'struct SPacketGCChestDropInfo'
packet.h:2586: error: previous definition of 'struct SPacketGCChestDropInfo'
packet.h:2590: error: invalid type in declaration before ';' token
packet.h:2590: error: conflicting declaration 'typedef int TPacketGCChestDropInfo'
packet.h:2590: error: 'TPacketGCChestDropInfo' has a previous declaration as 'typedef struct SPacketGCChestDropInfo TPacketGCChestDropInfo'
Derleniyor -> battle.cpp
gmake: *** [OBJDIR_GAME/OXEvent.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from packet_info.h:4,
                 from input.h:4,
                 from desc.h:5,
                 from arena.cpp:5:
packet.h:2570: error: conflicting declaration 'HEADER_CG_CHEST_DROP_INFO'
packet.h:2570: error: 'HEADER_CG_CHEST_DROP_INFO' has a previous declaration as '<anonymous enum> HEADER_CG_CHEST_DROP_INFO'
packet.h:2571: error: conflicting declaration 'HEADER_GC_CHEST_DROP_INFO'
packet.h:2571: error: 'HEADER_GC_CHEST_DROP_INFO' has a previous declaration as '<anonymous enum> HEADER_GC_CHEST_DROP_INFO'
packet.h:2574: error: redefinition of 'struct SPacketCGChestDropInfo'
packet.h:2574: error: previous definition of 'struct SPacketCGChestDropInfo'
packet.h:2577: error: invalid type in declaration before ';' token
packet.h:2577: error: conflicting declaration 'typedef int TPacketCGChestDropInfo'
packet.h:2577: error: 'TPacketCGChestDropInfo' has a previous declaration as 'typedef struct SPacketCGChestDropInfo TPacketCGChestDropInfo'
packet.h:2579: error: redefinition of 'struct SChestDropInfoTable'
packet.h:2579: error: previous definition of 'struct SChestDropInfoTable'
packet.h:2584: error: invalid type in declaration before ';' token
packet.h:2584: error: conflicting declaration 'typedef int TChestDropInfoTable'
packet.h:2584: error: 'TChestDropInfoTable' has a previous declaration as 'typedef struct SChestDropInfoTable TChestDropInfoTable'
packet.h:2586: error: redefinition of 'struct SPacketGCChestDropInfo'
packet.h:2586: error: previous definition of 'struct SPacketGCChestDropInfo'
packet.h:2590: error: invalid type in declaration before ';' token
packet.h:2590: error: conflicting declaration 'typedef int TPacketGCChestDropInfo'
packet.h:2590: error: 'TPacketGCChestDropInfo' has a previous declaration as 'typedef struct SPacketGCChestDropInfo TPacketGCChestDropInfo'
gmake: *** [OBJDIR_GAME/arena.o] Error 1

anyone knows to solve it? 

Link to comment
Share on other sites

hace 11 minutos, WeedHex dijo:

This attachment is not available. It may have been removed or the person who shared it may not have permission to share it to this location.

 

Ps. you post errors and file with different lines ?

Man i posted the correct file. i'll post again in rar.

This is the hidden content, please

packet.rar

  • Metin2 Dev 1
  • kekw 1
Link to comment
Share on other sites

hace 22 horas, WeedHex dijo:

System installed bad. You set things also out of #ifndef __INC_PACKET_H__ xD

Thanks, but now i get other problem

Spoiler

Game olusturuluyor -> ../game_r41105
OBJDIR_GAME/char_affect.o: In function `CHARACTER::AddAffect(unsigned int, unsigned char, long, unsigned int, long, long, bool, bool)':
/game/char_affect.cpp:557: undefined reference to `battle_end(CHARACTER*)'
OBJDIR_GAME/char_battle.o: In function `CHARACTER::Attack(CHARACTER*, unsigned char)':
/game/char_battle.cpp:227: undefined reference to `IS_SPEED_HACK(CHARACTER*, CHARACTER*, unsigned int)'
/game/char_battle.cpp:264: undefined reference to `battle_melee_attack(CHARACTER*, CHARACTER*)'
OBJDIR_GAME/char_battle.o: In function `CHARACTER::SetVictim(CHARACTER*)':
/game/char_battle.cpp:3316: undefined reference to `battle_end(CHARACTER*)'
OBJDIR_GAME/char_battle.o: In function `CFuncShoot::operator()(unsigned int)':
/game/char_battle.cpp:2941: undefined reference to `battle_is_attackable(CHARACTER*, CHARACTER*)'
/game/char_battle.cpp:3013: undefined reference to `CalcMagicDamage(CHARACTER*, CHARACTER*)'
/game/char_battle.cpp:3015: undefined reference to `NormalAttackAffect(CHARACTER*, CHARACTER*)'
/game/char_battle.cpp:2977: undefined reference to `CalcArrowDamage(CHARACTER*, CHARACTER*, CItem*, CItem*, bool)'
/game/char_battle.cpp:2982: undefined reference to `IS_SPEED_HACK(CHARACTER*, CHARACTER*, unsigned int)'
/game/char_battle.cpp:2988: undefined reference to `NormalAttackAffect(CHARACTER*, CHARACTER*)'
/game/char_battle.cpp:2986: undefined reference to `CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)'
OBJDIR_GAME/char_skill.o: In function `CHARACTER::ComputeSkillAtPosition(unsigned int, pixel_position_s const&, unsigned char)':
/game/char_skill.cpp:2201: undefined reference to `CalcAttackRating(CHARACTER*, CHARACTER*, bool)'
/game/char_skill.cpp:2169: undefined reference to `CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)'
/game/char_skill.cpp:2173: undefined reference to `CalcMagicDamage(CHARACTER*, CHARACTER*)'
/game/char_skill.cpp:2180: undefined reference to `CalcArrowDamage(CHARACTER*, CHARACTER*, CItem*, CItem*, bool)'
OBJDIR_GAME/char_skill.o: In function `CHARACTER::ComputeSkill(unsigned int, CHARACTER*, unsigned char)':
/game/char_skill.cpp:2544: undefined reference to `CalcAttackRating(CHARACTER*, CHARACTER*, bool)'
/game/char_skill.cpp:2512: undefined reference to `CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)'
/game/char_skill.cpp:2516: undefined reference to `CalcMagicDamage(CHARACTER*, CHARACTER*)'
/game/char_skill.cpp:2507: undefined reference to `CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)'
/game/char_skill.cpp:2503: undefined reference to `CalcArrowDamage(CHARACTER*, CHARACTER*, CItem*, CItem*, bool)'
/game/char_skill.cpp:2523: undefined reference to `CalcArrowDamage(CHARACTER*, CHARACTER*, CItem*, CItem*, bool)'
OBJDIR_GAME/char_skill.o: In function `FFindNearVictim::operator()(CEntity*)':
/game/char_skill.cpp:1279: undefined reference to `battle_is_attackable(CHARACTER*, CHARACTER*)'
/game/char_skill.cpp:1279: undefined reference to `battle_is_attackable(CHARACTER*, CHARACTER*)'
OBJDIR_GAME/char_skill.o: In function `FuncSplashDamage::operator()(CEntity*)':
/game/char_skill.cpp:1431: undefined reference to `battle_is_attackable(CHARACTER*, CHARACTER*)'
/game/char_skill.cpp:1476: undefined reference to `CalcAttackRating(CHARACTER*, CHARACTER*, bool)'
/game/char_skill.cpp:1575: undefined reference to `CalcBattleDamage(int, int, int)'
/game/char_skill.cpp:1635: undefined reference to `CalcAttBonus(CHARACTER*, CHARACTER*, int)'
/game/char_skill.cpp:1478: undefined reference to `CalcMeleeDamage(CHARACTER*, CHARACTER*, bool, bool)'
/game/char_skill.cpp:1483: undefined reference to `CalcArrowDamage(CHARACTER*, CHARACTER*, CItem*, CItem*, bool)'
gmake: *** [../game_r41105] Error 1

I didn't edit any of this files when i installing other system (chest view drop)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

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.