Jump to content

Hik

Member
  • Posts

    276
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by Hik

  1. Hi guys, unfortunately I'm forced to ask again.
    The transition to visualstudio is driving me crazy.
    When I create a new PG (blu kingdom) I get the following coordinates in player-> player:

    x = 957493
    y = 255418

    When I try to log in, however, I get the following error:

    cannot find tree by 0 957493 (map index 41)
    cannot find valid location 0 x 957493 (name: 2).

    g_start_map

    #if defined(ENABLE_WOLFMAN_CHARACTER) && defined(USE_LYCAN_CREATE_POSITION)
    long g_start_map[7] =
    #else
    long g_start_map[4] =
    #endif
    {
    	0,	//reserved
    	1,
    	21,
    	41,
    #if defined(ENABLE_WOLFMAN_CHARACTER) && defined(USE_LYCAN_CREATE_POSITION)
    	7,
    	27,
    	47,
    #endif

    g_start_position

    #if defined(ENABLE_WOLFMAN_CHARACTER) && defined(USE_LYCAN_CREATE_POSITION)
    DWORD g_start_position[7][2] =
    #else
    DWORD g_start_position[4][2] =
    #endif
    {
    	{      0,      0 },	// reserved
    	{ 469300, 964200 },	// 신수국
    	{  55700, 157900 },	// 천조국
    	{ 969600, 278400 }	// 진노국
    #if defined(ENABLE_WOLFMAN_CHARACTER) && defined(USE_LYCAN_CREATE_POSITION)
    	,{768000, 896000},
    	{819200, 896000},
    	{870400, 896000},
    #endif

     

    USE_LYCAN_CREATE_POSITION = disabled

    Race created: Warrior

     

    FIXED: wrong query.

  2. Quote

    Btw u can check the vector if it's empty like this 

     

    First of all, thanks for replying!
    I did as you suggested, I added checking to see if the vector was empty and it worked, thank you !!! : D
    To be able to log in, before your reply, I had to do this:

     

    peer->Encode(&m_vec_banwordTable[0], sizeof(TBanwordTable) * m_vec_banwordTable.size());
    peer->Encode(&m_vec_kLandTable[0], sizeof(building::TLand) * m_vec_kLandTable.size())

    TO

     

    peer->Encode(&m_vec_banwordTable, sizeof(TBanwordTable) * m_vec_banwordTable.size());
    peer->Encode(&m_vec_kLandTable, sizeof(building::TLand) * m_vec_kLandTable.size())

     

    I certainly made a mistake but at least I managed to make it work.

  3. EDIT:3

     

    I added syslogs to understand where the code crashed.
    Arrived at point 7 it freezes.
    I commented on the following code and the blocking occurs in step 8.
    I still commented on the code that followed and I didn't get the error anymore.
    Unfortunately, channel1 now tells me: ban word table size error.

    I think the problem is:

     

    peer->Encode(&m_vec_banwordTable[0], sizeof(TBanwordTable) * m_vec_banwordTable.size());

     

                                                                                end

     

    peer->Encode(&m_vec_kLandTable[0], sizeof(building::TLand) * m_vec_kLandTable.size())

     

    Immagine.png

  4. UPDATE: 

     

    Unfortunately I can't see the icon when the target is a player.
    As for the errors related to the GetNewAttributeType and GetNewAttributeValue commands, I did so:

     

    Open item.h, search: GetLimitValue and add below:

     

    BYTE GetNewAttributeType (int i) {return m_pProto? m_pProto-> aApplies [i] .bType: 0;}
    short GetNewAttributeValue (int i) {return m_pProto? m_pProto-> aApplies [i] .lValue: 0;}

     

    Solutions?

  5. Unfortunately I don't see anything, I think the problem is the code inserted in char.cpp.

     

    EDIT: Now work, it is this part of code that did not allow me to view the image:

     

    #self.elementImage.SetPosition(self.GetLeft() - 40, self.GetTop())

    Anyone know what I can replace this part with?

    This is the effect obtained:

     

    element-target.png

    • Love 1
  6. Hi guys, I need your help.
    I am using sources with the following upgrades by blackdragonx61:

     

    Granny 2.11.8
    libjpeg-9a	
    Python-2.7
    Boost-1.71
    Crypto++ 8.2.0	
    DevIL-1.8.0	
    lzo-2.10

     

    When I add the pet system, I choose the character the client crashes and I get this:

     

    0817 22:53:13712 :: Property already registered, replace property/devils_dragon_island/thing/obj_mtthund_thorn01.prb to property/devils_dragon_island/mtthunder_thorn01.prb
    0817 22:53:13758 :: LoadWaterMapFile metin2_map_a1\000001\water.wtr 0
    0817 22:53:13758 :: LoadRawHeightMapFile metin2_map_a1\000001\height.raw 0817 22:53:13761 :: LoadHeightMap::CalculateNormal 3 ms
    0817 22:53:13761 :: LoadAttrMapFile metin2_map_a1\000001\attr.atr 0817 22:53:13762 :: 0
    0817 22:53:13762 :: LoadSplatFile metin2_map_a1\000001\tile.raw 0817 22:53:13779 :: CTerrain::RAW_AllocateSplats 17
    0817 22:53:13780 :: CTerrain::LoadShadowTexture 1 ms
    0817 22:53:13780 :: LoadShadowMap metin2_map_a1\000001\shadowmap.raw 0817 22:53:13780 :: 0 ms
    0817 22:53:13780 :: CTerrain::LoadMiniMapTexture 0 ms
    0817 22:53:13781 :: CMapOutdoor::LoadTerrain 24
    0817 22:53:13782 :: CMapOutdoor::LoadArea1 0

     

    By debugging I get this:

    .gif

     

    If I comment on the following function, the game starts but I only see NPCs and Mobs:

     

    if ( !pArea->Load(szAreaPathName) )

     

     

    Can you tell me why it crashes and how to solve it if necessary? Thanks in advance!

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