Newbie Spellweaver
- Joined
- Apr 30, 2008
- Messages
- 90
- Reaction score
- 51
done to solved sir ^^
can you share the source? Thanks!
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!done to solved sir ^^
can you share the source? Thanks!
G-Logic\GLogicDataLoad.cpp(1043) : error C2065: 'vecCOMPOUND' : undeclared identifier
G-Logic\GLogicDataLoad.cpp(1043) : error C2228: left of '.push_back' must have class/struct/union type
I should resolve
just you find in " loadfile exp " and add below loaditemmix ^^
same problem how to fix this
eduj ?
G-Logic\GLogicDataLoad.cpp(1043) : error C2065: 'vecCOMPOUND' : undeclared identifier
G-Logic\GLogicDataLoad.cpp(1043) : error C2228: left of '.push_back' must have class/struct/union type
I should resolve
Code:enum GLCONST { MAX_SERVERCHAR = MAX_ONESERVERCHAR_NUM, MAX_SELECTCHAR = 4, // ij¸¯ÅÍ ¼±Åà ȸ鿡¼ º¸ÀÌ´Â ÃÖ´ë ij¸¯ÅÍÀÇ ¼ö, ÇöÀç 4°³ MAX_VIEWRANGE = 300, // ÃÖ´ë ¹üÀ§ (ÆÄƼ¿ø ³¢¸® ÀÎÁ¢ÇÑ°¡?...) MAX_HEAD = 50, MAX_HAIR = 50, MAX_SCHOOL = 10, MAX_LEVEL = 500, MAX_CLUBSTORAGE = 5, MAX_CLUBRANK = 10, GRADE_NORMAL = 4, GRADE_HIGH = 9, GRADE_LIMIT_MAX = 15, }; // Note : ij¸¯ÅÍ Á¾·ùº° ±âº» »ó¼ö. // //new itemmix [COLOR=#ff0000]struct GLCOMPOUND_RECIPE[/COLOR] [COLOR=#ff0000]{[/COLOR] [COLOR=#ff0000] SNATIVEID sNativeID;[/COLOR] [COLOR=#ff0000] WORD wNum;[/COLOR] [COLOR=#ff0000] [/COLOR] [COLOR=#ff0000] GLCOMPOUND_RECIPE()[/COLOR] [COLOR=#ff0000] : sNativeID( NATIVEID_NULL() )[/COLOR] [COLOR=#ff0000] , wNum(0)[/COLOR] [COLOR=#ff0000] {[/COLOR] [COLOR=#ff0000] }[/COLOR] [COLOR=#ff0000]};[/COLOR] [COLOR=#ff0000] [/COLOR] [COLOR=#ff0000]struct GLCOMPOUND[/COLOR] [COLOR=#ff0000]{[/COLOR] [COLOR=#ff0000] DWORD dwID;[/COLOR] [COLOR=#ff0000] GLCOMPOUND_RECIPE glRecipe[5];[/COLOR] [COLOR=#ff0000] SNATIVEID sNativeID;[/COLOR] [COLOR=#ff0000] WORD wNum;[/COLOR] [COLOR=#ff0000] [/COLOR] [COLOR=#ff0000] float fRate;[/COLOR] [COLOR=#ff0000] LONGLONG lnPrice; [/COLOR] [COLOR=#ff0000] [/COLOR] [COLOR=#ff0000] GLCOMPOUND () [/COLOR] [COLOR=#ff0000] : dwID(0)[/COLOR] [COLOR=#ff0000] , sNativeID( NATIVEID_NULL() )[/COLOR] [COLOR=#ff0000] , wNum( 0 )[/COLOR] [COLOR=#ff0000] , fRate( 0.0f )[/COLOR] [COLOR=#ff0000] , lnPrice( 0 )[/COLOR] [COLOR=#ff0000] {[/COLOR] [COLOR=#ff0000] }[/COLOR] [COLOR=#ff0000]}; [/COLOR]
Code:extern std::vector<std::string> vecGUIDANCE_FILE; extern std::vector<std::string> vecClubDM_FILE; [COLOR=#ff0000]extern std::vector<GLCOMPOUND> vecCOMPOUND;[/COLOR] extern std::string strSCHOOLEFF[CROW_OWNER_SCHOOL];
Code://jdev help BOOL LOADLINK ( char* szFileName ); BOOL LOADRANK ( char* szFileName ); //add pkrank [COLOR=#ff0000]BOOL LOADITEMMIX( char* szFileName ); [/COLOR]
EXP_MAX_LOADFILE( "exptable_max.bin" );
LOADITEMMIX ( "ItemMix.ini" );
BOOL EXP_MAX_2nd_LOADFILE ( char* szFileName ) {
if( !szFileName || (strlen(szFileName) == 0) )
{
CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName );
return FALSE;
}
for ( int i=0; i<MAX_LEVEL; ++i ) lnEXP_MAX_TABLE_2nd[i] = LLONG_MAX;
std::string strPath;
strPath = GLOGIC::GetServerPath();
strPath += szFileName;
std::auto_ptr<CBaseString> pBString(GLOGIC::openfile_basestring(GLOGIC::bGLOGIC_ZIPFILE,
GLOGIC::strGLOGIC_ZIPFILE.c_str(),
strPath.c_str(),
szFileName,
true,
GLOGIC::bGLOGIC_PACKFILE ) );
if ( !pBString.get() )
{
CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName );
return FALSE;
}
CBaseString &cBString = *pBString;
int i=0;
CString strLine;
while ( cBString.GetNextLine(strLine) )
{
LONGLONG lnEXP = _atoi64(strLine.GetString());
if ( i>=MAX_LEVEL )
{
CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), too long array" );
break;
}
lnEXP_MAX_TABLE_2nd[i++] = lnEXP;
}
return TRUE;
}
BOOL LOADITEMMIX ( char* szFileName ) {
std::string strPath;
strPath = GLOGIC::GetPath();
strPath += szFileName;
CIniLoader cFILE;
if( GLOGIC::bGLOGIC_ZIPFILE )
cFILE.SetZipFile( GLOGIC::strGLOGIC_ZIPFILE );
std::string strSep( ",[]\t" );
cFILE.reg_sep( strSep );
if( !cFILE.open( strPath, true, GLOGIC::bGLOGIC_PACKFILE ) )
{
CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::LOADITEMMIX()" );
return FALSE;
}
INT nItemMixKeySize(0);
cFILE.getflag( "ITEM_MIX_INFO", "ItemMixKeySize", 0, 1, nItemMixKeySize );
DWORD dwNUM = cFILE.GetKeySize( "ITEM_MIX_LIST", "ITEM_MIX" );
for ( DWORD i=0; i<dwNUM; ++i )
{
GLCOMPOUND glCompound;
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 0, nItemMixKeySize, glCompound.dwID );
for ( int j = 0; j < 5; ++j )
{
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+1, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wMainID );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+2, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wSubID );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+3, nItemMixKeySize, glCompound.glRecipe[j].wNum );
}
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 16, nItemMixKeySize, glCompound.sNativeID.wMainID );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 17, nItemMixKeySize, glCompound.sNativeID.wSubID );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 18, nItemMixKeySize, glCompound.wNum );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 19, nItemMixKeySize, glCompound.fRate );
cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 20, nItemMixKeySize, glCompound.lnPrice );
vecCOMPOUND.push_back( glCompound );
}
return TRUE;
}
Item can be compounded not working.
for @brightlight777
search
Code:EXP_MAX_LOADFILE( "exptable_max.bin" );
add below
Code:LOADITEMMIX ( "ItemMix.ini" );
and find
Code:BOOL EXP_MAX_2nd_LOADFILE ( char* szFileName ) { if( !szFileName || (strlen(szFileName) == 0) ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName ); return FALSE; } for ( int i=0; i<MAX_LEVEL; ++i ) lnEXP_MAX_TABLE_2nd[i] = LLONG_MAX; std::string strPath; strPath = GLOGIC::GetServerPath(); strPath += szFileName; std::auto_ptr<CBaseString> pBString(GLOGIC::openfile_basestring(GLOGIC::bGLOGIC_ZIPFILE, GLOGIC::strGLOGIC_ZIPFILE.c_str(), strPath.c_str(), szFileName, true, GLOGIC::bGLOGIC_PACKFILE ) ); if ( !pBString.get() ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName ); return FALSE; } CBaseString &cBString = *pBString; int i=0; CString strLine; while ( cBString.GetNextLine(strLine) ) { LONGLONG lnEXP = _atoi64(strLine.GetString()); if ( i>=MAX_LEVEL ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), too long array" ); break; } lnEXP_MAX_TABLE_2nd[i++] = lnEXP; } return TRUE; }
and add below
Code:BOOL LOADITEMMIX ( char* szFileName ) { std::string strPath; strPath = GLOGIC::GetPath(); strPath += szFileName; CIniLoader cFILE; if( GLOGIC::bGLOGIC_ZIPFILE ) cFILE.SetZipFile( GLOGIC::strGLOGIC_ZIPFILE ); std::string strSep( ",[]\t" ); cFILE.reg_sep( strSep ); if( !cFILE.open( strPath, true, GLOGIC::bGLOGIC_PACKFILE ) ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::LOADITEMMIX()" ); return FALSE; } INT nItemMixKeySize(0); cFILE.getflag( "ITEM_MIX_INFO", "ItemMixKeySize", 0, 1, nItemMixKeySize ); DWORD dwNUM = cFILE.GetKeySize( "ITEM_MIX_LIST", "ITEM_MIX" ); for ( DWORD i=0; i<dwNUM; ++i ) { GLCOMPOUND glCompound; cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 0, nItemMixKeySize, glCompound.dwID ); for ( int j = 0; j < 5; ++j ) { cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+1, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wMainID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+2, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wSubID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+3, nItemMixKeySize, glCompound.glRecipe[j].wNum ); } cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 16, nItemMixKeySize, glCompound.sNativeID.wMainID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 17, nItemMixKeySize, glCompound.sNativeID.wSubID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 18, nItemMixKeySize, glCompound.wNum ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 19, nItemMixKeySize, glCompound.fRate ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 20, nItemMixKeySize, glCompound.lnPrice ); vecCOMPOUND.push_back( glCompound ); } return TRUE; }
Thanks! I will try this. ^_^ I hope it work
IT'S REALLY A BIG HELP!!!!!!!! THANK YOU VERRRY MUCHHHHH!!!!!!!!!!!!!!!!
I can now manage to realign this! Thanks again!
Thanks to you Williamjohn
done to solved sir ^^
for @brightlight777
search
Code:EXP_MAX_LOADFILE( "exptable_max.bin" );
add below
Code:LOADITEMMIX ( "ItemMix.ini" );
and find
Code:BOOL EXP_MAX_2nd_LOADFILE ( char* szFileName ) { if( !szFileName || (strlen(szFileName) == 0) ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName ); return FALSE; } for ( int i=0; i<MAX_LEVEL; ++i ) lnEXP_MAX_TABLE_2nd[i] = LLONG_MAX; std::string strPath; strPath = GLOGIC::GetServerPath(); strPath += szFileName; std::auto_ptr<CBaseString> pBString(GLOGIC::openfile_basestring(GLOGIC::bGLOGIC_ZIPFILE, GLOGIC::strGLOGIC_ZIPFILE.c_str(), strPath.c_str(), szFileName, true, GLOGIC::bGLOGIC_PACKFILE ) ); if ( !pBString.get() ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), %s", szFileName ); return FALSE; } CBaseString &cBString = *pBString; int i=0; CString strLine; while ( cBString.GetNextLine(strLine) ) { LONGLONG lnEXP = _atoi64(strLine.GetString()); if ( i>=MAX_LEVEL ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::EXP_MAX_2nd_LOADFILE(), too long array" ); break; } lnEXP_MAX_TABLE_2nd[i++] = lnEXP; } return TRUE; }
and add below
Code:BOOL LOADITEMMIX ( char* szFileName ) { std::string strPath; strPath = GLOGIC::GetPath(); strPath += szFileName; CIniLoader cFILE; if( GLOGIC::bGLOGIC_ZIPFILE ) cFILE.SetZipFile( GLOGIC::strGLOGIC_ZIPFILE ); std::string strSep( ",[]\t" ); cFILE.reg_sep( strSep ); if( !cFILE.open( strPath, true, GLOGIC::bGLOGIC_PACKFILE ) ) { CDebugSet::ToLogFile ( "ERROR : GLCONST_CHAR::LOADITEMMIX()" ); return FALSE; } INT nItemMixKeySize(0); cFILE.getflag( "ITEM_MIX_INFO", "ItemMixKeySize", 0, 1, nItemMixKeySize ); DWORD dwNUM = cFILE.GetKeySize( "ITEM_MIX_LIST", "ITEM_MIX" ); for ( DWORD i=0; i<dwNUM; ++i ) { GLCOMPOUND glCompound; cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 0, nItemMixKeySize, glCompound.dwID ); for ( int j = 0; j < 5; ++j ) { cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+1, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wMainID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+2, nItemMixKeySize, glCompound.glRecipe[j].sNativeID.wSubID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", (j*3)+3, nItemMixKeySize, glCompound.glRecipe[j].wNum ); } cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 16, nItemMixKeySize, glCompound.sNativeID.wMainID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 17, nItemMixKeySize, glCompound.sNativeID.wSubID ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 18, nItemMixKeySize, glCompound.wNum ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 19, nItemMixKeySize, glCompound.fRate ); cFILE.getflag( i, "ITEM_MIX_LIST", "ITEM_MIX", 20, nItemMixKeySize, glCompound.lnPrice ); vecCOMPOUND.push_back( glCompound ); } return TRUE; }
not working!
did you still have that problem?
how did you solved?
i follow all the codes but still no luck
i tried the old one it worked
Code:m_pResult->SetPercent(FALSE); m_pResult->SetVisibleSingle(FALSE); [COLOR=#ffa07a]GLGaeaClient::GetInstance().GetCharacter()->ReqItemMix[/COLOR] [COLOR=#ff0000]( m_dwNpcID );[/COLOR] m_bOK = false; } } else if ( !m_bIsOK ) { [COLOR=#ffa07a]GLGaeaClient::GetInstance().GetCharacter()->ReqItemMix [/COLOR][COLOR=#ff0000]( m_dwNpcID );[/COLOR] m_bOK = false; }
tried commenting it out, works also