@casual-simulation/causal-tree-client-socketio
Advanced tools
Changelog
V0.9.17
server.grantRole(username, role)
: Grants the given role to the user account with the given username if the current player is an admin.server.revokeRole(username, role)
: Revokes the given role from the user account with the given username if the current player is an admin.server.shell(script)
: Runs the given shell script on the server if the current player is an admin.aux.account.username
: This tag indicates that the bot is a "user account" bot for the given username.aux.account.roles
: This tag indicates which roles an account should be granted.aux.account.locked
: This tag indicates whether the account is locked and that logging in using it should not be allowed.aux.token
: This tag indicates that the bot is a "token" which can be used to login to a user account.aux.token.username
: This tag indicates the username of the user account that the token is for.aux.token.locked
: This tag indicates whether the token is locked and therefore cannot be used to login to the account.guest
role.
aux.blacklist.roles
tag on the channel config file.aux.channel
set to the channel you want and aux.channels
set to true
.Create Channel
toast that pops up. (only works if you're an admin)aux.channel.connectedSessions
tag indicates how many sessions are active for the channel.aux.channel.maxSessionsAllowed
tag specifies how many sessions are allowed for the channel. Admins are not affected by this setting. If this value is not set then there is no limit.config
file in the admin channel.
aux.connectedSessions
tag indicates how many sessions are active for the server.aux.maxSessionsAllowed
tag specifies how many sessions are allowed for the entire server. Admins are not affected by this setting. If this value is not set then there is no limit./api/{channelId}/status
will return a JSON object containing the current number of active connections for the channel./api/status
will return a JSON object containing the current number of active connections for the server.aux.inventory.color
tag to aux.context.inventory.color
, and allowed the editing of the invenroty color to be done in the context bot's tags.aux.context.inventory.visible
tag to toggle the player inventory on and off, it will default to visible.onAnyBotClicked()
function to fire an event when any bot in the scene has been clicked.getBots()
or getBot()
.100,000
.100,000
. (for now - so it's still possible to get around the energy limit by shouting back and forth)aux.label.anchor
via an interaction.Changelog
V0.9.14
admin
channel.
admin
role are allowed access to every channel. (and bypass the blacklist and whitelist)aux.blacklist
and aux.whitelist
before sending the data.aux.whitelist.roles
: Specifies the list of roles that users must have all of in order to access the channel.aux.blacklist.roles
: Specifies the list of roles that users must not have any of in order to access the channel.admin
channel is set to allow only users with the admin
role.aux.line.style
tag's wall settting will now dynamically scale with bot height and bot stacking.aux.line.style
tag that changes the design of the aux.line.to
line.aux.line.width
tag that changes the width of the aux.line.to
but only the wall style for now.Make mod from selection
button to the sheet's buttons.enter
key on a selected tag will automatically open up the new tag
input section.escape
key when the new tag
input section is up will close the input section.new tag
input section will now be left alligned in the sheets.Toggle Size
button to the right side of the sheet.create()
to dissallow overriding aux.creator
when a creator is specified.player.currentContext()
to be undefined if it was accessed inside onConnected()
.aux-debug
page in Channel Designer.lodash
NPM package to 4.17.14
to mitigate CVE-2018-16487.Changelog
V0.9.12
player.tweenTo
, users can now define an x
and y
rotation to define which way the camera views the bot.aux.context.locked
set to false and the text has been change to Lock Context
.aux.mod.tags
to aux.mod.mergeTags
.aux.movable="mod"
to aux.movable="cloneMod"
.isDiff
function no longer checks for aux.mod.mergeTags
when determining weather a bot is a diff or not.aux.listening
tag to disable, a bot will accept shouts or whispers if this tage is set to true but ignore them it aux.listening
is set to false.context_
prefix of the default generated name of new contexts.Requesting site ID
text.onCombine
should not trigger when dragging on a stack of bots but a warning message explaining this has been added it this is attempted.Changelog
V0.9.8
Changelog
V0.9.7
aux.iframe
tag.Changelog
V0.9.6
@
and #
expressions.
@id
and #id
will no longer work.getBots("#id")
and getBotTagValues("#id")
.THREE.WebGLRenderer
prematurely submitted the frame to the VRDisplay
. This was a problem because it appears that the WebVR API ignores subsequent calls to the VRDisplay.submitFrame
function until the current frame has passed.hasTag
function to allow users to check if the file has a specific tag on it.window
global variable will not be available formulas.
window.alert()
or window.location
or window.navigator.vibrate()
will not work anymore.getTag()
, getBot()
, getBots()
and getBotTagValues()
to track dependencies.getTag(this, myVar)
won't work. But getTag(this, "#tag")
will work.aux._user
tag set.aux.line.to
if the line was too short.config
and not confi
.Changelog
V0.9.19
shout()
returns a list of results from every bot that ran a script for the shout ordered by bot ID.whisper()
returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.return
statements. For example, to return 10
from a shout you would simply write return 10
.Create Context from Selection
.powered by CasualOS
to bthe hamburger menu and loading popup.Unselect All
from the sheets.getBots("id")
)Changelog
V0.8.10
diff
key word to merge
or mergeBall
.
aux.diff
has been changed to aux.mergeBall
and aux.diffTags
has been changed to aux.mergeBall.tags
and the diff
id tag value has been changed to merge
.Changelog
V0.8.9
diff.save
and diff.load
to diff.export
and diff.import
respectfully.saveDiff
to automatically include the loadDiff
function within it to clean up the resulting output.diff.save
will now return a cleaner JSON than it was before.Changelog
V0.8.0
actions()
section.aux.shape
set to sprite
.