Error Trying to Build mtg...Please Help me fix

Problems compiling the game? Ask Here
sandman423
Posts: 806
Joined: Thu Sep 10, 2009 8:59 pm

Error Trying to Build mtg...Please Help me fix

Post by sandman423 »

I am using Microsoft Visual C++ 2010 Express


I was able to Build "JGE" but not MTG I got this error it says Up to date...Please help me get this working I have been trying to Compile a lot because I like staying Current please help me make this work.

1>------ Build started: Project: mtg, Configuration: Debug Win32 ------
1> PrecompiledHeader.cpp
1>cl : Command line warning D9030: '/Gm' is incompatible with multiprocessing; ignoring /MP switch
1> WResourceManager.cpp
1>c:\users\shade423\desktop\wagthesource\boost\boost\thread\win32\thread_data.hpp(171): warning C4244: 'argument' : conversion from '__int64' to 'long', possible loss of data
1> c:\users\shade423\desktop\wagthesource\projects\mtg\include\cacheengine.h(196) : see reference to function template instantiation 'void boost::this_thread::sleep<boost::posix_time::milliseconds>(const TimeDuration &)' being compiled
1> with
1> [
1> TimeDuration=boost::posix_time::milliseconds
1> ]
1> WGui.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\wgui.cpp(903): warning C4244: '=' : conversion from 'float' to 'unsigned int', possible loss of data
1> WFont.cpp
1> WFilter.cpp
1> WEvent.cpp
1> WDataSrc.cpp
1> WCachedResource.cpp
1> utils.cpp
1> Trash.cpp
1> TranslateKeys.cpp
1> Translate.cpp
1> Token.cpp
1> ThisDescriptor.cpp
1> TextScroller.cpp
1> TestSuiteAI.cpp
1> Tasks.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\tasks.cpp(822): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1> TargetsList.cpp
1> TargetChooser.cpp
1> Subtypes.cpp
1> StyleManager.cpp
1> Generating Code...
1> Compiling...
1> StoryFlow.cpp
1> SimplePopup.cpp
1> SimplePad.cpp
1> SimpleMenuItem.cpp
1> SimpleMenu.cpp
1> Rules.cpp
1> ReplacementEffects.cpp
1> PriceList.cpp
1> Pos.cpp
1> PlayRestrictions.cpp
1> PlayGuiObjectController.cpp
1> PlayGuiObject.cpp
1> PlayerData.cpp
1> Player.cpp
1> PhaseRing.cpp
1> OptionItem.cpp
1> ObjectAnalytics.cpp
1> Navigator.cpp
1> MTGRules.cpp
1> MTGPack.cpp
1> Generating Code...
1> Compiling...
1> MTGGameZones.cpp
1> MTGGamePhase.cpp
1> MTGDefinitions.cpp
1> MTGDeck.cpp
1> MTGCardInstance.cpp
1> MTGCard.cpp
1> MTGAbility.cpp
1> MenuItem.cpp
1> ManaCostHybrid.cpp
1> ManaCost.cpp
1> GuiStatic.cpp
1> GuiPlay.cpp
1> GuiPhaseBar.cpp
1> GuiMana.cpp
1> GuiLayers.cpp
1> GuiHand.cpp
1> GuiFrame.cpp
1> GuiCombat.cpp
1> GuiCardsController.cpp
1> GuiBackground.cpp
1> Generating Code...
1> Compiling...
1> GuiAvatars.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\guiavatars.cpp(157): warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
1> GameStateTransitions.cpp
1> GameStateStory.cpp
1> GameStateShop.cpp
1> GameStateOptions.cpp
1> GameStateMenu.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gamestatemenu.cpp(487): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
1> GameStateDuel.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gamestateduel.cpp(222): warning C4244: '=' : conversion from 'time_t' to 'unsigned int', possible loss of data
1> GameStateDeckViewer.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gamestatedeckviewer.cpp(481): warning C4244: '=' : conversion from 'float' to 'unsigned int', possible loss of data
1> GameStateAwards.cpp
1> GameState.cpp
1> GameOptions.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(597): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(599): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(601): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(700): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(702): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(704): warning C4996: 'mkdir': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _mkdir. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\direct.h(124) : see declaration of 'mkdir'
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(790): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\gameoptions.cpp(791): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
1> GameObserver.cpp
1> GameLauncher.cpp
1> GameApp.cpp
1> ExtraCost.cpp
1> DuelLayers.cpp
1> DeckStats.cpp
1> DeckMetaData.cpp
1> DeckMenuItem.cpp
1> DeckMenu.cpp
1> Generating Code...
1> Compiling...
1> DeckManager.cpp
1> DeckEditorMenu.cpp
1> DeckDataWrapper.cpp
1> DamagerDamaged.cpp
1> Damage.cpp
1> Credits.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\credits.cpp(210): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\credits.cpp(210): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1> Counters.cpp
1> CardSelectorSingleton.cpp
1> CardSelector.cpp
1> CardPrimitive.cpp
1> CardGui.cpp
1> CardDisplay.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\carddisplay.cpp(112): warning C4244: '=' : conversion from 'float' to 'unsigned int', possible loss of data
1> CardDescriptor.cpp
1> AllAbilities.cpp
1> AIStats.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\aistats.cpp(48): warning C4244: '+=' : conversion from 'float' to 'int', possible loss of data
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\aistats.cpp(56): warning C4244: '+=' : conversion from 'float' to 'int', possible loss of data
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\aistats.cpp(161): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1> AIPlayer.cpp
1> AIMomirPlayer.cpp
1> ActionStack.cpp
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(68): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(175): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(213): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(402): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(456): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(489): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\users\shade423\desktop\wagthesource\projects\mtg\src\actionstack.cpp(951): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
1> ActionLayer.cpp
1> ActionElement.cpp
1> Generating Code...
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Users\Shade423\Desktop\WagTheSource\projects\mtg\.\Debug\mtg.exe) does not match the Linker's OutputFile property value (C:\Users\Shade423\Desktop\WagTheSource\projects\mtg\bin\template.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(mtg) does not match the Linker's OutputFile property value (template). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1> Creating library .\Debug\mtg.lib and object .\Debug\mtg.exp
1>GameApp.obj : error LNK2019: unresolved external symbol "public: bool __thiscall ModRules::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?load@ModRules@@QAE_NV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: virtual void __thiscall GameApp::Create(void)" (?Create@GameApp@@UAEXXZ)
1>GameApp.obj : error LNK2001: unresolved external symbol "class ModRules gModRules" (?gModRules@@3VModRules@@A)
1>GameStateDuel.obj : error LNK2019: unresolved external symbol "class ModRules gModRules" (?gModRules@@3VModRules@@A) referenced in function "public: void __thiscall GameStateDuel::loadTestSuitePlayers(void)" (?loadTestSuitePlayers@GameStateDuel@@QAEXXZ)
1>GameStateMenu.obj : error LNK2001: unresolved external symbol "class ModRules gModRules" (?gModRules@@3VModRules@@A)
1>GuiPlay.obj : error LNK2001: unresolved external symbol "class ModRules gModRules" (?gModRules@@3VModRules@@A)
1>GameStateMenu.obj : error LNK2019: unresolved external symbol "public: int __thiscall ModRulesMenuItem::getMatchingGameState(void)" (?getMatchingGameState@ModRulesMenuItem@@QAEHXZ) referenced in function "public: virtual void __thiscall GameStateMenu::Update(float)" (?Update@GameStateMenu@@UAEXM@Z)
1>GameStateMenu.obj : error LNK2019: unresolved external symbol "public: static int __cdecl ModRulesMenuItem::getMatchingGameState(int)" (?getMatchingGameState@ModRulesMenuItem@@SAHH@Z) referenced in function "public: virtual void __thiscall GameStateMenu::ButtonPressed(int,int)" (?ButtonPressed@GameStateMenu@@UAEXHH@Z)
1>bin/template.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by Zethfox »

