• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Trinity Phase System Script Broken while compiling

greynet

Member
Hey all. I didn't see if this kind of topic was posted before, and I'm new to emu compiling so I was wondering if someone could point me in the right direction. I'm using
C++: http://pastebin.com/0wN8Ct4z
SQL: http://pastebin.com/EEbBmcuu

I have RBAC.h set to go, and edited my custom_script_loader.cpp

Code:
// This is where scripts' loading functions should be declared:
void AddSC_announce_login();
void AddSC_LearnSpellsOnLevelUp();
void AddSC_XpWeekend();
void AddSC_killstreak_system();
void AddSC_VAS_AutoBalance();
void AddSC_item_enchant_visuals();
void AddSC_Transmogrification();
void AddSC_REFORGER_NPC();
void AddSC_guildmaster();
void AddSC_solocraft();
void AddSC_Npc_Beastmaster();
void AddSC_Boss_Announcer();
void AddSC_npc_enchantment();
void AddSC_login_script();
void AddSC_gon_playerscripts();
void AddSC_Player_Boa();
void AddSC_PhasedDueling();
void AddSC_GOMove_commandscript();
void AddSC_custom_commands();
void AddSC_phasing_system();

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
{
	AddSC_announce_login();
	AddSC_LearnSpellsOnLevelUp();
	AddSC_XpWeekend();
	AddSC_killstreak_system();
	AddSC_VAS_AutoBalance();
	AddSC_item_enchant_visuals();
    AddSC_Transmogrification();
    AddSC_REFORGER_NPC();
	AddSC_guildmaster();
	AddSC_solocraft();
	AddSC_Npc_Beastmaster();
	AddSC_Boss_Announcer();
	AddSC_npc_enchantment();
	AddSC_login_script();
	AddSC_gon_playerscripts();
	AddSC_Player_Boa();
	AddSC_PhasedDueling();
    AddSC_GOMove_commandscript();
	AddSC_custom_commands();
	AddSC_phasing_system();
}

But this error shows up:

Code:
Error	84	error LNK2019: unresolved external symbol "void __cdecl AddSC_phasing_system(void)" (?AddSC_phasing_system@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)	D:\CMake\compiledcore\SingleCore_TC\Compiled Core\src\server\worldserver\scripts.lib(custom_script_loader.obj)	worldserver

Sorry for the noob question, but does anyone know a quick fix to this?
Thank you.
 

Sylica

Exalted Member
Hey all. I didn't see if this kind of topic was posted before, and I'm new to emu compiling so I was wondering if someone could point me in the right direction. I'm using
C++: http://pastebin.com/0wN8Ct4z
SQL: http://pastebin.com/EEbBmcuu

I have RBAC.h set to go, and edited my custom_script_loader.cpp

Code:
// This is where scripts' loading functions should be declared:
void AddSC_announce_login();
void AddSC_LearnSpellsOnLevelUp();
void AddSC_XpWeekend();
void AddSC_killstreak_system();
void AddSC_VAS_AutoBalance();
void AddSC_item_enchant_visuals();
void AddSC_Transmogrification();
void AddSC_REFORGER_NPC();
void AddSC_guildmaster();
void AddSC_solocraft();
void AddSC_Npc_Beastmaster();
void AddSC_Boss_Announcer();
void AddSC_npc_enchantment();
void AddSC_login_script();
void AddSC_gon_playerscripts();
void AddSC_Player_Boa();
void AddSC_PhasedDueling();
void AddSC_GOMove_commandscript();
void AddSC_custom_commands();
void AddSC_phasing_system();

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
{
	AddSC_announce_login();
	AddSC_LearnSpellsOnLevelUp();
	AddSC_XpWeekend();
	AddSC_killstreak_system();
	AddSC_VAS_AutoBalance();
	AddSC_item_enchant_visuals();
    AddSC_Transmogrification();
    AddSC_REFORGER_NPC();
	AddSC_guildmaster();
	AddSC_solocraft();
	AddSC_Npc_Beastmaster();
	AddSC_Boss_Announcer();
	AddSC_npc_enchantment();
	AddSC_login_script();
	AddSC_gon_playerscripts();
	AddSC_Player_Boa();
	AddSC_PhasedDueling();
    AddSC_GOMove_commandscript();
	AddSC_custom_commands();
	AddSC_phasing_system();
}

But this error shows up:

Code:
Error	84	error LNK2019: unresolved external symbol "void __cdecl AddSC_phasing_system(void)" (?AddSC_phasing_system@@YAXXZ) referenced in function "void __cdecl AddCustomScripts(void)" (?AddCustomScripts@@YAXXZ)	D:\CMake\compiledcore\SingleCore_TC\Compiled Core\src\server\worldserver\scripts.lib(custom_script_loader.obj)	worldserver

Sorry for the noob question, but does anyone know a quick fix to this?
Thank you.

Looks like someone that coded the script didn't put the correct call in, but here's the fix for you.

Change the line of code in your script loader:
Code:
AddSC_phasing_system();
to
Code:
AddSC_system_phase();
 
Top