Skip to content

Couple of fixes for NPC component - #1156

Merged
AmyrAhmady merged 4 commits into
openmultiplayer:masterfrom
NexiusTailer:patch-2
Dec 13, 2025
Merged

AmyrAhmady merged 4 commits into
openmultiplayer:masterfrom
NexiusTailer:patch-2

Conversation

@NexiusTailer

@NexiusTailer NexiusTailer commented Dec 12, 2025 •

Copy link
Copy Markdown
Contributor

This should fix #1155, more specific its second item in the issue list.
Apart from that, it adds a clear error for invalid playback, which was ported from FCNPC playbacks implementation

@NexiusTailer

Copy link
Copy Markdown
Contributor Author

As for the logging error message, I'm not sure how can I fix the current compile error. Any help is appreciated...

Also please guide if it's more correct to make it with %s + c_str() method, like:

core->logLn(LogLevel::Error, "[NPC] Playback initialization failed. Playback file '%s' not found.", fullPath.c_str());

or leave as it's now:

core->logLn(LogLevel::Error, "[NPC] Playback initialization failed. Playback file '%.*s' not found.", PRINT_VIEW(fullPath));

@AmyrAhmady
AmyrAhmady merged commit 90178ff into openmultiplayer:master Dec 13, 2025
@NexiusTailer
NexiusTailer deleted the patch-2 branch December 13, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Significant NPC component behavior diffs from FCNPC

2 participants