Recover Additional Pipes, Logistics Pipes, ComputerCraft and OpenCCSensors #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #5
Package paths: vendor/upstream-mods/{buildcraft-additionalpipes,buildcraft-logisticspipes,computercraft,openccsensors}/. Each has provenance.json and the official package. OpenCCSensors and Logistics Pipes include historical source as unverified reference only; all four need binary recovery. ComputerCraft package-resources preserves Lua, ROM and bundled license files.
Additional Pipes names BuildCraft 3.4.2, the pack specifies 3.4.3, and the maintained module is 3.4.6. Logistics Pipes and OpenCCSensors also have integrations requiring review. OpenCCSensors depends on ComputerCraft. No compile, bytecode agreement or runtime checks were performed.
Source recovery and selected-source validation pass. Evidence: vendor/pack-manifests/tekkit-lite/source-inventory.json and verification.json; docs/mod-source-recovery.md. Newly recovered mod compilation, bytecode agreement, and runtime integration are tracked in #18. Existing IC2 strict comparison still has 3627 matching entries and zero differences. No tests were written.
Additional source history: f483f3b86c3869237958d43ce3f87f62448d1255 changes the Java version annotation from 0.1.4 to 0.1.4b during the Minecraft 1.5 upgrade, after the shipped archive timestamp. It does not establish an exact 1.4.7 binary match; provenance records this evidence.
Integration under #18:
LuaClosure has a Vineflower finally/semaphore reconstruction notice. Preserve it and check its behavior at runtime.
Additional Pipes and OpenCCSensors compile and jar assembly passed:
./gradlew :mods:buildcraft-additionalpipes:jarand./gradlew :mods:openccsensors:jarwith the documented JDK paths. OpenCCSensors uses compile-only Forestry and Thaumcraft declarations based on shipped bytecode descriptors; these are excluded from its jar. Runtime checks remain open.Progress: Additional Pipes and OpenCCSensors jars built. Logistics Pipes has 367 compiler errors after restoring comparator, router, adjacent tile and collection types. Remaining work includes Forestry, Thaumcraft and GregTech optional APIs and recovered collection types. ComputerCraft has unresolved historical JNA/JNAerator Lua and Pluto bindings and BCEL, plus recovered-source errors; its Lua and ROM resources remain in src/main/resources and LuaClosure remains unchanged.
The current shared reference preparation task fails (reported in #18). I continued one Logistics Pipes compile with
-x :tools:bytecode:prepareModReferences, using the 50 already generated reference jars; that compile did not pass. Both remaining modules and final runtime checks stay open.ComputerCraft jar now assembles: JAVA_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA21_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA8_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-8.0.504+1 ./gradlew :mods:computercraft:jar. LuaJ 2.0.2/2.0.3 Maven Central source was restored only for classes whose shipped binary matches the corresponding release class files; LuaClosure was retained for behavior review. Compile-only JNA 3.4.0 (resolved 4.1.0 through JNAerator), JNAerator runtime 0.12, and BCEL 5.2 are Maven Central dependencies; exact original external versions are not established. Optional Lua/Pluto binding signatures come from shipped ComputerCraft bytecode and are excluded from the jar. Lua/ROM resources remain present. Optional native/JIT backends require their real runtime dependencies if enabled; LuaJ, peripheral, client/server, and save-reload behavior still need review. Logistics Pipes remains in progress; no tests or game launch were run.
Logistics Pipes and ComputerCraft now both assemble with the shared platform API: JAVA_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA21_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA8_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-8.0.504+1 ./gradlew :mods:computercraft:jar :mods:buildcraft-logisticspipes:jar. Forestry, GregTech and Thaumcraft compile-only declarations are derived from shipped Logistics bytecode and excluded from its jar; real mods must provide those APIs if enabled. The HUD interface now uses isInvalid, matching the reference callback mapping. The ComputerCraft jar contains all 159 original non-class resources, and neither jar contains its optional API declarations. Compilation and assembly do not establish gameplay, Lua behavior, optional integrations, or bytecode parity. Final client/server and save-reload checks remain pending; no tests or game launch were run.
Implementation checklist:
rexlManu referenced this issue2026-11-04 15:29:03 +01:00
LuaClosure cleanup review:
The retained CFR output could not decompile execute. The maintained Vineflower output placed the instruction loop outside try/finally, so ordinary opcode continues called CallStack.onReturn and closed open upvalues on every instruction. The shipped remapped jar (SHA-256 1514cd19fa2583f52a7acd9f9bc81f7b66db9a451af9958a1ef143b12ea0bf7d) shows ordinary opcode branches returning to bytecode offset 96 without cleanup. Its nine return/tail-call paths perform onReturn then close remaining upvalues in descending order; its exception handler does the same, preserving LuaError and wrapping other Exceptions. Opcode CLOSE independently closes selected upvalues during execution.
Moved try/catch/finally around the existing loop and returned directly from the existing return/tail-call cases. Kept opcode bodies, debug hooks, varargs, exception behavior, and explicit CLOSE handling. javap of the rebuilt class shows the same nine return cleanup paths and exception cleanup boundary; this is a control-flow comparison, not a claim of full bytecode parity.
JAVA_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA21_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-21.0.12+101.0.LTS JAVA8_HOME=/home/rexlmanu/.local/share/mise/installs/java/temurin-8.0.504+1 ./gradlew :mods:computercraft:jar passed. No tests, game launch, pack preparation, or runtime jar copy were performed. Runtime acceptance remains open.
Emmanuel tested the repaired ComputerCraft on the dedicated server: placed a mining turtle, opened Lua, and successfully ran turtle.dig() to break the block in front. Dedicated login and a Lua-driven server world action pass. The turtle was removed after the check, so persisted turtle/item state after restart remains pending.
Final ComputerCraft persistence check passed on the dedicated server. After save-all and a clean stop/restart, Emmanuel reconnected and confirmed the placed mining turtle and both inventory items remain. The turtle storage ID, mining upgrade, facing, fuel and inventory NBT also match the pre-restart snapshot. Main full-pack integration issue #18 is closed.