Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: MinecraftModDevelopmentMods/OreSpawn
ref: 6a7c2bb07b9a7771128812fcc07d185f7d9df58b
ref: 487805da1c3ad9f90fd4679eacc052bab2271b0b
path: .ci-dependencies/OreSpawn
- name: Use canonical LF dependency inputs
# Base Metals predates archive text normalization; its LF artifact is separately pinned.
# Keep dependency text files consistent between Linux and Windows.
run: git config --global core.autocrlf false
- name: Read Base Metals development pin
id: basemetals-pin
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
(cd "$basemetals" && bash gradle/stage-orespawn-release.sh "$mirror" &&
./gradlew jar "-PorespawnVerificationRepository=$mirror" --no-daemon --stacktrace)
bm_version=$(sed -n 's/^basemetals_version=//p' gradle.properties)
osjar="$orespawn/build/libs-dev/OreSpawn-4.1.0.113021-deobf.jar"
osjar="$orespawn/build/libs-dev/OreSpawn-4.1.7.113021-deobf.jar"
bmjar="$basemetals/build/libs-dev/BaseMetals-$bm_version-deobf.jar"
test -f "$osjar" && test -f "$bmjar"
echo "orespawn=$osjar" >> "$GITHUB_OUTPUT"
Expand All @@ -93,10 +93,10 @@ jobs:
if-no-files-found: error
retention-days: 30
path: |
build/libs/basePower-2.4.6.113021.jar
build/libs/basePower-2.4.6.113021-sources.jar
build/libs/basePower-2.4.6.113021-javadoc.jar
build/libs-dev/basePower-2.4.6.113021-deobf.jar
build/libs/basePower-2.4.7.113021.jar
build/libs/basePower-2.4.7.113021-sources.jar
build/libs/basePower-2.4.7.113021-javadoc.jar
build/libs-dev/basePower-2.4.7.113021-deobf.jar
build/release/SHA256SUMS
CHANGELOG.txt
- name: Upload diagnostics on failure
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: MinecraftModDevelopmentMods/OreSpawn
ref: 6a7c2bb07b9a7771128812fcc07d185f7d9df58b
ref: 487805da1c3ad9f90fd4679eacc052bab2271b0b
path: .ci-dependencies/OreSpawn
- name: Use canonical LF dependency inputs
# Base Metals predates archive text normalization; its LF artifact is separately pinned.
# Keep dependency text files consistent between Linux and Windows.
run: git config --global core.autocrlf false
- name: Read Base Metals development pin
id: basemetals-pin
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
(cd "$basemetals" && bash gradle/stage-orespawn-release.sh "$mirror" &&
./gradlew jar "-PorespawnVerificationRepository=$mirror" --no-daemon --stacktrace)
bm_version=$(sed -n 's/^basemetals_version=//p' gradle.properties)
echo "orespawn=$orespawn/build/libs-dev/OreSpawn-4.1.0.113021-deobf.jar" >> "$GITHUB_OUTPUT"
echo "orespawn=$orespawn/build/libs-dev/OreSpawn-4.1.7.113021-deobf.jar" >> "$GITHUB_OUTPUT"
echo "basemetals=$basemetals/build/libs-dev/BaseMetals-$bm_version-deobf.jar" >> "$GITHUB_OUTPUT"
- name: Initialize CodeQL
uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
!/gradle/wrapper/gradle-wrapper.jar

/secret.json
/gradle/development-dependencies.properties
# Nested local tooling and generated output
AGENTS.md
AGENT.md
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.4.7.113021 - basePower for Minecraft 1.13.2

- Use the released Base Metals 3.0.3 and OreSpawn 4.1.7 builds.
- Check local development jars separately from the dependencies approved for publishing.

2.4.6.113021 - basePower for Minecraft 1.13.2

- Fix an intermittent world load and save crash when basePower and Base Metals start together.
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

basePower continues DrCyano's Power Advantage with conveyors, filters, fluid plumbing and the shared systems used by baseSteam and baseElectric.

