All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Advanced Memory Card

Advanced Memory Card

by suntide-20210418 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Advanced Memory Card

An Applied Energistics 2 (AE2) add-on mod that supercharges the AE2 Memory Card with two major features: bulk configuration copying and advanced P2P tunnel management.

🌟 Features

🔧 Two Working Modes

The mod stores its state as a "mode" inside the item's NBT, and you can switch between them at any time:

Mode Description
Copy Mode Select a region and paste a copied AE2 device configuration onto every AE2 block and part inside it at once
Config Mode (P2P Tunnel Config) Right-click a P2P tunnel part to open a GUI for centrally managing and configuring P2P tunnels within the network

📋 Copy Mode

  • Bulk region copy: Copy a single AE2 device's configuration first, then select two opposite corner blocks to define a region, and right-click on air to apply the config in bulk.
  • Supports AE2 blocks and parts: Every AEBaseBlockEntity (ME controllers, interfaces, storage buses, etc.) and every part on an IPartHost within the region is processed.
  • Volume limit protection: If the region volume exceeds the server config maxCopyVolume (default 2048 blocks), the paste is rejected with a message to prevent accidental oversized selections and lag.
  • Visual selection box: The selection is color-coded in real time (red = pick first point / white = pick second point / green = ready to paste), with distinct colors for the targeted block and out-of-range blocks.
  • Real-time feedback: The item tooltip and chat bar display marked coordinates, region size, and the number of blocks pasted.

🕸 Config Mode (P2P Tunnel Config)

