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

[SOLVED] Error Compile Eluna The Last "ScriptPCH.h"

Status
Not open for further replies.

kusanagy

Respected Member
Hello Guys


I have an error at compile time, the latest update of Eluna.

- I have the previous update, and there I can compile without any error.

but I try to add a Custom / Script and I usually spend this error.
did not find the directory.
"ScriptPCH.h"

and I have everything correctly.
even if I use the previous eLuna 3.3.5, I can compile without error.
 

Rochet2

Moderator / Eluna Dev
Not an eluna error.
See: https://github.com/TrinityCore/Trin...8810c33f1f9dbd36904ff8#commitcomment-12870921

You should include what you use in the script.
A quick fix for errors from scriptpch if you dont know how to deal with includes is to delete the scriptpch include from your custom scripts and add these includes instead:
Code:
#include "ScriptMgr.h"
#include "Cell.h"
#include "CellImpl.h"
#include "GameEventMgr.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Unit.h"
#include "GameObject.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "InstanceScript.h"
#include "CombatAI.h"
#include "PassiveAI.h"
#include "Chat.h"
#include "DBCStructure.h"
#include "DBCStores.h"
#include "ObjectMgr.h"
#include "SpellScript.h"
#include "SpellAuraEffects.h"
 
Status
Not open for further replies.
Top