Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > World of Warcraft > WoW Private Server
You last visited: Today at 17:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Custom Script auf TrinityCore funktioniert nicht

Discussion on Custom Script auf TrinityCore funktioniert nicht within the WoW Private Server forum part of the World of Warcraft category.

Reply
 
Old   #1
 
DEV-Explo.IT's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 557
Received Thanks: 80
Custom Script auf TrinityCore funktioniert nicht

Guten Abend Community..

Wollte vorhin anfangen ein paar "Customscripts" (C++) auf meinen Server zu packen.
Bin nach diesem Tutorial vorgegangen (für Linux):


Sprich in die ScriptLoader.cpp eingefügt:
Code:
#ifdef SCRIPTS
/* This is where custom scripts' loading functions should be declared. */
void AddSC_professions_npc();
void AddSC_kill_streak();
#endif

void AddCustomScripts(){
#ifdef SCRIPTS
    /* This is where custom scripts should be added. */
    AddSC_professions_npc();
    AddSC_kill_streak();
#endif
}
Im Verzeichnis ../Custom die beiden C++ Scripts eingefügt.
Und auch im selben Verzeichnis die CMakeLists.txt bearbeitet:
Code:
set(scripts_STAT_SRCS
  ${scripts_STAT_SRCS}
Custom/professions_npc.cpp
Custom/kill_streak.cpp
)

message("  -> Prepared: Custom")
Dann ins Verzeichnis ../TrinityCore/build gewechselt und compiliert.
Code:
cmake ../ -DPREFIX=/home/trinity/server -DWITH_WARNINGS=1

make
Dann trat folgender Fehler auf:
Code:
../game/libgame.a(ScriptLoader.cpp.o): In function `AddScripts()':
ScriptLoader.cpp:(.text+0xee1): undefined reference to `AddSC_professions_npc()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddCustomScripts()':
ScriptLoader.cpp:(.text+0xf75): undefined reference to `AddSC_professions_npc()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddScripts()':
ScriptLoader.cpp:(.text+0xeea): undefined reference to `AddSC_kill_streak()'
../game/libgame.a(ScriptLoader.cpp.o): In function `AddCustomScripts()':
ScriptLoader.cpp:(.text+0xf7e): undefined reference to `AddSC_kill_streak()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Fehler 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Fehler 2
make: *** [all] Fehler 2


Weiß jemand Rat? Habe vieles Ausprobiert, es lief aber immer auf den selben Fehler zurück!
DEV-Explo.IT is offline  
Old 04/01/2014, 19:19   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 178
Received Thanks: 34
Sieht soweit alles richtig aus, eventl. mal die Scripts posten?
BZW. im unteren Teil der Scripts muss auch etwas wie das stehen:
Quote:
void AddSC_xyz()
{
new xyz();
}
winked is offline  
Old 04/01/2014, 19:58   #3
 
Kaev <3's Avatar
 
elite*gold: 110
Join Date: Mar 2008
Posts: 856
Received Thanks: 391
Er hatte das Script in einem Unterordner liegen, was den Fehler auslöste.

/fixed
Kaev <3 is offline  
Thanks
2 Users
Old 04/01/2014, 20:18   #4
 
DEV-Explo.IT's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 557
Received Thanks: 80
Problem gelöst!

Danke an Kaev :3

#closerequest
DEV-Explo.IT is offline  
Reply


Similar Threads Similar Threads
Custom Script auf TrinityCore funktioniert nicht
04/01/2014 - WoW Private Server - 1 Replies
Guten Abend Community.. Wollte vorhin anfangen ein paar "Customscripts" (C++) auf meinen Server zu packen. Bin nach diesem Tutorial vorgegangen (für Linux): How-to_CustomScript Sprich in die ScriptLoader.cpp eingefügt: #ifdef SCRIPTS /* This is where custom scripts' loading functions should be declared. */ void AddSC_professions_npc();
Script funktioniert nicht!
11/17/2013 - Web Development - 10 Replies
Hi comm, dieser code: <div class="con_top">Itemshop</div> <div class="con_mid"> <?PHP function canBuy()
Script Funktioniert nicht warum ???
08/28/2011 - AutoIt - 0 Replies
Hallo Leute wie die überschrift schon sagt Funktioniert mein Script nicht ich habe das script mal hier eingefügt Es soll für Inkball sein (Ich weis das ist kein richtiges spiel aber egal das soll nur zur übung sein) ich habe die pointer mit cheat engine gefunden per pointerscan
Vote4Coins Script funktioniert nicht.
07/19/2011 - Metin2 Private Server - 2 Replies
Moin, Mein Vote4Coins Script funktioniert nicht ganz :-( <div id="content"> <div class="postui2 text-title"> <h2> Vote </h2> </div>
[Help] AutoIt 3 Script funktioniert nicht
02/15/2010 - AutoIt - 5 Replies
hi, habe ein Script geschrieben, aber irgendwie beendet sich das immer von selbst. Script: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>



All times are GMT +1. The time now is 17:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.