Jump to content

dukaibalu1

Inactive Member
  • Posts

    116
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by dukaibalu1

  1. Hello metin2DEV!!

    someone please tell me the cause of the error?

     

    game.py(line:235) Open
    game.py(line:655) StartGame
    game.py(line:807) RefreshCharacter
    interfaceModule.py(line:636) RefreshCharacter
    uiCharacter.py(line:1110) RefreshCharacter
    uiCharacter.py(line:1172) __SelectSkillGroup
    uiCharacter.py(line:1158) __SetSkillSlotData
    uiCharacter.py(line:855) RefreshSkill
    uiCharacter.py(line:830) __RefreshSkillPage

    GameWindow.Open - <type 'exceptions.RuntimeError'>:skill.GetSkillType - Failed to find skill by 119

    1128 22:51:11303 :: ============================================================================================================
    1128 22:51:11303 :: Abort!!!!
     

  2. uiexchange.py

    self.TitleName.SetText(localeInfo.EXCHANGE_TITLE % (exchange.GetNameFromTarget(), exchange.GetLevelFromTarget()))

    And in locale game.txt

    EXCHANGE_TITLE     Trade with %s (%d)

     

    Done, official trade.

    0331 21:44:24133 :: Traceback (most recent call last):
     
    0331 21:44:24133 ::   File "game.py", line 952, in StartExchange
     
    0331 21:44:24134 ::   File "interfaceModule.py", line 678, in StartExchange
     
    0331 21:44:24134 ::   File "uiExchange.py", line 85, in OpenDialog
     
    0331 21:44:24134 :: TypeError
    0331 21:44:24134 :: : 
    0331 21:44:24134 :: %d format: a number is required, not str
    0331 21:44:24134 :: 
  3. Hi,

     

    Now open common/item_length.h and search for this:

    ITEM_SOCKET_MAX_NUM			= 3,
    

    edit:

    ITEM_SOCKET_MAX_NUM			= 6,
    

    Now open db/cache.cpp and search for this:

    if (isSocket)
    		{
    			iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ", socket0, socket1, socket2");
    			iValueLen += snprintf(szValues + iValueLen, sizeof(szValues) - iValueLen,
    					", %lu, %lu, %lu", p->alSockets[0], p->alSockets[1], p->alSockets[2]);
    			iUpdateLen += snprintf(szUpdate + iUpdateLen, sizeof(szUpdate) - iUpdateLen,
    					", socket0=%lu, socket1=%lu, socket2=%lu", p->alSockets[0], p->alSockets[1], p->alSockets[2]);
    		}
    

    edit:

    if (isSocket)
    		{
    			iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ", socket0, socket1, socket2, socket3, socket4, socket5");
    			iValueLen += snprintf(szValues + iValueLen, sizeof(szValues) - iValueLen,
    					", %lu, %lu, %lu, %lu, %lu, %lu", p->alSockets[0], p->alSockets[1], p->alSockets[2], p->alSockets[3], p->alSockets[4], p->alSockets[5]);
    			iUpdateLen += snprintf(szUpdate + iUpdateLen, sizeof(szUpdate) - iUpdateLen,
    					", socket0=%lu, socket1=%lu, socket2=%lu, socket3=%lu, socket4=%lu, socket5=%lu", p->alSockets[0], p->alSockets[1], p->alSockets[2], p->alSockets[3], p->alSockets[4], p->alSockets[5]);
    		}
    

    Now open db/clientmanagerplayer.cpp and search for this:

    str_to_number(item.alSockets[2], row[cur++]);
    

    Add this under that:

    str_to_number(item.alSockets[3], row[cur++]);
    		str_to_number(item.alSockets[4], row[cur++]);
    		str_to_number(item.alSockets[5], row[cur++]);
    

    search:

    "SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
    

    edit:

    "SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2,socket3,socket4,socket5,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
    

    search:

    "SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
    

    edit:

    "SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2,socket3,socket4,socket5,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
    

    Now open game/constants.cpp and search for this:

    	3, // WEAPON_SWORD,
    	3, // WEAPON_DAGGER,
    	3, // WEAPON_BOW,
    	3, // WEAPON_TWO_HANDED,
    	3, // WEAPON_BELL,
    	3, // WEAPON_FAN,
    	3, // WEAPON_CLAW
    	0, // WEAPON_ARROW,
    	0, // WEAPON_MOUNT_SPEAR
    

    edit:

    	6, // WEAPON_SWORD,
    	6, // WEAPON_DAGGER,
    	6, // WEAPON_BOW,
    	6, // WEAPON_TWO_HANDED,
    	6, // WEAPON_BELL,
    	6, // WEAPON_FAN,
    	6, // WEAPON_CLAW
    	0, // WEAPON_ARROW,
    	0, // WEAPON_MOUNT_SPEAR
    

    search:

    3, // ARMOR_BODY,
    

    edit:

    6, // ARMOR_BODY,
    

    Binary:

     

    Now open userinterface/gametype.h and search for this:

    ITEM_SOCKET_SLOT_MAX_NUM = 3,
    

    edit:

    ITEM_SOCKET_SLOT_MAX_NUM = 6,
    

    If you have any questions, please contact us.

     

     

    Kind Regards,

    Noszferat001

    • Metin2 Dev 1
    • Love 11
×
×
  • 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.