Skip to content

Releases

StreamScale 0.7.3 - 自检不再破坏开机自启 / checks no longer break autostart

Choose a tag to compare

@Cvencent Cvencent released this 09 Oct 04:30

修复了「跑自检会把开机自启搞坏」的问题。

自检脚本之前只记录"自启是否开启",然后用 set_autostart(True) 恢复——而这个函数按当前运行的进程生成命令。从源码目录跑测试时,命令就是 pythonw.exe tray_app.py,于是一个原本指向正式版的正确自启项,被改成了源码路径。

它仍然读作"已启用",所以检查通过,同时悄悄破坏了自己要验证的东西。这个已经发生过两次——因为损坏只在下次开机时才显现。

现在原样保存并写回命令,且整个往返包在 try/finally 里,失败也不会留下改动。

相关修复

  • _command_path() 优先指向正式版,即使从源码运行;只有没有安装版时才退回源码路径。
    自启项的生命周期长于创建它的那次运行,指向源码树就是等目录一移动就坏。
  • 检查改为断言条目未被改动,而不只是"存在"——正是这个差别让它藏了这么久。

344 项断言 / 21 个脚本全部通过。


升级: 解压覆盖 E:\StreamScale\StreamScale\,重启 StreamScale.exe。

StreamScale 0.7.2 - 字号现在真的会变了 / font size now actually changes

Choose a tag to compare

@Cvencent Cvencent released this 09 Oct 04:22

字号改的是游戏从不打开的那个文件。

%APPDATA%/Brotato 下面有两个 settings.json:

<steamid>/settings.json     ← 游戏读这个
user/settings.json          ← ModLoader 的

程序按"修改时间最新"挑,而 user/ 通常更新,所以每次改写都落到了游戏不看的那个文件里。

从程序内部看一切正常:写入成功、文件里的值正确、日志说配置已应用。唯一的症状就是你报的那个——字号怎么改都不变,而且没有任何错误提示。

答案来自游戏自己的日志:

ProgressData: Saved current profile id 0 to
    user://76561198139548430/settings.json

现在优先选 SteamID 目录。

另外:滑块现在松手即保存

之前拖完必须另外点"保存"——这是设计陷阱,而"我拖了没反应"也确实字面成立。现在松手即写入,并显示确认(效果要串流时才可见,沉默和失败没法区分)。

关于我之前的验证

之前我用临时目录测,那只证明了"能写文件",没证明"写的是游戏会读的文件"。

而且那个测试只造了一个候选目录——所以它在这个 bug 存在的整个期间一直是通过的。

新测试会同时造两个目录,并让错的那个更新。

已在你的真实 Brotato 目录上验证

改前: 游戏文件=1        另一个=1
改后: 游戏文件=2.45 ✅   另一个=1(没被碰)
还原: 游戏文件=1    ✅

343 项断言 / 21 个脚本全部通过。


升级: 解压覆盖 E:\StreamScale\StreamScale\,重启 StreamScale.exe。

StreamScale 0.7.1 - 修好字号滑块 / the text-size slider now works

Choose a tag to compare

@Cvencent Cvencent released this 09 Oct 03:52

字号滑块之前是失效的。 实测:

滑块 1.0 → 字号 1.75
滑块 1.4 → 字号 1.75    ← 拖了没反应
滑块 2.0 → 字号 1.75    ← 拖了没反应

原因:滑块写进了配置,但真正去改游戏设置的是 Sunshine 启动的那个进程(预处理命令)——它是独立进程,永远不会加载托盘代码。所以滑块写的值没人读。

现在修好了,两条路径都验证过:

滑块 1.00 → 字号 1.75(自动,不变)
滑块 1.40 → 字号 2.45
滑块 2.00 → 字号 3.50

(1280 宽的掌机自动基数是 1.75,所以滑块是在这个基础上再乘。)

顺带改进

  • 滑块现在显示会得到什么。以前只显示倍数"1.75",看起来像字号。现在写成
    1.40x(在自动值基础上再放大) → 游戏里约为 2.45。
  • 滑块上限从 2.5 提到 3.0,与代码一致(之前界面拖不到代码允许的最大值)。

还修了两个问题

  • 日志文件从不关闭。句柄一直开着会锁住文件——清理它所在目录时 Windows 会报权限错误,而且错误指向"清理方"而不是"占用方"。现在显式关闭。
  • font_scale = 0 或负数之前被理解成"缩到最小"。现在理解为"未设置"——没人想要零号字。

测试

20 个脚本 / 335 项断言全部通过。

新增的检查会同时验证两条路径(预处理命令 + 托盘)。因为它们是两套代码,而只有一条是坏的——只测托盘会通过,然后把这个 bug 发布出去。


升级: 解压覆盖 E:\StreamScale\StreamScale\,重新运行 StreamScale.exe。

StreamScale 0.7.0 - 界面支持中文 / now in Chinese and English

