PDA

View Full Version : TrinityCore 3.3.5 having problems



Djundead
08-23-2016, 03:58 PM
im trying to add http://emudevs.com/showthread.php/5339-World-Chat-script to my core and im not sure how to do the custom script part in lastest compile of TC

REV: aec583ffe9b2+
added in custom_script_loader.cpp

// The name of this function should match:
// void Add${NameOfDirectory}Scripts()
void AddCustomScripts()
{
void AddSC_WorldChat();
}


idk if i did right and idk other places to add :(

Djundead
08-23-2016, 05:54 PM
how i get:

Severity Code Description Project File Line Suppression State
Error (active) the #endif for this directive is missing scripts c:\Users\Administrator\Desktop\build\src\server\sc ripts\gen_scriptloader\static\ScriptLoader.cpp 39


line 39
#ifdef TRINITY_IS_DYNAMIC_SCRIPTLOADER

Vitrex
08-24-2016, 06:57 AM
I'm not sure but i think adding scripts is same as it used to be.
maybe you will find this thread usefull.http://emudevs.com/showthread.php/13-Adding-a-C-script-to-your-core

Djundead
08-24-2016, 02:35 PM
the probolem is scriptloader is wayyyy different

Rochet2
08-24-2016, 03:42 PM
read the official documentation here:
https://trinitycore.atlassian.net/wiki/display/tc/CustomScript

Also the errors you get tell that you have edited possibly wrong files.
I suggest trying to revert whatever changes you made. (get new files from trinitycore github?)

Tommy
08-25-2016, 12:40 AM
the probolem is scriptloader is wayyyy different

Not really. Basically the same setup just split into specific script loader files for each type (Custom, Command, etc).

Rochet2
08-25-2016, 04:22 PM
Not really. Basically the same setup just split into specific script loader files for each type (Custom, Command, etc).

He is probably looking at the wrong scriptloader like this: https://github.com/TrinityCore/TrinityCore/blob/6.x/src/server/scripts/ScriptLoader.cpp.in.cmake

Djundead
08-25-2016, 05:57 PM
i still have no clue i tried everything..