@casual-simulation/causal-tree-client-socketio
Advanced tools
Changelog
V1.0.24
:rocket: Improvements
auxError
must be true
auxErrorBot
must be the ID of the bot whose script is in the editor.auxErrorTag
must be the name of the tag that is being edited.auxErrorName
is the name of the error that occurred.auxErrorMessage
is the message that the error contained.:bug: Bug Fixes
Changelog
V1.0.22
:boom: Breaking Changes
player.inSheet()
function has been changed to return whether the player bot has a dimension in their auxSheetPortal
.
@onUniverseAction
have changed.
@onUniverseAction
was run before any particular action was executed but the actions that were dispatched from @onUniverseAction
were run after the evaluated actions. This led to a scenario in which a @onUniverseAction
call could overwrite values that were updated by an action that had not been checked yet.@onUniverseAction
are executed before the action that is being evaluated. This makes the behavior of the data produced by @onUniverseAction
mirror the runtime behavior of @onUniverseAction
.:rocket: Features
setTimeout()
and setInterval()
.
@onBotChanged
, @onBotTagChanged()
, etc.)responseShout
. (e.g. const response = await webhook.post("https://example.com", data)
)error
space.
error
space contains bots that represent errors that have occurred scripts in a universe.error
space does not load all of its bots into the universe automatically.error
space is only used for storing errors and there is no way to load bots from the space.:bug: Bug Fixes
Changelog
V1.0.18
:rocket: Improvements
@onMaxLODEnter
, @onMinLODEnter
, @onMaxLODExit
, @onMinLODExit
are new listeners that are called when the Max and Min Level-Of-Detail states are entered and exited. There are also "any" versions of these listeners.
that
is an object with the following properties:
bot
- The bot that entered/exited the LOD.dimension
- The dimension that the LOD was entered/exited in.#auxMaxLODThreshold
and #auxMinLODThreshold
tags can be used to control when the LODs are entered/exited.
:robot: Builder Improvements
:bug: Bug Fixes
Changelog
V1.0.10
Added Basic WebXR Support
player.device()
function returns whether AR/VR are supported.player.enableAR()
and player.enableVR()
functions are used to jump into AR/VR.#auxPositioningMode
set to absolute
will move it in free space.:bug: Bug Fixes
auxUniverse
and auxPagePortal
query parameters.Changelog
V1.0.6
auxLabelAnchor
to auxLabelPosition
.auxProgressBarAnchor
to auxProgressBarPosition
.config
bot.#stripePublishableKey
and #stripeSecretKey
tags from the config bot to the player.checkout()
and server.finishCheckout()
function options.@onUniverseAction
is now a shout.config
, configTag
, and tagName
variables.
config
variable is a shortcut for getBot("#id", tags.auxConfigBot)
.tagName
variable is the name of the tag that the script is running in.configTag
variable is a shortcut for config.tags[tagName]
.true
, id
, or space
.Changelog
V1.0.0
.summon
command to .
..new builder
command to .clone builder
ab-1
.list commands
command to show a HTML popup with a list of available commands.Changelog
V0.11.22
tempLocal
space.
player.loadUniverse()
will now create bots in the tempLocal
space.
shared
space.player.markHistory(options)
function creates a history mark for the current version.
options
is an object with the following properties:
message
- The message that the new mark should have.player.browseHistory()
function loads the history
space with all the marks that the universe has.player.restoreHistoryMark(mark)
function restores the state in the given mark to the universe.
mark
- The bot or bot ID of the mark that should be restored.player.restoreHistoryMarkToUniverse(mark, universe)
function restores the state in the given mark to the given universe.
mark
- The bot or bot ID of the mark that should be restored.universe
- The universe that the mark should be restored to.Changelog
V0.11.20
auxContext*
tags have been renamed to auxDimension*
.@onDrop
, @onModDrop
, @onClick
, etc. now have a dimension
property in the data
argument instead of context
.@onPlayerEnterContext
listener has been renamed to @onPlayerEnterDimension
._auxUserContext
, _auxUserMenuContext
, _auxUserInventoryContext
, and _auxUserChannelsContext
have been renamed to use dimension instead of context.auxChannel*
tags have been renamed to auxUniverse*
._auxUserChannelsContext
tag has been renamed to _auxUserUniversesDimension
._auxUserChannel
tag has been renamed to _auxUserUniverse
.player.setupChannel()
function has been renamed to player.setupUniverse()
.player.loadChannel()
and player.unloadChannel()
functions have been renamed to player.loadUniverse()
and player.unloadUniverse()
.player.getCurrentChannel()
function has been renamed to player.getCurrentUniverse()
.setup_channel
action type has been renamed to setup_universe
.@onChannel*
listen tags have been renamed to @onUniverse*
.
channel
property in the data
argument has been renamed to universe
.auxDimensionRotation
(auxContextRotation
) tags to auxDimensionOrientation
.auxDimensionConfig
tag (renamed from auxContext
).*
in front of the dimension name in the URL.
https://auxplayer.com/*home/example
if you wanted to view the home
dimension in the sheet from the example
universe.*
will show all bots in the universe in the sheet. (which is very slow at the moment)player.isDesigner()
function.auxShape
to auxForm
.auxImage
to auxFormAddress
.player.showChat()
and player.hideChat()
functions.
@onChatUpdated
shout with the text in the chat bar.@onChatEnter
shout with the text in the chat bar.@onChat
shout listener.
that
is an object with the following properties:
message
- The message that was sent.@onChatTyping
shout listener.
that
is an object with the following properties:
message
- The message that is in the chat bar after the user edited it.player.run(script)
function.
script
is the script text that should be executed.run_script
action. This allows @onUniverseAction()
listener to intercept and prevent scripts.player.downloadBots(bots, filename)
function.
player.showUploadUniverse()
function.
.aux
files.auxIframe
now supports URLs with *
characters in them.Changelog
V0.11.8
Changelog
V0.11.3
three-vrcontroller-module
to use the three
package instead of three-full
so we don't duplicate Three.js.webrtc-adapter
).lodash
imports to directly import the modules that are used.
server.saveFile(filename, data, options)
filename
is a string and should start with /drives/
.data
is a string of the data to store.options
is an object with the following properties:
callbackShout
A shout that should happen on the server when the file is done saving.overwriteExistingFile
A boolean that indicates if existing files should be overwritten. (defaults to false)server.loadFile(filename, options)
filename
is a string and should start with /drives/
.options
is an object with the following properties:
callbackShout
A shout that should happen on the server when the file is done loading.onAnyAction()
listener.
if (that.action.type === 'device') {
if (
['save_file', 'load_file'].indexOf(
that.action.event.type
) >= 0
) {
action.perform(that.action.event);
}
}
/drives
directory and the USB drives themselves are numbered starting with 0.
server.loadFile("/drives/0/myFile")
.server.saveFile("/drives/1/myFile", data)
.removeTags()
function from working when given an array of bots.