- 最新
- 最多得票
- 最多評論
Be sure try update both the gem.json for your project and the gem.json for your game gem.
In my TutorialSeries project, that means:
-
dev\TutorialSeries\gems.json
-
dev\TutorialSeries\Gem\gem.json
The second one ends up looking like:
{
"Dependencies": [
{
"Uuid": "352fef7706634c92814c587e84d7165a",
"VersionConstraints": [
"~>0.1"
],
"_comment": "CryLegacy"
},
{
"Uuid": "453b88cf44d041709924810814c70a70",
"VersionConstraints": [
"~>0.1"
],
"_comment": "PhysicsWrapper"
}
],
"GemFormatVersion": 3,
"Uuid": "7a17c44ce76744e1b646e6d8556372c8",
"Name": "TutorialSeries",
"DisplayName": "TutorialSeries",
"Version": "0.1.0",
"LinkType": "Dynamic",
"Summary": "A short description of my Game Project Gem.",
"Tags": ["Game"],
"IconPath": "preview.png",
"IsGameGem": true
}
Right, "Project Configurator > Create New" created the project folder and a "Gem" folder within that. Moved all of my game dll code into the Source folder. That works fine. The problem that I am having is with Other Gems, such as my SQLite or Cubism3 gems, where when I try to use their buses via including their busses in C++, i.e. "#include <SQLite/SQLiteBus.h>", doesnt work. VS and the compiler say that it cannot find those kind of files that other gems expose via the Include folder in each gem.
When you create a new gem, the new gem comes already with that what was previously the module of the game. You would need to paste the stuff from your module into that gem-module, paste the stuff from the .waf_files into the gem waf_files list and move the files accordingly.
Still looking for an answer to this. I cant use any of the gems buses since they rely on includes and the game gem is not adding include paths for gems.
Have you added dependencies in to your gem.json file?
Look at Gems/Multiplayer/gem.json for an example.
Adding the dependencies causes the include paths to be included in your gem.
ok, that worked.
Now, why in the hell does that work and why it isnt something that happens by default.
I'm not sure, but it stumped me for awhile too.
But from my tutorial, I said
This updated our gem.json file in our project (dev\TutorialSeries\gems.json) to include this new gem. You may think this is enough, but you’d be wrong! (Like I was was :( ).
:P
此貼文已關閉:已停用新增新答案、評論和投票功能。
相關內容
- AWS 官方已更新 2 年前