Choose a tag to compare

@Cvencent Cvencent released this 09 Oct 02:45

界面现在有中文和英文。 在 设置 → 常规 → 界面语言 里切换——立即生效、会被记住,中文系统首次运行就自动显示中文,什么都不用设。

日志和命令行输出固定英文。出问题时要把日志贴去搜索或发给别人,翻译过的日志既不好搜、也不好对照资料。


顺带修掉两个问题

  • 字号滑块显示的数值有歧义。 它只显示了倍数本身,看起来像最终字号,其实不是。现在写清楚了它是"在什么基础上的倍数"。
  • 保存设置时语言会被重置。 从任何标签页保存都会重写整个配置,而语言不在写入的字段里。现在两处都会写。

新增自检

StreamScale.exe selftest

它会检查所有组件是否加载成功,并把报告写到日志旁边。

加这个是因为中文化差点悄悄出错:打包后的程序有几个模块是延迟导入的(设置窗口用的 tkinter、翻译表、日志监视),而打包工具只能识别静态可见的导入——写在函数里的导入它看不见。少打了翻译表的话,中文系统上打开界面还是英文,而且不会报任何错——正好是这个版本要修的问题。

另外有 5 个模块因此被显式写进了打包配置。

测试

19 个脚本 / 322 项断言全部通过。 每个测试现在会先清理上一个测试留下的托盘进程——此前有两个测试单独跑能过、一起跑就失败,因为残留实例占着单实例锁。只在孤立环境下能过的测试没什么价值。


升级: 解压覆盖 E:\StreamScale\StreamScale\,运行 StreamScale.exe。
程序是文件夹——_internal/ 要和 exe 放在一起。

StreamScale 0.6.2 - fixes the missing tray icon, and the screen fill that never applied

Choose a tag to compare

@Cvencent Cvencent released this 09 Oct 01:26

Two things were broken, and both were invisible.

The tray icon could fail to appear at all

Every start asks "am I the installed build, or a package someone just opened?" The answer was worked out by comparing where the process runs from against a recorded install path, and any difference counted as an upgrade attempt.

The record had been written while running from the build output directory. That directory still existed, so every launch looked like "install this build over that one", the versions matched, and the process exited without showing anything:

starting StreamScale 0.6.1
upgrade declined: 0.6.1.0 is not newer than the installed 0.6.1.0

No tray, no dialog, and nothing in the log that reads like an error. The report was simply "your icon is not there".

The question is now whether the running copy is the installation — the same file, or the same folder in a folder layout. A stale record cannot confuse that, and a copy that is already installed never touches the update path at all.

The black bars were never actually removed

The screen-fill setting defaults to off, and a config file written before the setting existed has no key for it — so the default applied silently and nothing changed. It was only reachable by opening Settings and saving once.

Reading the config now merges in the defaults, so an older config picks up new settings on its own.


Also fixed

  • The self-checks now hand a launched copy both a temporary environment and an install record naming itself. Without the record it decided it was an upgrade candidate and exited, so two checks failed for a reason unrelated to what they were testing.
  • A start that finds no installation anywhere now starts normally rather than exiting — a tray is more useful than silence.

299 assertions across eighteen checks, all passing.


Upgrading: extract the archive over E:\StreamScale\StreamScale\, then start StreamScale.exe.

The program is a folder — keep _internal/ beside the exe.

StreamScale 0.6.1 - fixes the black screen, and starts 125x faster

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 15:00
onefile   25 s per start
onedir   0.2 s per start

Two things were wrong, and one of them broke a real session.

The session that broke

Sunshine was pointed at a copy of the tray exe:

"C:\...\Downloads\StreamScale.exe" apply

That copy did not understand apply. It treated the argument as an ordinary launch, started a second tray, and hit the single-instance guard. Sunshine waits for its prep-command to exit, so the teardown stalled for five and a half minutes — the client showed an empty desktop, and the display configuration was never restored, leaving a phantom second monitor behind.

Nothing surfaced as an error. The exe now handles apply / revert / show itself, at any path, and an unknown verb exits with a message instead of quietly becoming a tray. A command that runs but never exits is worse than one that fails — only the second is diagnosable.

Why it was slow

The onefile build unpacked ~19 MB into a temporary directory on every single run: 25 seconds. Sunshine calls the prep-command twice per stream, so that was ~50 seconds of dead waiting, and slow enough to look like a hang on its own.

The build is now onedir — the payload stays unpacked, so only the interpreter boot remains. The cost moves to install time, paid once per version: 40 MB across 1020 files, about 1.4 seconds to copy.

Also fixed

  • The command-line check read the exe's output, which a GUI build never produces (no stdout handle), so it could never match anything. It judges by behaviour now — and kills a process that fails to return, since a stray tray is what the check exists to prevent.
  • Listing running instances matched on the caller's own image name, so an upgrade staged elsewhere looked for the wrong process and could not stop the installed copy.
  • Path comparison is case-insensitive: Windows reports the same folder as both Temp and TEMP depending on who asks.

