Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Does anyone know what caused this error? Thank you

Newbie Spellweaver
Joined
May 12, 2022
Messages
85
Reaction score
2
GetModelElem - out of range: type=0, size=2100, index=15684
CModelMng::loadModel objtype=0 index=15684 bpart=0

GetModelElem - out of range: type=0, size=2100, index=2145
CModelMng::loadModel objtype=0 index=2145 bpart=0

GetModelElem - out of range: type=0, size=2100, index=15621
CModelMng::loadModel objtype=0 index=15621 bpart=0

GetModelElem - out of range: type=0, size=2100, index=15516
CModelMng::loadModel objtype=0 index=15516 bpart=0
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
GetModelElem - out of range: type=0, size=2100, index=15684
CModelMng::loadModel objtype=0 index=15684 bpart=0

GetModelElem - out of range: type=0, size=2100, index=2145
CModelMng::loadModel objtype=0 index=2145 bpart=0

GetModelElem - out of range: type=0, size=2100, index=15621
CModelMng::loadModel objtype=0 index=15621 bpart=0

GetModelElem - out of range: type=0, size=2100, index=15516
CModelMng::loadModel objtype=0 index=15516 bpart=0

If you take the time to search the source you can easily find out why things like this happen.
Code:
LPMODELELEM CModelMng::GetModelElem( DWORD dwType, DWORD dwIndex )
{
	LPMODELELEM pElem = m_aaModelElem[ dwType ].GetAt( dwIndex );
	if( pElem == NULL )
	{
		if( dwType == OT_ITEM )	// ¾ÆÀÌÅÛÀÎ °æ¿ì, µ· ¸ðµ¨À» »ç¿ë   
//			return m_aaModelElem[ OT_ITEM ].GetAt( II_GOLD_SEED1 );
			return m_aaModelElem[ OT_ITEM ].GetAt( II_ARM_M_VAG_HELMET02 );	// ÀÏ¹Ý ¹æ¾î±¸ ¸ð¾çÀ¸·Î ±³Ã¼
		else
		{
			LPCTSTR szErr = Error( "GetModelElem - out of range: type=%d, size=%d, index=%d", (int)dwType, m_aaModelElem[ dwType ].GetSize(), (int)dwIndex );
			ADDERRORMSG( szErr );
		}
	}
	
	return pElem;
}

Also thread moved to Help section.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
May 12, 2022
Messages
85
Reaction score
2
If you take the time to search the source you can easily find out why things like this happen.
Code:
LPMODELELEM CModelMng::GetModelElem( DWORD dwType, DWORD dwIndex )
{
    LPMODELELEM pElem = m_aaModelElem[ dwType ].GetAt( dwIndex );
    if( pElem == NULL )
    {
        if( dwType == OT_ITEM )    // ¾ÆÀÌÅÛÀÎ °æ¿ì, µ· ¸ðµ¨À» »ç¿ë   
//            return m_aaModelElem[ OT_ITEM ].GetAt( II_GOLD_SEED1 );
            return m_aaModelElem[ OT_ITEM ].GetAt( II_ARM_M_VAG_HELMET02 );    // ÀÏ¹Ý ¹æ¾î±¸ ¸ð¾çÀ¸·Î ±³Ã¼
        else
        {
            LPCTSTR szErr = Error( "GetModelElem - out of range: type=%d, size=%d, index=%d", (int)dwType, m_aaModelElem[ dwType ].GetSize(), (int)dwIndex );
            ADDERRORMSG( szErr );
        }
    }
    
    return pElem;
}

Also thread moved to Help section.

I found it here, but I don't understand why the error is reported



This issue is solved, please close the thread, thank you very much
 
Upvote 0
Back
Top