How to Compile Extra C++ Scripts in Arcemu menu

User Tag List

Results 1 to 5 of 5
  1. #1
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Compile Extra C++ Scripts in Arcemu

    There is a few of these as I saw but they are now two years old and not updated so here is my guide.
    Some pre-requisites:
    You must know how to compile
    Compile a fresh un-altered core first

    1.0 Getting your script
    2.0 Setting Up and saving your .cpp file
    3.0 Modifing Setup.cpp and Setup.h
    4.0 Compiling your script
    5.0 Now Your Done

    1.0
    For this script we will be using is Magers Boss Tracker
    http://www.mmowned.com/forums/emulat...ck-v1-0-a.html but you could have made your own script or found another one they all compile the same. If you have two scripts in the same release you would follow this guide for both of them

    2.0
    First Copy the script in the post above.
    Then open up your Visual C++ and go to
    new>>new file>>new .cpp file





    then paste the your script into the new file.
    Now go to file>>Save as
    Here you want to save your file in the extra scripts folder, to find this folder go to:
    Trunk folder your main one then src>>scripts>>src>>ExtraScripts
    that is were you want to save your script as whatever.cpp the .cpp is vital

    3.0
    Modifying the proper files to get your script to run right
    Once you have saved your file in the extra scripts you need to add your script to the project, to do this you:
    First navigate your your Trunk>>src>>scripts>>win>>Scripts2008
    open this up then click on extrascripts
    First you have to add the script to your extra scripts project:

    and go to add existing item and find your script in the extra script folder then your done with that part

    3.1
    go to setup.cpp

    open it up. Then open up your script and scroll down to the bottom you will see somthing like this:
    Code:
    void SetupFirstBossKill(ScriptMgr * mgr)
    Go ahead and copy the whole thing then go back to setup.cpp

    you will see a section like:
    Code:
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)	// Comment any script to disable it
    {
    	SetupNeutralGuards(mgr);
    }
    You want to paste your script you just copied into it and modify it so it looks like this:
    Code:
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)	// Comment any script to disable it
    {
    	SetupNeutralGuards(mgr);
            SetupFirstBossKill(mgr);
    
    }

    now save it.

    3.2
    Now open up your setup.h and you will see somthing like this:
    Code:
    void SetupNeutralGuards(ScriptMgr* mgr);
    underneath that paste your script it will look somthing like this
    Code:
    void SetupNeutralGuards(ScriptMgr* mgr);
    void SetupFirstBossKill(ScriptMgr * mgr);


    save it.

    4.0
    Now compile your scripts2008 solution if you know how to compile you should know how to do this

    that is what I got and Is what you should have got if you followed my steps

    5.0
    Now your done take your updated core and replace it with your other core or if they are the same rev just take your script_bin and replace it with your old one and test it out

    And thats it I hope you found this tutorial easy to follow and well laid out. If you have any questions feel free to ask.

    Thanks
    Last edited by slade1000; 01-01-2010 at 06:06 PM.

    How to Compile Extra C++ Scripts in Arcemu
  2. #2
    Warriar's Avatar Active Member
    Reputation
    31
    Join Date
    May 2009
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice guide

  3. #3
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you hope it helped

  4. #4
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like a nice tutorial, should help out those who are just getting int ocompiling.

  5. #5
    slade1000's Avatar Active Member

    Reputation
    66
    Join Date
    Jun 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks hopefully it does

Similar Threads

  1. [Guide] How to compile and host arcemu - EASY
    By forces in forum WoW EMU Guides & Tutorials
    Replies: 31
    Last Post: 08-21-2008, 03:11 PM
  2. How to Compile ArcEmu Scripts
    By Sokatu in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 08-09-2008, 01:52 PM
  3. compile C++ Scripts with Arcemu
    By zeropain in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 08-02-2008, 11:34 AM
  4. How to get Arcemu to compile with no script errors
    By Sorayazlawl in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-17-2008, 08:27 PM
  5. [Guide] How to compile scripts!
    By Aldaus in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 01-19-2008, 05:41 AM
All times are GMT -5. The time now is 08:37 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