Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload
Search found 38 matches
VCMI Project - Heroes 3: WoG recreated Forum Index
Author Message
  Topic: Question regarding Multiplayer Options
O01eg

Replies: 7
Views: 20050

PostForum: General discussion   Posted: 2015-05-22, 20:24   Subject: Question regarding Multiplayer Options
Yes, I've just checked it and it works.
  Topic: Question regarding Multiplayer Options
O01eg

Replies: 7
Views: 20050

PostForum: General discussion   Posted: 2015-05-07, 17:23   Subject: Question regarding Multiplayer Options
You can host multiplayer game or join to hosted game.
  Topic: Russian thread
O01eg

Replies: 662
Views: 200866

PostForum: Help & Bugs   Posted: 2015-01-14, 20:10   Subject: Russian thread
Povelitel wrote:
SXX wrote:
одновременные ходы в мультиплеере.

О, да черт возьми! Это очень полезная опция.
А насколько сложна эта идея в реализации?

Она требует даже не только изменения игрового кода, но и изменения механики игры настолько, что это будет во многом другая игра.
  Topic: Russian thread
O01eg

Replies: 662
Views: 200866

PostForum: Help & Bugs   Posted: 2015-01-05, 14:06   Subject: Russian thread
SXX wrote:
Povelitel wrote:
Слушайте, а если один человек сидит под линуксом, а второй под виндоусом, они могут сыграть онлайн в герои? без всяких там эмуляторов, вайнов, виртуальных машин?
Да, могут, и если не ошибаюсь, то я даже это тестил. Чисто по логике и партия между Android и писишной версией должна работать.


А как, кстати, обстоит дело, если различаются проприетарные ресурсы?
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-10-30, 07:00   Subject: Trunk discussion / complains
I cann't build commit 7289dbafa996a8d9ebfd2cb5d30519f47ecb122a:

Code:

/usr/bin/cmake -E cmake_progress_report /mnt/anythings/game.src/vcmi/build-gcc-release/CMakeFiles
[ 40%] Building CXX object AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/src/Console.cpp.o
cd /mnt/anythings/game.src/vcmi/build-gcc-release/AI/FuzzyLite/fuzzylite && /usr/bin/c++   -DFL_BACKTRACE_OFF -DFL_BUILD_PATH=\"/mnt/anythings/game.src/vcmi\" -DFL_DATE=\"1408\" -DFL_UNIX -DFL_VERSION=\"5.0\" -DM_BIN_DIR=\"/mnt/anythings/games/vcmi/bin\" -DM_DATA_DIR=\"/mnt/anythings/games/vcmi/share/vcmi\" -DM_LIB_DIR=\"/mnt/anythings/games/vcmi/lib64/vcmi\" -DUSE_SYSTEM_MINIZIP -pedantic -Werror -Wall -Wextra -O3 -DNDEBUG -I/mnt/anythings/game.src/vcmi/AI/FuzzyLite/fuzzylite/.    -o CMakeFiles/fl-static.dir/src/Console.cpp.o -c /mnt/anythings/game.src/vcmi/AI/FuzzyLite/fuzzylite/src/Console.cpp
In file included from /mnt/anythings/game.src/vcmi/AI/FuzzyLite/fuzzylite/./fl/Console.h:28:0,
                 from /mnt/anythings/game.src/vcmi/AI/FuzzyLite/fuzzylite/src/Console.cpp:25:
/mnt/anythings/game.src/vcmi/AI/FuzzyLite/fuzzylite/./fl/fuzzylite.h:33:26: fatal error: ../../Global.h: No such file or directory
 #include "../../Global.h"
                          ^
compilation terminated.
AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/build.make:57: recipe for target 'AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/src/Console.cpp.o' failed
make[2]: *** [AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/src/Console.cpp.o] Error 1
make[2]: Leaving directory '/mnt/anythings/game.src/vcmi/build-gcc-release'
CMakeFiles/Makefile2:495: recipe for target 'AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/all' failed
make[1]: *** [AI/FuzzyLite/fuzzylite/CMakeFiles/fl-static.dir/all] Error 2
make[1]: Leaving directory '/mnt/anythings/game.src/vcmi/build-gcc-release'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
  Topic: Multiplayer Load Game
O01eg

Replies: 3
Views: 4870

PostForum: Development   Posted: 2014-10-20, 20:36   Subject: Multiplayer Load Game
It can be caused by some data that storing as client's data in *.vcgm1 files.
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-10-03, 06:09   Subject: Trunk discussion / complains
Cann't compile developer branch rev f78821. Is ERM still supported?
Quote:

