-
Posts
126 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Defacer35
-
-
Hi devs, since i upgrade my compiler to C++23, i have some trouble with this warn, anyone knows to how to deal with it ? Best regards.
inline TAffectFlag& operator = (const TAffectFlag& rhs) { bits[0] = rhs.bits[0]; bits[1] = rhs.bits[1]; return *this; }
-
Great work, if any one need the official FTP adresses, i have some of them ;
Good luck with this, best regards.
- 1
- 1
- 2
-
What a nostalgia, this pic give me a goosebumps.Thank you !
- 1
-
Marty, IRA, Fliege for basic. Otherwise Owsap.
-
First of all type /shutdown in game after this wait 5 min (cache) after 5 min close auth and channel then db. Thats it.
-
Incredible job ! Awesome, thank you.
-
4 hours ago, Ikarus_ said:
post the makefile libsql
CXX = g++10 BIN = ../libsql.a CFLAGS = -I/usr/local/include/mysql -Wall -O2 -ggdb3 -g3 -std=gnu++20 -pipe -mtune=i386 -fstack-protector -static CPP = AsyncSQL.cpp Semaphore.cpp Statement.cpp Tellwait.cpp all: $(BIN) clean: rm -f *.o rm -f $(BIN) %.o: %.cpp @echo -e "\033[0;32m[LibSQL]\033[0m \033[0;33mDerleniyor;\033[0m" $* @$(CXX) $(CFLAGS) -c $^ -o $@ $(BIN): $(CPP:%.cpp=%.o) @ar cru $(BIN) $^ @ranlib $(BIN) chmod 700 $(BIN)
-
Still not solved.
-
Hi, this syslog is the basicly heart beat of the db.I think this syslog useless, if you dont want to see this ;
Open db/src/ClientManager.cpp
Find ;
else { pt_log ("[%9d] return %d/%d/%d/%d async %d/%d/%d%/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery (SQL_PLAYER)); if ((thecore_heart->pulse % 50) == 0) sys_log (0, "[%9d] return %d/%d/%d async %d/%d/%d", thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER)); }
Change like this ;
else { //pt_log ("[%9d] return %d/%d/%d/%d async %d/%d/%d%/%d", //thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountReturnCopiedQuery (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncCopiedQuery (SQL_PLAYER)/*)*/; if ((thecore_heart->pulse % 50) == 0) //sys_log (0, "[%9d] return %d/%d/%d async %d/%d/%d", //thecore_heart->pulse, CDBManager::instance().CountReturnQuery (SQL_PLAYER), CDBManager::instance().CountReturnResult (SQL_PLAYER), CDBManager::instance().CountReturnQueryFinished (SQL_PLAYER), CDBManager::instance().CountAsyncQuery (SQL_PLAYER), CDBManager::instance().CountAsyncResult (SQL_PLAYER), CDBManager::instance().CountAsyncQueryFinished (SQL_PLAYER)/*)*/; }
Best Regards.
-
-
- 1
-
Hello devs, after a C++20 released i want to upgrade my compiler support 17 to 20 but i have little trouble with libsql ;
Best Regards.
-
Good as always, best Turk i know.
Thanks for share.
- 1
-
Good feature ! Thank you.
-
Bump, i cant find any solution.
-
-
Hi devs, as i said compiler cant find (i guess) boost and give me error the problem ;
ClientManager.cpp: In member function 'void CClientManager::Destroy()': ClientManager.cpp:68:7: error: 'itertype' was not declared in this scope 68 | for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i) | ^~~~~~~~ ClientManager.cpp:68:52: error: 'i' was not declared in this scope 68 | for (itertype(m_peerList) i = m_peerList.begin(); i != m_peerList.end(); ++i) | ^ ClientManager.cpp: In member function 'void CClientManager::MainLoop()': ClientManager.cpp:189:2: error: 'itertype' was not declared in this scope 189 | itertype(m_map_playerCache) it = m_map_playerCache.begin(); | ^~~~~~~~ ClientManager.cpp:191:9: error: 'it' was not declared in this scope; did you mean 'int'? 191 | while (it != m_map_playerCache.end()) | ^~ | int ClientManager.cpp:202:9: error: 'it2' was not declared in this scope 202 | while (it2 != m_map_itemCache.end()) | ^~~ ClientManager.cpp:212:88: error: 'itPriceList' was not declared in this scope 212 | for (itertype(m_mapItemPriceListCache) itPriceList = m_mapItemPriceListCache.begin(); itPriceList != m_mapItemPriceListCache.end(); ++itPriceList) | ^~~~~~~~~~~ ClientManager.cpp: In member function 'void CClientManager::QUERY_BOOT(CPeer*, TPacketGDBoot*)': ClientManager.cpp:324:2: error: 'itertype' was not declared in this scope 324 | itertype(m_map_pkObjectTable) it = m_map_pkObjectTable.begin(); | ^~~~~~~~ ClientManager.cpp:326:9: error: 'it' was not declared in this scope; did you mean 'int'? 326 | while (it != m_map_pkObjectTable.end()) | ^~ | int ClientManager.cpp: In member function 'void CClientManager::SendPartyOnSetup(CPeer*)': ClientManager.cpp:370:7: error: 'itertype' was not declared in this scope 370 | for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party) | ^~~~~~~~ ClientManager.cpp:370:43: error: 'it_party' was not declared in this scope 370 | for (itertype(pm) it_party = pm.begin(); it_party != pm.end(); ++it_party) | ^~~~~~~~ ClientManager.cpp:376:73: error: 'it_member' was not declared in this scope 376 | for (itertype(it_party->second) it_member = it_party->second.begin(); it_member != it_party->second.end(); ++it_member) | ^~~~~~~~~ ClientManager.cpp: In member function 'void CClientManager::RESULT_SAFEBOX_LOAD(CPeer*, SQLMsg*)': ClientManager.cpp:562:5: error: 'itertype' was not declared in this scope 562 | itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(r.vnum); | ^~~~~~~~ ClientManager.cpp:564:9: error: 'it' was not declared in this scope; did you mean 'i'? 564 | if (it == m_map_itemTableByVnum.end()) | ^~ | i ClientManager.cpp:571:24: error: 'it' was not declared in this scope; did you mean 'i'? 571 | grid.Put(r.pos, 1, it->second->bSize); | ^~ | i ClientManager.cpp:596:6: error: 'itertype' was not declared in this scope 596 | itertype(m_map_itemTableByVnum) it = m_map_itemTableByVnum.find(pItemAward->dwVnum);
This is my makefile include boost ;
INCDIR += -I/usr/local/include/boost
This is ClientManager.h ;
#include <boost/unordered_map.hpp> #include <boost/unordered_set.hpp> #include "../../common/stl.h" #include "../../common/building.h" #include "Peer.h" #include "DBManager.h" #include "LoginData.h"
Whats wrong ? Best regards..
-
Hi devs, first of all i'm so mad at this point but i'm littlarly does everything to fix this.
After a little MakeFile update (Nothing special just little updates) this error appears, what does i do wrong ?
FIX - BIG THANKS FOR THE DENIZERI24
Open cmd_general.cpp
Find ; #include <md5.h>
Change ; #include <sys/md5.h>
FIX - BIG THANKS FOR THE DENIZERI24
Best regards..
-
15 minutes ago, WeedHex said:
Change:
char name[MAXNAMLEN + 1];
to
char name[512];
char dir[128];
to
char dir[256];
Idk why you're getting these warning, need other infos btw try to do what compiler said upgrading the sizes.
Sadly i try this before this not the problem i think i'm try char name 2048 or 1024 or 512 or 256 also 64 - 128 getting same warn every time, i'm search almost every stackflow post but nothing get anything..
Btw thanks for your effort.
- 1
-
2 minutes ago, WeedHex said:
Can you please post the whole file on pastebin so we can check lines and functions.
You show us void log_file_delete_old (const char* filename) but seems different in the compiler.
Need log_file_rotate() too
-
First of all thanks for the answer, does that before but i have same warn again
-
- SOLVED -
Update system_cmd to 512 and char name to 128 thats solve the warning.
- SOLVED -
Hello devs, i have a little trouble here.
name veriable has a char* but i have this warn what should i do ? Best regards..
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); 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); }
-
10 hours ago, Finnael said:
Hmm, these look fine. From what I can see packet with header 43 is only being send to the client when player sitdowns or stand ups. So the problem should not be related with that if you are not doing anything. Can you show us your UserInterface/PythonNetworkStreamPhaseGame.cpp and UserInterface/PythonNetworkStream.cpp too? And btw which files are you using? Are you sure the client and the server you are using are meant to be used together? If you take your client from one files and your server from another that will cause such issues.
I test it again, i'm connecting the game kill 5-6 mobs and i got dc maybe its the thing and skills not working and i used mainline_released for client and server.
PhaseGame.cpp
https://paste.ubuntu.com/p/HgM7H5YyJm/
Stream.cpp
https://paste.ubuntu.com/p/hJqBjDMr9n/
7 hours ago, Catalin2o14 said:there he explains how to check the packages.it is not a solution. It teaches you how to do it.
search in source sln/game from
HEADER_GC_CHARACTER_POSITION
Okey, i'm gonna look this.
-
Hello devs, in the game skills not working, whats wrong ?
Aug 20 02:05:51.551467 :: CQuestManager::Kill QUEST_KILL_EVENT (pc=57711, npc=454) Aug 20 02:05:55.551479 :: SkillHack: Skill(1) is not in container
GCC 12 - C++23 Compile Warning - warning: implicitly-declared is deprecated
in Community Support - Questions & Answers
Posted
Thank you very much, i seen this "= default;" in c++11 features page but i been can't implement in the code, thanks for help, bless you.