Jump to content
metin2dev
.T4Ump

[HowTo] Change the path to the pack

Recommended Posts

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

  • Like 2

Share this post


Link to post
Share on other sites
if (strPackType.compare("FILE") && strPackType.compare("DATA"))
	{
		TraceError("Data/Index has invalid syntax. First line must be 'DATA' or 'FILE'");
		return false;
	}

No need to change that.

Share this post


Link to post
Share on other sites

Poland code, Poland code, Poland code, Poland code, Poland code ??? fuck you:D you love it so much you do not praise yourself. You will not shit.
World History + Poland == 000000000000000 goat slaves

  • Confused 1

Share this post


Link to post
Share on other sites
13 minutes ago, Daenerys said:

Poland code, Poland code, Poland code, Poland code, Poland code ??? fuck you:D you love it so much you do not praise yourself. You will not shit.
World History + Poland == 000000000000000 goat slaves

Poland  = Buggy shit.

Share this post


Link to post
Share on other sites

Thanks. :)

What is with that?

 

void initpack()
{
	static PyMethodDef s_methods[] =
	{
		{ "Exist",		packExist,		METH_VARARGS },
		{ "Get",		packGet,		METH_VARARGS },
		{ NULL, NULL },		
	};
	
	Py_InitModule("pack", s_methods);
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×