Compiling custom scripts on Linux menu

User Tag List

Results 1 to 1 of 1
  1. #1
    pcrew's Avatar Member
    Reputation
    54
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Compiling custom scripts on Linux

    How to compile custom scripts on Linux / Mac OS X

    This guide is for ArcEmu but if you are on Ascent use your common sense when replacing things.

    Okay , in this tutorial the directory with my arcemu revision is /arcemu . All the bits in green have to be replaced by the corresponding names.

    1. Open /YOUR_ARCEMU_ROOT_DIR/src/scripts/Makefile.am

    2. You will see something similar to
    Code:
    SUBDIRS = InstanceScripts GossipScripts ExtraScripts ServerStatusPlugin SpellHandlers LUAScripting QuestScripts EventScripts MiscScripts
    Add you script directory name (in my case it is MyScript) so it will look like this :
    Code:
    SUBDIRS = InstanceScripts GossipScripts ExtraScripts ServerStatusPlugin SpellHandlers LUAScripting QuestScripts EventScripts MiscScripts YOUR_SCRIPT_DIRECORY_NAME
    3. Create a new directory with the name you have just added to Makefile.am

    4. Open that directory and create a new make file (Makefile.am)

    5. Paste that into the makefile replacing CPPFILE with the script's CPP file and LIBNAME with your preferred library name (directory name).
    Code:
    INCLUDES = -I$(top_srcdir)/src/arcemu-logonserver \
       -I$(top_srcdir)/src/arcemu-realmserver -I$(top_srcdir)/src/arcemu-shared -I$(top_srcdir)/src/arcemu-voicechat \
       -I$(top_srcdir)/src/arcemu-world -I$(srcdir) -I$(srcdir)/../../../../dep/include \
       -I$(srcdir)/../../../../dep/src -I$(srcdir)/../../../../src
    
    AM_CXXFLAGS = -DSCRIPTLIB
    
    lib_LTLIBRARIES = libLIBNAME.la
    
    libLIBNAME_la_SOURCES =  Setup.cpp \
    CPPFILE.cpp
    6. Copy Setup.cpp and Setup.h from any of the script directories for example GossipScripts

    7. Get rid of all but one Setup***(mgr); entries.

    8. In both of the setup files replace Setup***(mgr); with SetupYOUR_SCRIPT_CLASS_NAME(mgr);

    9. If you haven't done it already paste your script's CPP file into the directory

    10. In the root direcory open configure.ac. In the "AC_CONFIG_FILES([" section add new line just above "])" : src/scripts/src/YOUR_SCRIPT_DIRECTORY/Makefile

    11. Run (in the root directory) 'autoreconf'. This will create makefile input files.

    12. You can now compile your server (./configure , make , make install)
    Last edited by pcrew; 10-30-2009 at 10:40 AM.

    Compiling custom scripts on Linux

Similar Threads

  1. [tutorial] Compiling custom scripts
    By Trle94 in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 08-15-2009, 07:46 PM
  2. Error compiling with custom scripts
    By Nadromar in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-14-2009, 01:16 PM
  3. [Compiling Custom Scripts] Arena Event
    By Pwntzyou in forum WoW EMU Guides & Tutorials
    Replies: 26
    Last Post: 06-14-2009, 07:17 AM
  4. [Release] Custom scripts
    By ion564 in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 05-12-2008, 07:02 PM
  5. How to Compile mangos under a linux cli environment
    By mrmr in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 12-28-2007, 04:57 PM
All times are GMT -5. The time now is 03:20 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search