TruWorlds Beta Sprint 9 (engine version 2026.37.5) Release Notes
A new update is available for TruWorlds and TruWorlds Creator.
TruScript
-
Added a
hostmodule, accessible with the newhostkeyword.Function Usage host.time()Returns the current Unix epoch in seconds. Equivalent to time(), which is being removed.host.format_date(format, time)Returns a string with the formatted date. Uses the .NET Date Format String host.format_date_local(format, time)Same as format_date, but formats the time in the client/server’s own time zone and locale. -
Deprecated the
time()function to free up thetimekeyword for users. Thetimefunction will be REMOVED in the future! Usehost.time()instead.
› Callingtime()now prints a deprecation warning to the console. -
Added a linter warning when trying to use a local variable before declaring it
TruWorlds Creator
- Added a find/replace widget to the script editor (accessible with Ctrl/Cmd + F)
- Added a “go to line” widget to the script editor (accessible with Ctrl/Cmd + G)
- Added Code Completion to the script editor:
› Code Completion is powered by the TruScript language service, and intelligently analyzes your project and scripts using static code analysis.
› We will be expanding upon the language service in the future with more capabilities and support for 3rd party code editors.
Fixes and Improvements
- Fixed dragging to reorganize objects in TruWorlds Creator sometimes placing the object at the end of the sort hierarchy
- Fixed undoing/redoing an insert action in TruWorlds Creator always placing the created at the end of the sort hierarchy
- Changed the behavior of the “Copy Path” action in the Asset Browser so that the copied paths start with an absolute-path-designating
/character. [Suggestion Post] Player.Chattednow fires on the client. It works on every player and contains the filtered message received from the server.