Jump to content

Eterpack Library - Files not found


Recommended Posts

Hello guys,

 

right now I'm working on my base client and I have errors that I saw often.

Now I just try to fix them but I can't find the reason for that stupid error.

 

The error description:

- Sometimes I have terrains(textures) or actually dds files that can not be loaded by the eterpack library.

 

 

CEterPackManager::Get (Called from CResource::Load()) return false but the file is existing in the archive (for sure)

#ifdef _DEBUG
		if(!GetFromPack(rMappedFile, c_szFileName, pData)) {
			Tracenf("CEterPackManager::Get: Failed to get file from pack %s.",c_szFileName);
			if (GetFromFile(rMappedFile, c_szFileName, pData))
			{
				return true;
			} else {
				Tracenf("CEterPackManager::Get: Failed to get file from dir %s.",c_szFileName);
				return false;
			}
			return false;
		}
#else
		if (GetFromFile(rMappedFile, c_szFileName, pData))
		{
			return true;
		}
		return GetFromPack(rMappedFile, c_szFileName, pData);
#endif

Now I decided to change the file type to 0 (My friend xXDemonenXx had the idea).

Then it works.

Actually I search the reason for that but I can not find that.

 

With type 2 the file not exists and the terrain is white but with type 0 it is still here.

Does anyone of you guys had the same problem or have any idea whats the reason for that?

 

Kind regards

Sphinx

 

 

 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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