Jump to content

Dalyn

Inactive Member
  • Posts

    71
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Dalyn

  1. Hello Friend's , I need help with that. I need when i change language , choose the correct translate.lua

    My translate i have in that directory /home/eterny2/main/srv1/share/locale/germany/country/ro ( for example this is ro ) 

     

    The code is that

     

    #ifdef ENABLE_TRANSLATE_LUA
            {
                char translateFileName[256];
                snprintf(translateFileName, sizeof(translateFileName), "%s/translate.lua", LocaleService_GetBasePath().c_str());
    
                int translateLoadingResult = lua_dofile(L, translateFileName);
                sys_log(0, "LoadTranslate(%s), returns %d", translateFileName, translateLoadingResult);
                if (translateLoadingResult != 0)
                {
                    sys_err("LOAD_TRANSLATE_ERROR(%s)", translateFileName);
                    return false;
                }
            }
    #endif

    And my change is that : 

    #define ENABLE_TRANSLATE_LUA
    #ifdef ENABLE_TRANSLATE_LUA
    		{
    			char translateFileName[256];
    #ifdef ENABLE_MULTI_LANGUAGE_SYSTEM
    			for (BYTE locale = 0; locale < LOCALE_MAX_NUM; locale++)
    			{
    				if (locale == LOCALE_YMIR)
    					g_stLocale = g_stLocale + "/" + "translate.lua";
    				else
    					g_stLocale = g_stLocale + "/country/" + get_locale(locale) + "/" + "translate.lua";
    
    				if (g_stLocaleFilename.empty())
    					continue;
    #else
    			snprintf(translateFileName, sizeof(translateFileName), "%s/translate.lua", LocaleService_GetBasePath().c_str());
    #endif
    
    			int translateLoadingResult = lua_dofile(L, translateFileName);
    			sys_log(0, "LoadTranslate(%s), returns %d", translateFileName, translateLoadingResult);
    			if (translateLoadingResult != 0)
    			{
    				sys_err("LOAD_TRANSLATE_ERROR(%s)", translateFileName);
    				return false;
    			}
    		}
    	}
    		
    #endif

    Compile good , but dont read the translate on this directory ... maybe i am in wrong part of code.

    But my language when i change the languages , work fine with locale_string.txt , mob_proto.txt , item_proto.txt 

    That is the example from the locale_string.txt and works good.

    Spoiler
    
    #ifdef ENABLE_MULTI_LANGUAGE_SYSTEM
    	for (BYTE locale = 0; locale < LOCALE_MAX_NUM; locale++)
    	{
    		// g_stLocaleFilename = g_stServiceBasePath + "/" + get_locale_file(locale);
    		if (locale == LOCALE_YMIR)
    			g_stLocaleFilename = g_stServiceBasePath + "/" + "locale_string.txt";
    		else
    			g_stLocaleFilename = g_stServiceBasePath + "/country/" + get_locale(locale) + "/" + "locale_string.txt";
    
    		if (g_stLocaleFilename.empty())
    			continue;
    
    		fprintf(stderr, "LocaleService %s\n", g_stLocaleFilename.c_str());
    
    		locale_init(g_stLocaleFilename.c_str(), locale);
    	}
    #else
    	fprintf(stderr, "LocaleService %s\n", g_stLocaleFilename.c_str());
    
    	locale_init(g_stLocaleFilename.c_str());
    #endif

     

     

    Someone can help me with this code ? 

  2. Somebody can help me with this error ? 

    I dont understand where is the error .. but the problem is when i try to open the offline shop , or anothers shops for example Armor Shop ...the window dont show!

     

    1207 15:25:25343 ::   File "game.py", line 1012, in StartShop

    1207 15:25:25343 ::   File "interfaceModule.py", line 725, in OpenShopDialog

    1207 15:25:25343 ::   File "uiShop.py", line 168, in Open

    1207 15:25:25343 :: AttributeError
    1207 15:25:25343 :: : 
    1207 15:25:25343 :: 'builtin_function_or_method' object has no attribute 'SelectInstance'
    1207 15:25:25343 :: 

     

    Thank's a lot!

  3. Hello Metin2Dev , I need help becouse I don"t understand much ...

     

    I use Vegas Tittles System and I need to the premium tittles have more bonus for example : 

    Spoiler

    int pTitleBonus_1[] = {POINT_MAX_HP, 5000};
    int pTitleBonus_2[] = {POINT_CRITICAL_PCT, 20};
    int pTitleBonus_3[] = {POINT_ATTBONUS_WARRIOR, 15};

     

    Now is how Vegas have his system.. but the question is how I can add more bonus?

    I search the function for the pTitleBonus_3

    Spoiler

    * [Premium Title III]
    */        
        if (!strcmp(valueAffect, "send_premium_3"))
        {
            if (ch->CountSpecifyItem(sPotionVnum[2]))
            {        
                    ch->AddAffect(get_affect_premium[2], pTitleBonus_3[0], pTitleBonus_3[1], 0, sTimeDuratingBonus[0], 0, true);
                    ch->RemoveSpecifyItem(sPotionVnum[2], 1);    
                    UpdateTitle(ch, sTitle[19], 0);
            }        
            else    
                ch->ChatPacket(CHAT_TYPE_NOTICE, title_translate[11]);
                return;    
        }    
    }

     

    That is from Premium Title III

    And i do that I add : 

    Spoiler

    * [Premium Title III]
    */        
        if (!strcmp(valueAffect, "send_premium_3"))
        {
            if (ch->CountSpecifyItem(sPotionVnum[2]))
            {        
                    ch->AddAffect(get_affect_premium[2], pTitleBonus_3[0], pTitleBonus_3[1], 0, sTimeDuratingBonus[0], 0, true);
                    ch->AddAffect(get_affect_premium[2], pTitleBonus_4[0], pTitleBonus_4[2], 0, sTimeDuratingBonus[0], 0, true);
                    ch->AddAffect(get_affect_premium[2], pTitleBonus_5[0], pTitleBonus_5[3], 0, sTimeDuratingBonus[0], 0, true);
                    ch->AddAffect(get_affect_premium[2], pTitleBonus_6[0], pTitleBonus_6[4], 0, sTimeDuratingBonus[0], 0, true);
                    ch->RemoveSpecifyItem(sPotionVnum[2], 1);    
                    UpdateTitle(ch, sTitle[19], 0);
            }        
            else    
                ch->ChatPacket(CHAT_TYPE_NOTICE, title_translate[11]);
                return;    
        }    
    }

    And after i add that :

    Spoiler

    int pTitleBonus_1[] = {POINT_MAX_HP, 5000};
    int pTitleBonus_2[] = {POINT_CRITICAL_PCT, 20};
    int pTitleBonus_3[] = {POINT_ATTBONUS_WARRIOR, 15};
    int pTitleBonus_4[] = {POINT_ATTBONUS_ASSASSIN, 15};
    int pTitleBonus_5[] = {POINT_ATTBONUS_SURA, 15};
    int pTitleBonus_6[] = {POINT_ATTBONUS_SHAMAN, 15};

    Dont give me errors , but in the game when I active the III premium title , only get me POINT_ATTBONUS_SHAMAN , the others nope , how i can solve that for works?

     

    I dont find more function about the bonus :S 

     

    Thanks :P 

     

  4. Hello Dev , i need your help , i need to block the RANK in the map , for example 

    If i have 20.000 rank , in the map index 200 , dont go down and dont go up the rank. Dont lose rank and dont gain rank!

     

    I can pay for that , please if you can help me , or help me if i pay , contact me with pm , and write your skype , and i contact with you.

  5. Hello , guys who know this error ? and know how solve that :D

     

    Thank you very much :P

     

     

    522 21:55:47272 :: CInstanceBase::AttachTextTail - VID [16804] ALREADY EXIST
    0522 21:56:26672 :: CInstanceBase::AttachTe0522 21:56:03909 :: CPythonPlayer::S0522 21:56:59088 :: CInstanceBase::AttachTextTail - VID [16802] ALREADY EXIST
    0522 21:57:17775 :: CInstanceBase::AttachTextTail - VID [16805] ALREADY EXIST
    0522 21:58:56073 :: CInstanceBase::AttachTextTail - VID [16801] ALREADY EXIST
    EXIST
    0522 21:58:10908 :: CInstanceBase::AttachTextTail - VID [16801] ALREADY EXIST
     

     

     

  6. https://metin2.download/picture/t99E1O3IT0r910s7qvbr2LG9EfBlFzDB/.png

     

    Hi guys , i have this problem , today i put the mouse when the name for see the karma (rank) , for the pj , and dont apper the rank , i put the mouse in the name and dont show nothing , i see the un uicharacter.py the refresh.Alignment , i remplace with other and dont work , i see uitooltiip and dont work , i remplace this and dont work , i dont know why , someone know why this error , and how solve it ? 

  7. Hello guys , i have this problem , i use uscript , root and locale for one client , when i use his serverfiles and mysql , the client work perfect  , i dont have problems , but , when for example i change the mysql , and i put other mysql , the client crash and i dont know  , only apper this in the syser of client ...

    0302 21:27:05804 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item2.mse) Error
    0302 21:27:05804 :: CInstanceBase::RegisterEffect(eEftType=270, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item2.mse, isCache=1) - Error
    0302 21:27:05806 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item4.mse) Error
    0302 21:27:05806 :: CInstanceBase::RegisterEffect(eEftType=272, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item4.mse, isCache=1) - Error
    0302 21:27:06286 :: CRaceManager::GetRaceDataPointer: cannot load data by dwRaceIndex 8
    0302 21:27:06286 :: CGraphicThingInstance::RegisterModelThing(iModelThing=0, pModelThing=d:\ymir work\pc\warrior\warrior_novice.gr2)

    Please help me :s i dont know why apper this error ...and crash the client ...

  8. Hello everyone :D , i have this bug with wolfman , when i use this skill dont work i dont know why :s someone have idea ? and can help me ? or tell me when is the error :D , if the other opponent attack me , the skill yes provocte damage , but if the other opponent dont attack , dont provoct damage , i test to change the skill_proto , but dont work :s Thanks :D

    https://metin2.download/picture/93RvHHx11uPDlSbV53mf6a81RuwFr5GK/.gif

    • Love 1
  9. Hello guys i have this error when i try to combine two sash system :D , the absortion work perfect but combine dont work look , when i click in accept for combine the sash system , i can see in the chat this "Dragon the item in the window"

    Image : 

    aPTIb.png

     

    Someone have why  ?

  10. Hi metin2dev, i need your help. I have the wolfman in my serverfiles but i have a problem and i can´t find a solution, im implemented the claw deffense in battle.cpp, char.h and char.cpp but i have 100% possibiliti of claw defense in sql but when i change the bonus, there are snow resistence, earth, indented, etc but never claw ressistence.
    So, Can someone help me? I need a solution please
    Thanks, and Mary Chrismas

  11. Hello I have this problem when I open and login into the client ...

     

    https://metin2.download/picture/H6rR56G4o44kRaRR3A1sB7Y6B41UABKv/.gif

     this problem select the character , and the window close and this error in syser / and dont can see the other character ..

    1224 13:18:12685 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file


    1224 13:18:12686 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12756 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12757 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12821 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12832 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12875 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12876 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12886 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12890 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12892 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12903 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12932 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file
    1224 13:18:12942 :: GRANNY: r:/granny/rt/granny_file.cpp(331): File is not a Granny file

     

     

     

     

     

  12. Hello Guys , I have one question for you.... 

    I search in many pages , and dont found what he wanted ... My question is , are you know the program UModel ?

    If so , are you know games , are they can extract with UModel ??? I need more things for my Metin2 (Server) , Please Help me and I posted the first things to adapt ... 

    The games if they can be oriental :D is optional , but having to do with metin2 :D haha Thanks Guys !!! 

    But if you know other games and extracted the you can leave here!! <3 

    Thanks ! 

  13. Hello Guys , I have one question for you.... 

    I search in many pages , and dont found what he wanted ... My question is , are you know the program UModel ?

    If so , are you know games , are they can extract with UModel ??? I need more things for my Metin2 (Server) , Please Help me and I posted the first things to adapt ... 

    The games if they can be oriental :D is optional , but having to do with metin2 :D haha Thanks Guys !!! 

    But if you know other games and extracted the you can leave here!! <3 

    Thanks ! 

×
×
  • 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.