How would you upgrade a 1.9 game dll to a 1.10 game gem dll?

0

As the title above says, I'm trying to update my game from using the old game dll method that cryengine/lumberyard 1.9- used to the new game gem dll method that was introduced in 1.10.

I have been able to copy my over my code and merged my <game name>Game.h/cpp since i was mostly testing the other parts of my code in there.

Though I am noticing the gems that I have used for my game are saying that the includes are not valid or something.

EDIT: Clarification on the Gem includes. I am trying to use the includes that are exposed by the gems to use in the game gem dll but VS and compiler are saying that the include paths are not valid.

질문됨 7년 전206회 조회
8개 답변
0
수락된 답변

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
}
답변함 7년 전
0

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.

답변함 7년 전
0

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.

답변함 7년 전
0

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.

답변함 7년 전
0

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.

답변함 7년 전
0

Sorry for the troubles @REDACTEDUSER

답변함 7년 전
0

ok, that worked.

Now, why in the hell does that work and why it isnt something that happens by default.

답변함 7년 전
0

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

답변함 7년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