Jump to content
TrinityCore

Recommended Posts

Hello,

I have been wanting to try trinitycore for a while and I now got the chance.

I just have a small problem using CMAKE (following all the instructions on the trinitycore windows compilation article).

The log from CMAKE is posted below:

Check for working C compiler using: Visual Studio 10 Win64

Check for working C compiler using: Visual Studio 10 Win64 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):

  The C compiler "cl" is not able to compile a simple test program.


  It fails with the following output:


   Change Dir: C:/Dev/TrinityCore/10866/Build/CMakeFiles/CMakeTmp




  Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

  cmTryCompileExec.vcxproj /p:Configuration=Debug


  Microsoft (R) Build Engine Version 4.0.30319.1


  [Microsoft .NET Framework, Version 4.0.30319.1]


  Copyright (C) Microsoft Corporation 2007.  All rights reserved.




  Build started 1/24/2011 5:52:59 PM.


  Project

  "C:\Dev\TrinityCore\10866\Build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"

  on node 1 (default targets).


  C:\Program Files

  (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7):

  error MSB8007: The Platform for project 'cmTryCompileExec.vcxproj' is

  invalid.  Platform='x64'.  You may be seeing this message because you are

  trying to build a project without a solution file, and have specified a

  non-default Platform that doesn't exist for this project.

  [C:\Dev\TrinityCore\10866\Build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]



  Done Building Project

  "C:\Dev\TrinityCore\10866\Build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"

  (default targets) -- FAILED.




  Build FAILED.





  "C:\Dev\TrinityCore\10866\Build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"

  (default target) (1) ->


  (InvalidPlatformError target) -> 


    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'cmTryCompileExec.vcxproj' is invalid.  Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Dev\TrinityCore\10866\Build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]




      0 Warning(s)

      1 Error(s)




  Time Elapsed 00:00:00.79






  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:12 (project)



Configuring incomplete, errors occurred!

OS: Win7 Ultimate x64

Any help would be deeply appreciated.

Thanks in advance,

-atxe

Share this post


Link to post
Share on other sites


Check for working C compiler using: Visual Studio 10 Win64 -- broken
[/code]

Doesn't look like you installed the x64 components of VS2010.

Share this post


Link to post
Share on other sites

item_teleport.cpp :code:

/*

test send

*/

#include "ScriptPCH.h"

class item_teleporter : public ItemScript

