Skip to content

Releases: JupiterPi/cranberri

v0.0.5 Fixed flickering output pins

21 Feb 11:00
Compare
Choose a tag to compare

Major fix: Fixed flickering output pins

Fixed flickering output pins

v0.0.4 Arduino mode

12 Nov 19:35
Compare
Choose a tag to compare

New major feature: Arduino mode

With Arduino mode, available for Java/simple projects, you can code almost like with traditional microprocessors such as the Arduino. Instead of the tick() method, which is called every tick, you can now define a loop() method that is called continously and has access to the delay() method.

Example:

Before:

int ticks = 0;

void tick() {
  ticks++;
  if (ticks % 40 == 0) writePin(1, HIGH);
  if (ticks % 40 == 20) writePin(1, LOW);
}

New:

void setup() {
  pinMode(1, OUTPUT);
}

void loop() {
  writePin(1, HIGH);
  delay(20);
  writePin(1, LOW);
  delay(20);
}

Other features and fixes

This release contains some minor features:

  • You can now read logs from multiple computers. Right-click them with the logger tool to open. Use the logger tool anywhere else to close logs.
  • Cranberri runtime errors are now formatted more nicely.

And minor bug fixes:

  • It's now possible to have computers with no pins at all.

v0.0.3 Minor updates to improve practical use

09 Sep 09:28
Compare
Choose a tag to compare

This release satifsfies the need for some features that arose during practical testing:

  • Subdirectories are allowed in the source files.
  • The configuration GUI isn't opened while sneaking.
  • Pins can now be on either side of the glass base.
  • All output pins are set to LOW on shotdown of the computer.

And fixes some minor issues:

  • The path to the api jar is computed dynamically.
  • Higher 30s timeout for awaiting compilation success.

v0.0.2 Improved logging

20 Jul 21:02
Compare
Choose a tag to compare

This release improves logging in various ways:

  • Logs are opened automatically when a player starts a computer.
  • "Starting" and "Shutting down" are now marked as SYS messages and aren't disabled by disableDebug().
  • Compilation errors and runtime errors are displayed in the computer status, runtime errors are displayed as ERR messages in the logs.
  • Logs' origin is designated by the computer's instance ID in the player console.

v0.0.1 Basic functionality

18 Jul 20:12
Compare
Choose a tag to compare

This release is a first preview version of the Cranberri server plugin.

It includes basic functionality:

  • placing computers using the computer tool, specifying a project and script, starting/stopping them, status indicator, redstone pins
  • listening to logs in the in-game chat using the logger tool
  • "simple" and "full" projects written in Kotlin and Java, includes libraries for I/O and binary operations

See also the Cranberri GUI.