[C++] GameMonkey Engine menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] GameMonkey Engine

    I hate LUA so I decided to make an alternative.
    You can use this GameMonkey scripting engine in any aspire server I haven't tried arcemu but they should be the same or easy to convert.

    The engine is based on ascent rev 2000's gm engine with a lot of changes to work on the latest patch.

    Warning: You have to know some c++ and be able to configure projects yourself

    HOW TO SETUP
    Download the patch below, and the latest version of GameMonkey here GameMonkey Script

    Extract the GameMonkey source files in dep/src/gm in your emu

    Create a new visual c++ project for gamemonkey that compiles it to a .lib file

    Put my visual c++ project in src/scripts/projects and the source code in src/scripts/src/GMEngine

    Edit the core and configs

    Link the GM project to the one I made

    Compile

    Run

    HOW TO EDIT THE CORE
    (Note: You cant be using a repack to edit the core.)

    Open ScriptMgr.h in your emu
    Find
    Code:
    enum ScriptTypes
    {
    	SCRIPT_TYPE_MISC						= 0x01,
    	SCRIPT_TYPE_INFODUMPER					= 0x02,
    	SCRIPT_TYPE_SCRIPT_ENGINE				= 0x20,
    	SCRIPT_TYPE_SCRIPT_ENGINE_LUA			= 0x21,
    Put SCRIPT_TYPE_SCRIPT_ENGINE_GM somewhere, I did this
    Code:
    enum ScriptTypes
    {
    	SCRIPT_TYPE_MISC						= 0x01,
    	SCRIPT_TYPE_INFODUMPER					= 0x02,
    	SCRIPT_TYPE_SCRIPT_ENGINE				= 0x20,
    	SCRIPT_TYPE_SCRIPT_ENGINE_LUA			= 0x21,
    	SCRIPT_TYPE_SCRIPT_ENGINE_PYTHON		= 0x22,
    	SCRIPT_TYPE_SCRIPT_ENGINE_GAME			= 0x23,
    };
    Open ScriptMgr.cpp

    Search for this
    Code:
    if( itr->Type & SCRIPT_TYPE_SCRIPT_ENGINE_LUA )
    			{
    				// lua :O
    				if( Config.MainConfig.GetBoolDefault("ScriptBackends", "LUA", false) )
    				{
    					Log.Notice("ScriptMgr","Initializing LUA script engine...");
    					itr->InitializeCall(this);
    					_handles.push_back( (SCRIPT_MODULE)itr->Handle );
    				}
    				else
    				{
    					FreeLibrary( itr->Handle );
    				}
    			}
    Add this right after
    Code:
    else if( itr->Type & SCRIPT_TYPE_SCRIPT_ENGINE_GAME )
    			{
    				if( Config.MainConfig.GetBoolDefault("ScriptBackends", "GameMonkey", false) )
    				{
    					Log.Notice("ScriptMgr","Initializing GameMonkey script engine...");
    					itr->InitializeCall(this);
    					_handles.push_back( (SCRIPT_MODULE)itr->Handle );
    				}
    				else
    				{
    					FreeLibrary( (*itr).Handle );
    				}
    			}
    Then find your world config file

    Search for
    Code:
    <ScriptBackends LUA="1"
    Add
    Code:
    GameMonkey="1"
    Right under it

    Then recompile the core and you're good

    The patch is over here: Filebeam - Beam up that File Scottie!


    Btw here is a sample script, to get a feel for the language
    Code:
    /* Kobold script for northshire */
    
    global KoboldAggro = function(plr)
    {
      Unit.SendChatMessage("You no take candle!");
    };
    
    .RegisterUnitEvent(6, 1, KoboldAggro);

    [C++] GameMonkey Engine
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Gamemonkey! Oh this brings back memories... Lua is far better than Gamemonkey to be honest; in terms of the language, practicality and functionality. Nevertheless, gamemonkey is still a fun language.

  3. #3
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Gamemonkey! Oh this brings back memories... Lua is far better than Gamemonkey to be honest; in terms of the language, practicality and functionality. Nevertheless, gamemonkey is still a fun language.
    I <3 GM syntax

    The Ascent GM engine was a piece of crap though, atm I am rewriting everything because barely any commands work. I'll have creature and player functions finished in a week or 2

  4. #4
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    gm script was removed because it only works on 32bit..

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  5. #5
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by AzolexX View Post
    gm script was removed because it only works on 32bit..
    According to the devs it can compile in 64 bit Windows, Linux, and Solaris now (i didnt try though).

  6. #6
    Pedregon's Avatar Contributor
    Reputation
    220
    Join Date
    Aug 2007
    Posts
    705
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds good.
    Good job Le Froid
    + 4 cookies
    Leecher - 08-30-2007 - Contributor - 07-23-2008
    Donator - 06-19-2009
    My website



  7. #7
    Mr.Jebus Christ's Avatar Banned
    Reputation
    117
    Join Date
    Mar 2007
    Posts
    351
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gamemonkey does bring back memories :O

  8. #8
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any chance for MaNGOS/Trinity support?
    I can't bring myself to go back to ascent and I miss using GM!

Similar Threads

  1. Cheat Engine
    By Relz in forum World of Warcraft Bots and Programs
    Replies: 535
    Last Post: 09-12-2007, 04:47 PM
  2. Engineering for Dummys!
    By pwner in forum World of Warcraft Guides
    Replies: 3
    Last Post: 12-08-2006, 04:41 PM
  3. Thottbot Search Engine (MATT please read)
    By Tbone in forum Community Chat
    Replies: 13
    Last Post: 11-07-2006, 06:27 AM
  4. Engineering Guide
    By Bossman4 in forum World of Warcraft Guides
    Replies: 1
    Last Post: 06-19-2006, 11:00 PM
  5. Cheap Engineering 1-300
    By Matt in forum World of Warcraft Guides
    Replies: 3
    Last Post: 05-19-2006, 07:23 PM
All times are GMT -5. The time now is 07:16 AM. 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