{

public:

item_teleporter() : ItemScript("item_teleporter") { }

bool OnGossipSelect(Player *pPlayer, Item * pitem, uint32 sender, uint32 action)

{

pPlayer->PlayerTalkClass->ClearMenus();

if (sender != GOSSIP_SENDER_MAIN)

SendDefaultMenu_item_teleport(pPlayer, pitem, action);

return true;

switch(action)

{

case GOSSIP_ACTION_INFO_DEF+1:

pPlayer->TeleportTo(603, -706.122f, -92.6024f, 429.876f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

case GOSSIP_ACTION_INFO_DEF+2:

pPlayer->TeleportTo(603, 131.248f, -35.3802f, 409.804f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

case GOSSIP_ACTION_INFO_DEF+3:

pPlayer->TeleportTo(603, 553.233f, -12.3247f, 409.679f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

case GOSSIP_ACTION_INFO_DEF+4:

pPlayer->TeleportTo(603, 553.233f, -12.3247f, 409.679f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

case GOSSIP_ACTION_INFO_DEF+5:

pPlayer->TeleportTo(603, 553.233f, -12.3247f, 409.679f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

case GOSSIP_ACTION_INFO_DEF+6:

pPlayer->TeleportTo(603, 553.233f, -12.3247f, 409.679f, 0.0f);

pPlayer->CLOSE_GOSSIP_MENU();

break;

}

return true;

}

bool OnGossipHello(Player *pPlayer, Item * pitem)

{

pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Teleport to text1", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);

pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Teleport to text2", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+2);

pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Teleport to text3", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+3);

pPlayer->PlayerTalkClass->SendGossipMenu(907,pitem->GetGUID());

return true;

}

void SendDefaultMenu_item_teleport(Player *player, Item * pitem, uint32 action)

{

switch(action) {

// Teleport to text1_1

case GOSSIP_ACTION_INFO_DEF + 1 :

pPlayer->ADD_GOSSIP_ITEM( 2, " |cff8000FFTeleport to text1_1|CFF009933 ", 2, GOSSIP_ACTION_INFO_DEF + 1);

pPlayer->ADD_GOSSIP_ITEM( 2, " |CFF0000FFTeleport to text1_2|CFF009933 ", 2, GOSSIP_ACTION_INFO_DEF + 2);

pPlayer->PlayerTalkClass->SendGossipMenu(907,pitem->GetGUID());

break;

case GOSSIP_ACTION_INFO_DEF + 2 :

pPlayer->ADD_GOSSIP_ITEM( 2, " |cff8000FFTeleport to text2_1 ", 2, GOSSIP_ACTION_INFO_DEF + 3);

pPlayer->ADD_GOSSIP_ITEM( 2, " |CFF0000FFTeleport to text2_2 ", 2, GOSSIP_ACTION_INFO_DEF + 4);

pPlayer->PlayerTalkClass->SendGossipMenu(907,pitem->GetGUID());

break;

case GOSSIP_ACTION_INFO_DEF + 3 :

player->ADD_GOSSIP_ITEM( 2, " |CFF0000FFTeleport to text3_1 ", 2, GOSSIP_ACTION_INFO_DEF + 5);

player->ADD_GOSSIP_ITEM( 2, " |CFF0000FFTeleport to text3_2 ", 2, GOSSIP_ACTION_INFO_DEF + 6);

pPlayer->PlayerTalkClass->SendGossipMenu(907,pitem->GetGUID());

break;

}

}

}

void AddSC_item_teleport()

{

new item_teleport();

}

and in scritpsloader.cpp

//examples

void AddSC_item_teleport();

void AddCustomScripts()

{

#ifdef SCRIPTS

/* This is where custom scripts should be added. */

//TeleNPC2

AddSC_npc_teleport();

AddSC_item_teleport();

#endif

}

Can not compile

help thx

Share this post


Link to post
Share on other sites

Okay, I've been trying to figure this out for a couple of days on my own, but I really don't have a clue where I went wrong. I followed the guide listed here. I had no problems anywhere throughout the process. I pulled the source with GitExtensions. I ran CMake, and since I'm using MySQL 5.5 I did not include WITH_MYSQL_SOURCES, and I did pick the proper path to my git.exe at the bottom. I then generated, and ensured that I chose the right version of Visual Studio. I compiled the source with VS with no problems. I copied the proper files from MySQL and OpenSSL into the build/bin/release folder. I used TortoiseHG to clone the repository, installed MySQL Server as per the specifications listed. I then set up the databases as described, extracted DBC, maps, and vmaps and moved the maps, DBC, vmaps, and buildings folders to build/bin/release. I renamed worldserver.conf.dist to worldserver.conf, and authserver.conf.dist to authserver.conf. I changed the lines required to my logon and password I use to access my databases. Since I'm only connecting locally, I left the realmlist table's address set to 127.0.0.1. According to this guide, everything is set up properly, but when I try to run authserver.exe or worldserver.exe the command prompt pops up completely empty and a window tells me "The application was unable to start correctly (0x000007b). Click OK to close the application." I'm using Windows 7 64bit, and the 64bit versions of all software required in this process. If someone could help me to troubleshoot what's going wrong, I would be very grateful. Also, if this helps, I am able to log into my database server, and auth, world, and characters are all there. Thanks!

Share this post


Link to post
Share on other sites

Thank you for the speedy replies. I have .net 4 already, but I will give 3.5 a shot. I will also check out that link. If I still have issues I'll head back over here. Thanks again!

Share this post


Link to post
Share on other sites

.Net 3.5 didn't fix it, and the link, though it had good information, was not helpful to me either. I compiled with VS 2010 Professional, and it has 64 bit support in it already. Unless I missed the point of the link?

Share this post


Link to post
Share on other sites

Hacker - I'll see if I can figure out the debugging thing. I'm not much of a coder, so it might take a bit to figure out for me. :D

Killradio - Yep, I'm using OpenSSL 64 bit. I'll try switching to MySQL 5.1, but I don't believe my database is the problem. I can log in and see everything there already. Just can't get the trinity part running.

Share this post


Link to post
Share on other sites

I have tried to compile the source at least 20 times and I keep getting these problems here is the output compiled in Visual C++ 2010 express edition, please help.

1>------ Build started: Project: ZERO_CHECK, Configuration: Release Win32 ------

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

2>------ Build started: Project: ace, Configuration: Release Win32 ------

3>------ Build started: Project: revision.h, Configuration: Release Win32 ------

4>------ Build started: Project: zlib, Configuration: Release Win32 ------

5>------ Build started: Project: bzip2, Configuration: Release Win32 ------

6>------ Build started: Project: mpq, Configuration: Release Win32 ------

7>------ Build started: Project: collision, Configuration: Release Win32 ------

8>------ Build started: Project: gsoap, Configuration: Release Win32 ------

3>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

9>------ Build started: Project: scripts, Configuration: Release Win32 ------

10>------ Build started: Project: game, Configuration: Release Win32 ------

4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

11>------ Build started: Project: shared, Configuration: Release Win32 ------

6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

8>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

12>------ Build started: Project: libmysql, Configuration: Release Win32 ------

13>------ Build started: Project: g3dlib, Configuration: Release Win32 ------

14>------ Build started: Project: vmap3extractor, Configuration: Release Win32 ------

15>------ Build started: Project: mapextractor, Configuration: Release Win32 ------

10>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

13>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

9>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

16>------ Build started: Project: vmap3assembler, Configuration: Release Win32 ------

11>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

14>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

15>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

17>------ Build started: Project: authserver, Configuration: Release Win32 ------

18>------ Build started: Project: worldserver, Configuration: Release Win32 ------

16>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

18>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

17>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

19>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------

19>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6003: The specified task executable "cmd.exe" could not be run. Access is denied

20>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------

20>Project not selected to build for this solution configuration

========== Build: 0 succeeded, 19 failed, 0 up-to-date, 1 skipped ==========

Share this post


Link to post
Share on other sites

Yes I know that it is permissions but I am remotely connecting to this computer and I have full permissions could it be because I have a different IP address and the server that I am remotely connecting to does not enable me to use that type of program.

Share this post


Link to post
Share on other sites

Okay, thanks guys. I think MySQL 5.1 did the trick. I haven't been able to log into my game with an account yet, but the server seems to be running. I can't figure out how to encrypt my password for the account for the sha_pass_hash field in the accounts table.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Deer_Hunter
      Hello all,
      I just updated from the latest Git 
      Trinity Core REV. ac6baa547376 + 2020-02-21  3.3.5 Branch.
      I'm getting this error after crash.
      Problem signature:
        Problem Event Name:    APPCRASH
        Application Name:    worldserver.exe
        Application Version:    0.0.0.0
        Application Timestamp:    5e50a462
        Fault Module Name:    StackHash_f12f
        Fault Module Version:    6.3.9600.19629
        Fault Module Timestamp:    5e2fdc0d
        Exception Code:    c0000374
        Exception Offset:    PCH_9E_FROM_ntdll+0x0000000000090D0A
        OS Version:    6.3.9600.2.0.0.272.7
        Locale ID:    1033
        Additional Information 1:    f12f
        Additional Information 2:    f12f0934d3e965f73c68e60f20f2cd40
        Additional Information 3:    7595
        Additional Information 4:    7595e4d8d703db9dcd3d2f6ea540e357
      the exception code says its a Heap error,  I'm not sure how to troubleshoot this.
      Thanks
    • By 939h
      Hi,

      The chat channel Lookup for group is not available when a player isn't in a city. I tried to modify the worldserver.conf file with:
      #
      #    Channel.RestrictedLfg
      #        Description: Restrict LookupForGroup channel to characters registered in the LFG tool.
      #        Default:     1 - (Enabled, Allow join to channel only if registered in LFG)
      #                     0 - (Disabled, Allow join to channel in any time)
      Channel.RestrictedLfg = 0

      I restarted the server but it didn't help.

      Thanks
    • By meeek
      Hey, I've been trying to compile from github the core from 6.2.3/6.2.4, I'm well aware its stopped developing. I cannot get it to configure properly in CMake, nor can I obviously build it.
       
      I'd be willing to pay for help and get this working and running. I want to develop my own server on my freetime as a learning project and for entertainment. I can't find any core for WoD, sadly.. Very hard, would appreciate any quick help
       
    • By Probie_Wan_Kenobi
      I believe everything I have done up to this point has been correct. When I go to launch worldserver.exe a console window opens up for a second and closes right away and nothing else seems to have happened. I skipped a head a little in the instructions to see what is left and step 5 seems skippable since I am running this only for this computer and step 6 has me launch to a log in screen which I can not get to. I tried going to the faq but the page was not loading properly so I am forced to post here.
    • By Wark
      I'd just like to get a little insight to why so much of the current Trinitycore code doesn't match up to a few years ago.
      Now I know I'm not a pro at coding on Trinitycore and I understand that the core is open sourced but these just seem so significant and doesn't seem right to remove this stuff.
       
      Let me give an example. Lets say I'm watching this tutorial to get a little information about classes and methods that I can use when making a script. (I've also been using the Trinitycore Code Documentation as reference as well but it also seems to show the same issues)
      Although the tutorial is a little out of date, I don't see why OnGossipSelect doesn't exist anywhere in CreatureScript and that when I try to link the script to the core code it spits out this error.
      object of abstract class type "GossipTeleporter" is not allowed:
      pure virtual function "CreatureScript::GetAI" has no overrider
      The DEFINES of "ADD_GOSSIP_ITEM" and many more don't exist either.
       
      Am I missing something? All I want to know is if the core is mean't to be this way and if not should I download an older version of the core before I put to much working into my current core.
      (I downloaded my core right from the Trinitycore website tutorial)
       
      I'm currently trying to write a simple gossipteleporter that will let you talk to an npc and teleport to the given location. It's very hard to do this when so many things just don't exist within my core.
       
      EXTRA: I pasted this into a new custom script just to see if I would get errors and I got a lot of different errors: http://pastebin.com/raw/G62e0t49
      This was obtained from here: http://www.ac-web.org/forums/showthread.php?129885-Request-Teleporter-NPC-for-TrinityCore
      By no means am I looking to copy the code from the two links above, I was using them as a test to see if my core accepted them.
       
      Thanks,
      Wark
×
×
  • Create New...