Upgrading from 0.6.0 or later: extract the archive, run the included 修复Sunshine配置.bat as administrator once, then restart Sunshine. That repoints the prep-commands at the new folder layout.

The program is now a folder, not a single file — keep _internal/ beside the exe.

299 assertions across eighteen checks, all passing.

StreamScale 0.6.0 - upgrading is now a double-click

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 13:16

Download it, open it, done. No need to quit anything first.

It finds the installed copy, compares versions, asks the running instance to step aside, swaps the files, and restarts from the install path. The tray icon blinks out for about a second. No dialogs, no buttons.

Why it works: Windows refuses to overwrite a running executable, but it does allow renaming one. So the old build renames itself aside and the new build takes its place — then the next launch deletes the leftover, since a process cannot delete its own running image.

The running copy leaves cleanly. It restores any game settings it had changed on the way out, so upgrading mid-session will not strand a game at handheld font sizes.

Also in this release

  • Builds now carry a Windows version resource. Previously the packaged exe had no version information at all, and the version string inside the bundle was compressed and unreadable — there was no way to tell two builds apart.
  • Opening an older package is refused with an explanation instead of silently downgrading you.
  • Autostart is repointed after an upgrade, so it keeps working even if the install moves.
  • Whether the tray restarts matches how it was: running stays running, closed stays closed.

To upgrade from 0.5.0 or earlier: this is the last one you do by hand. Right-click the tray icon → Quit, replace StreamScale.exe, start it. From then on, just double-click the new package.

Verified against a genuinely running instance — a real StreamScale.exe was started, located by path, asked to quit, replaced on disk, with the directory left holding only the new build.

Windows 10/11, no Python needed, ~18.8 MB.

StreamScale 0.5.0 - fills a 4:3 screen, and restores files exactly

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 11:58

The black bars can go. Most games are laid out for 16:9, so a 4:3 handheld letterboxes them. For Godot games (Brotato) this is fixable without touching the game — the engine reads an override.cfg beside the executable.

Settings → General → Screen fill:

  • Keep the game's own shape — black bars (default)
  • Fill the screen — no distortion, and more of the play area becomes visible (recommended)
  • Stretch to fit exactly — no bars, but the picture is distorted

Verified against the engine itself, not just the documentation: a probe script reports keep without the file and expand with it.

Safe by construction. The file is merged, never overwritten — Brotato ships ModLoader and that reads the same file, so your mod setup is left alone. Sections, comments and line endings all survive, and the change is reverted byte-for-byte when the stream ends.

Also in this release

  • Restoring settings now puts the file back exactly as it was. It used to rewrite it in a different shape (indentation collapsed) because it re-serialised the values.
  • show no longer writes anything — a dry run is now genuinely read-only.
  • Fixed a transient failure that looked like "no games running".

Upgrade: right-click the tray icon → Quit, replace StreamScale.exe, start it again.

Windows 10/11, no Python needed, ~18.8 MB.

StreamScale 0.4.0 - actually takes effect now

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 10:41

Fixes the case where the scaling had no visible effect. Three real bugs, all found by playing the game.

The profile was applied too late. A game reads its settings file within milliseconds of starting, but the process list is polled once a second. Measured live: the game started at 18:19:30, the write landed at 18:19:33, and the game had already loaded the old value. The file changed and nothing happened. Profiles are now applied the moment the stream starts — seconds or minutes before any game launches — so the race is gone entirely.

Reverting could not find its backup, so settings could stay modified. Now keyed correctly.

A game still running at stream end could leave settings modified forever. Those are now restored once the game actually exits.

New: a Text size slider in Settings → General. The automatic value is computed from resolution and cannot see how large your screen physically is, so this is the honest escape hatch when the text is still too small. Range 0.5×–2.5×, 1.0× means automatic.


Upgrade: right-click the tray icon → Quit, replace StreamScale.exe, start it again.

No changes needed in Sunshine — the press commands stay as they are.

Windows 10/11, no Python needed, ~18.8 MB.

StreamScale 0.3.0 - works from inside Steam

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 10:12

Fixes the case most people actually hit: launching a game from inside Steam Big Picture.

Press commands fire once, when a stream starts. Going through Steam means that moment arrives before the game exists, so nothing was being applied. The tray now watches for the game's process while a stream is running and applies the profile the moment it appears -- and restores your settings when the game closes.

stream starts (Steam Big Picture)  -> nothing to do yet, correctly
you launch Brotato from Steam      -> profile applied
you close Brotato                  -> settings restored

Also fixed a noisy shutdown error that filled the log with tkinter tracebacks.

Upgrade: quit the tray from its right-click menu, replace StreamScale.exe, start it again. Nothing else changes.

Windows 10/11, no Python needed, ~18.7 MB.