3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 891|回复: 27
打印 上一主题 下一主题

[MOD] 【搬运】Mewgenics 繁育管理器

[复制链接]

2284

主题

3417

帖子

14万

积分

游戏终结者

Rank: 14Rank: 14Rank: 14Rank: 14

贡献度
21648
金元
616380
积分
148230
精华
0
注册时间
2006-12-25
跳转到指定楼层
主题
发表于 2026-3-5 14:43 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 smile417 于 2026-3-6 08:29 编辑

转自n网:https://www.nexusmods.com/mewgenics/mods/129
Runs alongside Mewgenics and does what the game's UI won't: puts every cat in one sortable table with color-coded stats, live save reading, and a breeding comparison that shows projected offspring stat ranges and combined mutations for any two cats. Optional inbreeding analysis available in Settings.
它与 Mewgenics 并行运行,实现了游戏界面无法做到的事:将所有猫放在一个可排序的表格中,带有颜色编码的属性,实时存档读取,并提供繁殖比较,显示任意两只猫的后代预测属性范围和合并突变。设置中有可选的近亲繁殖分析。


Mewgenics Breeding Manager
Mewgenics 繁育经理

An external breeding and roster manager for Mewgenics — similar to Dwarf Therapist for Dwarf Fortress.
Mewgenics 的外部繁殖和名单管理者 ——类似于矮人要塞的矮人治疗师。
Reads your save file live and gives you a clear view of every cat's stats, room, abilities, mutations, and lineage so you can make smarter breeding decisions without alt-tabbing.
它会实时读取你的存档,让你清楚看到每只猫的属性、房间、能力、变异和血统,让你无需切换标签就能做出更明智的繁殖决策。

Note: This tool was vibecoded. The family tree and inbreeding analysis features are not guaranteed to be accurate. They can be enabled via Settings → Show Family Tree & Inbreeding (off by default).
注:该工具是 vibecode 的。家谱和近亲繁殖分析功能并不保证准确。它们可以通过设置→显示家谱和近亲繁殖(默认关闭)来启用。

Single Cat View  单猫视角

The main roster table showing all alive cats with color-coded base stats (red → grey → green), abilities, mutations, and a **Risk%** column indicating inbreeding risk relative to the selected cat. Clicking any row opens the detail panel at the bottom, showing the cat's abilities, lineage (parents and grandparents), and room assignment.
主名单表显示所有现存猫咪,基础属性按颜色编码(红色→灰色→绿色)、能力、突变,以及一个**Risk%**栏,显示相对于所选猫咪的近亲繁殖风险。点击任意一行会打开底部的详细面板,显示猫的能力、血统(父母和祖父母)以及房间分配。

Breeding Comparison View  繁殖比较视图

Ctrl+click two compatible cats to enter breeding comparison mode. The detail panel shows each cat's stats side-by-side and calculates the offspring stat ranges (min–max per stat and total sum range). Both cats' abilities are listed so you can plan which traits will carry forward.
Ctrl+点击两只兼容猫进入繁殖对比模式。详细面板并列显示每只猫的属性,并计算后代的属性范围  (每个属性的最小-最大值和总和范围)。两只猫的能力都列出了,方便你规划哪些特质会延续。

Family Tree View  家谱视图

Select a cat from the list and switch to Family Tree View in the sidebar to see a visual generational tree: the selected cat at the top (SELF), their children in the row below, and grandchildren below that. Each box shows the cat's name, gender, and current room or Gone status. Click any box to jump to that cat.
从列表中选择一只猫,并在侧边栏切换到家谱视图 ,可以看到一个可视化的代际树:选中的猫在顶部(SELF),它们的孩子在下一行,孙辈在下方。每个方框显示猫的名字、性别以及当前房间或“消失”状态。点击任意选项跳转到那只猫。


Safe Breeding View  安全繁殖视图

