dreammaker
-
Posts
64 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by dreammaker
-
-
Only Mobs and NPC's are loading late (like lag) .what can be the problem folks ?
-
On 29.10.2016 at 2:52 PM, metin2team said:
how am I supposed to know? you should try it out.
I commented the line and disabled Lycan in source but, Lycan bonuses , books, stones and related stuff remains in game . I have to manually remove everything.
Thanks for your help
-
5 minutes ago, metin2team said:
It totally depends on the implementation.
Two options:
1. try to comment/set it to 0 in the make file.
2. try to remove it from the code(all the files).
good luck.
When I disable it from makefile will it disable all functions (item functions, weapons, bonuses, books...) related with lycan ?
-
Hi everybody. How can I completely remove (or disable ) wolfman-(lycan) from client and game source ? In my game source, there is setting in Makefile :
WOLF_ENABLE = lycanWhat should I do to disable it ? or completely remove lycan and all related stuff ?
-
Somebody Re-Upload this system pls
-
3 hours ago, .Devil. said:
I don't known, if they're the same then syserr is disabled from another place like \libthecore\include\stdafx.h or \game\src\stdafx.h, check them.
One thing, is disabled your syslog or syserr?only syserr
-
15 hours ago, .Devil. said:
Post here it. It needs to look like this: http://pastebin.com
I checked "\libthecore\include\log.h" its seems exaclty the same as your paste:
Spoiler#ifndef __INC_LIBTHECORE_LOG_H__
#define __INC_LIBTHECORE_LOG_H__#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
extern int log_init(void);
extern void log_destroy(void);
extern void log_rotate(void);// ·Î±× ·¹º§ ó¸® (·¹º§Àº bitvector·Î 󸮵ȴÙ)
extern void log_set_level(unsigned int level);
extern void log_unset_level(unsigned int level);// ·Î±× ÆÄÀÏÀ» ¾ó¸¸Å º¸°üÇϴ°¡¿¡ ´ëÇÑ ÇÔ¼ö
extern void log_set_expiration_days(unsigned int days);
extern int log_get_expiration_days(void);#ifndef __WIN32__
extern void _sys_err(const char *func, int line, const char *format, ...);
#else
extern void _sys_err(const char *func, int line, const char *format, ...);
#endif
extern void sys_log_header(const char *header);
extern void sys_log(unsigned int lv, const char *format, ...);
extern void pt_log(const char *format, ...);#ifndef __WIN32__
#define sys_err(fmt, args...) _sys_err(__FUNCTION__, __LINE__, fmt, ##args)
#else
#define sys_err(fmt, ...) _sys_err(__FUNCTION__, __LINE__, fmt, __VA_ARGS__)
#endif // __WIN32__#ifdef __cplusplus
}
#endif // __cplusplus#endif // __INC_LOG_H__
-
6 hours ago, .Devil. said:
Link your \libthecore\include\log.h
How can I do that ? .Thanks .Devil.
-
No one knows nothing about it ?
On 21.06.2016 at 2:48 AM, metin2-factory said:Look in log.c in libthecore\src\log.c, look there for _syserr function and see if it's commented.
if you have problems post it here as a file and i'll take a look.
Please help folks )
-
thanks metin2-factory. this is my log.c file:
Spoiler/*
* Filename: log.c
* Description: local log file °ü·Ã
*
* Author: ºñ¿± aka. Cronan
*/
#define __LIBTHECORE__
#include "stdafx.h"#ifndef __WIN32__
#define SYSLOG_FILENAME "syslog"
#define SYSERR_FILENAME "syserr"
#define PTS_FILENAME "PTS"
#else
#define SYSLOG_FILENAME "syslog.txt"
#define SYSERR_FILENAME "syserr.txt"
#define PTS_FILENAME "PTS.txt"
#endiftypedef struct log_file_s * LPLOGFILE;
typedef struct log_file_s LOGFILE;struct log_file_s
{
char* filename;
FILE* fp;int last_hour;
int last_day;
};LPLOGFILE log_file_sys = NULL;
LPLOGFILE log_file_err = NULL;
LPLOGFILE log_file_pt = NULL;
static char log_dir[32] = { 0, };
unsigned int log_keep_days = 3;// Internal functions
LPLOGFILE log_file_init(const char* filename, const char *openmode);
void log_file_destroy(LPLOGFILE logfile);
void log_file_rotate(LPLOGFILE logfile);
void log_file_check(LPLOGFILE logfile);
void log_file_set_dir(const char *dir);static unsigned int log_level_bits = 0;
void log_set_level(unsigned int bit)
{
log_level_bits |= bit;
}void log_unset_level(unsigned int bit)
{
log_level_bits &= ~bit;
}void log_set_expiration_days(unsigned int days)
{
log_keep_days = days;
}int log_get_expiration_days(void)
{
return log_keep_days;
}int log_init(void)
{
log_file_set_dir("./log");do
{
log_file_sys = log_file_init(SYSLOG_FILENAME, "a+");
if( NULL == log_file_sys ) break;log_file_err = log_file_init(SYSERR_FILENAME, "a+");
if( NULL == log_file_err ) break;log_file_pt = log_file_init(PTS_FILENAME, "w");
if( NULL == log_file_pt ) break;return true;
}
while( false );return false;
}void log_destroy(void)
{
log_file_destroy(log_file_sys);
log_file_destroy(log_file_err);
log_file_destroy(log_file_pt);log_file_sys = NULL;
log_file_err = NULL;
log_file_pt = NULL;
}void log_rotate(void)
{
log_file_check(log_file_sys);
log_file_check(log_file_err);
log_file_check(log_file_pt);log_file_rotate(log_file_sys);
}#ifndef __WIN32__
void _sys_err(const char *func, int line, const char *format, ...)
{
va_list args;
time_t ct = time(0);
char *time_s = asctime(localtime(&ct));char buf[1024 + 2]; // \nÀ» ºÙÀ̱â À§ÇØ..
int len;if (!log_file_err)
return;time_s[strlen(time_s) - 1] = '\0';
len = snprintf(buf, 1024, "SYSERR: %-15.15s :: %s: ", time_s + 4, func);
buf[1025] = '\0';if (len < 1024)
{
va_start(args, format);
vsnprintf(buf + len, 1024 - len, format, args);
va_end(args);
}strcat(buf, "\n");
// log_file_err ¿¡ Ãâ·Â
fputs(buf, log_file_err->fp);
fflush(log_file_err->fp);// log_file_sys ¿¡µµ Ãâ·Â
fputs(buf, log_file_sys->fp);
fflush(log_file_sys->fp);
}
#else
void _sys_err(const char *func, int line, const char *format, ...)
{
va_list args;
time_t ct = time(0);
char *time_s = asctime(localtime(&ct));char buf[1024 + 2]; // \nÀ» ºÙÀ̱â À§ÇØ..
int len;if (!log_file_err)
return;time_s[strlen(time_s) - 1] = '\0';
len = snprintf(buf, 1024, "SYSERR: %-15.15s :: %s: ", time_s + 4, func);
buf[1025] = '\0';if (len < 1024)
{
va_start(args, format);
vsnprintf(buf + len, 1024 - len, format, args);
va_end(args);
}strcat(buf, "\n");
// log_file_err ¿¡ Ãâ·Â
fputs(buf, log_file_err->fp);
fflush(log_file_err->fp);// log_file_sys ¿¡µµ Ãâ·Â
fputs(buf, log_file_sys->fp);
fflush(log_file_sys->fp);fputs(buf, stdout);
fflush(stdout);
}
#endifstatic char sys_log_header_string[33] = { 0, };
void sys_log_header(const char *header)
{
strncpy(sys_log_header_string, header, 32);
}void sys_log(unsigned int bit, const char *format, ...)
{
va_list args;if (bit != 0 && !(log_level_bits & bit))
return;if (log_file_sys)
{
time_t ct = time(0);
char *time_s = asctime(localtime(&ct));fprintf(log_file_sys->fp, sys_log_header_string);
time_s[strlen(time_s) - 1] = '\0';
fprintf(log_file_sys->fp, "%-15.15s :: ", time_s + 4);va_start(args, format);
vfprintf(log_file_sys->fp, format, args);
va_end(args);fputc('\n', log_file_sys->fp);
fflush(log_file_sys->fp);
}#ifndef __WIN32__
// log_levelÀÌ 1 ÀÌ»óÀÏ °æ¿ì¿¡´Â Å×½ºÆ®ÀÏ °æ¿ì°¡ ¸¹À¸´Ï stdout¿¡µµ Ãâ·ÂÇÑ´Ù.
if (log_level_bits > 1)
{
#endif
fprintf(stdout, sys_log_header_string);va_start(args, format);
vfprintf(stdout, format, args);
va_end(args);fputc('\n', stdout);
fflush(stdout);
#ifndef __WIN32__
}
#endif
}void pt_log(const char *format, ...)
{
va_list args;if (!log_file_pt)
return;va_start(args, format);
vfprintf(log_file_pt->fp, format, args);
va_end(args);fputc('\n', log_file_pt->fp);
fflush(log_file_pt->fp);
}LPLOGFILE log_file_init(const char * filename, const char * openmode)
{
LPLOGFILE logfile;
FILE * fp;
struct tm curr_tm;
time_t time_s;time_s = time(0);
curr_tm = *localtime(&time_s);fp = fopen(filename, openmode);
if (!fp)
return NULL;logfile = (LPLOGFILE) malloc(sizeof(LOGFILE));
logfile->filename = strdup(filename);
logfile->fp = fp;
logfile->last_hour = curr_tm.tm_hour;
logfile->last_day = curr_tm.tm_mday;return (logfile);
}void log_file_destroy(LPLOGFILE logfile)
{
if (logfile == NULL) {
return;
}if (logfile->filename)
{
free(logfile->filename);
logfile->filename = NULL;
}if (logfile->fp)
{
fclose(logfile->fp);
logfile->fp = NULL;
}free(logfile);
}void log_file_check(LPLOGFILE logfile)
{
struct stat sb;// ÆÄÀÏÀÌ ¾øÀ¸¹Ç·Î ´Ù½Ã ¿¬´Ù.
if (stat(logfile->filename, &sb) != 0 && errno == ENOENT)
{
fclose(logfile->fp);
logfile->fp = fopen(logfile->filename, "a+");
}
}void log_file_delete_old(const char *filename)
{
struct stat sb;
int num1, num2;
char buf[32];
char system_cmd[64];
struct tm new_tm;if (stat(filename, &sb) == -1)
{
perror("log_file_delete_old: stat");
return;
}if (!S_ISDIR(sb.st_mode))
return;new_tm = *tm_calc(NULL, -log_keep_days);
sprintf(buf, "%04d%02d%02d", new_tm.tm_year + 1900, new_tm.tm_mon + 1, new_tm.tm_mday);
num1 = atoi(buf);
#ifndef __WIN32__
{
struct dirent ** namelist;
int n;n = scandir(filename, &namelist, 0, alphasort);
if (n < 0)
perror("scandir");
else
{
char name[MAXNAMLEN+1];while (n-- > 0)
{
strncpy(name, namelist[n]->d_name, 255);
name[255] = '\0';free(namelist[n]);
if (*name == '.')
continue;if (!isdigit(*name))
continue;num2 = atoi(name);
if (num2 <= num1)
{
sprintf(system_cmd, "rm -rf %s/%s", filename, name);
system(system_cmd);sys_log(0, "%s: SYSTEM_CMD: %s", __FUNCTION__, system_cmd);
fprintf(stderr, "%s: SYSTEM_CMD: %s %s:%d %s:%d\n", __FUNCTION__, system_cmd, buf, num1, name, num2);
}
}
}free(namelist);
}
#else
{
WIN32_FIND_DATA fdata;
HANDLE hFind;
if ((hFind = FindFirstFile(filename, &fdata)) != INVALID_HANDLE_VALUE)
{
do
{
if (!isdigit(*fdata.cFileName))
continue;num2 = atoi(fdata.cFileName);
if (num2 <= num1)
{
sprintf(system_cmd, "del %s\\%s", filename, fdata.cFileName);
system(system_cmd);sys_log(0, "SYSTEM_CMD: %s", system_cmd);
}
}
while (FindNextFile(hFind, &fdata));
}
}
#endif
}void log_file_rotate(LPLOGFILE logfile)
{
struct tm curr_tm;
time_t time_s;
char dir[128];
char system_cmd[128];time_s = time(0);
curr_tm = *localtime(&time_s);if (curr_tm.tm_mday != logfile->last_day)
{
struct tm new_tm;
new_tm = *tm_calc(&curr_tm, -3);#ifndef __WIN32__
sprintf(system_cmd, "rm -rf %s/%04d%02d%02d", log_dir, new_tm.tm_year + 1900, new_tm.tm_mon + 1, new_tm.tm_mday);
#else
sprintf(system_cmd, "del %s\\%04d%02d%02d", log_dir, new_tm.tm_year + 1900, new_tm.tm_mon + 1, new_tm.tm_mday);
#endif
system(system_cmd);sys_log(0, "SYSTEM_CMD: %s", system_cmd);
logfile->last_day = curr_tm.tm_mday;
}if (curr_tm.tm_hour != logfile->last_hour)
{
struct stat stat_buf;
snprintf(dir, 128, "%s/%04d%02d%02d", log_dir, curr_tm.tm_year + 1900, curr_tm.tm_mon + 1, curr_tm.tm_mday);if (stat(dir, &stat_buf) != 0 || S_ISDIR(stat_buf.st_mode))
{
#ifdef __WIN32__
CreateDirectory(dir, NULL);
#else
mkdir(dir, S_IRWXU);
#endif
}sys_log(0, "SYSTEM: LOG ROTATE (%04d-%02d-%02d %d)",
curr_tm.tm_year + 1900, curr_tm.tm_mon + 1, curr_tm.tm_mday, logfile->last_hour);// ·Î±× ÆÄÀÏÀ» ´İ°í
fclose(logfile->fp);// ¿Å±ä´Ù.
#ifndef __WIN32__
snprintf(system_cmd, 128, "mv %s %s/%s.%02d", logfile->filename, dir, logfile->filename, logfile->last_hour);
#else
snprintf(system_cmd, 128, "move %s %s\\%s.%02d", logfile->filename, dir, logfile->filename, logfile->last_hour);
#endif
system(system_cmd);// ¸¶Áö¸· ÀúÀå½Ã°£ ÀúÀå
logfile->last_hour = curr_tm.tm_hour;// ·Î±× ÆÄÀÏÀ» ´Ù½Ã ¿¬´Ù.
logfile->fp = fopen(logfile->filename, "a+");
}
}void log_file_set_dir(const char *dir)
{
strcpy(log_dir, dir);
log_file_delete_old(log_dir);
}I compared it with a different mainline source it seems same. Maybe something else
-
42 minutes ago, VegaS said:
EterBase/Debug.h
Maybe you have:
extern void OpenLogFile(bool bUseLogFile = false);
Change with:
extern void OpenLogFile(bool bUseLogFile = true);
EterBase/Debug.cpp
void OpenLogFile(bool bUseLogFIle) { freopen("syserr.txt", "w", stderr); if (bUseLogFIle) { isLogFile = true; CLogFile::Instance().Initialize(); } }
Or you have deleted all TraceError(const char* c_szFormat, ...);
Hi VegaS I didnt mean Client syserr.txt I mean game generated syserr file in CH's
-
I have somebodies (mainline) source and he disabled syserr log (in game source not Client source).( I mean syserr file generated by game in CH's) How can I re-enable it ?
-
So if we update it, what advantage it will give us ?
-
So what is it for ?
-
8 hours ago, Mr.Slime said:
There are files *.core?
Yes .core files on CH1 folder
-
18 hours ago, Mr.Slime said:
Uh yes i know libmysqlclient,i have read it now,sorry ahahha.
Add me on skype,i will give you fix. cryptopp.
Thanks Slime I solved this problem also .changed crytopp folder with another version and it worked.Now Im experiencing a new problem .When I enter char. core dumps and CH closes.In db syserr log there FDWATCH errors.Probabyly some map or mob downs the core
-
2 hours ago, Mr.Slime said:
Have you install MySQL?
db problem solved . in libmysql/7.x-5.1.35 and 5.x-5.1.35 there is a file named: libmysqlclient.a is missing. I put them back from some where and db compiled succesfully
So problem on src/game continue related with cryptoPP -
3 hours ago, Mr.Slime said:
I have got a problem..
Paste it on pastebin.
Here it is: DB makefile:
-
-
2 hours ago, Mr.Slime said:
I think that it's a problem with ASCII Table.
boost/unordered/unordered_map.hpp
Go on mainline_released and copy unordered_map.hpp and char_skill.cpp. It will work
Best regards,
Mr.Slime
Thanks Slime I solved the problem .It happens because of Boost version (game wants its old verison, so I installed old)
Now I have 2 new problems unsolved:1)db/src
linking ...
/usr/local/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
gmake: *** [../db_r40250] Error 12)game/src
Spoilerlinking ../game_r44850_32....
linking ../test
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o:/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
OBJDIR/cipher.o: In function `StandardReallocate<unsigned char, CryptoPP::AllocatorWithCleanup<unsigned char, true> >':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::allocate(unsigned int, void const*)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
collect2: error: ld returned 1 exit status
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned char, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
OBJDIR/cipher.o:/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: more undefined references to `CryptoPP::AlignedDeallocate(void*)' follow
OBJDIR/cipher.o: In function `StandardReallocate<unsigned char, CryptoPP::AllocatorWithCleanup<unsigned char, true> >':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::allocate(unsigned int, void const*)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:97: undefined reference to `CryptoPP::AlignedAllocate(unsigned int)'
OBJDIR/cipher.o: In function `CryptoPP::AllocatorWithCleanup<unsigned int, true>::deallocate(void*, unsigned int)':
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
/usr/src/mainline_released/Srcs/Server/game/src/../../../Extern/include/cryptopp/secblock.h:109: undefined reference to `CryptoPP::AlignedDeallocate(void*)'
collect2: error: ld returned 1 exit status
gmake: *** [../game_r44850_32] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [../test] Error 1Second one probably problems with CrytoPP .Thanks for helping
-
2 hours ago, Mr.Slime said:
There are only warning.. I don't see error.
Post screen where there is the problem.
Best Regards,
Mr.Slime
Screenshot exactly same as these log (This is the whole compile log )
Probably somewhere before these lines there is an important breakpoint other than warning, so it stops compiling :
../../../Extern/include/boost/unordered/unordered_map.hpp:1212: instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3589: instantiated from heregmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs.... -
Spoiler
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
OXEvent.cpp:258:19: warning: null character(s) preserved in literal
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
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:63:
PetSystem.h:163:31: warning: no newline at end of file
compile char_battle.cpp
char.cpp:7379: warning: this decimal constant is unsigned only in ISO C90
compile char_change_empire.cpp
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
compile char_horse.cpp
compile char_item.cpp
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile char_manager.cpp
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:91:7: warning: no newline at end of file
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3136: warning: comparison between signed and unsigned integer expressions
compile char_state.cpp
char.cpp: In static member function 'static CHARACTER::PartyJoinErrCode CHARACTER::IsPartyJoinableMutableCondition(CHARACTER*, CHARACTER*)':
char.cpp:4876: warning: comparison between signed and unsigned integer expressions
char_battle.cpp: In member function 'void CHARACTER::UseArrow(CItem*, DWORD)':
char_battle.cpp:3001: warning: comparison between signed and unsigned integer expressions
compile PetSystem.cpp
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile cmd.cpp
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:641: warning: comparison is always false due to limited range of data type
char_item.cpp:667: warning: comparison is always false due to limited range of data type
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:651:2: warning: no newline at end of file
compile cmd_emotion.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2472: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2476: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2488: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2492: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2519: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2527: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5349: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5421: warning: unused variable 'wDestCell'
char_item.cpp:5422: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6484: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6548: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6560: 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:7746: warning: unused variable 'itemType'
char_item.cpp:7747: warning: unused variable 'itemSubType'
compile cmd_general.cpp
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:681: warning: control reaches end of non-void function
compile cmd_gm.cpp
compile cmd_oxevent.cpp
In file included from cmd_general.cpp:40:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:260: warning: unused variable 'bDoMoveAlone'
compile config.cpp
../../../Extern/include/boost/functional/hash/extensions.hpp: In member function 'size_t boost::hash<T>::operator()(const T&) const [with T = VID]':
../../../Extern/include/boost/unordered/detail/buckets.hpp:599: instantiated from 'static SizeT boost::unordered::detail::prime_policy<SizeT>::apply_hash(const Hash&, const T&) [with Hash = boost::hash<VID>, T = VID, SizeT = unsigned int]'
../../../Extern/include/boost/unordered/detail/table.hpp:758: instantiated from 'size_t boost::unordered::detail::table<Types>::hash(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
../../../Extern/include/boost/unordered/detail/table.hpp:784: instantiated from 'boost::unordered::iterator_detail::iterator<typename Types::node> boost::unordered::detail::table<Types>::find_node(const typename Types::key_type&) const [with Types = boost::unordered::detail::map<std::allocator<std::pair<const VID, unsigned int> >, VID, unsigned int, boost::hash<VID>, std::equal_to<VID> >]'
../../../Extern/include/boost/unordered/unordered_map.hpp:1212: instantiated from 'typename boost::unordered::unordered_map<K, T, H, P, A>::iterator boost::unordered::unordered_map<K, T, H, P, A>::find(const K&) [with K = VID, T = unsigned int, H = boost::hash<VID>, P = std::equal_to<VID>, A = std::allocator<std::pair<const VID, unsigned int> >]'
char_skill.cpp:3589: instantiated from here
../../../Extern/include/boost/functional/hash/extensions.hpp:269: error: no matching function for call to 'hash_value(const VID&)'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:566: warning: unused variable 'petVID'
gmake: *** [OBJDIR/char_skill.o] Error 1
gmake: *** Waiting for unfinished jobs....
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
In file included from cmd_general.cpp:10:
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
cmd_emotion.cpp: In function 'bool CHARACTER_CanEmotion(CHARACTER&)':
cmd_emotion.cpp:133: warning: control reaches end of non-void function
config.cpp:512:31: warning: character constant too long for its type
config.cpp:529:25: warning: character constant too long for its type
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6595: warning: 'pBuff' 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 'bool GetIPInfo()':
config.cpp:482: warning: the address of 'g_szInternalIP' will always evaluate as 'true'
config.cpp:512: warning: comparison is always false due to limited range of data type
config.cpp:529: warning: comparison is always true due to limited range of data type
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:661: warning: NULL used in arithmetic
config.cpp:685: warning: NULL used in arithmetic
config.cpp:709: warning: NULL used in arithmetic
config.cpp:731: warning: unused variable 'line'
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:5528: warning: NULL used in arithmetic
cmd_gm.cpp: In function 'void do_costume_bonus_transfer(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4395: warning: 'cell2' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:5950: 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:5570: 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:2432: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:2432: warning: 'y' may be used uninitialized in this functionIm using mainline released
Anyone pls help me. what is the reason of compile error ?
-
In char. login screen I can't select chars. with keyboard (arrow keys) and pressing enter on keyboard doesn't work too.Just have to click mouse for everything.
What can be the problem ?
-
14 hours ago, ds_aim said:
Warning explain evrything.
AND the server don't fall because of this warning.
We know error explains itself.But we are curious, what can we do to solve this error
Mobs and NPC's are loading late
in Community Support - Questions & Answers
Posted
it happens when you get off the horse any riding