Jump to content

Problem with install new pet system


Recommended Posts

I did everything the right way, but I got this wrong

 

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

 


compile main.cpp
linking ../game_r40267_32....
OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
/usr/src/Server/game/src/questlua.cpp:478: undefined reference to `quest::RegisterNewPetFunctionTable()'
Makefile:124: recipe for target '../game_r40267_32' failed
gmake: *** [../game_r40267_32] Error 1
 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
Link to comment
Share on other sites

thank's solved ❤️

But now I am facing another problem

In building client

 

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

Error    6    error LNK1120: 5 unresolved externals    E:\MT2\clientsource\binary\Metin2Distribute.exe    UserInterface
Error    1    error LNK2001: unresolved external symbol "public: __thiscall CPythonSkillPet::CPythonSkillPet(void)" (??0CPythonSkillPet@@QAE@XZ)    E:\MT2\clientsource\vs_files\UserInterface\PythonApplication.obj    UserInterface
Error    5    error LNK2001: unresolved external symbol "void __cdecl initskillpet(void)" (?initskillpet@@YAXXZ)    E:\MT2\clientsource\vs_files\UserInterface\UserInterface.obj    UserInterface
 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

I chose all the files in userinterface
But many errors appeared
Exactly which file should I choose?

 

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

 

 

The error :

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Active Member

he cant read pet-exp table

    std::string temp_exp_line;
	std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt");
	/*if (!exp_table_open.is_open())
	return 0;*/

	int exppet_table_counter = 0;
	int tmppet_exp = 0;
	while (!exppet_table_open.eof())
	{
		exppet_table_open >> temp_exp_line;
		str_to_number(exppet_table_common[exppet_table_counter], temp_exp_line.c_str());
		if (exppet_table_common[exppet_table_counter] < 2147483647) {
			sys_log(0, "Livelli Pet caricati da exppettable.txt: %d !", exppet_table_common[exppet_table_counter]);
			exppet_table_counter++;
		}
		else {
			fprintf(stderr, "[main] Impossibile caricare la tabella exp valore non valido\n");
			break;
		}
	}

 

Edited by V0lvox
Link to comment
Share on other sites

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.