- Use Forge 25.0.223, Java 8, Base Metals 3.0.2.113021 and MMD OreSpawn 4.1.0.113021. The older Base Metals 3.0.1 download can crash while converting an old world.
- Use Forge 25.0.223, Java 8, Base Metals 3.0.3.113021 and MMD OreSpawn 4.1.7.113021. The older Base Metals 3.0.1 download can crash while converting an old world.
- Use basePower 2.4.6.113021 or newer on 1.13.2. The first 1.13.2 build could hit an intermittent Forge load and save crash when starting alongside Base Metals.
- Back up the world and config. Replace the old Advantage or base* jars together, then open a copy of your world first. Save it, close Minecraft completely, and reopen the copy before upgrading your main world.

The upgrade understands original Advantage 1.10.2 and the released base* builds for 1.10.2 and 1.12.2. Check that the other mods in your world also support 1.13.2.

All three mods share the **basePower** creative tab. Look for the sprocket.
The [current dependency qualification](docs/1.13/DEPENDENCY-QUALIFICATION-20261115.md)
records the new candidate jars, checks and release-order requirements.
The [base* upgrade notes](docs/1.13/BASE-IDENTITY-MIGRATION.md) separate tested scenarios from remaining gaps;
they are not a guarantee that an entire modpack can be upgraded without losses.

Expand All @@ -20,18 +22,23 @@ The [manufacturing progression audit](docs/1.13/MANUFACTURING-PROGRESSION.md) tr

The `master-1.13.2` build uses ForgeGradle 7.0.34 and Gradle 9.6.1. Run Gradle with Java 17; Gradle resolves the Java 8 production toolchain.

Build the pinned Base Metals `3.0.2.113021` and OreSpawn `4.1.0.113021` deobf jars in their sibling checkouts, then run:
Build the pinned Base Metals `3.0.3.113021` and OreSpawn `4.1.7.113021` deobf jars in their sibling checkouts, then run:

```text
gradlew.bat clean check build javadoc verifyReleaseDependencies verifyReleaseArtifacts writeReleaseChecksums verifyEclipseProductionClasspath
```

The default dependency paths follow the local MMD checkout layout. Other layouts can pass `-PbaseMetalsDeobfJar=<path>` and `-PoreSpawnDeobfJar=<path>`. Dependencies are present on development classpaths but are never embedded in PowerAdvantage artifacts.

The pinned Base Metals development jar predates archive line-ending normalization.
Both the original Windows-input jar and a clean LF-checkout build have exact
checksums in `gradle.properties`. Their class bytes and archive entries match;
only text line endings differ. CI uses the LF build. Unknown hashes still fail.
Both dependency pins refer to public releases, including the Base Metals startup
and save-hook repairs. For future unpublished candidates, create the ignored file
`gradle/development-dependencies.properties` with
`allowUnreleasedDependencies=true`. The exact jar checksums still apply.
The file can also set `baseMetalsDeobfJar` and `oreSpawnDeobfJar` to checked
copies under `libs/development`, so sibling rebuilds cannot change the test inputs.
Publication is blocked in this mode. Before CI or release, replace `UNRELEASED`
with the dependency's released source commit and checked artifact hashes.
OreSpawn is the public [4.1.7 release](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9611746).
Advantage's own archives normalize text to LF.
All Advantage archives also exclude empty directories left behind by older source layouts.

Expand Down
34 changes: 21 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ plugins {
id 'net.minecraftforge.gradle' version '7.0.34'
}

apply from: 'gradle/development-dependencies.gradle'