update your rules folder
"make clean"
sandman423
Posts: 806
Joined: Thu Sep 10, 2009 8:59 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by sandman423 »

How do I update rules?

Where and how?
LuLu
Posts: 40
Joined: Thu Apr 07, 2011 1:39 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by LuLu »

hey... how am i going to update my rule folder this codes are kindah interesting.... ;)
sandman423
Posts: 806
Joined: Thu Sep 10, 2009 8:59 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by sandman423 »

please explain how to update the rules
KF1
Posts: 1952
Joined: Tue Apr 06, 2010 7:04 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by KF1 »

sandman423 wrote:please explain how to update the rules
Inquiring minds want to know...

I'm having the same problem.
MootPoint
Posts: 58
Joined: Fri Sep 24, 2010 7:44 am

Re: Error Trying to Build mtg...Please Help me fix

Post by MootPoint »

The reason is that everyone on the dev team is using the VS2010 solution, and while we haven't officially yet deprecated the 2008 version, we've stopped actively updating it. You can fix it temporarily by adding ModRules.cpp to the MTG project - that's what all those compile errors are complaining about. However, you should consider getting the VS 2010 Express edition (it's free), as the 2008 solution will at some point likely be deleted from the source tree.
sandman423
Posts: 806
Joined: Thu Sep 10, 2009 8:59 pm

Re: Error Trying to Build mtg...Please Help me fix

Post by sandman423 »

I am using..

Microsoft Visual C++ 2010 Express

Just wondering how I can update my rules and where I can get what I need
MootPoint
Posts: 58
Joined: Fri Sep 24, 2010 7:44 am

Re: Error Trying to Build mtg...Please Help me fix

Post by MootPoint »

If you're using the VS2010 edition, make sure you use the mtg_vs2010.sln to build. That's the one with the updated projects, and will compile correctly without the link errors about gModRules that you listed.
wololo
Site Admin
Posts: 3728
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: Error Trying to Build mtg...Please Help me fix

Post by wololo »

sandman423 wrote: Just wondering how I can update my rules and where I can get what I need
You should have on your hard drive a folder called "wagic", or something similar, containing the following subfolders: JGE, Boost, projects.
Right click on that top folder (whatever you decided to name it), and select "svn update"
That's it.
Locked