Please Help Me Changing The Files Type To Another Extensions :(

Results 1 to 7 of 7
  1. #1
    Proficient Member Jerzkie is offline
    MemberRank
    Jul 2012 Join Date
    System32Location
    178Posts

    sad Please Help Me Changing The Files Type To Another Extensions :(

    FIXED Thanks For The Replies :)

    And Also To Sir ShadowDragon
    Last edited by Jerzkie; 25-10-12 at 12:44 PM.


  2. #2
    i <3 C++ Deviant is offline
    MemberRank
    Jun 2005 Join Date
    Little GardenLocation
    527Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    Quote Originally Posted by DeathWrath View Post
    Can anyone who's nice help me fix my problem
    my problem is like this :

    i managed to change the end names of the files to another format specifically .res to .pri
    i have edited things on the source

    Spoiler:
    void CResFile::ScanResource( LPCTSTR lpszRootPath )
    {
    TCHAR szPath[ MAX_PATH ];
    TCHAR szPathTemp[ MAX_PATH ];
    struct _finddata_t c_file;
    long hFile;

    strcpy( szPathTemp, lpszRootPath );
    strcat( szPathTemp, "*.*" );
    if( ( hFile = _findfirst( szPathTemp, &c_file ) ) != -1L )
    {
    do
    {
    strlwr( c_file.name );
    strcpy( szPath, lpszRootPath );
    if( c_file.attrib & _A_SUBDIR )//if( CFile::GetStatus( name, fileStatus) == TRUE )
    {
    if( strcmp( c_file.name, "." ) && strcmp( c_file.name, ".." )
    #ifdef __INTERNALSERVER
    && strcmp( c_file.name, ".svn" )
    #endif // __INTERNALSERVER
    )
    {
    strcat( szPath, c_file.name );
    strcat( szPath, "\\" );
    ScanResource( szPath );
    }
    }
    else
    //if( strstr( c_file.name, ".pri" ) != 0 )
    if( CompareExt( c_file.name, ".pri" ) )
    {
    strcat( szPath, c_file.name );
    AddResource( szPath );
    }
    }
    while( _findnext( hFile, &c_file ) == 0 );

    _findclose( hFile );
    }
    }


    now my problem is how do i allow that end name in Neuz
    with this code

    Spoiler:

    void CNeuzApp::BeginLoadThread()
    {
    CResFile::ScanResource( "" );

    prj.LoadPreFiles();

    m_hThread = (HANDLE) _beginthread( LoadProperty, 0, (LPVOID)this );
    #if !defined(_DEBUG)
    WaitLoading();
    #endif
    }


    this is actually for Lethal's thread but i am noob on source i am just learning so kindly help me

    your replies is very appreciated.
    thank you very much
    try something?

  3. #3
    Proficient Member Jerzkie is offline
    MemberRank
    Jul 2012 Join Date
    System32Location
    178Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    making a different end name of my data files :) but neuz i think doesn't load it.

  4. #4
    Flyff Developer ShadowDragon is offline
    MemberRank
    Apr 2009 Join Date
    1,916Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    You made it so your Neuz will ONLY load .pri files in that function (Meaning it ignores any .res files). If you don't have all of them switched to .pri, then your Neuz won't work right.

  5. #5
    Proficient Member Jerzkie is offline
    MemberRank
    Jul 2012 Join Date
    System32Location
    178Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    sir shadow you mean this code is ok?? sorry im just a newbie that is trying hard to learn

    Spoiler:

    void CNeuzApp::BeginLoadThread()
    {
    CResFile::ScanResource( "" );

    prj.LoadPreFiles();

    m_hThread = (HANDLE) _beginthread( LoadProperty, 0, (LPVOID)this );
    #if !defined(_DEBUG)
    WaitLoading();
    #endif
    }


    also sir.. it will read model files ??? that are compiled in .pri??

  6. #6
    i <3 C++ Deviant is offline
    MemberRank
    Jun 2005 Join Date
    Little GardenLocation
    527Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    Quote Originally Posted by DeathWrath View Post
    sir shadow you mean this code is ok?? sorry im just a newbie that is trying hard to learn

    Spoiler:

    void CNeuzApp::BeginLoadThread()
    {
    CResFile::ScanResource( ".pri" ); //pride flyff?

    prj.LoadPreFiles();

    m_hThread = (HANDLE) _beginthread( LoadProperty, 0, (LPVOID)this );
    #if !defined(_DEBUG)
    WaitLoading();
    #endif
    }


    also sir.. it will read model files ??? that are compiled in .pri??
    try it?


    pri = pride flyff?

  7. #7
    Proficient Member Jerzkie is offline
    MemberRank
    Jul 2012 Join Date
    System32Location
    178Posts

    Re: Please Help Me Changing The Files Type To Another Extensions :(

    yes sir deviant :) im just trying to change some files..

    im not pro actually im just learning :)) please do understand



Advertisement