group = project.mod_group
version = project.mod_version
base.archivesName = 'basePower'
Expand Down Expand Up @@ -165,11 +167,13 @@ repositories {
// The default paths mirror the local MMD checkout layout without tying the
// build to a drive letter. CI and other layouts can override either path.
def baseMetalsDeobfJar = file(providers.gradleProperty('baseMetalsDeobfJar')
.getOrElse('../../../BaseMetals/BaseMetals 113/BaseMetals/build/libs-dev/'
+ "BaseMetals-${project.basemetals_version}-deobf.jar"))
.getOrElse(developmentDependencyFiles.getProperty('baseMetalsDeobfJar',
'../../../BaseMetals/BaseMetals 113/BaseMetals/build/libs-dev/'
+ "BaseMetals-${project.basemetals_version}-deobf.jar")))
def oreSpawnDeobfJar = file(providers.gradleProperty('oreSpawnDeobfJar')
.getOrElse('../../../MinecraftMineralogy/OS113/OreSpawn/build/libs-dev/'
+ 'OreSpawn-4.1.0.113021-deobf.jar'))
.getOrElse(developmentDependencyFiles.getProperty('oreSpawnDeobfJar',
'../../../MinecraftMineralogy/OS113/OreSpawn/build/libs-dev/'
+ "OreSpawn-${project.orespawn_version}-deobf.jar")))

