[Guide] How to compile your own DLL menu

User Tag List

Page 4 of 4 FirstFirst 1234
Results 46 to 59 of 59
  1. #46
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you use Normal Ascent or OpenAscent?
    This error pops up when StdAfx.h wasn't compiled before the script and that means you
    didn't compile Ascent before :/


    [Guide] How to compile your own DLL
  2. #47
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great guide, realy helping me. But I found something that seems wrong, or is it just me?

    RelativePath="..srcPvPTokenPvPToken.cpp"

    RelativePath="..srcPvPTokenSetup.h"

    RelativePath="..srcPvPTokenSetup.cpp"
    Should't it be like

    RelativePath="..src//PvPToken//PvPToken.cpp"

    RelativePath="..src//PvPToken//Setup.h"

    RelativePath="..src//PvPToken//Setup.cpp"
    Or is it just be that is thinking wrong?

  3. #48
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm you could be right... Sorry I dont have the option to test it now but Ill add it.

  4. #49
    Entr0py's Avatar Member
    Reputation
    35
    Join Date
    May 2007
    Posts
    396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rofl dude curse thats exactly what i told u and u didnt change it

    Remember to + Rep people who help you!

  5. #50
    Aifaib's Avatar Member
    Reputation
    11
    Join Date
    Jul 2007
    Posts
    31
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot, This helped me out.

  6. #51
    spike388's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok. I have tried and tried, Search and Searched... I am getting this error

    c1xx : fatal error C1083: Cannot open source file: '.\..scr\WarpNPC\WarpNPC.cpp': No such file or directory
    Setup.cpp
    c1xx : fatal error C1083: Cannot open source file: '.\..scr\WarpNPC\Setup.cpp': No such file or directory
    Generating Code...

    My Setup.ccp, Setup.h, and WarpNPC.cpp are saved at E:\AC Code\branches\3_8_stable\src\scripts\src\WarpNPC

    Here is my Project File... Saved under E:\AC Code\branches\3_8_stable\src\scripts\projects

    Code:
    <?xml version="1.0" encoding="Windows-1252"?>
    <VisualStudioProject
    	ProjectType="Visual C++"
    	Version="9.00"
    	Name="WarpNPC"
    	ProjectGUID="{495CDEBE-E216-485B-B2F1-2FC0BD9DAE7D}"
    	Keyword="Win32Proj"
    	TargetFrameworkVersion="131072"
    	>
    	<Platforms>
    		<Platform
    			Name="Win32"
    		/>
    	</Platforms>
    	<ToolFiles>
    	</ToolFiles>
    	<Configurations>
    		<Configuration
    			Name="Debug|Win32"
    			OutputDirectory="......bindebugscript_bin"
    			IntermediateDirectory="2003_int_debug_WarpNPC"
    			ConfigurationType="2"
    			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults/UpgradeFromVC71.vsprops"
    			CharacterSet="2"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				AdditionalOptions="/MP"
    				Optimization="0"
    				AdditionalIncludeDirectories="....ascent-shared;....ascent-world;......depinclude;......depsrc"
    				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;SCRIPTLIB"
    				MinimalRebuild="true"
    				BasicRuntimeChecks="3"
    				RuntimeLibrary="1"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="true"
    				DebugInformationFormat="4"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="ascent-world.lib"
    				OutputFile="../../../bin/debug/script_bin/WarpNPC.dll"
    				LinkIncremental="2"
    				AdditionalLibraryDirectories="......bindebug"
    				GenerateDebugInformation="true"
    				ProgramDatabaseFile="../../../bin/debug/script_bin/WarpNPC.pdb"
    				SubSystem="2"
    				RandomizedBaseAddress="1"
    				DataExecutionPrevention="0"
    				ImportLibrary="$(OutDir)/WarpNPC.lib"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMa****ol"
    			/>
    			<Tool
    				Name="VCBscMa****ol"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    		<Configuration
    			Name="Release|Win32"
    			OutputDirectory="......binreleasescript_bin"
    			IntermediateDirectory="2003_int_release_WarpNPC"
    			ConfigurationType="2"
    			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults/UpgradeFromVC71.vsprops"
    			CharacterSet="2"
    			>
    			<Tool
    				Name="VCPreBuildEventTool"
    				ExcludedFromBuild="true"
    			/>
    			<Tool
    				Name="VCCustomBuildTool"
    			/>
    			<Tool
    				Name="VCXMLDataGeneratorTool"
    			/>
    			<Tool
    				Name="VCWebServiceProxyGeneratorTool"
    			/>
    			<Tool
    				Name="VCMIDLTool"
    			/>
    			<Tool
    				Name="VCCLCompilerTool"
    				AdditionalIncludeDirectories="....ascent-shared;....ascent-world;......depinclude;......depsrc"
    				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;SCRIPTLIB"
    				RuntimeLibrary="0"
    				UsePrecompiledHeader="0"
    				WarningLevel="3"
    				Detect64BitPortabilityProblems="true"
    				DebugInformationFormat="3"
    			/>
    			<Tool
    				Name="VCManagedResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCResourceCompilerTool"
    			/>
    			<Tool
    				Name="VCPreLinkEventTool"
    			/>
    			<Tool
    				Name="VCLinkerTool"
    				AdditionalDependencies="ascent-world.lib"
    				OutputFile="../../../bin/release/script_bin/WarpNPC.dll"
    				LinkIncremental="1"
    				AdditionalLibraryDirectories="......binrelease"
    				GenerateDebugInformation="true"
    				ProgramDatabaseFile="../../../bin/release/script_bin/WarpNPC.pdb"
    				SubSystem="2"
    				OptimizeReferences="2"
    				EnableCOMDATFolding="2"
    				RandomizedBaseAddress="1"
    				DataExecutionPrevention="0"
    				ImportLibrary="$(OutDir)/WarpNPC.lib"
    				TargetMachine="1"
    			/>
    			<Tool
    				Name="VCALinkTool"
    			/>
    			<Tool
    				Name="VCManifestTool"
    			/>
    			<Tool
    				Name="VCXDCMa****ol"
    			/>
    			<Tool
    				Name="VCBscMa****ol"
    			/>
    			<Tool
    				Name="VCFxCopTool"
    			/>
    			<Tool
    				Name="VCAppVerifierTool"
    			/>
    			<Tool
    				Name="VCPostBuildEventTool"
    			/>
    		</Configuration>
    	</Configurations>
    	<References>
    	</References>
    	<Files>
    		<Filter
    			Name="Main Resources"
    			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
    			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
    			>
    			<File
    				RelativePath="..scrWarpNPCSetup.cpp"
    				>
    			</File>
    			<File
    				RelativePath="..scrWarpNPCSetup.h"
    				>
    			</File>
    		</Filter>
    		<Filter
    			Name="Scripts"
    			Filter="h;hpp;hxx;hm;inl;inc;xsd"
    			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
    			>
    			<File
    				RelativePath="..scrWarpNPCWarpNPC.cpp"
    				>
    			</File>
    		</Filter>
    	</Files>
    	<Globals>
    	</Globals>
    </VisualStudioProject>
    The code for setup.cpp

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    extern "C" SCRIPT_DECL uint32 _exp_get_version()
    {
    	return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    	SetupWarpnpc(mgr);
    
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
    	return TRUE;
    }
    
    #endif
    The code for Setup.h

    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupWarpNPC(ScriptMgr * mgr);
    
    #endif
    The code for WarpNPC.cpp (yes I know, just one port location, just trying to get something working)

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305)// warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    
    class SCRIPT_DECL WarpNPC : public GossipScript
    {
    	public:
    	void Destroy()
    	{
    			delete this;
    	}
    
    	void GossipHello(Object* pObject, Player * Plr, bool AutoSend)
    	{
    		GossipMenu *Menu;
    		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
    		Menu->AddItem(0,"Horde Cities", 1);
    		if(AutoSend)
    			Menu->SendTo(Plr);
    		}
    	void GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    	{
    		Creature * pCreature = (pObject->GetTypeId()==TYPEID_UNIT)?((Creature*)pObject):NULL;
    		if(pCreature==NULL)
    			return ;
    			GossipMenu *Menu;
    		switch(IntId)
    		{
    			case 1: //Horde Cities
    			{
    				objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
    				Menu->AddItem(5,"Orgrimmar",2);
    				Menu->SendTo(Plr);
    			}break;
    			case 2: //Orgrimmar
    			{
    
    				//Teleport the player.
    				Plr->EventTeleport( 1, 1502.71, -4415.42, 21.5512);
    				Plr->Gossip_Complete();
    			}break;
    		}
    	}
    };
    
    void SetupWarpnpc(ScriptMgr * mgr)
    {
    	GossipScript *warp = (Warpnpc*) new WarpNPC();
    
    	mgr->register_gossip_script(100000, warp);
    }

  7. #52
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I'm getting an error similar to the one someone else got earlier.
    Code:
    1>------ Build started: Project: startport, Configuration: Release Win32 ------
    1>Compiling...
    1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
    1>startport.cpp
    1>..srcstartportstartport.cpp(1) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Setup.cpp
    1>..srcstartportSetup.cpp(1) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Generating Code...
    1>Build log was saved at "file://h:OpenAscenttrunksrcscriptsprojects2003_int_release_startportBuildLog.htm"
    1>startport - 2 error(s), 1 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    And yes, I've compiled Ascent. I am using OpenAscent if that makes a difference.

  8. #53
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like I said a thousand times before... This guide is OLD! The new .vcproj doesnt mean that it works with OpenAscent! I wrote this guide long time ago. It SHOULD give you an idea how the compiling works - Now try to fix the errors yourself! (This guide was released way before OpenAscent)

  9. #54
    guitargod218's Avatar Banned
    Reputation
    61
    Join Date
    Apr 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not totally sure how to fix it. I've tried by myself, but it really doesn't seem to work. If you know how to do it, maybe you can help me out. Do you have MSN?

  10. #55
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [email protected] is my MSN...

  11. #56
    InternetHero's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Same here

    Originally Posted by guitargod218 View Post
    Yeah, I'm getting an error similar to the one someone else got earlier.
    Code:
    1>------ Build started: Project: startport, Configuration: Release Win32 ------
    1>Compiling...
    1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
    1>startport.cpp
    1>..srcstartportstartport.cpp(1) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Setup.cpp
    1>..srcstartportSetup.cpp(1) : fatal error C1083: Cannot open include file: 'StdAfx.h': No such file or directory
    1>Generating Code...
    1>Build log was saved at "file://h:OpenAscenttrunksrcscriptsprojects2003_int_release_startportBuildLog.htm"
    1>startport - 2 error(s), 1 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    And yes, I've compiled Ascent. I am using OpenAscent if that makes a difference.

    I get this same error... someone help please...

  12. #57
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you didnt see it: SectorSeven made a great guide about compiling DLLs too. I linked it in the main thread but anyway here is the link: Link
    If you get any errors, have some problems with my guide I'd recommend looking there

  13. #58
    merlinguy21's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello nooblets

  14. #59
    Cursed's Avatar Contributor
    Reputation
    270
    Join Date
    Jun 2007
    Posts
    1,380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What? You arent calling me a noob are you?

    [/OFFTOPIC]

Page 4 of 4 FirstFirst 1234

Similar Threads

  1. [GUIDE] How to compile your own server [MUCH SAFER!]
    By razordemon in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 05-31-2008, 11:27 AM
  2. [Guide] How to compile your own ascent server. 100% work !! TRY IT :D
    By Etzzhy in forum WoW EMU Guides & Tutorials
    Replies: 22
    Last Post: 05-09-2008, 07:04 PM
  3. [Guide] Compiling your own DLL
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 26
    Last Post: 04-22-2008, 09:31 AM
  4. [Guide] How to make your own graveyard
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 02-28-2008, 01:43 AM
  5. [RELEASE] How to compile your own funserver and Patch the source code
    By pepsi1x1 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-26-2007, 06:24 PM
All times are GMT -5. The time now is 11:43 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search