Istny
Premium-
Posts
72 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Istny
-
carray: 30ms map: 55ms unordered_map :39ms tested with array size of 1250 elements 1mln random access
-
The problem: Mobs are using CHARACTER_POINT_INSTANT struct, which contains fixed size arrays for dragon soul, items etc. For every mob these arrays are allocating memory, but mobs obviously don't use items... The solution: Replace fixed size arrays with std::map or other data type From my own testing i saw over 70% memory usage reduction with special inventory system and optimized variables listed below: bItemGrid pItems pDSItems wDSItemGrid Below i am sharing example implementation in clean source for bItemGrid variable
- 34 replies
-
- 25
-
Cleaner, only downside is, if someone for unknow reason will have for example socket3 set to 0 and socket4 to 11 loop in CHARACTER::DoRefine will use value frome socket3 as material vnum which is 0. Summarazing don't do a mess and you are good to go
-
Fix allow you to use vnum4 in refine_proto Explanation: By default refine materials are beign loaded until vnumx == 0, but if you assign item to the last socket, material_count will never be assigned. As a result material_count will remain 0, despite 5 material items being set. Adding simple additional check solves this problem Open db/ClientManagerBoot.cpp replace for (int i = 0; i < REFINE_MATERIAL_MAX_NUM; i++) { str_to_number(prt->materials[i].vnum, data[col++]); str_to_number(prt->materials[i].count, data[col++]); if (prt->materials[i].vnum == 0) { prt->material_count = i; break; } } with for (int i = 0; i < REFINE_MATERIAL_MAX_NUM; i++) { str_to_number(prt->materials[i].vnum, data[col++]); str_to_number(prt->materials[i].count, data[col++]); if (prt->materials[i].vnum == 0) { prt->material_count = i; break; } else if (i+1 == REFINE_MATERIAL_MAX_NUM) { prt->material_count = REFINE_MATERIAL_MAX_NUM; break; } } final result
-
Graph shows revenue ONLY from metin2, you can go through webzen financial reports ans see how much money they make from games like MU Gameforge does not disclose how much money they make from each game, so we will never know how much money in total metin2 generates ?
-
below graph shows how much webzen makes money of this "dead game" called metin2
-
Find player by character name on server
Istny replied to Karbust's topic in Community Support - Questions & Answers
CCI * pkCCI = P2P_MANAGER::instance().Find(nickname); you can find how to use that in source by searching code above -
Mainline tool set update
Istny replied to Denny2399's topic in Community Support - Questions & Answers
if you open solution in newer visual studio it will be converted to newer version, however there will be some errors during compilation, but they are easy to fix if you have knowlage of c++ xd -
Mainline tool set update
Istny replied to Denny2399's topic in Community Support - Questions & Answers
i'm using v141 toolset without any problems -
How to make one pack file with PackMaker?
Istny replied to attila1995's topic in Community Support - Questions & Answers
There is no simple answer, on my server we are using packer written from scratch with new encryption method and other compression algorithms like lizard, lz4hc -
mayby you should learn first how to read gdb output
-
broken server_attr
-
probably you are running some queries without index you have to enable log_queries_not_using_indexes in my.cnf to see where is the problem
-
channel crash (IsAttr)
Istny replied to Kenny1337's topic in Community Support - Questions & Answers
From what i remember this issue is related to broken server_attr, core go down when player walk into broken part of the map- 1 reply
-
- 1
-
add log-queries-not-using-indexes to my.cnf and run mysqltuner on server
-
OFFLINESHOP DUPLICATE ITEM EXPLOIT
Istny replied to DeYaN.'s topic in Community Support - Questions & Answers
Is this the reason why some servers are now offline ? ^.^ -
SECTREE_MANAGER::instance().PurgeMonstersInMap(ch->GetMapIndex());
-
Looks like only germany, but until someone don't tell what happend we can only wondering We don't know what gameforge done, maybe the only takedown websites, and owners in panic disabled game servers also. i have hope owners of these server are not coward and tell something more ;x shiro3 statment translated via google Dear Community, as you know, it came yesterday at 23:00 to the decision to move the server start of the project due to legal reasons indefinitely. I want to mention again that you should please stay calm here. We had this serious decision taken quickly, to the situation in which we find ourselves is clear. The project Shiro3 is not canceled. It could be that we start this weekend. It may also be that it is shifted by 7 days. To you to name any exact period, we have access to the generalized term "indefinitely". Thus, of course, should also be clear that your investments, whether money or anticipation going, never lost. You need us as a community some understanding bring to, because we're not talking about a DDoS or hacker attack, but of something far worse.Therefore, I ask now officially again: Widespread no rumors and tolerated you today. We will not later than tonight the correct information and give everything more known. Best regards, The Shiro3 team
-
How much cores each channel?
Istny replied to WhiteHat's topic in Community Support - Questions & Answers
i can give you some data from me 900 players on one channel (one core), about 40 maps. 50% cpu usage of one core e3-1240v2. there was no core crashes, lags etc everything depends on optimization ;x right now i'm using 2 cores per channel, but it's not caused by stabilitiy or something simmilar, I assure -
char.cpp inside CHARACTER::SetPlayerProto if (GetGMLevel() > GM_LOW_WIZARD)
-
you can do this with TimedEventInfo
-
nothing new, from couple years is known that closing p servers is too costly for them. if they can't shutdown sg which lost license because of them, especially they won't take down p servers, only couple youtubers movies ;x
-
Linking error after upgrade boost and cryptopp
Istny replied to Juppsy's topic in Community Support - Questions & Answers
have you added -lcrypto in makefile ? -
Linking error after upgrade boost and cryptopp
Istny replied to Juppsy's topic in Community Support - Questions & Answers
i'm using cryptop 5.6.3 on 64 bit, no problems