Comments (9)
I had some issues that I luckily could work out.
Set compiler to C++ 17
Add '_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS;' to the Preprocessor Definitions (Project Properties -> C/C++ -> Preprocessor).
Pull the tiny-dnn repository and copy tiny_dnn to third_party. Do the same with cereal and add it to the VC++ Directories -> Include Directories for GameEngineCPPWrapper
Add /bigobj to C/C++ -> Comand line -> Additional options (but I think you can skip this, I think I added it because of some error I could resolve otherwise)
Add ui\include to Includes for GameEngineCppCLI
Apply fix mentioned here
I think that's everything I needed to do to get it to compile. However, note that no neural network is included in the repo, so you will have to compile and train that as described in the readme.
from hearthstone-ai.
@FrederikHusche hi there I follow your instrument and it really help me a lot. But still a problem bother me.
I get the error now,
error C2338 tuple index out of bounds GameEngineCppWrapper c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.16.27023\include\utility 542
I already add the /bigobj into the commandline but seems not work. Do you have any idea about this?
from hearthstone-ai.
What's your compiler version? I tried this on latest Visual Studio and g++ several months ago, with C++17 enabled.
from hearthstone-ai.
I am just using the latest Visual Studio 2017 with C++17 enabled and the latest Windows devkit. No g++ at all , do I need it for tiny_dnn? So far I just cloned tiny_dnn repository and added all required paths for includes.
from hearthstone-ai.
I met the same problem. Which release of g++ did you use @peter1591 ? MinGW or Cygwin? And which version number?
from hearthstone-ai.
/bigobj may be required depending on what version of the MSVC compiler you are using, but as of an update a few weeks ago it is no longer necessary
it comes about due to tiny-dinn generating some obscenely large files during linking, is all
from hearthstone-ai.
@woshichuanqilz same situation, did you managed to solve it?
from hearthstone-ai.
@woshichuanqilz @lovcavil same situation,any idea?
from hearthstone-ai.
I may be late for you, but for the missing modules, I think you can simply update git submodules
Like so : git submodule update --init --recursive
from hearthstone-ai.
Related Issues (20)
- generate_train_data depends on `neural_net`, where does `neural_net` come from? HOT 1
- Metadata file 'GameEngineCppCLI.dll' could not be found HOT 1
- You are a bad person and should be isolated.
- run 'make' under generate_train_data failed
- What do resource feature represent in the game?
- judge: refine Recorder HOT 1
- Binaries HOT 1
- move mcts::board::* to engine module HOT 1
- randomize hidden information in judger HOT 1
- refine neural network implementation
- don't need to use double here
- integrate with TensorFlow C++ HOT 6
- I can't follow Installation process HOT 2
- Needs Simulator so we don't need the actual game to train data. HOT 3
- It is not working HOT 2
- BadImageFormatException when trying to run HearthstoneAI
- Building on macOS HOT 1
- contact email HOT 1
- Binaries?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hearthstone-ai.