The Safe Breeding panel ranks all viable alive partners for the selected cat by ascending inbreeding risk. Columns show Risk% (normalized Wright's Coefficient of Inbreeding), Shared Ancestors count, and a plain-language label — Not Inbred, Slightly Inbred, Moderately Inbred, etc. — so you can immediately pick the safest pairing.
安全繁殖小组根据近亲繁殖风险递增,对所选猫咪所有可行的活体伴侣进行排名。列中显示风险百分比  (归一化后的赖特近亲繁殖系数)、  共同祖先计数,以及一个通俗的标签—— 非近亲繁殖、 轻微近亲繁殖 中度近亲近亲等 ——这样你可以立即选择最安全的配对。


Room Optimizer  房间优化器

The Room Optimizer panel optimizes cat placement to reduce inbredness. Columns show Pairs, Attribute ranges, Total Stat Ranges, Average Stat, and Inbred Chance.
  房间优化器面板优化猫咪的放置位置,以减少近亲繁殖。列中显示配对、属性范围、总属性范围、平均属性和近亲繁殖概率。


Features  特色
  • Live save reading — watches the save file and reloads automatically when the game writes
    实时存档读取——会监控存档文件,写入时会自动加载
  • Full cat roster — all cats in one sortable table; filter by room, adventure, or gone (with counts)
    完整的猫咪名单——所有猫都在一个可排序的表格中;按房间、冒险或消失(附计数)筛选
  • Color-coded base stats — red (1) → grey (4) → green (7) to see stats at a glance
    按颜色编码的基础属性——红色(1)→灰色(4)→绿色(7)以便一目了然查看数据
  • Detail panel — click any cat to see abilities, mutations, and lineage; hover chips for descriptions
    详情面板——点击任意猫可查看能力、变异和血统;悬浮芯片用于描述
  • Breeding comparison — Ctrl+click two cats to see offspring stat ranges and combined mutations
    繁殖比较——Ctrl+点击两只猫可查看后代属性范围和合并突变
  • Search bar — filter cats by name in real time
    搜索栏——实时按猫名筛选
  • Family tree & inbreeding (optional) — toggle in Settings; shows Gen depth, Source column, inbreeding score, shared-ancestor warnings, and risky-pair lowlighting
    家谱与近亲繁殖(可选)——可在设置中切换;显示基因深度、来源列、近亲繁殖评分、共同祖先警告及风险配对低照
  • Risk% column — inbreeding risk percentage for every cat relative to the selected one, using Wright's Coefficient of Inbreeding
    风险百分比栏——每只猫相对于所选猫的近亲繁殖风险百分比,使用赖特近亲繁殖系数
  • Safe Breeding view — sidebar panel that ranks all valid alive partners for a selected cat by ascending risk, with shared ancestor counts and plain-language labels
    安全繁殖视图——侧栏面板,按风险递增排序所选猫的所有有效存活伴侣,附有共同祖先数量和通俗标签
  • Family Tree view — visual generational tree (self → children → grandchildren) with click-to-navigate boxes
    家谱视图——可视化的代际树(自家可按→子孙→),带有点击导航框
  • UI zoom — Ctrl+= / Ctrl+- / Ctrl+0 to scale the entire interface from 70%–200%
    UI 缩放——Ctrl+= / Ctrl+- / Ctrl+0,将整个界面从 70%缩放到 200%


Installation  安装
I used PyInstaller to create an exe of the program. Just open the .exe and it should pull your save file.
我用 PyInstaller 创建了程序的 exe 文件。只要打开.exe,它应该能拉出你的存档。

If you want to build the file from source, it is on github here - https://github.com/frankieg33/MewgenicsBreedingManager
如果你想从源码构建文件,可以在 GitHub 上找到—— https://github.com/frankieg33/MewgenicsBreedingManager
git clone https://github.com/frankieg33/MewgenicsBreedingManager
cd MewgenicsBreedingManager
pip install -r requirements.txt
python mewgenics_manager.py

Usage  用途
The app auto-detects your save file from:
应用会自动检测你的存档来源:
%APPDATA%\Glaiel Games\Mewgenics\<SteamID>\saves\
Use File → Open Save File to load a different save, or File → Reload (F5) to force a refresh.
使用文件→打开存档文件加载不同的存档,或者使用文件→加载(F5)强制刷新。

Detail panel  细节面板
  • 1 cat selected — shows abilities, mutations, equipment, and known lineage
    选中1只猫——显示能力、突变、装备及已知血统
  • 2 cats selected (Ctrl+click) — shows a breeding comparison with per-stat offspring ranges and combined mutations
    选择 2 只猫(Ctrl+点击)——显示与各属性后代范围及合并突变的繁殖比较

Sidebar filters  侧边栏滤波器
  • All Cats — every cat including gone
    所有猫——包括消失的猫
  • Alive — in house + adventure cats
    活着——内部 + 冒险猫
  • Room buttons — dynamically generated for each occupied room (with cat counts)
    房间按钮——为每个占用的房间动态生成(包含猫数量)
  • On Adventure — cats currently in a run
    冒险——目前正在奔跑的猫咪们
  • Gone — dead/sold cats  消失了——死猫/卖掉了

Risk labels  风险标签
- Not Inbred — 0–19%
- 非近亲繁殖 — 0–19%
- Slightly Inbred — 20–49%
- 轻度近亲繁殖 — 20–49%
- Moderately Inbred — 50–99%
- 中度近亲繁殖 — 50–99%
- Highly Inbred — 100% (capped)
- 高度近亲繁殖 — 100%(有上限)

How Inbreeding Risk is Calculated
近亲繁殖风险的计算方法
Risk% is based on Wright's Coefficient of Inbreeding (CoI), computed from the ancestry paths of two potential breeding partners.
风险百分比基于赖特近亲系数(CoI),该系数是根据两位潜在繁殖伙伴的祖先路径计算得出的。

1. Build ancestor data
1. 构建祖先数据
- `_ancestor_depths(cat)` — finds how many generations away each ancestor is
- “_ancestor_depths(猫)”——计算每个祖先相距多少代
- `_ancestor_paths(cat)` — builds all unique upward paths from a cat to each ancestor; loops through the same cat are rejected
- “_ancestor_paths(猫)”——构建从猫到每个祖先的唯一向上路径;同一类催化转换器的环路被拒绝

2. Compute raw CoI
2. 计算原始 CoI
For each common ancestor shared by Cat A and Cat B, every valid path combination is evaluated:
对于 A 类和 B 类共有的每个共同祖先,计算每一条有效的路径组合:
- Reject combinations that reuse the same cat on both sides (except the common ancestor itself)
- 拒绝重复使用同一猫的组合(除了共同祖先本身)
- Each valid combination contributes: `0.5 ** (sa + sb + 1)`
- 每个有效组合贡献:'0.5 ** (sa + sb + 1)'
  - `sa` = edges from A to the ancestor
- 'sa' = 从 A 到祖先的边
  - `sb` = edges from B to the ancestor
- 'sb' = 从 B 到祖先的边
- Closer shared ancestors contribute more weight; distant ones contribute less
- 更近的共同祖先贡献的权重更大;远方的贡献较少

3. Convert to Risk%  3. 转换为风险百分比
Risk% = clamp((raw_coi / 0.25) × 100, 0, 100)
A raw CoI of 0.25 (e.g. first-cousins) maps to 100%. Values above that are capped at 100%.
原始 CoI 为 0.25(例如表兄弟姐妹)映射为 100%。超过这个数值的数值上限为 100%。

4. Sorting in Safe Breeding
4. 安全繁殖中的分院
- Primary: lower Risk% first
- 主要:优先降低风险百分比
- Secondary tie-break: `recent_shared × 1000 + total_shared` (penalizes recent shared ancestry more heavily)
- 次级平分决胜:“recent_shared × 1000 + total_shared”(对近期共同祖先的惩罚更重)
- Final tie-break: partner name alphabetically
- 最终平局:搭档姓名按字母顺序排列

Notes  注释
Parent links are resolved from the pedigree stored in the save file. The family tree and inbreeding features are experimental — they can be wrong, especially for cats with complex lineage or saves that have been running for a long time. Enable them via Settings → Show Family Tree & Inbreeding.
父链接是通过存档文件中存储的血统来解析的。家谱和近亲繁殖特征是实验性的——尤其是对于血统复杂或存活时间较长的猫来说,可能会出错。通过设置→显示家谱和近亲繁殖来启用它们。

Changelog/Credits  更新日志/制作人员名单
1.3.0 added detail to the room optimizer
1.3.0 为房间优化器添加了细节
1.2.0 added a room optimizer thanks to ICaxapI
1.2.0 版本 通过 ICaxapI 添加了房间优化器
1.1.0 updated the gender logic thanks to heartskingu
1.1.0 更新了性别逻辑,感谢 heartskingu

Save file parsing based on pzx521521/mewgenics-save-editor and community research on the Mewgenics save format.
基于 pzx521521/mewgenics-save-editor 和社区对 Mewgenics 存档格式的研究进行存档解析。

游客,如果您要查看本帖隐藏内容请回复





回复

使用道具 举报

0

主题

1231

帖子

1532

积分

游戏狂人

Rank: 6Rank: 6

贡献度
0
金元
15320
积分
1532
精华
0
注册时间
2011-8-15

G胖の微笑赛博朋克2077

舒服的沙发
发表于 2026-3-5 19:18 | 只看该作者
顺丰爽肤水发顺丰是
回复 支持 反对

使用道具 举报

23

主题

2万

帖子

3万

积分

游戏天王

Rank: 11Rank: 11Rank: 11Rank: 11

贡献度
486
金元
296200
积分
31564
精华
0
注册时间
2018-10-5

元气女仆(永久)量子Doro3DM小黄鸡拉姆雷姆3DMer尼禄·克劳狄乌斯锦鲤

硬硬的板凳
发表于 2026-3-6 13:02 | 只看该作者
谢谢分享!谢谢!
回复 支持 反对

使用道具 举报

10

主题

1036

帖子

2072

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
51
金元
18682
积分
2072
精华
0
注册时间
2011-2-15

G胖の微笑

冰凉的地板
发表于 2026-3-7 19:13 | 只看该作者
感谢楼主分享优质内容,希望继续努力!感谢楼主分享的内容!
回复 支持 反对

使用道具 举报

0

主题

16

帖子

77

积分

初级玩家

Rank: 2

贡献度
0
金元
770
积分
77
精华
0
注册时间
2016-9-23
5#
发表于 2026-3-7 20:22 | 只看该作者
❤❤❤❤❤
回复 支持 反对

使用道具 举报

0

主题

90

帖子

209

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
2090
积分
209
精华
0
注册时间
2017-1-15
6#
发表于 2026-3-8 03:23 | 只看该作者
感谢分享
回复 支持 反对

使用道具 举报

0

主题

1323

帖子

1534

积分

游戏狂人

Rank: 6Rank: 6

贡献度
0
金元
15336
积分
1534
精华
0
注册时间
2020-11-24
7#
发表于 2026-3-8 05:23 | 只看该作者
楼主太棒了!我先下为敬!你说的观点我也很支持!
回复 支持 反对

使用道具 举报

4

主题

595

帖子

743

积分

超级玩家

Rank: 5Rank: 5

贡献度
0
金元
7425
积分
743
精华
0
注册时间
2011-10-17
8#
发表于 2026-3-9 16:06 | 只看该作者
111111111111111111111111
回复 支持 反对

使用道具 举报

4

主题

208

帖子

290

积分

高级玩家

Rank: 4

贡献度
4
金元
2738
积分
290
精华
0
注册时间
2011-8-27
9#
发表于 2026-3-9 22:07 | 只看该作者
科技改变育种!
回复 支持 反对

使用道具 举报

1

主题

781

帖子

2206

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
40
金元
20464
积分
2206
精华
0
注册时间
2014-2-23
10#
发表于 2026-3-9 23:34 | 只看该作者
66666666666666666
回复 支持 反对

使用道具 举报

0

主题

47

帖子

125

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
1245
积分
125
精华
0
注册时间
2015-12-6
11#
发表于 2026-3-10 02:21 | 只看该作者
666666666666666666
回复 支持 反对

使用道具 举报

0

主题

21

帖子

26

积分

新手玩家

Rank: 1

贡献度
0
金元
260
积分
26
精华
0
注册时间
2026-1-25
12#
发表于 2026-3-10 06:44 来自手机 | 只看该作者
66666666666
回复 支持 反对

使用道具 举报

1

主题

263

帖子

373

积分

高级玩家

Rank: 4

贡献度
0
金元
3731
积分
373
精华
0
注册时间
2017-1-16
13#
发表于 2026-3-14 11:00 | 只看该作者
!!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

0

主题

76

帖子

89

积分

初级玩家

Rank: 2

贡献度
0
金元
885
积分
89
精华
0
注册时间
2018-10-22
14#
发表于 2026-3-14 20:28 | 只看该作者
6666666666666666666666

回复 支持 反对

使用道具 举报

0

主题

347

帖子

395

积分

高级玩家

Rank: 4

贡献度
9
金元
3593
积分
395
精华
0
注册时间
2008-12-2
15#
发表于 2026-3-15 09:59 | 只看该作者
感谢分享
回复 支持 反对

使用道具 举报

0

主题

35

帖子

42

积分

初级玩家

Rank: 2

贡献度
0
金元
415
积分
42
精华
0
注册时间
2025-4-26
16#
发表于 2026-3-15 12:42 | 只看该作者
6666666666666666666666666666666
回复 支持 反对

使用道具 举报

0

主题

122

帖子

441

积分

高级玩家

Rank: 4

贡献度
0
金元
4406
积分
441
精华
0
注册时间
2023-2-1
17#
发表于 2026-3-15 18:15 | 只看该作者
6666666666
回复 支持 反对

使用道具 举报

0

主题

31

帖子

50

积分

初级玩家

Rank: 2

贡献度
0
金元
500
积分
50
精华
0
注册时间
2024-7-24
18#
发表于 2026-3-15 21:23 | 只看该作者
感谢分享

回复 支持 反对

使用道具 举报

0

主题

95

帖子

139

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
1386
积分
139
精华
0
注册时间
2021-7-9
19#
发表于 2026-3-17 15:41 | 只看该作者
666666666666666
回复 支持 反对

使用道具 举报

0

主题

17

帖子

82

积分

初级玩家

Rank: 2

贡献度
0
金元
815
积分
82
精华
0
注册时间
2015-8-25
20#
发表于 2026-3-17 21:55 | 只看该作者
66666666666666
回复 支持 反对

使用道具 举报

0

主题

83

帖子

147

积分

中级玩家

Rank: 3Rank: 3

贡献度
0
金元
1466
积分
147
精华
0
注册时间
2013-3-8
21#
发表于 2026-3-18 10:07 | 只看该作者

回复 支持 反对

使用道具 举报

0

主题

1

帖子

2

积分

新手玩家

Rank: 1

贡献度
0
金元
15
积分
2
精华
0
注册时间
2026-3-19
22#
发表于 2026-3-19 14:26 | 只看该作者
xiexiefenxiang

回复 支持 反对

使用道具 举报

0

主题

333

帖子

539

积分

高级玩家

Rank: 4

贡献度
0
金元
5388
积分
539
精华
0
注册时间
2018-6-12
23#
发表于 2026-3-22 16:50 | 只看该作者
水电费水电费是否水电费手打
回复 支持 反对

使用道具 举报

0

主题

73

帖子

90

积分

初级玩家

Rank: 2

贡献度
0
金元
895
积分
90
精华
0
注册时间
2019-10-7
24#
发表于 2026-3-24 19:42 | 只看该作者
6666666666666666666666666
回复 支持 反对

使用道具 举报

0

主题

1

帖子

3

积分

新手玩家

Rank: 1

贡献度
0
金元
25
积分
3
精华
0
注册时间
2025-2-28
25#
发表于 2026-3-24 20:33 | 只看该作者
6666666666666


回复 支持 反对

使用道具 举报

0

主题

391

帖子

473

积分

高级玩家

Rank: 4

贡献度
0
金元
4727
积分
473
精华
0
注册时间
2015-8-15
26#
发表于 2026-3-29 12:39 | 只看该作者
6666666666666666666666666666666666666
回复 支持 反对

使用道具 举报

0

主题

267

帖子

369

积分

高级玩家

Rank: 4

贡献度
0
金元
3688
积分
369
精华
0
注册时间
2016-11-26

G胖の微笑

27#
发表于 2026-3-29 15:05 | 只看该作者
谢谢楼主分享
回复 支持 反对

使用道具 举报

0

主题

30

帖子

33

积分

初级玩家

Rank: 2

贡献度
0
金元
325
积分
33
精华
0
注册时间
2018-6-13
28#
发表于 2026-4-3 10:38 | 只看该作者
感谢分享
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-6 04:54 , Processed in 0.043394 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表