Closed JBenda closed 1 year ago
So the unreal plugin is reworked:
Please don't hesitate to test it and provide feedback :)
Instructions:
git clone --branch feature/Unreal_fixes https://github.com/JBenda/inkcpp.git
cd inkcpp
mkdir build
mkdir plugin
cd build
cmake -DCMAKE_INSTALL_PREFIX=../plugin ..
cmake --install . --component unreal
\PATH\TO\UNREAL_ENGINE\Build\BatchFiles\RunUAT.bat BuildPlugin -plugin="PATH\TO\GIT\REPO\plugin\inkcpp\inkcpp.uplugin" -package="\PATH\TO\UNERAL_PROJECT\Plugins\inkcpp" -TargetPlatforms=Win64
.ink.
file or an inklecate compiled .json
← we will probably not in future keep high priority on json imports ...A Record of the terminal side of the build process can be found here
So the unreal plugin is reworked:
Last Update: 20.09.2022
Please don't hesitate to test it and provide feedback :)
Instructions:
git clone --branch feature/Unreal_fixes https://github.com/JBenda/inkcpp.git
cd inkcpp
mkdir build
mkdir plugin
cd build
cmake -DCMAKE_INSTALL_PREFIX=../plugin ..
cmake --install . --component unreal
\PATH\TO\UNREAL_ENGINE\Build\BatchFiles\RunUAT.bat BuildPlugin -plugin="PATH\TO\GIT\REPO\plugin\inkcpp\inkcpp.uplugin" -package="\PATH\TO\UNERAL_PROJECT\Plugins\inkcpp" -TargetPlatforms=Win64
NewMap
from the Content Drawer.ink.
file or an inklecate compiled .json
← we will probably not in future keep high priority on json imports ...A Record of the terminal side of the build process can be found here Example Data
I'm just checking this PR out because I'm investigating Ink in UE5, but I think the attachment for "InkUnrealExample" is missing?
I'm just checking this PR out because I'm investigating Ink in UE5, but I think the attachment for "InkUnrealExample" is missing?
Thanks for letting me know. The upload link expired, now it is a permanent one.
Namely, a new function for the InkRuntime
was added InkSnapshot Snapshot()
this creates a snapshot which can then be loaded with LoadSnapshot(InkSnapshot)
.
Be aware that loading a snapshot invalidates all existing Threads, so best stop them or reinitialize them with StartExisting()
.
A snapshot contains all corresponding Threads of the Runtime. Currently, you create new threads in the same order they were created before, later a label feature should be introduced.
Feel free to try, and comment if you have any input.
PS: A Unreal example Project which uses the new functionality can be fond below. For the instructions, please refer to the post before.
ink compiler 1.1.1 is no longer able to compile TagsStory.ink / all tags tests are failing as inklecate is not able to compile ink files.
This might be because of dynamic tag introduction -- RELEASE
/Users/sandi/Projects/inkcpp/cmake-build-release/inkcpp_test/inkcpp_test -r xml -d yes --order lex
Testing started at 2:29 AM ...
/Users/sandi/Projects/inkcpp/inkcpp_test/Tags.cpp:145: Failure:
due to unexpected exception with message:
Diverting past end of story data!
ERROR: 'TagsStory.ink' line 9: Expected end of line but saw '# choice_tag_b'
ERROR: 'TagsStory.ink' line 21: Expected end of line but saw '# close_tag'
/Users/sandi/Projects/inkcpp/inkcpp_test/Tags.cpp:46: Failure:
due to unexpected exception with message:
Inklecate failed with exit code 256
/Users/sandi/Projects/inkcpp/inkcpp_test/Tags.cpp:31: Failure:
due to unexpected exception with message:
Unrecognized command!
/Users/sandi/Projects/inkcpp/inkcpp_test/Tags.cpp:179: Failure:
due to unexpected exception with message:
Unrecognized command!
Process finished with exit code 4
Any pointers on how to fix this ?
Looks like they changed the syntax. It seems the tag must now be in front of the jump. I will take a deeper look on Monday.
+ Hey # choice_tag
-> knot2
The notation with * [b # choice_tag_b]->knot2
results in the expected output for inky. Sadly, it also introduced a new tag, which is not yet supported by us. But WIP ^^
TagsStory.ink
is now updated and the c++ part also supports now tag annotate choice (see choice::get_tag(size_t)
)
Thanks so much for pushing a fix @JBenda 🙏 🎉 , i'll test this ~soonish™~ and get back! is there a patreon or github sponsor option available ? would love to support you guys! ❤️
tested on mac / windows - inkcpp is working correctly (cpp library) with latest inklecate v1.1.1
Thanks so much for pushing a fix @JBenda pray tada , i'll test this ~soonish™~ and get back! is there a patreon or github sponsor option available ? would love to support you guys! heart
There is no inkcpp
patreon, but please don't hesitate to use GitHub sponsoring
Inkcpp got many new features which are not mirrored in the Unreal Plugin. On top, many small name clashes with UE5 exists.
basic_stream::get()
atoutput.cpp:142