@casual-simulation/causal-tree-client-socketio
Advanced tools
Changelog
V1.3.14
Changelog
V1.3.0
form
tag to "cursor" and placing the bot in the corresponding tag portal dimension.
test
tag on a bot you would set {targetBot.id}.test
to true.color
- Specifies the color of the cursor.label
- Specifies a label that should appear on the cursor when the mouse is hovering over it.labelColor
- Specifies the color of the text in the cursor label.{dimension}Start
- Specifies the index at which the cursor selection starts (Mirrors cursorStartIndex
from the player bot).{dimension}End
- Specifies the index at which the cursor selection ends (Mirrors cursorEndIndex
from the player bot).pageTitle
, cursorStartIndex
, and cursorEndIndex
tags to the player bot.
pageTitle
is used to set the title of the current browser tab.cursorStartIndex
contains the starting index of the player's text selection inside the multi-line editor.cursorEndIndex
contains the ending index of the player's text selection inside the multi-line editor.cursorStartIndex
is larger than cursorEndIndex
it means that the player has selected text from the right to the left. This is important because text will always be inserted at cursorEndIndex
.insertTagText()
, deleteTagText()
, insertTagMaskText()
, and deleteTagMaskText()
functions to allow scripts to work with multi-user text editing.
insertTagText(bot, tag, index, text)
inserts the given text at the index into the given tag on the given bot.insertTagMaskText(bot, tag, index, text, space?)
inserts the given text at the index into the tag and bot. Optionally accepts the space of the tag mask.deleteTagText(bot, tag, index, deleteCount)
deletes the given number of characters at the index from the tag and bot.deleteTagMaskText(bot, tag, index, deleteCount, space?)
deletes the given number of characters at the index from the tag and bot. Optionally accepts the space of the tag mask.transformer
tag on the player bot to parent the player to a bot.tagPortalSpace
tag on the player bot.Changelog
V1.2.12
helix
form.
tempLocal
local
player
/otherPlayers
shared
masks
property which works like tags
except that it creates tag masks in the tempLocal
space.masks
property which is a shortcut for bot.masks
.setTagMask(bot, tag, value, space?)
is a new function that is able to set the value of a tag mask on the given bot and in the given space. See the documentation for more info.clearTagMasks(bot, space?)
is a new function that is able to clear all the tag masks in the given space from a given bot. See the documentation for more info.v1.4
so that we can decide when to adopt future Deno updates.server.setupStory()
would load a simulation and never dispose it.Changelog
V1.2.21
MONGO_USE_UNIFIED_TOPOLOGY
environment variable to control whether the driver uses the new unified topology layer.Changelog
V1.2.19
egg
form for bots.
hex
form for bots.
pagePixelWidth
and pagePixelHeight
tags to the player bot.
Changelog
V1.2.0
:rocket: Improvements
MONGO_USE_NEW_URL_PARSER
environment variable parameter to control whether CasualOS uses the new MongoDB URL Parser. (Defaults to false)crypto.sha256(data)
data
is the data to calculate the hash of.crypto.sha512(data)
data
is the data to calculate the hash of.crypto.hmacSha256(key, data)
crypto.encrypt(password, data)
password
is the password to use for encrypting the data.data
is the data that should be encrypted.crypto.decrypt(password, data)
crypto.encrypt()
.password
is the password that was used to encrypt the data.data
is the data that should be decrypted.:bug: Bug Fixes