Compliling DLL menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Lindoz12's Avatar Member
    Reputation
    19
    Join Date
    Apr 2007
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Compliling DLL

    Alright, so i was following 3 guides and finally got the DLL compiling to come somewhere, but now, when ive been sitting looking for hours i get another error!
    Here are my scripts.


    Event.cpp
    Code:
    //---------------------
    // Name: Event Teleporter v2
    // Author: Spidey
    //---------------------
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    //If set to true, will enable players to #event while in combat
    static bool bypassCombat = false;
    
    static string evon = "#eventon";
    static string evoff = "#eventoff";
    static string evplr = "#event";
    
    //Default Values
    static bool eon = false;
    static uint32 emapid = 0;
    static float ex = 0.0f;
    static float ey = 0.0f;
    static float ez = 0.0f;
    
    void EventChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
    {
       if(Message == evon && pPlayer->GetSession()->HasGMPermissions())
       {
          eon = true;
          ex = pPlayer->GetPositionX();
          ey = pPlayer->GetPositionY();
          ez = pPlayer->GetPositionZ();
          emapid = pPlayer->GetMapId();
       }
       else if(Message == evoff && pPlayer->GetSession()->HasGMPermissions())
       {
          eon = false;
       }
       else if(Message == evplr)
       {
          if(eon)
             if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
                pPlayer->EventTeleport(emapid, ex, ey, ez);
             else
                pPlayer->BroadcastMessage("You can't port while in combat.");
          else
             pPlayer->BroadcastMessage("There's no active event at the moment.");
       }
    }
    
    void SetupEvent(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &EventChat);
    }
    Setup.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    #define SKIP_ALLOCATOR_SHARING 1
    #include <ScriptSetup.h>
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
        return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
        SetupEvent(mgr);
    
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    Setup.h
    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupEvent(ScriptMgr * mgr);
    
    #endif
    --------------------------------------------------------------------------
    Here is the ERROR-code:
    Code:
    ------ Build started: Project: Event, Configuration: Release Win32 ------
    Compiling...
    Setup.cpp
    c:\Documents and Settings\Oscar\Skrivbord\test\trunk\src\arcemu-world\ScriptSetup.h(25) : fatal error C1083: Cannot open include file: 'svn_revision.h': No such file or directory
    Build log was saved at "file://c:\Documents and Settings\Oscar\Skrivbord\test\trunk\src\scripts\projects\2008_int_release_Event\BuildLog.htm"
    Event - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Any help appriciated!

    Compliling DLL
  2. #2
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1421
    Join Date
    Apr 2006
    Posts
    3,942
    Thanks G/R
    285/572
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    um.... epic fail? i'm going to go out on a limb and say you did not program this yourself....

    "Cannot open include file: 'svn_revision.h': No such file or directory"

    If that does not tell you your problem, then you dont need to compile the project anyways.

  3. #3
    Lindoz12's Avatar Member
    Reputation
    19
    Join Date
    Apr 2007
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, how great, thanks for the help dude!... NOT! Cmon, just tell me, do i use the wrong revision?

  4. #4
    Jens's Avatar Contributor
    Reputation
    179
    Join Date
    Sep 2006
    Posts
    251
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no, the compiler just cant find the file, make sure all the files are in the project folder.

  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 Lindoz12 View Post
    Oh, how great, thanks for the help dude!... NOT! Cmon, just tell me, do i use the wrong revision?

    My god you still don't get it...
    svn_revision.h is generated while building the core. You must build the core BEFORE building the scripts / must compile the core by yourself

  6. #6
    kynox's Avatar Account not activated by Email
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Holy ****. You have got to be the stupidest ****ing person on this forum. _EVERY_ thread you make is asking for help, code. Seriously, get a knife; put said knife into your eye and twist.

  7. #7
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You officially win the 'stupidest member of the year' award.

Similar Threads

  1. [DLL] New PvpSystem
    By Gastricpenguin in forum World of Warcraft Emulator Servers
    Replies: 63
    Last Post: 03-15-2008, 05:22 AM
  2. Replies: 6
    Last Post: 10-05-2007, 02:59 PM
  3. Using DLL's to inject values without CE.
    By Matsy in forum World of Warcraft Bots and Programs
    Replies: 7
    Last Post: 06-29-2007, 02:26 PM
  4. so whats scan.dll?
    By Grass in forum World of Warcraft General
    Replies: 1
    Last Post: 02-27-2007, 07:14 AM
  5. .DLL Injector & Language Hack
    By tehshadow in forum World of Warcraft Bots and Programs
    Replies: 18
    Last Post: 11-07-2006, 10:38 PM
All times are GMT -5. The time now is 06:31 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