Jump to content

Recommended Posts

1 hour ago, Amsterdam said:

i fix the problem with horse but now i don't see the damage XD

Because you have another effect registered with the same number of damage... It is really so hard to work by your own and discover how things are working?

 

Edit: to spare some minutes from your life, because this seems to be the only thing you want just comment these as you are not using them anyways

          {pkBase.EFFECT_REFINED + 21, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-5-1.mse"},
          {pkBase.EFFECT_REFINED + 22, "Bip01", "D:/ymir work/pc/common/effect/armor/armor_7th_01.mse"},

 

Edited by [TiTAN]
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-162090
Share on other sites

1 hour ago, [TiTAN] said:

Because you have another effect registered with the same number of damage... It is really so hard to work by your own and discover how things are working?

 

Edit: to spare some minutes from your life, because this seems to be the only thing you want just comment these as you are not using them anyways

          {pkBase.EFFECT_REFINED + 21, "Bip01", "D:/ymir work/pc/common/effect/armor/armor-5-1.mse"},
          {pkBase.EFFECT_REFINED + 22, "Bip01", "D:/ymir work/pc/common/effect/armor/armor_7th_01.mse"},

 

ahh, I love these ego-filled Romanian answers 

44 minutes ago, Ulthar said:

When u kill a mob, it will leave a small sparking something in the killed mob?

i fix it, I forgot that I changed something in the damage design

Edited by Amsterdam
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-162093
Share on other sites

2 minutes ago, Amsterdam said:

ahh, I love these ego-filled Romanian answers 

i fix it, I forgot that I changed something in the damage design

Maybe you are right ? i'm glad that you've fixed your issue, also sry for off-topic but i felt the need to apologieze

  • Love 1
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-162094
Share on other sites

2 minutes ago, [TiTAN] said:

Maybe you are right ? i'm glad that you've fixed your issue, also sry for off-topic but i felt the need to apologieze

don't stress, I'm not upset, thanks for everyone's help, everything works as it should, most of the problems were due to my changes before this system

  • Good 1
  • Love 1
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-162095
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 2 months later...

0519 18:43:08712 :: 
playerSettingModule.py(line:361) LoadGameData
playerSettingModule.py(line:206) __LoadGameNPC

LoadGameData - <type 'exceptions.KeyError'>:'srcFileName'

0519 18:43:08713 :: ============================================================================================================
0519 18:43:08713 :: Abort!!!!


0519 18:43:08713 ::  !!! Failed to load game data : STEP [97]
 

 

ma poate ajuta cineva?

Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-165243
Share on other sites

  • 6 months later...

It greatly improves login and reduces "crashes" when approaching other players. I'm not sure if it's something related to the system, but apparently there are some errors in the visual aspect of damage (for example: sometimes it doesn't show damage, it shows missing parts, if it's "1111" it shows "1 1"). Another point, on war maps with 50/100 players in a small area, the client "freezes", lags/delays (even with changes in packet processing), otherwise, everything is normal.

I've been using it for about a year, with LoadStaticCache

 

Edit: When there is a reboot (turn off and on), if you don't close and open the client again, the game has visual bugs. Would it be possible to delete what is in the cache when the character is disconnected or the game is restarted?

Edited by Klaus
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-168594
Share on other sites

  • 6 months later...

i expanded  client optimization with this:

playersettingsmodule.py->
def __LoadGameNPC():
    if app.ENABLE_CPP_PSM:
        cpsm.LoadGameNPC()
    else:
#OLD CODE!
    pass
playersettingsmodule.cpp->

search: #include "PythonNetworkStream.h"
add:
//Load npclist.txt
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include <cctype>    // std::isspace
#include <cstring>
//


search: const bool CPlayerSettingsModule::LoadGameSkill()
{

[...]

}
under add this:
 

std::string trim(const std::string& s) {
    size_t start = 0;
    while (start < s.size() && std::isspace(static_cast<unsigned char>(s[start]))) {
        start++;
    }
    size_t end = s.size();
    while (end > start && std::isspace(static_cast<unsigned char>(s[end - 1]))) {
        end--;
    }
    return s.substr(start, end - start);
}

const bool CPlayerSettingsModule::LoadGameNPC()
{
    std::ifstream file("npclist.txt");
    if (!file.is_open()) {
        LogBox("LoadLocaleError(npclist.txt)");
        return false;
    }

    std::vector<std::string> lines;
    std::string line;
    while (std::getline(file, line)) {
        lines.push_back(line);
    }
    file.close();

    int lineNumber = 0; // opcionálisan, ha szeretnéd nyomon követni a sorokat
    for (const std::string& line : lines) {
        lineNumber++;
        std::vector<std::string> tokens;
        std::stringstream ss(line);
        std::string token;

        while (std::getline(ss, token, '\t')) {
            tokens.push_back(token);
        }

        if (tokens.empty() || tokens[0].empty()) continue;

        int vnum = 0;
        try {
            vnum = std::stoi(trim(tokens[0]));
        }
        catch (...) {
            LogBoxf("LoadGameNPC() - Hiba a vnum átalakításában - sor #%d: %s", lineNumber, line.c_str());
            continue;
        }

        // Győződj meg róla, hogy van elég token a továbbiakhoz
        if (tokens.size() > 2) {
            std::string name1 = trim(tokens[1]);
            std::string name2 = trim(tokens[2]);

            if (vnum) {
                CRaceManager::Instance().RegisterRaceName(vnum, name1.c_str());
            }
            else {
                CRaceManager::Instance().RegisterRaceSrcName(name1.c_str(), name2.c_str());
            }
        }
        else if (tokens.size() == 2) {
            // Ha csak 2 token van, legyen kezelve
            std::string name1 = trim(tokens[1]);
            if (vnum) {
                CRaceManager::Instance().RegisterRaceName(vnum, name1.c_str());
            }
            else {
                // nincs elég adat, vagy kezelheted másképp
            }
        }
    }
    return true;
}

find: PyObject* cpsmLoadGameSkill(PyObject * poSelf, PyObject * poArgs)

add under:
PyObject* cpsmLoadGameNPC(PyObject* poSelf, PyObject* poArgs)
{
    CPlayerSettingsModule::LoadGameNPC();
    return Py_BuildNone();
}

search: 
{"LoadGameSkill", cpsmLoadGameSkill, METH_VARARGS},
add after:
{"LoadGameNPC", cpsmLoadGameNPC, METH_VARARGS},


Tested working.

Edited by msmajda9
Link to comment
https://metin2.dev/topic/28845-faster-loading/page/3/#findComment-171426
Share on other sites

  • 1 month later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.