- Katılım
- 7 May 2016
- Konular
- 2
- Mesajlar
- 24
- Çözüm
- 1
- Online süresi
- 4d 16h
- Reaksiyon Skoru
- 5
- Altın Konu
- 0
- TM Yaşı
- 10 Yıl 1 Ay 1 Gün
- Başarım Puanı
- 72
- MmoLira
- 1,707
- DevLira
- 0
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
@krokogames
//Svn/Server/game/src/priv_manager.cpp
// 1.0.) Find this:
Kod:static const char * GetEmpireName(int priv) { return LC_TEXT(c_apszEmpireNames[priv]); } static const char * GetPrivName(int priv) { return LC_TEXT(c_apszPrivNames[priv]); }
// 1.1.) Replace with this:
Kod:static const char * GetEmpireName(int priv) { return LC_TEXT(TRANSLATE_LANGUAGE, c_apszEmpireNames[priv]); } static const char * GetPrivName(int priv) { return LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[priv]); }
//Svn/Server/game/src/start_position.h
// 2.0.) Find this:
Kod:inline const char* EMPIRE_NAME( BYTE e) { return LC_TEXT(g_nation_name[e]); }
// 2.1.) Replace with this:
Kod:inline const char* EMPIRE_NAME( BYTE e) { return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]); }
//Svn/Server/game/src/char_item.cpp
// 3.0.) Find this:
Kod:#define VERIFY_MSG(exp, msg) \ if (true == (exp)) { \ ChatPacket(CHAT_TYPE_INFO, LC_TEXT(msg)); \ return false; \ }
// 3.1.) Replace with this:
Kod:#define VERIFY_MSG(exp, msg) \ if (true == (exp)) { \ ChatPacket(CHAT_TYPE_INFO, LC_TEXT(TRANSLATE_LANGUAGE,msg)); \ return false; \ }
thanks now
compiling BattleArena.cpp
In file included from BattleArena.cpp:5:
./start_position.h:16:40: error: too many arguments provided to function-like
macro invocation
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
In file included from BattleArena.cpp:5:
./start_position.h:16:12: error: use of undeclared identifier 'LC_TEXT'
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
BattleArena.cpp:103:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:103:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:110:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:110:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:120:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:120:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:142:49: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C1><U+07FE><D3> <C1><A6><B4>ܿ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:142:21: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TR...
^
BattleArena.cpp:151:50: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:151:22: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC...
^
BattleArena.cpp:164:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:164:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:165:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C0><E1><BD><C3> <C8><C4> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:165:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:190:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:190:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:191:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "30<BA><D0> <B3><BB><B7><CE> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
- Katılım
- 19 Ara 2019
- Konular
- 2
- Mesajlar
- 26
- Çözüm
- 1
- Online süresi
- 15h 18m
- Reaksiyon Skoru
- 12
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 5 Ay 21 Gün
- Başarım Puanı
- 43
- MmoLira
- 197
- DevLira
- 3
Replace your locale.cpp and h to in @Rakancito archivesthanks now
compiling BattleArena.cpp
In file included from BattleArena.cpp:5:
./start_position.h:16:40: error: too many arguments provided to function-like
macro invocation
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
In file included from BattleArena.cpp:5:
./start_position.h:16:12: error: use of undeclared identifier 'LC_TEXT'
return LC_TEXT(TRANSLATE_LANGUAGE, g_nation_name[e]);
^
BattleArena.cpp:103:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:103:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:110:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:110:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:120:50: error: too many arguments provided to function-like
macro invocation
...BroadcastNotice(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:120:22: error: use of undeclared identifier 'LC_TEXT'
BroadcastNotice(LC_TEXT(TRANSLAT...
^
BattleArena.cpp:142:49: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C1><U+07FE><D3> <C1><A6><B4>ܿ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:142:21: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TR...
^
BattleArena.cpp:151:50: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:151:22: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC...
^
BattleArena.cpp:164:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:164:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:165:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<C0><E1><BD><C3> <C8><C4> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:165:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:190:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "<B8><F3><BD><BA><C5>͵<E9><C0>...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
BattleArena.cpp:190:20: error: use of undeclared identifier 'LC_TEXT'
SendNoticeMap(LC_TEXT(TRANSLATE_...
^
BattleArena.cpp:191:48: error: too many arguments provided to function-like
macro invocation
...SendNoticeMap(LC_TEXT(TRANSLATE_LANGUAGE, "30<BA><D0> <B3><BB><B7><CE> ...
^
./locale.hpp:12:9: note: macro 'LC_TEXT' defined here
#define LC_TEXT(str) locale_find(str)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
- Katılım
- 29 Haz 2019
- Konular
- 482
- Mesajlar
- 2,156
- Çözüm
- 182
- Reaksiyon Skoru
- 1,087
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 11 Ay 14 Gün
- Başarım Puanı
- 212
- MmoLira
- 2,582
- DevLira
- 33
Thanks.
- Katılım
- 19 Ara 2019
- Konular
- 2
- Mesajlar
- 26
- Çözüm
- 1
- Online süresi
- 15h 18m
- Reaksiyon Skoru
- 12
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 5 Ay 21 Gün
- Başarım Puanı
- 43
- MmoLira
- 197
- DevLira
- 3
@krokogames
and dont forget this:
Svn/server/game/src/cmd_gm.cpp
1.) Find this:
2.) Replace with this:
and dont forget this:
Svn/server/game/src/cmd_gm.cpp
1.) Find this:
Kod:
if (iByEmpire)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for empire : %d", LC_TEXT(c_apszPrivNames[i]), iByEmpire);
if (iByGuild)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for guild : %d", LC_TEXT(c_apszPrivNames[i]), iByGuild);
if (iByPlayer)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for player : %d", LC_TEXT(c_apszPrivNames[i]), iByPlayer);
2.) Replace with this:
Kod:
if (iByEmpire)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for empire : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByEmpire);
if (iByGuild)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for guild : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByGuild);
if (iByPlayer)
ch->ChatPacket(CHAT_TYPE_INFO, "%s for player : %d", LC_TEXT(TRANSLATE_LANGUAGE, c_apszPrivNames[i]), iByPlayer);
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 4
- Görüntüleme
- 95
- Cevaplar
- 9
- Görüntüleme
- 512
- Cevaplar
- 0
- Görüntüleme
- 232
- Cevaplar
- 3
- Görüntüleme
- 80



