Jump to content

How To Change the Path to the Pack


Recommended Posts

  • Premium

Hello
UserInterface.cpp
 

	if (strPackType.compare("FILE") && strPackType.compare("PACK")) // here you can edit what you want e.g "DATA"
	{
		TraceError("Data/Index has invalid syntax. First line must be 'DATA' or 'FILE'");
		return false;
	}

Replace with this
 

	if (strPackType.compare("FILE") && strPackType.compare("DATA"))
	{
		TraceError("Data/Index has invalid syntax. First line must be 'DATA' or 'FILE'");
		return false;
	}
	if (!PackInitialize("pack")) // same here edit what you want. e.g "data"
	{
		LogBox("Pack Initialization failed. Check log.txt file..");
		return false;
	}

Replace with this
 

	if (!PackInitialize("data")) 
	{
		LogBox("Data Initialization failed. Check log.txt file..");
		return false;
	}

Open PythonBackground.cpp
 

void CPythonBackground::__CreateProperty()
{
	if (CEterPackManager::SEARCH_FILE_FIRST == CEterPackManager::Instance().GetSearchMode() &&
		_access("property", 0) == 0)
	{
		m_PropertyManager.Initialize(NULL);

		CPropertyLoader PropertyLoader;
		PropertyLoader.SetPropertyManager(&m_PropertyManager);
		PropertyLoader.Create("*.*", "Property");
	}
	else
	{
		m_PropertyManager.Initialize("pack/property"); // Here rename to data/ or your name what u want.
	}
}
m_PropertyManager.Initialize("data/property");


Now rename in client your pack to data and edit index example

image.png.bbf6ca4ac5f9bc6e24adbe01d0452d0d.png

Ez

  • Love 2


 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

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.