成就信息显示
Check your ComfyUI progress as text — the AchievementInfo node has zero inputs and one job
- STRING
AchievementInfo is the smallest kind of useful node: it takes nothing in, reads a file, and hands you a report. It's part of the comfyui-learningcenter pack (学习中心, "Learning Center") - the tutorial plugin that teaches ComfyUI through graded chapters - and its job is to show you where you stand in the pack's achievement system as plain text. If you've been working through the lessons, it's the honest scoreboard: current rank, chapters done, and how many more you need to level up.
How it works
No inputs, no widgets, no sockets in. When the graph runs, the node opens the same user_progress/progress.json the certificate generator reads, counts your completed chapters, and maps the count to the pack's six ranks - 初学者 (1 chapter), 学徒 (5), 实践者 (10), 专家 (20), 大师 (30), 宗师 (50). Then it builds a multi-line STRING like this:
当前成就级别: 学徒
已完成章节数: 6
下一级别: 实践者(还需完成 4 个章节)
成就级别一览:
- 初学者: 需要完成 1 个章节
- 学徒: 需要完成 5 个章节
...
One STRING output, nothing else. It is not an output node, which is the thing that trips people up: drop it in a graph and nothing visibly happens until you wire the string somewhere.
What to do with that string
Any text input will take it. The natural move inside this pack is to feed it into AchievementCertificate's fun_quote input, which stamps your live stats onto the certificate image - a self-updating "certified at 实践者" line that stays honest as you finish more chapters. Outside the pack, wire it into a text-display node or a save-text node to log your progress per run. Since the string is formatted with newlines, a multiline text node renders it as the nice block above.
Installing it
Same story as every node in this pack - it ships together, so:
cd ComfyUI/custom_nodes
git clone https://github.com/assemly/comfyui-learningcenter.git
and restart ComfyUI, or install "comfyui-learningcenter" / "Learning Center" through ComfyUI Manager. Dependencies are light (pillow, aiohttp, numpy, opencv-python) with no models to download, so the whole pack installs in seconds.
Gotchas worth knowing
The report is only as current as progress.json, and that file is written by the Learning Center UI's "标记为已完成" flow - not by anything you run in a graph. Mark a chapter done, re-run, and the count updates; skip the UI and you'll be stuck at 初学者 forever, the same trap as the certificate node. The text is Chinese, which is fine for any text node, but remember the output is a plain string - no image, no formatting, no rank badge. That's the trade: you give up the pretty certificate for text you can wire anywhere. For a quick sanity check of where you are, it's the node to reach for.
Inputs (0)
No inputs
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |