Samurai féle Offlineshop hiba.

Indította Crysis2, 2018-07-16, 23:01:31

Sziasztok.

Az offliine shopos dolgokat bele raktam forrásba. (Db lefordul)
Viszont a game-nél az utolsó fázisnál nem buildeli le.

Az alábbi hibát kapom:

OBJDIR/char.o: In function `CHARACTER::DestroyOfflineShop()':
/usr/src/mainline/Srcs/Server/game/src/char.cpp:7738: undefined reference to `COfflineShop::RemoveAllGuest()'
OBJDIR/char.o: In function `offline_shop_update_event(boost::intrusive_ptr<event>, long)':
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4518: undefined reference to `g_bOfflineShopSaveTime'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4509: undefined reference to `COfflineShopManager::Giveback(CHARACTER*)'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4511: undefined reference to `COfflineShopManager::DestroyOfflineShop(CHARACTER*, unsigned int, bool)'
OBJDIR/char.o: In function `CHARACTER::SetProto(CMob const*)':
/usr/src/mainline/Srcs/Server/game/src/char.cpp:2026: undefined reference to `COfflineShopManager::FindMyOfflineShop(unsigned int)'
OBJDIR/char.o: In function `CHARACTER::Disconnect(char const*)':
/usr/src/mainline/Srcs/Server/game/src/char.cpp:1354: undefined reference to `COfflineShop::RemoveGuest(CHARACTER*)'
OBJDIR/char.o: In function `CHARACTER::OpenMyOfflineShop(char const*, SShopItemTable*, unsigned char, unsigned char)':
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4282: undefined reference to `g_bOfflineShopMapAllowLimit'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4293: undefined reference to `g_bNeedItem'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4306: undefined reference to `g_bNeedMoney'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4308: undefined reference to `g_dwNeedMoney'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4284: undefined reference to `offlineshop_map_allow_find(int)'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4259: undefined reference to `COfflineShopManager::Giveback2(CHARACTER*)'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4295: undefined reference to `g_iItemVnum'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4296: undefined reference to `g_bItemCount'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4298: undefined reference to `g_iItemVnum'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4299: undefined reference to `g_bItemCount'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4428: undefined reference to `COfflineShopManager::CreateOfflineShop(CHARACTER*, unsigned int)'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4463: undefined reference to `g_bNeedItem'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4481: undefined reference to `g_bNeedMoney'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4482: undefined reference to `g_dwNeedMoney'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4465: undefined reference to `g_iItemVnum'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4473: undefined reference to `g_bItemCount'
/usr/src/mainline/Srcs/Server/game/src/char.cpp:4476: undefined reference to `g_bItemCount'
OBJDIR/input_db.o: In function `CInputDB::Boot(char const*)':
/usr/src/mainline/Srcs/Server/game/src/input_db.cpp:1041: undefined reference to `g_bEnableRespawnOfflineShop'
/usr/src/mainline/Srcs/Server/game/src/input_db.cpp:1083: undefined reference to `COfflineShopManager::CreateOfflineShop(CHARACTER*, unsigned int)'
OBJDIR/input_main.o: In function `CInputMain::OfflineShop(CHARACTER*, char const*, unsigned int)':
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1187: undefined reference to `COfflineShopManager::WithdrawMoney(CHARACTER*, unsigned int)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1177: undefined reference to `COfflineShopManager::RefreshMoney(CHARACTER*)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1172: undefined reference to `COfflineShopManager::Refresh(CHARACTER*)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1139: undefined reference to `COfflineShopManager::DestroyOfflineShop(CHARACTER*, unsigned int, bool)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1167: undefined reference to `COfflineShopManager::ChangePrice(CHARACTER*, unsigned char, unsigned int)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1157: undefined reference to `COfflineShopManager::RemoveItem(CHARACTER*, unsigned char)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1147: undefined reference to `COfflineShopManager::AddItem(CHARACTER*, unsigned char, unsigned char, int)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1134: undefined reference to `COfflineShopManager::ChangeOfflineShopTime(CHARACTER*, unsigned char)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1124: undefined reference to `COfflineShopManager::Buy(CHARACTER*, unsigned char)'
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:1115: undefined reference to `COfflineShopManager::StopShopping(CHARACTER*)'
OBJDIR/input_main.o: In function `CInputMain::Whisper(CHARACTER*, char const*, unsigned int)':
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:321: undefined reference to `CHARACTER::SetLastPMPulse()'
OBJDIR/main.o: In function `start(int, char**)':
/usr/src/mainline/Srcs/Server/game/src/main.cpp:715: undefined reference to `offlineshop_config_init()'
OBJDIR/main.o: In function `main':
/usr/src/mainline/Srcs/Server/game/src/main.cpp:393: undefined reference to `COfflineShopManager::COfflineShopManager()'
/usr/src/mainline/Srcs/Server/game/src/main.cpp:609: undefined reference to `COfflineShopManager::~COfflineShopManager()'
/usr/src/mainline/Srcs/Server/game/src/main.cpp:609: undefined reference to `COfflineShopManager::~COfflineS


Ilyenkor mit kellene csinálni hogy leforduljon? :D
Válaszotokat előre is köszi!

Makefile-ba beírtad az offline shopos új cpp-ket?

Beleírtam, viszont még így is az alábbi hibát kapom:

linking ../game_r40250_32....
OBJDIR/input_main.o: In function `CInputMain::Whisper(CHARACTER*, char const*, u                nsigned int)':
/usr/src/mainline/Srcs/Server/game/src/input_main.cpp:321: undefined reference t                o `CHARACTER::SetLastPMPulse()'
gmake: *** [../game_r40250_32] Error 1
root@host:/usr/src/mainline/Srcs/Server/game/src # linking ../game_r40250_32....
linking: Command not found.
root@host:/usr/src/mainline/Srcs/Server/game/src # OBJDIR/input_main.o: In function `CInputMain::Whisper(CHARACTER*, char const*, u                nsigned int)':
Unmatched `.
root@host:/usr/src/mainline/Srcs/Server/game/src # /usr/src/mainline/Srcs/Server/game/src/input_main.cpp:321: undefined reference t                o `CHARACTER::SetLastPMPulse()'
Unmatched `.
root@host:/usr/src/mainline/Srcs/Server/game/src # gmake: *** [../game_r40250_32] Error 1
gmake:: Too many arguments.
root@host:/usr/src/mainline/Srcs/Server/game/src #
root@host:/usr/src/mainline/Srcs/Server/game/src # root@host:/usr/src/mainline/Srcs/Server/game/src # linking ../game_r40250_32....

Próbálj egy gmake clean-t mert nem ír nagyon konkrét hibát.

2018-07-16, 23:50:38 #4 Utolsó szerkesztés: 2018-07-16, 23:53:36 Szerző: Crysis2
In file included from offlineshop_manager.cpp:29:
offlineshop_config.h:19:7: warning: no newline at end of file
compile offlineshop_config.cpp
In file included from offlineshop_config.cpp:7:
offlineshop_config.h:19:7: warning: no newline at end of file
offlineshop_config.cpp:239:2: warning: no newline at end of file
compile minilzo.c
linking /usr/home/metin2/share/bin//game_r40250_32....
/usr/bin/ld: cannot open output file /usr/home/metin2/share/bin//game_r40250_32: No such file or directory
gmake: *** [/usr/home/metin2/share/bin//game_r40250_32] Error 1


Továbbra sem fordítja.

2018-07-17, 00:03:45 #5 Utolsó szerkesztés: 2018-07-17, 00:09:10 Szerző: K3zX
Idéz/usr/bin/ld: cannot open output file /usr/home/metin2/share/bin//game_r40250_32: No such file or directory
gmake: *** [/usr/home/metin2/share/bin//game_r40250_32] Error 1

Ez már szerintem nem az offline shop miatt van.
/usr/home/metin2/share/bin//
Tehát úgy írtad meg a MakeFile-od (vagy a készítője) hogy ide tegye. Miért van a végén két // ?
És létezik amúgy ez az elérés? Lehet ha nem, magától nincs engedélye létrehozni.

Reggel még próbálok valamit kezdeni hogy lefordítsa,ha mégse lenne jó még írok :S. Köszi a sok segítséget!