Jump to content

Istny

Premium
  • Posts

    72
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Everything posted by Istny

  1. carray: 30ms map: 55ms unordered_map :39ms tested with array size of 1250 elements 1mln random access
  2. 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
  3. 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
  4. 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
  5. 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 ?
  6. below graph shows how much webzen makes money of this "dead game" called metin2
  7. CCI * pkCCI = P2P_MANAGER::instance().Find(nickname); you can find how to use that in source by searching code above
  8. 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
  9. 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
  10. mayby you should learn first how to read gdb output
  11. 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
  12. From what i remember this issue is related to broken server_attr, core go down when player walk into broken part of the map
  13. add log-queries-not-using-indexes to my.cnf and run mysqltuner on server
  14. Is this the reason why some servers are now offline ? ^.^
  15. SECTREE_MANAGER::instance().PurgeMonstersInMap(ch->GetMapIndex());
  16. 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
  17. 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
  18. char.cpp inside CHARACTER::SetPlayerProto if (GetGMLevel() > GM_LOW_WIZARD)
  19. 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
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.