$ make -j1
[ 0%] Building CXX object scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp: In member function ‘void ERMExpDispatch::operator()(const ERM::Treceiver&) const’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:1397:20: error: ‘class CPrivilagedInfoCallback’ has no member named ‘getSelectedHero’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:14:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/int3.h: At global scope:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/int3.h:157:19: warning: ‘dirs’ defined but not used [-Wunused-variable]
make[2]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o] Error 1
make[1]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/all] Error 2
make: *** [all] Error 2
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-06-27, 06:16   Subject: Trunk discussion / complains
It still has errors. Some headers should be added:
Quote:

[ 1%] Building CXX object scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp: In member function ‘virtual void HEPerformer::operator()(const ERM::TNormalBodyOption&) const’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:741:47: error: invalid use of incomplete type ‘const class CGHeroInstance’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:22:7: error: forward declaration of ‘const class CGHeroInstance’
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:746:24: error: invalid use of incomplete type ‘const class CStackInstance’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:27:7: error: forward declaration of ‘const class CStackInstance’
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:755:75: error: invalid use of incomplete type ‘const class CGHeroInstance’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:22:7: error: forward declaration of ‘const class CGHeroInstance’
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp: In member function ‘void HE_BPerformer<opcode>::operator()(const ERM::TVarpExp&) const’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:920:42: error: invalid use of incomplete type ‘const class CGHeroInstance’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:22:7: error: forward declaration of ‘const class CGHeroInstance’
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp: In member function ‘void HE_CPerformer<opcode>::operator()(const ERM::TVarpExp&) const’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:926:42: error: invalid use of incomplete type ‘const class CGHeroInstance’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:22:7: error: forward declaration of ‘const class CGHeroInstance’
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp: In member function ‘virtual void MO_GPerformer::operator()(const ERM::TVarpExp&) const’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:1018:29: error: invalid use of incomplete type ‘const class CGCreature’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:9:0:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameCallback.h:24:7: error: forward declaration of ‘const class CGCreature’
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:0:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h: In instantiation of ‘const T* ERMInterpreter::getObjFromAs(int3) [with T = CGCreature]’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:1017:72: required from here
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:854:57: error: cannot dynamic_cast ‘((ERMInterpreter*)this)->ERMInterpreter::getObjFrom(int3((*(const int3*)(& pos))))’ (of type ‘const class CGObjectInstance*’) to type ‘const class CGCreature*’ (target is not pointer or reference to complete type)
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h: In instantiation of ‘const T* ERMInterpreter::getObjFromAs(int3) [with T = CGHeroInstance]’:
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:1403:51: required from here
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:854:57: error: cannot dynamic_cast ‘((ERMInterpreter*)this)->ERMInterpreter::getObjFrom(int3((*(const int3*)(& pos))))’ (of type ‘const class CGObjectInstance*’) to type ‘const class CGHeroInstance*’ (target is not pointer or reference to complete type)
In file included from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/IGameEventsReceiver.h:14:0,
from /mnt/anythings/game.src/vcmi/scripting/erm/../../lib/CScriptingModule.h:4,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMScriptModule.h:3,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.h:5,
from /mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:2:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/int3.h: At global scope:
/mnt/anythings/game.src/vcmi/scripting/erm/../../lib/int3.h:157:19: warning: ‘dirs’ defined but not used [-Wunused-variable]
make[2]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o] Error 1
make[1]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/all] Error 2
make: *** [all] Error 2
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-06-25, 19:26   Subject: Trunk discussion / complains
Is ERM no more support? I get compile error in `develop` branch:
Code:

[  1%] Building CXX object scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o
/mnt/anythings/game.src/vcmi/scripting/erm/ERMInterpreter.cpp:5:38: fatal error: ../../lib/CObjectHandler.h: No such file or directory
compilation terminated.
make[2]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/ERMInterpreter.cpp.o] Error 1
make[1]: *** [scripting/erm/CMakeFiles/vcmiERM.dir/all] Error 2
make: *** [all] Error 2
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-05-28, 18:47   Subject: Trunk discussion / complains
Ivan wrote:
gcc 4.7? It should work - we usually bump requirements only after most of distros get a newer version. If there are some compile issues with 4.7 then they must be fixed.


emplace is supported from gcc 4.8. At gcc 4.7 it causes error:

Code:

[  6%] Building CXX object lib/CMakeFiles/vcmi.dir/rmg/CRmgTemplateZone.cpp.o
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp: In member function &#8216;bool CRmgTemplateZone::findPlaceForObject(CMapGenerator*, CGObjectInstance*, si32, int3&)&#8217;:
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp:465:7: warning: unused variable &#8216;ow&#8217; [-Wunused-variable]
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp:466:7: warning: unused variable &#8216;oh&#8217; [-Wunused-variable]
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp: In member function &#8216;void CRmgTemplateZone::placeObject(CMapGenerator*, CGObjectInstance*, const int3&)&#8217;:
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp:518:10: error: &#8216;class std::set<int3>&#8217; has no member named &#8216;emplace&#8217;
/mnt/anythings/game.src/vcmi/lib/rmg/CRmgTemplateZone.cpp:519:9: error: &#8216;class std::set<int3>&#8217; has no member named &#8216;emplace&#8217;
make[2]: *** [lib/CMakeFiles/vcmi.dir/rmg/CRmgTemplateZone.cpp.o] Error 1
make[1]: *** [lib/CMakeFiles/vcmi.dir/all] Error 2
make: *** [all] Error 2
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-05-28, 18:20   Subject: Trunk discussion / complains
Was gcc-4.7 support dropped?
  Topic: Dropping VS 2012 (aka VS11) support
O01eg

Replies: 8
Views: 9394

PostForum: Development   Posted: 2014-04-28, 18:24   Subject: Dropping VS 2012 (aka VS11) support
Warmonger wrote:
I use MVS 2012 ultimate and don't have access to 2013 ultimate (yet). So the best I could do is to install Express. At the moment I'm not sure if some of the important feature won't be missing.


Can MS VS 2012 Ultimate and MS VS 2013 Express be installed in the same system?
  Topic: Show player's turn dialog at start turn in network game.
O01eg

Replies: 1
Views: 2140

PostForum: Development   Posted: 2014-04-20, 14:18   Subject: Show player's turn dialog at start turn in network game.
I search for a way to show "player's turn" dialog and found condition howManyPeople > 1 in CPlayerInterface::acceptTurn and CPlayerInterface::yourTurn:
Code:

void CPlayerInterface::yourTurn()
{
...
        if(howManyPeople > 1) //hot seat message
        {
            adventureInt->startHotSeatWait(playerID);

            makingTurn = true;
            std::string msg = CGI->generaltexth->allTexts[13];
            boost::replace_first(msg, "%s", cb->getStartInfo()->playerInfos.find(playerID)->second.name);
            std::vector<CComponent*> cmp;
            cmp.push_back(new CComponent(CComponent::flag, playerID.getNum(), 0));
            showInfoDialog(msg, cmp);
        }
        else
        {
            makingTurn = true;
            adventureInt->startTurn();
        }
...
void CPlayerInterface::acceptTurn()
{
...
    if(howManyPeople > 1)
        adventureInt->startTurn();

This condition shows if number of alive player on this player's interface(client) are more 1. In network game it false because each player this its own client and player's interface.

How can I get number of alive player in the whole game from CPlayerInterface?
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-02-02, 14:11   Subject: Trunk discussion / complains
If I enable PCH I cann't build the game:
Quote:

[ 42%] Building CXX precompiled header client/cotire/vcmiclient_CXX_prefix.hxx.gch
In file included from /mnt/another/tmp/vcmi/build-release/client/cotire/vcmiclient_CXX_prefix.hxx:33:0:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:58:11: error: ‘::fenv_t’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:59:11: error: ‘::fexcept_t’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:62:11: error: ‘::feclearexcept’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:63:11: error: ‘::fegetexceptflag’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:64:11: error: ‘::feraiseexcept’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:65:11: error: ‘::fesetexceptflag’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:66:11: error: ‘::fetestexcept’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:68:11: error: ‘::fegetround’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:69:11: error: ‘::fesetround’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:71:11: error: ‘::fegetenv’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:72:11: error: ‘::feholdexcept’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:73:11: error: ‘::fesetenv’ has not been declared
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/fenv.h:74:11: error: ‘::feupdateenv’ has not been declared
CMake Error at /mnt/another/tmp/vcmi/cmake_modules/cotire.cmake:1522 (message):
Error 1 precompiling
/mnt/another/tmp/vcmi/build-release/client/cotire/vcmiclient_CXX_prefix.hxx.
Call Stack (most recent call first):
/mnt/another/tmp/vcmi/cmake_modules/cotire.cmake:2892 (cotire_precompile_prefix_header)


make[2]: *** [client/cotire/vcmiclient_CXX_prefix.hxx.gch] Error 1
make[1]: *** [client/CMakeFiles/vcmiclient.dir/all] Error 2
make: *** [all] Error 2

Rev: 3729
  Topic: Trunk discussion / complains
O01eg

Replies: 394
Views: 121030

PostForum: Development   Posted: 2014-02-02, 13:13   Subject: Trunk discussion / complains
It's something strange with ENABLE_PCH option. In CMakeLists.txt file:
Code:
if(ENABLE_PCH)
    include(cotire)
endif()

But in other files cotire function is used without that check.
 
Page 1 of 3
Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group

Hosting provided by DigitalOcean
Page generated in 0.04 second. SQL queries: 16