This project is a Node.js script designed to log changes to cloud variables using the Scratch Cloud API.
This script connects to a Scratch project and logs real-time changes to cloud variables. The logs are saved in the cloud.log file.
- Node.js installed
config.jsfile configured with your project ID
npm installmodule.exports = {
projectId: 'your_project_id_here'
};npm startLogs are saved in the cloud.log file. This file is not included in the Git repository.
Please adhere to Scratch's terms of use when using this script, as it utilizes the Scratch API.
npm startThis add-on was created to simplify the monitoring of cloud data communication for Scratch Building games.
You can monitor the communication of cloud data. Currently, the user verification feature is only supported for chat communication.
Log: logs/scratch-building.log
Chat log: logs/scratch-building-chat.log
node addons/scratch-building/logs.jsYou can chat specifying a username. While it's possible to impersonate the sender within the game, monitoring API communication allows you to identify whether the sender is the actual user. Therefore, using this feature is not recommended. We cannot take responsibility if using this feature disrupts gameplay.
node addons/scratch-building/chat.js <username>You can customize the display by adjusting the LogFormat set in the configuration file addons/scratch-building/_config.js.
- LogFormat: Defines the format for standard server logs, including color configurations.
- LogFormatWarn: Specifies the format for warning logs, handling logs at a warning level.
- LogFormat_noColor: Sets the format for logs without colors, excluding any color configurations.
Utilize these settings to tailor the content and presentation of your logs to your needs.