Hey everyone, hope you are all doing ok in these crazy times! We have another great update for you guys today that adds a brand new tool called Attach which lets you stick objects together. We also have a much needed performance optimization on the server browser due to all the new players joining us! Welcome everyone new hope you all our enjoying the game! We have a ton more below in the full patch notes.
Search inputs are now more powerful (applies to Server Browser and in-game Search dialog).
Example: gloom -fantasy, scythe, -casual will find any servers with "gloom" (but not "fantasy") or "scythe", so long as they do not contain "casual".
Special thanks to modzero for helping us track down a security vulnerability that we hotfixed.
UI Fixed a bunch of bad interactions between 2D XML UI, 3D XML UI, the normal UI, and invisible objects. Everything should now behave as you would expect.
Allows objects to behave similarly to poker chips: when set, the object will display its value when hovered over, and if multiple objects which share a flag are selected the total value will be displayed. object.value - integer value of object. object.value_flags - flags for object values.
Book objects (e.g. PDFs)
book.page_offset - Offset virtual book numbers are from numbers rendered on pages. book.getPage(offsetPageNumbering = false) - Get current page. If offsetPageNumber is true then factor in the page_offset. setPage(page, offsetPageNumbering = false) - Set current page. setHighlight(x1, y1, x2, y2) - Set highlight box on current page. clearHighlight() - Clear highlight.
Browser objects (e.g. Tablet)
browser.url - URL which currently wants to display. browser.pixel_width - The pixel width the browser is virtually rendering to.
Attach Tool To go along with the new Attach tool there is new Object functions available to create these bindings in script.
object.addChild(Object) - The Object supplied as param is destroyed and becomes a dummy Object child. object.removeChild(index) - Use getChildren to find out the index property. object.removeChildren() - Detaches the children of this Object. object.destroyChildren() - Destroys the children objects without detaching them. object.getChildren() - Returns a table in the same format as getObjects() for containers.
Grid Global Class Grid options menu is now available to scripting as Grid.show_lines = true
int type bool show_lines Color color float opacity bool thick_lines float offsetX float offsetY float sizeX float sizeY
object.drag_selectable - Drag Selectable toggle of object. object.getSelectingPlayers() - Returns table of players currently selecting the object. object.addToPlayerSelection(player_color) - Add object to player's selection. object.removeFromPlayerSelection(player_color) - Remove object from player's selection. player.clearSelectedObjects() - Clears a player's current selection.
Fixes: Fixed log not outputing to external API.
cam_load, cam_load_zero, cam_save, cam_save_zero - Load and save camera positions. dev_autoconfirm_browser_url_change - Disables browser page load confirmation. Use with caution! hand_component_hotkey_draw - Controls whether objects which can go in hands will respond to the draw 1 hotkey. load & save - Load and save games. spectator_restrict_zoom - Restrict view of spectator zoom if object should be hidden to spectators. spectator_show_zoom - Display alt-zoom in spectator window. spectator_zoom_follows_pointer - Alt-zoom aopears at pointer position in spectator window. spectator_zoom_position - Position on spectator window alt-zoom appears if above is turned off. ui_context_menus_collapsed_height - Height of collapsed context menus. ui_games_window - Visibiliy of Games window. ui_server_browser_search - search text in Server Browser. ui_server_browser_window - Visibility of Server Browser window. zoom_position - Position on screen to display alt-zoom if above is disabled. zoom_follows_pointer - Alt-zoom follows mouse pointer. vr_tilt_mode, vr_tilt_angle - VR Tilt Mode toggle, and angle setting.