Register for your free account! | Forgot your password?

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

  • 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, 03:49   #2

 
zadika's Avatar
 
elite*gold: 100
Join Date: May 2010
Posts: 427
Received Thanks: 157
Code:
void AddSC_yourcode();
AddSC_yourcode();
sollte ausreichen.... hättest aber auch in skype fragen können hättest dir die wartezeit hier im forum erspart

dennoch stell ich mir die frage wieso du diesen befehl zum konfigurieren nutzt?

Code:
cmake ../ -DPREFIX=/home/trinity/server -DWITH_WARNINGS=1
der hier würde es auch tun

Code:
cmake .. -DCMAKE_INSTALL_PREFIX=/home/trinity/server
zadika is offline  
Reply


Similar Threads Similar Threads
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>
v15 Ranking script funktioniert nicht
06/17/2011 - Flyff Private Server - 5 Replies
Hi leute habe mal das ranking script von dem Theard homepage tools genommen doch als ich alles konfiguiert habe kommt nur configuration incorecta... was kann ich da tun leigt dass am script??
[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 12:37.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.