dependencies {
implementation minecraft.dependency(
Expand Down Expand Up @@ -314,7 +318,7 @@ tasks.register('verifyReleaseConfiguration') {
group = 'verification'
description = 'Validates release identity, target metadata, and optional integration policy.'
doLast {
if (project.mod_version != '2.4.6.113021') {
if (project.mod_version != '2.4.7.113021') {
throw new GradleException("Unexpected PowerAdvantage release version: ${project.mod_version}")
}
if (project.minecraft_version != '1.13.2'
Expand All @@ -340,16 +344,17 @@ tasks.register('verifyReleaseConfiguration') {
|| project.cf_versions != '1.13.2') {
throw new GradleException('Unexpected CurseForge dependency or game-version metadata')
}
if (project.basemetals_version != '3.0.2.113021'
|| project.orespawn_version != '4.1.0.113021'
|| !(project.basemetals_source_commit ==~ /[a-f0-9]{40}/)
|| project.orespawn_source_commit != '6a7c2bb07b9a7771128812fcc07d185f7d9df58b') {
if (project.basemetals_version != '3.0.3.113021'
|| project.orespawn_version != '4.1.7.113021'
|| (!(project.basemetals_source_commit ==~ /[a-f0-9]{40}/)
&& !(localDependencyBuild && project.basemetals_source_commit == 'UNRELEASED'))
|| project.orespawn_source_commit != '487805da1c3ad9f90fd4679eacc052bab2271b0b') {
throw new GradleException('Unexpected Base Metals or OreSpawn dependency identity')
}
String mainSource = file(
'src/main/java/zone/moddev/mc/basepower/PowerAdvantage.java').getText('UTF-8')
if (!mainSource.contains('MODID = "basepower"')
|| !mainSource.contains('VERSION = "2.4.6.113021"')
|| !mainSource.contains('VERSION = "2.4.7.113021"')
|| !mainSource.contains('@Mod(PowerAdvantage.MODID)')) {
throw new GradleException('PowerAdvantage source identity changed')
}
Expand Down Expand Up @@ -431,7 +436,8 @@ tasks.register('verifyReleaseDependencies') {
.digest(dependencyJar.bytes).encodeHex().toString().toUpperCase()
Set<String> acceptedHashes = [expectedHash] as Set<String>
if (dependencyJar == baseMetalsDeobfJar) {
acceptedHashes.add(project.basemetals_deobf_lf_sha256.toString())
def lfHash = project.findProperty('basemetals_deobf_lf_sha256')
if (lfHash != null) acceptedHashes.add(lfHash.toString())
}
if (!acceptedHashes.contains(actualHash)) {
throw new GradleException("${dependencyJar.name} SHA-256 is ${actualHash}, expected ${acceptedHashes}")
Expand Down Expand Up @@ -1139,9 +1145,11 @@ tasks.register('clientResourceProbeJar', Jar) {
// these deobf jars are runtime inputs, never release contents or compile dependencies.
def advantageExtensionJars = [
basesteam: file(providers.gradleProperty('steamAdvantageDeobfJar').getOrElse(
'../SteamAdvantage/SteamAdvantage/build/libs-dev/baseSteam-2.2.7.113021-deobf.jar')),
developmentDependencyFiles.getProperty('steamAdvantageDeobfJar',
'../SteamAdvantage/SteamAdvantage/build/libs-dev/baseSteam-2.2.8.113021-deobf.jar'))),
baseelectric: file(providers.gradleProperty('electricAdvantageDeobfJar').getOrElse(
'../ElectricAdvantage/ElectricAdvantage/build/libs-dev/baseElectric-2.2.7.113021-deobf.jar'))
developmentDependencyFiles.getProperty('electricAdvantageDeobfJar',
'../ElectricAdvantage/ElectricAdvantage/build/libs-dev/baseElectric-2.2.8.113021-deobf.jar')))
]

tasks.register('prepareCombinedEclipseLaunch') {
Expand Down
83 changes: 83 additions & 0 deletions docs/1.13/DEPENDENCY-QUALIFICATION-20261115.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# 1.13.2 Dependency Update Checks

## Candidate

This check is for basePower `2.4.7.113021`, baseSteam `2.2.8.113021` and
baseElectric `2.2.8.113021`. It does not replace the records for earlier jars.
Power needs a new patch number because `2.4.6.113021` is already public.

The required release inputs are public Base Metals `3.0.3.113021` and OreSpawn
`4.1.7.113021`. Optional Mineralogy checks use public `6.0.2.113021`.
The downloaded Base Metals and OreSpawn jars match the checked inputs.
No Base Metals source changes are included in this update.

| Release jar | SHA-256 |
| --- | --- |
| `basePower-2.4.7.113021.jar` | `E7140E83D55D9FF71F63CD24FCBC09A6F95D24F800C93E83BD6CD60F6A63C74C` |
| `baseSteam-2.2.8.113021.jar` | `2A7C74108B5C2E426C00E27748DA1DC07F52156BA667984244641AC73E524C7F` |
| `baseElectric-2.2.8.113021.jar` | `96227C99DB329721E43067D4A0D7F8F51738747F600A087917E68E2584A80567` |

## Automated Checks

The local automated qualification completed on 15 November 2026. No new gameplay
repairs were needed for these candidate jars.

| Check | Result |
| --- | --- |
| All three builds, unit tests, Javadocs, dependencies, archive and Eclipse audits | PASS |
| Independent rebuild with build caching disabled | PASS: all twelve release, deobf, sources and Javadoc hashes match |
| Actual Eclipse JDT compilation and combined native client | PASS: 94 items, 905 block states, 87 creative entries |
| All 39 machine GUI layouts and captions | PASS: 351 caption cases; 355 deliberately broken controls rejected |
| Measured machine operation and exact saved-state cold restart | PASS: 132 jobs and 132 restart comparisons |
| Original Cyano 1.10, released base* 1.10 and released base* 1.12 upgrades | PASS: saved-state conversion, continued operation and full restart |
| Both Base Metals/Power transformer orders, with player/entity fixtures | PASS |
| Complete Works, with and without Base Metals | PASS: server assertions before and after restart; manual procedures remain separate |
| Survival harvest tools, drops and block properties | PASS before and after restart |
| Recipes, ingredient unlocks and manufacturing progression | PASS in all three recipe modes, with and without rubber availability |
| Water and oil bucket/drain/pipe/tank lanes | PASS: exact identity and volume through two full restarts |
| First-tick redstone interlocks | PASS: nine naturally earned mid-work seeds and sixteen real reload ticks |
| Whole-chunk unload/reload and six-facing moving drills | PASS in fresh and migrated-copy worlds |
| Extended drills, separate endpoint unloads and reload orders | PASS in fresh and migrated-copy worlds, including blocked output, cold restart and redstone recovery |
| Pipe-only network interruption | PASS: three genuine bridge unload/reload cycles with resumed processing |
| Thirty-minute repeat-batch endurance | PASS in both fresh and migrated-copy worlds, followed by cold restart and resumed processing |
| Independent endurance endpoint replay | PASS: 66 raw checkpoints; four missing-evidence controls rejected |
| OreSpawn providers, biome samples and persisted user choices | PASS: Advantage, Mineralogy and legacy-import profiles, each across restart |
| Mineralogy oil processing and Forge Energy converter profiles | PASS across restart |

The mod suites passed 246 tests, and the harness passed 72 tests.
The Python suite ran 391 tests with one documented transport-protocol skip.
That skip is not counted as a pass. Forge 1.13 uses the explicitly flushed
checkpoint protocol exercised by the native runs.

The harness isolation check now reads Power's version from `gradle.properties`
instead of keeping its own jar version. Old profile assertions and dependency
paths were refreshed without changing the machine or GUI expectations.

## Scope And Release Order

The endurance runs rebuild the declared Works stations in fresh and migrated-copy
worlds. They prove repeated bounded work and restart recovery, not thirty minutes
of every original machine in a player's workshop. Separate upgrade runs compare
saved legacy state and operate imported equipment without rebuilding it.
The lifecycle runner's inherited `original110-chained113` label uses the retained
released-base* 1.12-to-1.13 source copy in this campaign.

The legacy-import fixture deliberately keeps its old unrestricted oil-vein
settings. Desert-only generation applies to fresh Power defaults, not to an
existing explicit configuration. The imported fluid vein can keep flowing;
its oil count is the declared exception to exact restart terrain counts.

Manual movement, combat, general visual acceptance and arbitrary modpack worlds
are not covered merely because a server assertion passes. The native GUI checks
render real windows but do not replace every in-world interaction. This pass did
not rerun the entire Sylvester modpack or a new cold-cache/Linux build.

All source fixtures and earlier failed attempts are retained. Raw reports, jar
copies and logs are held locally under
`_verification/advantage113-public-qualification-20261115` outside the projects;
generated worlds and test output must not be committed.

Nothing is committed, pushed or published by this qualification pass. Release
Power first, record its real released source commit and CurseForge file ID in
Steam and Electric, then recheck their release guards and archive hashes. Their
`UNRELEASED` pins deliberately block publication until that step is complete.
18 changes: 8 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curseforge_project_id=1780140
mod_id=basepower
mod_name=basePower
mod_license=LGPL-3.0-only
mod_version=2.4.6.113021
mod_version=2.4.7.113021
mod_group=zone.moddev.mc.basepower
mod_authors=DrCyano (aka Cyanobacterium)
mod_description=API and shared machines for pressure, electricity, quantum power, fluids, and item transport.
Expand All @@ -35,15 +35,13 @@ cf_requirements=base-metals,mmd-orespawn
cf_optionals=additional-loot-tables
cf_versions=1.13.2

basemetals_version=3.0.2.113021
basemetals_source_commit=37717d0b9be31e8d73cfedf5d6a3c184af3ea579
basemetals_version=3.0.3.113021
basemetals_source_commit=4891e836b00356e13f0bbef631650f5539188e80
basemetals_curse_project_id=240967
basemetals_deobf_sha256=5A9A9E6B339B294CCFCD0DF3E8A51BA4CEF623EA084D9A5486C418A3B5995AFB
# Same pinned source and class bytes, with a clean LF checkout on Linux.
basemetals_deobf_lf_sha256=77CA0123FFB345F103AE64CC52FB4DA157D6867A44BABEA761EE188896D2AD83
basemetals_deobf_sha256=D69AAD7B52FEB558404FF460FBB76FF4B46733692E4B113A69957274FB99CF01

orespawn_version=4.1.0.113021
orespawn_source_commit=6a7c2bb07b9a7771128812fcc07d185f7d9df58b
orespawn_version=4.1.7.113021
orespawn_source_commit=487805da1c3ad9f90fd4679eacc052bab2271b0b
orespawn_curse_project_id=245586
orespawn_curse_file_id=9035885
orespawn_deobf_sha256=F5A015584000CCEF0E94D8BB567E7B75603B37F10A88BFC5A129176D487BB038
orespawn_curse_file_id=9611746
orespawn_deobf_sha256=30943F730BA492C0A2FB1861A465F624286EA1724C9FE362FC8C587BBAD5629F
Loading
Loading