Right-click any P2P tunnel part to open the configuration GUI and visually manage all P2P devices in the current AE network:

  • P2P tree list: Automatically scans the network and displays all P2P devices grouped by type / channel, with expand/collapse and search filtering.
  • Detail panel: Selecting a node shows its type, frequency, input/output role, connection status, and more.
  • Rename / alias: Set a custom name for an individual P2P device, or set an alias for an entire channel (the channel's input side) for easy identification.
  • Bind frequency: Bind the selected P2P to a specific 4-digit hexadecimal frequency (e.g. 0A1B). Non-ME P2Ps automatically and intelligently determine their input/output role.
  • Assign new channel: Assign a brand-new free frequency to the selected non-ME P2P and set it as the input side with one click.
  • Auto-configure input/output (ME P2P only): Automatically decides whether an ME P2P should act as input or output based on whether its external network is connected to an ME Controller, and assigns a frequency automatically.
  • Highlight & locate: Highlights P2P tunnels in the world (self / input / output rendered in different colors), optionally auto-turns your head toward the target, and sends location info and a teleport link to the chat bar.
  • Cross-dimension connections: Fixes the vanilla issue where the client only sent coordinates, making cross-dimension P2Ps impossible to locate. The encoding now carries dimension info, allowing P2P devices to be correctly located and highlighted across dimensions.

⌨️ Mode Switching

  • V key (default, rebindable in the game's Controls settings) — press while holding the Advanced Memory Card to switch modes.
  • Shift + Right-click — quickly switch between the two modes (in Copy Mode, Shift + Right-click performs the native AE2 copy action instead of switching).

📦 Installation

Requirements

Dependency Version
Minecraft 1.20.1
Forge 47.4.10 or higher (loader range [47,))
Applied Energistics 2 (AE2) 15.4.10 or higher ([15.4.10,))
mixinextras 1.0.0+ (optional, for Mixin enhancements)

The mod also depends on Jade, GuideME, and JEI at runtime (common AE2-ecosystem add-ons; installing them is recommended for the best experience).

Steps

  1. Download the latest advanced_memory_card-<version>.jar from the releases page.
  2. Place the .jar file into your Minecraft mods folder.
  3. Make sure the required mods above are installed.
  4. Launch the game and find the item under the "Advanced Memory Card" creative tab.

🛠 Configuration

The mod provides both client and server config files (located in the config/ directory):

Server config (advanced_memory_card-server.toml)

Option Default Description
maxCopyVolume 2048 Maximum region volume (block count) allowed in Copy Mode; larger selections are rejected
sendHighlightToChat true Whether to send location info and a teleport link to chat when highlighting a P2P device

Client config (advanced_memory_card-client.toml)

Mainly used to personalize UI and rendering appearance. You can adjust:

  • Highlight behavior: rotateHeadOnHighlight (auto-turn head when highlighting), p2pHighlightDurationSec (highlight duration, 1–60 seconds).
  • P2P tree widget: background / selected / hover colors, indent, row height, icon spacing, channel warning threshold, max name length, etc.
  • Detail panel: background, title, label, value, and status (not active / not connected / connected) colors and layout dimensions.
  • Generic buttons (FlatButton): default / hover / pressed / text colors.
  • Copy Mode selection box: colors for start point, end point, targeted point, out-of-range, and the three selection states.
  • P2P highlight rendering: self / input / output colors.
  • Item color: item base color and tint color.

All colors are hexadecimal values (ARGB for GUI classes, RGB for rendering classes) and can be edited directly in the config files.

📖 Quick Usage Guide

Copy Mode

  1. Hold the Advanced Memory Card in Copy Mode and Shift + Right-click a source AE2 device to copy its configuration.
  2. Right-click the first corner block to mark the start point (red).
  3. Right-click the opposite corner block to mark the end point (white); it now enters the ready-to-paste state (green).
  4. Right-click on air to apply the config in bulk to all AE2 devices in the region.

Config Mode

  1. Switch to Config Mode and right-click any P2P tunnel part to open the configuration GUI.
  2. Browse / search the network's P2Ps in the left tree, and select a node to view its details on the right.
  3. Use the detail panel buttons to rename, bind a frequency, assign a new channel, auto-configure input/output, highlight & locate, and more.

🔧 Development & Build (for developers)

# Run the client (dev environment)
./gradlew runClient

# Build the release jar
./gradlew build

# Generate data packs / language files
./gradlew runData
  • Built on Forge Gradle 6.x with a Java 17 toolchain.
  • Uses Mixin (advanced_memory_card.mixins.json) to extend AE2's P2PTunnelPart.
  • Resource files are produced by the data generators under src/main/java/.../datagen into src/generated/resources/.

📄 License

This project is open-sourced under the GNU GPL-3.0 license.

How to Install Advanced Memory Card (Mod)

Advanced Memory Card by suntide-20210418 is verified for Forge, Neoforge across Minecraft versions 1.12.2, 1.20.1, 1.21.1, 1.7.10 (latest release: 1.2.0-1.12.2, file size: 222 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.12.2, 1.20.1, 1.21.1, 1.7.10) and platform (Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Forge, Neoforge.
  3. Move the downloaded Advanced Memory Card file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.12.2
Forge
24d ago 1
1.7.10
Forge
24d ago 1
1.7.10
Forge
25d ago 1
1.7.10
Forge
25d ago 1
1.12.2
Forge
25d ago 1
1.7.10
Forge
25d ago 1
1.21.1
Neoforge
25d ago 1
1.20.1
Forge
25d ago 1
1.21.1
Neoforge
26d ago 1
1.7.10
Forge
26d ago 1
1.21.1
Neoforge
29d ago 1
1.12.2
Forge
1mo ago 1
1.20.1
Forge
1mo ago 1
1.21.1
Neoforge
1mo ago 1
1.12.2
Forge
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.7.10
Forge
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.20.1
Forge
4mo ago 1
1.7.10
Forge
4mo ago 1
1.12.2
Forge
4mo ago 1
1.21.1
Neoforge
4mo ago 1
1.20.1
Forge
4mo ago 1
  • Minecraft** 1.12.2 · **Forge** 14.23.5.2860 或更高 · **AE2** AE2 Extended Life(570458:6302098)

把配置模式界面按 1.21.1 基准重做,并完成 64 位频段、操作按钮、高亮与传送链路的收尾;面板直接使用基准贴图。复制模式与七项粘贴选项保持原有行为。

### 新增

  • 四列 P2P 树**:状态点、名称(带折叠箭头)、频段、摘要四列对齐,列头常驻在列表上方;频段列右对齐显示 4 位十六进制。
  • Ctrl 多选**:在同一类型下追加选中多台设备,跨类型时自动清空重选,底部操作条随之切换成「批量绑定」。
  • Ctrl 拖动框选**:拖出一片矩形把行整片选上,框选与单点多选共用同一份选择集,在树外松开鼠标也能正常收尾。
  • 顶部配对条**:「源 → 目标」一屏可见,点开频段下拉即可选目标频段,一次点击完成绑定;多选时显示「N 个源」。
  • 底部操作条与状态行**:「绑定」主按钮 + 批量模式开关,右侧常驻一行状态提示,16 种状态(绑定成功 / 无目标 / 频段非法 / 无网络 / 批量部分成功 / 切换失败等)按等级上色。
  • 右侧检查器**:类型、频段、输入/输出状态、连接状态,就地提供改名、切换为输入端、传送、高亮等按钮。
  • 传送落地后点亮目标 P2P**:传送发包后界面立即关闭;同维度时客户端立刻尝试点亮,跨维度时由 ClientTickTasks 等「落点 + 目标部件可查」,并在 rotateHeadOnHighlight 开启时转头;10 秒超时。

### 改进

  • 搜索与滚轮**:滚动条拖动与鼠标滚轮都能滚树列表(滚轮一格三行),搜索框内容变化才重新过滤,不再每帧重扫。
  • 同步节流**:服务端数据版本号没变时不重灌频道列表与状态码,界面的稳定性和手感的抖动都随之改善。
  • 绑定后的自动导航**:配对源发生变化时才把界面滚到那个 P2P,不再每帧重复定位。
  • 高亮描边更醒目**:线宽从 2.0 提到 3.5;基色先向白色混合 35% 提亮,再按 0.5 秒周期在 50% / 100% 亮度之间脉冲。「高亮」按钮与传送共用同一个 P2PRenderer。
  • 传送后立刻点亮**:服务端传送完成后立即发一次 HighlightPacket,客户端关界面后也立刻本地尝试一次,同维度时无需等待。
  • 配置界面去掉代码绘制矩形**:整块 0xFFC7CCDA 的 fillRect 换成基准 config_mode_menu.png(从 1.21.1 原样复制,md5 0a4cb6e7bcc09d2fdcb4dfcc94c1f639,512×512,取左上 440×312);检查器的 paletteSurface 填充移除;搜索框关闭原版黑底并补占位符,标题对齐 (7,7)。

### 修复

  • 状态行不再空白**:底部操作条现在会显示 16 种状态提示(绑定成功 / 无目标 / 频段非法 / 无网络 / 批量部分成功 / 切换失败等),此前界面里没有这一行,绑定结果只能靠聊天栏猜。
  • 界面显示原始翻译键**:TranslateHelper.Keys 拼出的是双前缀 gui.advanced_memory_card.advanced_memory_card.*,而 pair / action_bar / status_line 写成了单前缀、tree / tree_col 缺失,共 39 个键对不上。现在 29 条改为双前缀,补齐 10 条 tree / tree_col 键,en / zh 各 123 键、键集合一致。
  • 俄语语言文件补齐**:ru_ru.lang 从 78 键补到 123 键,与 en / zh 键集合一致;新增内容覆盖配对条、操作条、状态行、树列与快捷键,占位符数量与英文逐条对齐。
  • 树整块点不动**:基准里「鼠标命中控件 → 调 onClick」是 AE2 AbstractWidget#mouseClicked 干的活,旧版 Widget 基类的 mouseClicked 只返回 false,于是 P2PTreeWidget.onClick 从头到尾没有调用者 —— 点设备行不选中、点频段行不展开、Ctrl 多选与框选起手也都没了。现在树的 mouseClicked 自己派发:左键落在树矩形内就调 onClick 并返回 true。
  • 滚动条被树吃掉点击**:滚动条的矩形压在树右缘的 14px 留白上,而事件的派发顺序是「树 → 滚动条」,树开始消费点击之后滑块就再也拖不动了。现在滚动条先于树判定。
  • 批量模式多选只绑定一台**:多选集合的键 positionKey 用 info.dimension()(维度名,如 overworld)拼 P2PPosition,而 p2pInfoMap 的键用的是 String.valueOf(dimensionId)(如 0);P2PPosition.equals 又把 dimension 纳入比较,于是 p2pInfoMap.get(key) 全部落空,getSourceCandidates() 退回单选的 selectedP2PInfo,doBind() 只发 bind_frequency 而不是 bind_frequency_batch。现在 positionKey 统一用维度 id 字符串,多选反查能拿全所有设备。
  • 高亮始终不渲染(客户端找不到部件)**:ClientHighlightHandler.findPart 用 DimensionManager.getWorld(dimId)。1.12.2 的 DimensionManager 是服务端注册表,setWorld 只在 WorldServer / MinecraftServer 里调用,客户端 loadWorld 不会注册 ClientWorld:专用服务器客户端上 getWorld 恒为 null,单机拿到的是服务端 ServerWorld 及其部件,都不是渲染用的那一份。现在改用 Minecraft.world,并且只处理当前维度。
  • 高亮不关闭界面**:onHighlightP2P / onHighlightChannel 只发了高亮包,GUI 一直留在屏幕上,世界里的描边被界面挡住。现在按 C4 执行「发包 → 关界面 → 转头」,频段高亮转向该频段第一台输入端。

### 已知限制

  • 本版界面与 1.21.1 基准的布局常量一致,面板直接使用基准 config_mode_menu.png 贴图;1.12.2 没有 AE2 的 ScreenStyle 槽位机制,控件仍为自绘。
  • 与 1.7.10
...
  • Minecraft** 1.7.10 · **Forge** 10.13.4.1614 · **AE2** GTNH Applied-Energistics-2-Unofficial rv3

配置模式界面按 1.21.1 基准重做,并完成 64 位频段、操作按钮、高亮与传送链路的收尾。复制模式与七项粘贴选项保持原有行为。

### 新增

  • 配置模式界面重做**:改为 440×312 的自绘面板,包含左侧四列 P2P 树(状态点 / 名称 / 频段 / 汇总)、顶部配对条(源 → 目标 + 频段下拉 + 批量开关)、右侧检查器(频段 / 角色 / 连接 / 别名 / 按钮组)、底部操作条与状态行。
  • 状态行**:所有操作统一在底部状态行反馈,覆盖绑定、批量绑定、切换输入端、改名、刷新等 16 种结果,并按成功 / 警告 / 失败着色。
  • 批量绑定**:Ctrl 点击非设备行进入批量模式,框选多台设备后一次性绑定到同一频段;状态行会区分「批量成功」与「批量部分成功」。单次最多 32 台,超出时在聊天栏提示分批操作。
  • 检查器增强**:支持就地改名(Enter 提交 / Esc 取消)、设置频道别名、把设备切为输入端、传送与高亮定位。
  • 客户端配色板**:新增 client.palette.* 语义色板,配置模式界面的文字、强调色、行状态、面板底色、状态色与浮层颜色都可在 config/advanced_memory_card/client.cfg 中调整。
  • 传送落地后点亮目标 P2P**:传送发包后界面立即关闭;同维度时客户端立刻尝试点亮,跨维度时由 ClientTickTasks 等「落点 + 目标部件可查」,并由服务端在 2 秒 / 4 秒各补发一次 HighlightPacket 兜底;rotateHeadOnHighlight 开启时同时转头。
  • 高亮描边更醒目**:线宽从 2.0 提到 3.5;基色先向白色混合 35% 提亮,再按 0.5 秒周期在 50% / 100% 亮度之间脉冲。「高亮」按钮与传送共用同一个 P2PRenderer,两处同时生效。

### 改进

  • 频段显示适配 64 位**:树中无别名时只显示 … + 末 6 位(如 …A3F019),完整频段值在右侧检查器里看;频段一律以 16 位十六进制传递(如 A3F019B7C2D40815),搜索仍然匹配完整十六进制。
  • 通道分组**:通道键改为「频段 + P2P 类型」,同一频段下不同类型的隧道各自成组,不再互相覆盖;树与检查器按「频段 + 类型」查找频道,设备行的频道占用数字与频道别名都能取到。
  • 绑定结果分类**:绑定失败会按原因区分(无目标 / 频段非法 / 无网络),状态行直接给出具体原因,而不是笼统的一句失败。
  • 跟随选中不再强制居中**:配对源变化时用 revealP2P,只在目标不在可视区时滚动,不再把玩家从当前位置拽回去;显式跳转仍用 navigateToP2P。

### 修复

  • 配置模式界面崩溃(NumberFormatException)**:1.7.10 的频段是 64 位,服务端下发的是 16 位十六进制(如 000001A13FF44AA4)。树在排序频道时用 Integer.parseInt(frequency, 16) 解析,必然溢出并抛出异常,而这个排序发生在界面 tick 的 updateScreen → tryAutoNavigateToPendingBind → navigateToP2P → rebuildTree 调用链里,于是直接 Ticking screen 崩溃。现在统一改用 64 位无符号比较(ChannelInfo.compareFrequency),遇到脏数据退化为长度 + 字典序,不再有异常逃逸到渲染循环。
  • 配置模式界面崩溃(ClassCastException)**:渲染 P2P 树的类型行时,P2PTypeNames 用 ResourceLocation 去查 1.7.10 的物品注册表,而这张表的键是 String,RegistryNamespaced.getObject(Object) 会先做强转,于是抛 ResourceLocation cannot be cast to String,客户端在 Rendering screen 阶段崩溃。现在类型名只查本模组自己的语言键,不再碰注册表。
  • 类型名显示成类名**:P2PManager.getP2PType 只剥掉了 PartP2PTunnel 前缀,PartP2PRedstone / PartP2PItems 这类部件会把 PartP2PRedstone 原样画到树上。现在两个前缀都剥掉,配合 14 条 gui.advanced_memory_card.p2p_type.* 语言键(中英各一份),树上显示「红石 P2P 隧道」「物品 P2P 隧道」等名称;第三方模组的 P2P 部件查不到译名时退回原始 token。
  • ME 频道的占用数字不显示**:P2PChannelUsage.ME_TYPE 沿用基准的 me_p2p_tunnel,而 1.7.10 的类型 token 是 ME,两者永远不相等,导致 ME 频道的占用统计与检查器里的 ME 判定一直失效。现在统一为 ME,输出端设备行与频道行重新显示占用数字。
  • 批量搜索结果排序**:搜索模式下频道结果的频段排序有同样的 Integer.parseInt 溢出问题,一并改掉。
  • 配对条频段下拉顺序错乱**:下拉列表的排序把解析失败的值全部塞成 Integer.MAX_VALUE,所有 64 位频段排序值相同,顺序实际上是随机的;现在按真实数值从小到大。
  • 最高位为 1 的频段被当成「未绑定」**:服务端解析频段用的是有符号 Long.parseLong,F000000000000001 这类频段会解析失败并被当作 0,导致渲染、高亮与频段改名静默失效;现在改用 Long.parseUnsignedLong。
  • 树整块点不动**:基准里「鼠标命中控件 → 调 onClick」是 AE2 AbstractWidget#mouseClicked 干的活,旧版 Widget 基类的 mouseClicked 只返回 false,于是 P2PTreeWidget.onClick 从头到尾没有调用者 —— 点设备行不选中、点频段行不展开、Ctrl 多选与框选起手也都没了。现在树的 mouseClicked 自己派发:左键落在树矩形内就调 onClick 并返回 true。
  • 滚动条被树吃掉点击**:滚动条的矩形压在树右缘的 14px 留白上,而事件的派发顺序是「树 → 滚动条」,树开始消费点击之后滑块就再也
...
  • fix(config-ui): 类型名改查本模组语言键,修复配置界面渲染崩溃 (bbc26dc)

  • fix(config-ui): 频段比较改用 64 位无符号,修复配置界面崩溃 (c678908)
  • docs: 补记 1.12.2 已按本版回补并发布 (5e52a9f)

  • feat(config-ui): 配置模式界面按 1.21.1 基准重做 (80504df)
  • fix(config-ui): 用 I18n.format 回显判定译名是否存在 (00c8d7a)
  • feat(config-ui): 自绘脚手架(阶段 A) (83f1fc7)
  • feat(config-ui): 菜单接入状态码与四个新动作(阶段 B 下半) (3552cca)
  • feat(config-ui): 服务端语义对齐基准(移植阶段 B 上半) (43d423c)
  • fix(p2p): 修正模型层三处缺陷(移植阶段 0) (427464f)
  • docs: 新增配置模式 UI 移植文档(1.12.2) (b9c7a95)
  • fix(build): 国内镜像改为 -DcnMirror=true 显式开启,修 CI 上的 DNS 失败 (3c486d4)
  • fix(build): 移除写死在 gradle.properties 的本机 JDK 路径 (3f0516c)
  • release(1.12.2): 1.1.0-1.12.2 —— 点击音效、文档、CI/发布工作流 (9860029)
  • fix(copy-ui): 复选框贴图被乘暗 —— 画贴图前复位 GlStateManager 颜色 (7844773)
  • fix(copy-ui): 四个 22×12 复选框状态 + 点击立即刷新 (e2713ba)
  • fix(gui): 贴图 UV 按真实尺寸计算,复选框恢复显示 (d3a6ade)
  • feat(gui): 1.12.2 两个界面改用 1.21.1 的贴图与布局;复选框用 checkbox.png (a03f3f0)
  • fix(copy): 修复复制后不弹面板;界面改用 1.21.1 的贴图与布局 (11521b6)
  • docs(1.12.2): 版本升至 1.2.0-1.12.2,新增更新日志并修正 README (57dbd6c)
  • feat(p2p): 1.12.2 仲裁统一、拒绝绑定 0000、换型落地;掩码去掉升级项 (cf6a299)
  • feat(copy): 1.12.2 选择性粘贴:选项面板 + 按项落地 (cb1b4b3)
  • build(1.12.2): 钉死 ForgeGradle 3.0.197 并加固 FG3 构建环境 (bbd3c11)
  • Add Russian Translation for 1.12.2 version (#38) (5d5af5b)

  • fix(config-ui): 频道按「频段+类型」查找,频段列按降级规则缩短 (0db7316)
  • feat(config-ui): 配置模式界面按 1.21.1 基准重做 (2bd55ab)
  • fix(config-ui): 展开星号导入(本仓 checkstyle 禁用 AvoidStarImport 豁免) (691fb79)
  • feat(config-ui): 树换为四列实现(阶段 C) (a061228)
  • feat(config-ui): 自绘脚手架(阶段 A) (38b1d60)
  • feat(config-ui): 服务端语义与协议对齐基准(阶段 B) (8ca5770)
  • fix(p2p): 修正模型与鼠标释放语义(移植阶段 0) (8619b75)
  • docs: 新增配置模式 UI 移植文档(1.7.10) (f439de2)
  • ci(release): 不再 chmod gradlew,避免产物名带 -dirty (98ebde5)
  • 重构高级内存卡模组代码结构 (e21a7dd)

  • chore(release): 1.2.2-1.21.1 —— 批量状态码等级与菜单去重 (4599feb)
  • fix(config-ui): 补全批量状态码等级,删除重复注册的菜单类 (a8ccc54)
  • docs: 新增配置模式 UI 跨版本移植文档(基准 1.21.1) (7ac97ef)
  • feat(config-ui): 配置模式界面重做,发布 1.2.0-1.21.1 (#43) (dbe4357)

  • chore(release): 1.3.0-1.20.1 —— 配置模式界面与基准对齐 (bb67bc1)
  • feat(config-ui): 检查器与底部操作条重做(阶段 E) (cbfd1e4)
  • feat(config-ui): 顶部源→目标配对条与频段下拉(阶段 D) (966a292)
  • feat(config-ui): 树改为四列并支持多选与框选(阶段 C) (6287f74)
  • feat(config-ui): 换成 440×312 新版面板(阶段 B) (546e04d)
  • feat(config-ui): 对齐基准的服务端语义与协议(阶段 A) (07a8354)
  • docs: 新增配置模式 UI 移植文档(1.20.1) (839c0c7)

  • feat(p2p): 新增「设为输入端」切换通道输入侧,发布 1.2.1-1.21.1 (6fc032b)
  • feat(copy): 复制模式粘贴选项面板与 1.1.0-1.21.1 发布 (#40) (d1cbd05)

# Advanced Memory Card 1.1.0 (1.7.10 / GTNH)

支持 Minecraft 1.7.10 + Applied Energistics 2 (GTNH · rv3)。客户端与服务端都需要安装。

## 新功能

  • 粘贴选项面板**:复制模式下新增 7 项可勾选的粘贴内容(设置、优先级、配置物品、样板、P2P 类型、P2P 频率、名称),以及「复制后自动弹出」开关。按 G 打开。
  • 选择性粘贴**:只把勾选的项写进目标,未勾选的项保持目标原值。此前是整包覆盖。
  • 潜行右键复制**:对 AE 方块、AE 部件、P2P 隧道都可用;复制成功后按设置自动弹出选项面板。
  • P2P 高亮**:颜色改由客户端配置解析,服务端只下发「自身 / 输入端 / 输出端」语义,多人环境下不再使用服务端的颜色值。

## 修复

  • 修复右键被 AE2 原生内存卡逻辑接管:AE 方块上的点击不会进入本模组代码,表现为「就是原版内存卡」。现在在 PlayerInteractEvent 层接管,客户端与服务端各走自己的包。
  • 修复潜行右键会清空整张卡:AE2 的 ToolMemoryCard#onItemUse 在潜行时执行 setTagCompound(null),会把模式与粘贴选项一起抹掉,导致卡片悄悄退回默认模式。
  • 修复打开本模组 GUI 后右键方块导致服务端崩溃(Cannot read field "slotNumber" because "slot" is null):容器补上屏幕外的玩家背包槽位。
  • 修复频段改名不生效:改名确认走了错误分支,请求根本没发出;同时为查找失败补了回退路径,并在改名后标记宿主保存。
  • 修复 P2P 树按频段排序时的 NumberFormatException(频段是 64 位,不能用 Integer.parseInt)。
  • 修复工具提示里 \n 原样显示的问题。

## 交互约定

  • 右键**方块**:复制模式打点 / 配置模式打开面板
  • 右键**空气**:粘贴
  • V**:切换复制 / 配置模式
  • G**:打开粘贴选项

## 已知限制

  • 跨类型 P2P 换型在 AE2 rv3 上没有就地修改入口,需要拆件重建;不支持的组合会被跳过并在结果里提示跳过数量。

  • feat(config-ui): 配置模式界面重做,发布 1.2.0-1.21.1 (87854ea)
  • docs: 文档措辞去实现细节,补齐版本行与更新日志入口 (82a90bf)
  • docs: 新增跨版本移植基线(掩码语义 / P2P 仲裁 / 客户端边界) (a93cee5)
  • docs: 新增跨版本同步移植计划(以 1.21.1 为基准) (7c11be0)
  • docs: 新增 1.1.0-1.21.1 平台更新日志 (56dc931)

  • Minecraft** 1.12.2 · **Forge** 14.23.5.2860 或更高 · **AE2** AE2 Extended Life(570458:6302098)

把 1.20.1 / 1.21.1 线的两项核心能力回移到 1.12.2:**复制模式的选择性粘贴**与**完整的 P2P 频段仲裁**,并让两个界面改用与 1.21.1 相同的贴图与布局。

### 新增

  • 复制模式:粘贴选项面板(7 项开关)**:复制到卡片之后、批量粘贴之前,可以逐项决定这一次要应用哪些配置。

| 选项 | 作用 |
| --- | --- |
| 设置 | 输出面、模糊模式等通用配置(IConfigManager) |
| 优先级 | 存储总线 / 接口等的优先级 |
| 配置物品 | 过滤、标记等配置槽内容 |
| 样板 | 接口的样板槽 |
| P2P 类型 | P2P 隧道类型(换型时会拆掉重建,见下) |
| P2P 频率 | P2P 频段 |
| 名称 | 方块的自定义名 |

  • G 键**:手持卡片且处于复制模式时打开面板,键位可在「控制 → 按键绑定 → 高级内存卡」中修改。
  • 复制后自动弹出**:默认在每次复制(Shift + 右键把设置复制进卡片)后自动弹出;目标不是 AE 方块或线缆部件时不会弹。
  • 选项按卡保存**:勾选结果与「自动弹出」开关都存在卡片根标签的 copy_options 下,切换模式、重新复制、退出存档都不会丢。
  • P2P 换型**:卡片上的 P2P 类型与目标不同且勾选了「P2P 类型」时,按 AE2 自己的内存卡流程(removeTunnel → removePart → addPart)重建部件,并保留原来的输入/输出角色;频段按卡片决定。
  • 界面与 1.21.1 同版**:配置模式与粘贴选项两个界面都复用 1.21.1 的面板贴图与 assets/ae2/screens/*.json 里的坐标,不再手绘深色底。
  • 粘贴选项:copy_mode_menu.png 176×181,标题 (10,10),选项行 left 10 / width 150 / height 14 / 步进 19 / 首行 top 24;复选框用 checkbox.png 的四个 22×12 状态格(含悬停)。
  • P2P 配置:config_mode_menu.png 352×282,标题 (7,7)、底部提示 (7,269)、搜索框 (7,25,120,12)、树 (15,53,152,200)、滚动条 (169,53)、详情 (184,53,152,210)。
  • 控件点击音效**:复选框、P2P 树节点、详情面板按钮统一走同一个音效入口。

### 修复

  • 复制后不弹面板**:1.12.2 的复制发生在方块交互里(AEBaseTileBlock#onBlockActivated),方块交互吃掉右键后 Item#onItemUse 根本不会执行,原来挂在 onItemUse 里的 openGui 是死代码。现在由模组自己完成复制(方块 downloadSettings、部件 onActivate),成功后再按开关弹面板。
  • 复选框不显示、配置面板与控件错位**:1.12.2 的 Gui#drawTexturedModalRect 把 UV 写死成 1/256,只对 256×256 的贴图成立。64×64 的复选框因此采到透明区(整块看不见),512×512 的配置面板则 UV 越过 1.0 环绕(显示成另一块区域)。已改为按真实尺寸计算 UV。
  • 复选框整体发灰发暗**:贴图四边形不带顶点色,取的是固定管线的「当前颜色」;标题文字(0x404040)与悬停高亮(0x22000000)都会改掉它且不还原。现在画贴图前显式复位颜色。
  • 点击后界面要重开才刷新**:复制模式的容器是空容器(没有任何槽位),服务端改写卡片 NBT 后不会触发 SPacketSetSlot,客户端读到的永远是旧值。现在菜单持有权威选项并主动下发同步包。
  • P2P 改名不落盘**:setCustomName 只改部件持有的 ItemStack 显示名,不会自己写存档;现在显式 markForSave。
  • 把设备绑到「未连接(0000)」等于静默解绑**:0000 是未绑定分组,现在直接拒绝,不再把设备写进 freq=0 的公共通道。
  • 绑定第二个设备时不再产生两个输入端**:角色仲裁现在对所有 P2P 类型统一执行(旧实现跳过了 ME P2P),目标频段已有其他输入端时,当前设备作为输出端。
  • 分配新频道的中断风险**:旧实现先把频段写成 0 再分配,两次写入之间被打断(区块卸载、退出存档)会留下「已绑定设备变成未绑定」。现在一次性换到新频段。
  • 粘贴不再走 uploadSettings**:该方法把「缺少键」当成「清空目标」(优先级缺键即 0、配置槽缺键即清空),且 TileInterface#uploadSettings 会把接口样板退还成空白样板、只有背包里有空白样板时才恢复样板。选择性粘贴需要「没勾选的项保持原值」,因此改为按项直接写目标字段。

### 注意(行为变化)

  • 未配置过的卡片默认「全不选」**:粘贴不再改动任何可选项。第一次使用请按 G 勾选需要应用的内容;掩码为 0 时粘贴只给提示,不消耗选区。
  • 「升级」不在选项里**:AE2 1.12.2 的 downloadSettings 从不导出 upgrades(全仓没有对应的 writeToNBT),卡片里没有这段数据。与其放一个永远空转的开关,不如不提供。
  • 「名称」对方块有效,对部件无效**:部件侧的 downloadSettings 不写 display 段,卡片里没有这个数据;此时保持目标原名,不会清空。
  • P2P 换型会拆掉原部件**:这是 AE2 自己的内存卡行为(PartP2PTunnel#onPartActivate),升级卡不会跟着走。

### 文档

  • README 按 1.21.1 的结构重写,并修正了从 1.20.1 分支带过来的错误徽章与前置要求(此前写着 Minecraft 1.20.1 / Forge 47.4.10 / AE2 15.4.10)。
  • 新增本更新日志。


  • Minecraft** 1.12.2 · **Forge** 14.23.5.2860+ · **AE2** AE2 Extended Life (570458:6302098)

Backports the two core features of the 1.20.1 / 1.21.1 line to 1.12.2: **selective paste** in copy mode and **complete P2P
...
  • ci: 新增发布工作流(打标签即发布) (77bb9fa)
  • docs: 版本升至 1.2.0-1.20.1,文档与 1.21.1 对齐 (ed149e9)
  • fix(p2p): 绑定「未连接(0000)」时给出提示,不再静默无反应 (9ce233b)
  • ci: 新增构建校验工作流 (f596821)
  • fix(copy-ui): 自动弹出开关改在构造期加入左侧工具栏 (80f65cc)
  • feat(copy/p2p): 对齐 1.21.1 的选择性粘贴与 P2P 仲裁 (851503c)
  • fix(build): 修正 mixin refmap 名并移除不存在的 AT 引用 (bfb5a2f)
  • Create ru_ru.json (#37) (3a7f762)
  • fix(p2p): 修复输入端被误重置为输出端的问题 (2d2316f)
  • refactor(core): 重构客户端代码并移除构建工作流 (#18) (fd32508)
  • refactor(core): 重构客户端代码并移除构建工作流 (0047e6a)
  • docs(readme): 添加英文文档并更新多语言链接 (47f7172)
  • docs(readme): 更新 README.md 文档内容 (1d666d6)

## 1.1.0-1.21.1 — 2026-10-25

  • Minecraft** 1.21.1 · **NeoForge** 21.1.219 或更高 · **AE2** 1.21.1 版本线(开发基于 19.2.17)

### 新增

  • 复制模式:粘贴选项面板(8 项开关)**:复制到卡片之后、批量粘贴之前,可以逐项决定这一次要应用哪些配置。

| 选项 | 作用 |
| --- | --- |
| 升级 | 升级卡 |
| 设置 | 输出面、模糊模式等通用配置 |
| 优先级 | 存储总线 / 接口等的优先级 |
| 配置物品 | 过滤、标记等配置槽内容 |
| 样板 | 样板供应器的样板 |
| P2P 类型 | P2P 隧道类型 |
| P2P 频率 | P2P 频段 |
| 名称 | 设备/部件的自定义名称 |

  • G 键**:手持卡片且处于复制模式时打开该面板,键位可在「选项 → 控制 → 按键绑定 → 高级内存卡」中修改。
  • 复制后自动弹出**:默认在每次复制(Shift + 右键把设置复制进卡片)时自动弹出面板;目标不是 AE 方块或线缆部件时不会弹。
  • 齿轮开关**:面板左侧(挂在面板外)的按钮切换自动弹出 —— 齿轮 = 弹出,灰化齿轮 = 不弹,设置同样跟着卡片走。
  • 选项按卡保存**:勾选结果与齿轮开关都存在卡片上,切换模式、重新复制、退出存档都不会丢。
  • 新界面同样自带中文**:面板标题、8 个开关名称与齿轮按钮的悬停提示都有简体中文(语言支持本身在 1.0.2.1 就已加入,这里是补齐新内容)。

### 修复

  • P2P 重进存档后绑定丢失**:用配置界面打开 P2P 管理时,会把网络重建期间的误判当成真实状态写进存档,导致退出重进后 P2P 全部失去绑定或角色被改成输出端。现在运行时映射会先按部件自身持久化的频段重建,角色修正也只在外部网络就绪时进行。
  • P2P 通道一直显示"未连接"**:把第二个 ME P2P 绑到同一频段后,通道两端都是输入端、没有输出端,整条通道永久不通。现在所有 P2P 类型在绑定时会统一仲裁输入/输出角色;旧存档里已经写坏的"多输入、零输出"通道会自动自愈一次。
  • P2P 改名不生效**:重命名后名称没有落盘、界面也无提示。现在改名只改名称本身(不再顺带改动升级卡/优先级/频段),并会立即存盘与刷新;同时修掉了改名后左侧树里选中项被清空的问题。
  • 副手持卡时对 P2P 部件粘贴无效**:批量粘贴此前固定按主手处理,副手持卡时部件会被静默跳过。

### 注意(行为变化)

  • 未配置过的卡片默认"全部不选"**。粘贴时不会应用任何可选项,需要在面板里显式勾选;勾选一次后即按卡片记住。升级到本版本后第一次复制时请留意面板。
  • 取消勾选 = 保持目标原值**。"样板 / P2P 类型 / 名称"这三项在 AE2 里没有"保留"语义,本模组会在粘贴时把目标自身的当前值填回去,效果等同于不改动;其余各项则直接跳过。

### 文档

  • README 中英两版重写,按 1.21.1 / NeoForge 实际环境更新依赖、按键与配置说明。
  • 游戏内指南(AE2 Guide)补齐粘贴选项面板,并修正了选区颜色指示(起点方块红、终点方块黄、准星方块绿、待粘贴时整选区变绿、超上限转红)。


## 1.1.0 (English)

  • Minecraft** 1.21.1 · **NeoForge** 21.1.219+ · **AE2** 1.21.1 line (developed against 19.2.17)

### Added

  • Copy Mode: paste options panel (8 toggles)**: after copying a device into the card and before pasting in bulk, choose exactly what gets applied.

| Option | Applies |
| --- | --- |
| Upgrades | Upgrade cards |
| Settings | Generic settings such as output side and fuzzy mode |
| Priority | Storage bus / interface priority |
| Config inventory | Config slots (filters, marker items, …) |
| Patterns | Pattern provider patterns |
| P2P type | P2P tunnel type |
| P2P frequency | P2P frequency |
| Name | Custom name of the block/part |

  • G key** opens the panel while holding the card in Copy Mode (rebindable under Options → Controls → Key Binds → Advanced Memory Card).
  • Auto-open after copying**: by default the panel pops up every time you copy (Shift + Right-click to copy a device's settings into the card). It only opens when the target is an AE block or a cable part.
  • Cog toggle**: the button attached to the left of the panel switches the auto-open behavior — cog = open every time, greyed-out cog = never. Saved per card.
  • Options are stored per card**: the toggles and the auto-open switch persist across mode switches, re-copies, and world reloads.
  • The new UI is localized too**: the panel title, all 8 toggle labels and the cog button's tooltip have Simplified Chinese strings (Chinese support itself shipped in 1.0.2.1; this just covers the new content).

### Fixed

  • P2P bindings lost after r
...
## What's Changed

## New Contributors

Advanced Memory Card Icon
Download Advanced Memory Card
Select game version
Select platform