Repository navigation
This is a drop-in upgrade from 1.0. Nothing is renamed or removed, and behavior only changes where 1.0 crashed, hung, or failed to compile.
Downloads
- SquidTasks-1.1.0-UnrealPlugin.zip: unzip into your project's
Plugins/folder. - SquidTasks-1.1.0-headers.zip: the standalone headers.
Upgrading an Unreal project: if you're copying over an older plugin, delete Source/SquidTasks/Public/SquidTasks/Private/TaskPrivate.h and TaskFSMPrivate.h first.
Crash fixes
- Fixed a long-standing Clang optimizer crash by preventing the Task constructor from inlining. This obviates the need for our COROUTINE_OPTIMIZE_OFF/COROUTINE_OPTIMIZE_ON macros on Clang, so if you have been using them to prevent crashes, you should now be safe to remove them.
- Fixed re-entrant Kill() when a frame-local destructor kills its own task.
- Fixed KillAllTasks() and ~TaskManager() corrupting memory when a killed task's destructors start new tasks or call KillAllTasks() again.
- Fixed a throwing ready function leaving its task stuck in the resuming state.
- Fixed self-assignment of a task handle killing its task.
- Fixed CancelIfStopRequested() checking the moved-from handle, which canceled the task immediately.
- Fixed co_await on a deferred std::future hanging, as well as co_await on an invalid std::future terminating.
Build fixes
- Renamed the internal implementation headers to .inl, so adaptive unity builds no longer try to compile them standalone. This should fix build errors in newer versions of Unreal.
- Fixed the LeftChopInline compile error on Unreal 5.4 and newer.
- Fixed clang-cl C++20 builds, and /await:strict builds that don't define SQUID_HAS_AWAIT_STRICT.
- Fixed TokenList.h on g++ (TokenList::Token changed the meaning of Token).
- Fixed WaitUntil()/WaitWhile() with SQUID_ENABLE_NAMESPACE both on and off.
- Added missing standard includes, so each public header compiles on its own.
- Fixed /W4 and -Wall -Wextra warnings, and made header helper functions inline.
- Worked around an MSVC 14.38 internal compiler error with exceptions enabled.
API fixes
- Fixed FunctionGuard::IsBound() and operator bool not compiling.
- Fixed StateHandle::GetId() returning a nonexistent member.
- Removed the debug check that rejected FSM states whose only OnComplete links are conditional.
Unreal fixes
- Fixed debug names keeping all but the last 32 characters instead of the first 32.
- Fixed the debug stack formatter looping forever on some strings.
- Added Config/FilterPlugin.ini for future Fab packaging.
Docs
- Fixed the CancelIf(), StopIf(), and Timeout() docs, which had their return values ambiguous (or even backwards).
- Fixed the global-time docs to name GetGlobalTime().
- Pointed the README's API docs link at the new 1.x docs on Plumfire's site.