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

Link to comment
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

Link to comment
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!

Link to comment
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.

Link to comment
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 ==========

Link to comment
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.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.


  • Similar Content

    • By xgamerninjax
      Hello all, first time posting here and it's really got me scratching my head.
      I've compiled everything on my own computer, and then transferred everything to a host computer so the server can stay live. The server was running fine for a month or so and then suddenly it just crashes when it hits "Loading C++ scripts", exiting saying "caught signal 22"
      I tried setting up the host computer from scratch and transferred everything over fresh and it's still happening for some reason. (Note, I can run the server perfectly on my personal pc where I compiled it.)
      Any help would be greatly appreciated, thanks!
      3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].dmp 3d7e3a40e2b3+_worldserver.exe_[1-4_15-19-45].txt
    • 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.
×
×
  • Create New...