Skip to content

Releases

Logic Sugar v5.11.0[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 05 Nov 10:17

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

Note

用法:在 Expr 积木或 expr 条件里调用 unit_family(u)、unit_tier(u)、unit_planet(u),与 @__AIR__ 这类常量比较
Usage: call unit_family(u), unit_tier(u), or unit_planet(u) in an Expr card or an expr condition, and compare with constants like @__AIR__

中文

本次新增

  • 新增单位家族、等级与星球的表达式查询
名称 用途
unit_family(u) 查询单位家族
unit_tier(u) 查询单位等级
unit_planet(u) 查询单位所属星球
@__UNKNOWN__ @__GROUND__ @__AIR__ @__NAVAL__ @__TANK__ @__MECH__ @__SHIP__ @__SUPPORT__ @__CORE__ 与 unit_family(u) 比较
@__T1__ @__T2__ @__T3__ @__T4__ @__T5__ 与 unit_tier(u) 比较
@__SERPULO__ @__EREKIR__ 与 unit_planet(u) 比较
@__EPS__ @__TILESIZE__ @__TICKS_PER_SECOND__ @__SECONDS_PER_TICK__ 浮点容差、格子像素、tick 时间换算

本次修复

  • unitnext 现在会在下一次执行时交付扫描到的单位

English

Added

  • Unit family, tier, and planet are available as expressions
Name Use
unit_family(u) reads the unit family
unit_tier(u) reads the unit tier
unit_planet(u) reads the unit's planet
@__UNKNOWN__ @__GROUND__ @__AIR__ @__NAVAL__ @__TANK__ @__MECH__ @__SHIP__ @__SUPPORT__ @__CORE__ compare with unit_family(u)
@__T1__ @__T2__ @__T3__ @__T4__ @__T5__ compare with unit_tier(u)
@__SERPULO__ @__EREKIR__ compare with unit_planet(u)
@__EPS__ @__TILESIZE__ @__TICKS_PER_SECOND__ @__SECONDS_PER_TICK__ epsilon, tile pixels, tick timing

Fixed

  • unitnext now delivers the unit it scanned on the next run

Logic Sugar v5.10.0[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 02 Nov 16:20

中文

本次新增

  • 新增了快捷的反馈入口

English

Added

  • Added a quick feedback entry

Logic Sugar v5.9.2[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 18 Oct 09:25

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次修复

  • 三击刚放下的空处理器不再崩溃

English

Fixed

  • Triple-tapping a freshly placed empty processor no longer crashes

Logic Sugar v5.9.1[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 15 Oct 04:49

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次修复

  • 关闭快照上限后继续录制性能数据不再崩溃
  • 性能分析器不再统计本客户端无法访问的处理器

English

Fixed

  • Profiling no longer crashes while snapshots are turned off
  • The profiler no longer profiles processors this client cannot access

Logic Sugar v5.9.0[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 11 Oct 02:53

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次新增

  • 变量界面的显示开关会被记住
  • 性能分析器支持百分比视图

本次修复

  • 原版积木的悬停说明恢复显示
  • 失败的断言与 error 指令现在会停机

English

Added

  • The Vars screen remembers your display switches
  • Profiler statistics support percentage view

Fixed

  • Vanilla statements show their hover hints again
  • Failed assertions and error now stop the processor

Logic Sugar v5.8.0[v160.1]

Pre-release

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 04 Oct 23:59

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次新增

  • 性能分析器:统计每条指令的执行次数或消耗的指令预算,以及分支比例与代码覆盖率;在变量界面点 📊 打开,也可在调试构建的程序里用 profile 指令启停、清空,数据可复制成表格
  • 「录制」快照:记录目标处理器接下来 N 条指令的逐指令状态(变量默认只显示该指令用到的那些),用 snapshot recording 创建
  • 连通快照现在会包含处理器正在控制的单位,快照也可以创建在任何单位或方块上
  • restart 调试指令:重启目标处理器并清空它的变量,用于从另一台处理器录制它的启动代码(调试构建下可用)
  • 变量表新增「指令预算」行:直接看到处理器本帧还剩多少预算

本次改动

  • 变量 / 内存 / 属性界面:含 [ 的字符串按原文显示,超长字符串不再卡住界面;时间列改用与游戏时钟一致的刻度;内存值可以导出成文件、也可以从文件导入;恢复 / 删除快照固定在「编辑」菜单里,窄屏下也能找到
  • 与上游 MlogAssertions v0.11.3 对齐:旧版保存的快照行仍然无损读取,新保存的统一写成当前格式

已知问题

  • 用 5.7.2 及更早版本打开含「录制」快照行的调试程序时,那一行会显示成快照名(只是显示差别,程序在原版与新版上都照常运行)

English

Added

  • Profiler: counts how many times each instruction runs or how much instruction quota it spends, plus branch ratios and code coverage; open it with the 📊 button on the Vars screen, or start/stop/clear it from a debug-build program with the profile instruction, and copy the data as a table
  • Recording snapshots: capture the per-instruction state for the next N instructions of a target processor (variables are filtered to the ones that instruction used), created with snapshot recording
  • Connected snapshots now include the units a processor is controlling, and snapshots can be created for any unit or block
  • restart debug instruction: restarts a target processor and resets its variables, so another processor can record its startup code (available in debug builds)
  • Instruction budget row in the variable table, showing what the processor has left for the frame

Changed

  • Vars / Memory / Properties screens: strings containing [ are shown literally and very long strings no longer stall the screen; the time column follows the game clock; memory values can be exported to and imported from a file; restore/delete snapshot are always in the Edit menu, so they are reachable on narrow screens too
  • Aligned with upstream MlogAssertions v0.11.3: older saved snapshot lines are still read losslessly, and newly saved ones use the current format

Known issues

  • Opening a debug program that contains a recording snapshot line in 5.7.2 or older shows the step count as the snapshot name (display only; the program runs the same on vanilla and on the newer version)

Logic Sugar v5.7.2[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 04 Oct 15:56

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次修复

  • 修复画布上的数组 / 矩阵 / 跨格内存声明会把同一段内存上的原版「读取 / 写入」积木改写成下标卡(原版积木现在保持原样;下标访问请用 Expr 卡写 buf[i])

已知问题

  • 旧存档里用下标糖写的单行表达式卡会显示成原版读写积木(≤5.7.1 保存的 x = buf[3] 一类卡片没有身份标记;产物与运行结果不变,重新拖一张 Expr 卡即可)

English

Fixed

  • Fixed array / matrix / span declarations on the canvas rewriting vanilla Read/Write blocks on the same memory range into subscript cards (vanilla blocks now stay as they are; use an Expr card with buf[i] for subscript access)

Known issues

  • Single-line expression cards written with subscript sugar in older saves show up as vanilla read/write blocks (cards such as x = buf[3] saved by ≤5.7.1 carry no identity marker; the product and runtime behaviour are unchanged, and a fresh Expr card brings the card back)

Logic Sugar v5.7.1[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 04 Oct 14:10

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次修复

  • 修复 Expr 卡里的数据 getter 保存、重开后变成一长串内部指令(stack.top()、queue.front()、deque.back()、.size() 这类写法现在原样回来)
  • 修复跨格内存(span)上的变量下标表达式读不全(x = buf[i] 重开后不再退化成几条临时运算卡)

本次改动

  • 移除 @counter 指示线(写 @counter 的积木不再显示跳转徽标与候选目标幻影线)

English

Fixed

  • Fixed data-structure getters in expression cards turning into a long run of internal instructions after saving and reopening (stack.top(), queue.front(), deque.back(), .size() now come back as written)
  • Fixed variable-index expressions over a multi-cell span reading back incompletely (x = buf[i] no longer degrades into temporary-arithmetic cards after reopening)

Changed

  • Removed the @counter indicator line (cards that write @counter no longer show a jump badge or candidate-target phantom lines)

Logic Sugar v5.7.0[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 03 Oct 16:21

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次新增

  • 支持从原版 Mlog 重建「控制多个单位」「控制一个单位」等单位控制积木
  • 新增功能展厅地图生成器(tools/maplab,一键产出演示各积木的处理器展台地图)

本次修复

  • 修复表达式卡编辑时闪烁、丢焦点,复制后退化成普通积木
  • 修复单行表达式卡(如 x = 0)重开后变成普通积木
  • 修复 FuncDef 的「返回」框填错值后逻辑编辑器再也打不开(现在会标红,不再锁死)
  • 修复移动端拖动必须先长按(快速滑动即可拖动,小位移仍用长按微调)
  • 修复在文本里写 @counter = 0 会落成无效积木

English

Added

  • Rebuild LogicSugar's unit-control blocks ("Control Units", "Control One Unit") from vanilla mlog
  • New feature-showcase map generator (tools/maplab, produces a processor-booth map demonstrating the blocks)

Fixed

  • Fixed expression cards flickering or losing focus while editing, and degrading into plain blocks when copied
  • Fixed single-line expression cards (such as x = 0) degrading into plain blocks on reopen
  • Fixed the logic editor becoming unopenable after a wrong value in a FuncDef's return field (it is marked red now)
  • Fixed mobile drag requiring a long press first (a quick swipe starts the drag; small movements still use the long-press fine adjustment)
  • Fixed @counter = 0 written in the text view ending up as an invalid block

Logic Sugar v5.6.1[v160.1]

Choose a tag to compare

@DeterMination-Wind DeterMination-Wind released this 03 Oct 04:58

Note

需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)

中文

本次修复

  • 修复点击「内置变量」导致游戏崩溃(现在能正常打开内置变量表,变量界面里那颗同名按钮也会出现)
  • 修复逻辑编辑器底栏「添加积木」按钮消失(底栏动作组现在始终包含它)

English

Fixed

  • Fixed a crash when pressing "Built-in Variables" (the built-in variable table opens again, and the matching button in the variables window shows up)
  • Fixed the missing "Add" button in the logic editor's bottom bar (the action group always keeps it)