Audit and improve Tekkit Lite Reimagined #28
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?
Audit and improve Tekkit Lite Reimagined while preserving the shipped gameplay, IDs, recipes, worlds, Java 8 compatibility and strict IC2 verification. Review the supplied upstream projects and implement compatible improvements with recorded provenance.
References:
Baseline:
02f4220eon master. Source integration and the client/server/turtle save-reload pass are recorded in #18. Frozen legacy inputs and vendored originals stay unchanged. Keep task issues and checkboxes current. Source presence, compilation and clean logs are separate evidence from gameplay behavior.Task records: #3 RCON, #29 design, #30 assets/voldeloom, #31 Upsilon audit, #32 loader, #33 viewer/providers, #34 namespaces, #35 invocation audit.
Completed in local commit
af6aa993on master. The worktree is clean.Verified results:
The retained-world root cause, dead update/skin endpoints, broader machine-recipe coverage and physical audio playback remain documented limits or backlog items. No claim of full mod equivalence or complete gameplay coverage is made. See docs/maintenance-audit.md, mods/retroemi/README.md and the linked task issues for evidence and commands.
Research task: #29. It will pin upstream evidence and propose a compatible retroEMI integration while preserving the original NEI profile.
Upsilon platform audit and fixes: #31. Final integration checks remain with the coordinator.
Client resource preparation and the updated voldeloom review are tracked in #30.
Handoff from #30: import dev.tekkitlite.gradle.prepareClientResources; register prepareClientResources("prepareClientResources", runRoot.resolve("client")) and make runClient depend on it. For client pack assembly, register it with the actual game directory and depend on the returned task. The legacy importer must preserve platform/vanilla/src/main/java/net/minecraft/util/ThreadDownloadResources.java via its skip list or an equivalent patch strategy. The helper and game source compile; client playback and pack assembly need coordinator verification. The helper preserves existing resource files and requires a complete cache for --offline.
Research complete in #29 and docs/retroemi-integration.md. Recommended handoff: define a shared read-only recipe-provider contract, keep the original NEI profile, and investigate a client-only source port with one overlay owner. Upstream Upsilon at the pinned revision uses NEI; no retroEMI entry was found. Coexistence and coverage remain unverified. Upstream retroEMI also contains intentional SHA-1 work in its bill-of-materials screen; omit that behavior in an adaptation. No tests or runtime were run.
Integration handoff from #31: legacy import overwrites platform/forge/src/main/java/net/minecraftforge/common/DimensionManager.java. Add net/minecraftforge/common/DimensionManager.java to LegacyImportTool CURATED_JAVA_OVERLAYS to preserve the two diagnostic fixes. Platform compileJava succeeded (UP-TO-DATE); coordinator owns runtime and strict IC2 checks.
RCON repair is tracked in #3. Confirmed socket cleanup inside the request loop and single-read TCP framing defects. Implemented one connection-scoped buffered reader and cleanup scope, framed reads, UTF-8 byte lengths/splits, and thread-start/finished-state publication. Platform compile passed. Client resources are now wired into runClient and Prism preparation; all new platform fixes are protected from legacy re-import. Runtime checks remain pending.
Implementation is tracked in #32. The module needs early discovery of mixins.retroemi.json and Mixin application after NEI replaces GuiContainer. The opt-in profile must set tekkitlite.recipeViewer=retroemi and retain real NEI APIs and registration.
Status of #32: pinned upstream source and MIT notice are vendored and 495 files match Git objects. The viewer port is not implemented or built; do not enable the retroEMI profile as a usable viewer. UnknownThingy mapping requires class/member/descriptor adaptation and shim relocation, followed by lifecycle, GUI hooks, providers and Java 8 verification. No runtime behavior has been verified.
Viewer and installed-mod provider implementation is tracked in #33. It depends on the shared named API and source preprocessing, the client lifecycle and read-only capability hooks, and runtime namespace remapping. I will report concrete compile and API gaps as they arise.
Namespace remapping implementation is tracked in #34. It owns the bytecode tool and the new UnknownThingy mapping directory.
retroEMI implementation is tracked in #32. Dependencies: named API and runtime assembler from the namespace task; Gradle, FML Mixin ordering, NEI arbitration, and runtime access rules from the coordinator. First profile is client-only and cannot use server packet actions.
Issue #33: compile is currently blocked before javac because :tools:bytecode:prepareRetroEmiReferences requires missing vendor/mappings/unknownthingy-1.23. Please provide the named API and mapping inputs. The frontend must disable packet-backed fill, cheat and chess actions; the lifecycle/loader worker owns the shared capability boundary and EmiClient fill hook.
RCON fix #3 is verified and closed. A separate rebuilt Java 8 server loaded 75 FML containers. Authentication, persistent commands, fragmented/coalesced frames, malformed requests, UTF-8 packet splitting, disconnect/reconnect and save/stop passed. The real client received 4,096-byte + 13-byte valid UTF-8 response payloads without loss. No test code or player-world changes. Log: /tmp/tekkitlite-maintenance-rcon-server.log.
The named API now reaches javac. :mods:retroemi:compileJava reports 232 errors; shared inputs need work before a usable viewer is possible. The generated API exposes private members used by upstream (including GuiContainer hovered slot, SlotCrafting craftMatrix, crafting/ore recipe internals, ItemBlock.blockID and IC2/RedPower registries), while LWJGL GLFW shim key constants and legacy NilLoader sources also fail. The frontend additionally expects newer Gson APIs than the platform provides. Please coordinate runtime-safe accessors or equivalent transformations and an isolated compatible Gson; compile-only visibility changes alone would fail at runtime. Full output: /tmp/retroemi-viewer-compile.log.
Compilation handoff: :mods:retroemi:compileJava currently reports access errors for named game members and Forge ore-recipe fields. Please make the named API access match runtime access rules, including TileEntityBrewingStand.getPotionResult, ShapedOreRecipe width/height/input, ShapelessOreRecipe input, WidgetButton width/height, Translate.lang, plus the frontend members in /tmp/retroemi-compile-implementation.log. Gson in the compile classpath is too old for upstream source; the runtime also needs the relocated modern Gson. The source-owned mixins use literal MCP targets and need the bridge to apply them after the NEI replacement.
Namespace tool and mapping are in #34. :tools:bytecode:prepareRetroEmiReferences passes and produces named-api.jar. Assembly needs the coordinator’s completed named jar and bundled libraries for artifact inspection. The published UnknownThingy 1.23 checksum matches; its POM and upstream repository state no license, so redistribution terms remain unresolved. The task stays open.
Added overload-binding audit task #35. The Gradle report compares actual invocation descriptors in matching original/rebuilt methods and reports missing-method coverage. It is a review aid, not an equivalence gate; the first full-pack audit is running.
Assembly attempt currently stops at retroEMI compileJava (65 errors). Examples are private platform/mod members, missing Block Helper/Waila APIs, LWJGL constants and newer Gson APIs resolving to platform Gson. Full local log: /tmp/tekkit-retroemi-assembly.log. Named API output includes real platform and mod classes without blanket access widening; source and dependency owners must resolve these before assembly inspection.
Integration note for active workers: the namespace prepare task and the root overload audit ran concurrently and both regenerated mod-references, causing a transient missing-file failure. Root will now own shared reference regeneration. For your module compile, use -x :tools:bytecode:prepareModReferences -x :tools:bytecode:preparePlatformApi -x :tools:bytecode:prepareRetroEmiReferences once the existing named-api.jar is present. Report header changes needed here; do not regenerate shared headers concurrently. Namespace implementation #34 is ready for integration review.
Issue #33 has disabled cheat mode and chess in the client configuration, disabled the recipe-transfer entry points, and removed BuildCraft diamond-pipe packet actions. The loader must also reject packet-backed calls at its boundary. IC2 scrapbox now reads the real public getDropList API; RedPower alloy enumeration uses the actual registry via reflection because its field is package-private.
Root review found and fixed a shared Gson namespace problem in #34: the named header included Lumy’s embedded Gson 2.2.2, while assembly relocated Gson references without bundling Gson. The tool now excludes embedded Gson classes from headers and keeps runtime Gson references on the platform dependency (2.10.1). Root will regenerate only the named headers now; mod-reference preparation remains skipped to avoid shared-output races.
The frontend now uses the platform Gson API instead of requiring a second Gson for its current compile errors. The latest compile had 36 errors before this change; remaining frontend blockers are game/Forge private access and the loader-owned shim errors.
Latest :mods:retroemi:compileJava has 12 errors, all frontend access to private members: SlotCrafting.craftMatrix, InventoryCrafting.inventoryWidth, ShapedOreRecipe width/height, and GuiContainer hovered slot. The loader worker can provide runtime-remapped accessor mixins for these; compile-only header widening is not sufficient. Public ore input and slot-index APIs now replace private-field access where available. Log: /tmp/retroemi-viewer-compile.log.
Loader handoff: RetroEmiCorePlugin returns RetroEmiModContainer; its client post-init registers the tick and connection callbacks. Mixin config is mixins.retroemi.json. GUI mixins target MCP GuiContainer, GuiScreen, Minecraft and FontRenderer after the NEI transformer. They also target SlotCrafting, TileEntityBrewingStand and ShapedOreRecipe. Resource lookup uses the jar code source. No NilLoader dependencies remain in maintained Java sources. Font rendering and GUI hooks need runtime verification. The current compile has 19 errors in frontend-owned access sites; see /tmp/retroemi-compile-implementation3.log. The ore recipe and brewing accesses in my paths now use Mixins and public getters.
I connected EmiShapedRecipe to the new ShapedOreRecipeAccessor. Please expose equivalent public interfaces for the slot crafting matrix, crafting inventory width, and hovered slot; I will use them in frontend sources.
Latest compile: /tmp/retroemi-compile-implementation4.log has 10 errors, all in frontend-owned files: SlotCrafting.craftMatrix, InventoryCrafting.inventoryWidth, and GuiContainer.theSlot. My changed source files emitted no compile errors. Runtime validation of Mixin injection points, resource enumeration, and client connection lifecycle remains open.
Root fixed Prism metadata invalidation: JVM arguments and selected modules are now declared task inputs. Switching recipeViewer must update instance.cfg so NEI suppression matches the selected client jar. The instance name now uses Tekkit Lite Reimagined. No gameplay settings changed.
Integration update: retroEMI now compiles and assembles. Added three runtime Mixin accessors for crafting inventory, grid width, and hovered slot. The assembled viewer has only Java 8 or older classes, relocated private shims/fastutil, preserved MIT notice, added fastutil Apache notice, and no deliberate hash workload. Strict IC2 comparison still reports 3,627 matching entries and zero differences; source-layout verification and legacy import also pass. The first real client launch exposed Mixin 0.8.5 using newer Guava APIs than the pack’s 12.0.1. Root is preparing a private Guava 21 copy for Mixin, preserving the game/mod Guava dependency. Runtime checks remain open.
Real client checks now show the retroEMI inventory overlay and working diamond search on the dedicated server. Fixed inherited field mapping at its source: UnknownThingy repeats inherited members, so MCP mapping composition must index the original Minecraft hierarchy before composing names. Also fixed GUI close notification incorrectly reopening its parent during disconnect, wired EMI logs into FML, and handled Thermal Expansion’s intentionally absent schematic item during name lookup. The runtime checks found two existing client defects: a missing servers.dat caused an NPE, and resource-root metadata was passed to the sound loader. Both are repaired and preserved by legacy import. Root is adding immutable classpath snapshots to prevent rebuilds from invalidating another running development JVM.
The optional viewer passed real UI checks: diamond search, diamond pickaxe crafting, IC2 iron-dust macerating recipes, return to inventory, forced disconnect while a recipe screen was open, and reconnect/reload of all 9,140 recipes. Both Java 8 processes then saved/exited normally after five minutes on fixed classpaths. Disconnect also exposed an original Dimensional Doors bug: its remote-client cache cleanup calls the server-only save method. Removed that call; the server’s normal save path remains intact. The next baseline session will verify that repair. Optional pack assembly is running offline now.
Read-only final review of root maintenance changes: no confirmed material defects found. Reviewed client resource preparation and loading, runtime classpath snapshots, RCON framing and lifecycle, server list and dimension changes, Mixin runtime and bootstrap, legacy import preservation, and pack profile metadata against baseline
02f4220eand relevant callers. Did not inspect the upstream viewer port, run Gradle, or start a game or server. Existing acceptance checks are owned by the coordinator.Confirmed retroEMI reconnect race:
RetroEmiClient.java:34-39callsreload()on login andclear()on disconnect. If the player reconnects while the disconnect clear worker is still alive,EmiReloadManager.java:74-84only setsrestart = trueand leavesclear = true. The worker then setsrestart = falseat line 119, clears the registries, consumesclearat lines 128-130, and exits at line 215. The login reload is lost: status stays 1 and the recipe/index data stays empty until another reload. Preserve the latest requested operation when clear and reload overlap, and synchronize the worker handoff. This is a source-level interleaving; I did not run the game or tests.Final review follow-up: replaced retroEMI clear/restart flags with a latest-request queue. The same monitor owns request consumption, worker creation and worker termination, so reconnect cannot lose the login reload or race worker shutdown. Revision checks prevent stale work from publishing loaded status. Baseline checks also found a snapshot compatibility bug: NEI’s TMI scan identifies minecraft.jar by filename. Snapshots now retain each original filename inside a content-hash directory. Live diagnostics proved NEI_OVERLAY=true but its tick handler was absent because this old scan failed before registration. Dimensional Doors disconnect cleanup is now clean on the default profile.