Skip to content

Commit c1fd9d6

Browse files
committed
Update basePower 1.13.2 dependencies and release checks
1 parent 77aae3e commit c1fd9d6

28 files changed

Lines changed: 388 additions & 240 deletions

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2626
with:
2727
repository: MinecraftModDevelopmentMods/OreSpawn
28-
ref: 6a7c2bb07b9a7771128812fcc07d185f7d9df58b
28+
ref: 487805da1c3ad9f90fd4679eacc052bab2271b0b
2929
path: .ci-dependencies/OreSpawn
3030
- name: Use canonical LF dependency inputs
31-
# Base Metals predates archive text normalization; its LF artifact is separately pinned.
31+
# Keep dependency text files consistent between Linux and Windows.
3232
run: git config --global core.autocrlf false
3333
- name: Read Base Metals development pin
3434
id: basemetals-pin
@@ -74,7 +74,7 @@ jobs:
7474
(cd "$basemetals" && bash gradle/stage-orespawn-release.sh "$mirror" &&
7575
./gradlew jar "-PorespawnVerificationRepository=$mirror" --no-daemon --stacktrace)
7676
bm_version=$(sed -n 's/^basemetals_version=//p' gradle.properties)
77-
osjar="$orespawn/build/libs-dev/OreSpawn-4.1.0.113021-deobf.jar"
77+
osjar="$orespawn/build/libs-dev/OreSpawn-4.1.7.113021-deobf.jar"
7878
bmjar="$basemetals/build/libs-dev/BaseMetals-$bm_version-deobf.jar"
7979
test -f "$osjar" && test -f "$bmjar"
8080
echo "orespawn=$osjar" >> "$GITHUB_OUTPUT"
@@ -93,10 +93,10 @@ jobs:
9393
if-no-files-found: error
9494
retention-days: 30
9595
path: |
96-
build/libs/basePower-2.4.6.113021.jar
97-
build/libs/basePower-2.4.6.113021-sources.jar
98-
build/libs/basePower-2.4.6.113021-javadoc.jar
99-
build/libs-dev/basePower-2.4.6.113021-deobf.jar
96+
build/libs/basePower-2.4.7.113021.jar
97+
build/libs/basePower-2.4.7.113021-sources.jar
98+
build/libs/basePower-2.4.7.113021-javadoc.jar
99+
build/libs-dev/basePower-2.4.7.113021-deobf.jar
100100
build/release/SHA256SUMS
101101
CHANGELOG.txt
102102
- name: Upload diagnostics on failure

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
2626
with:
2727
repository: MinecraftModDevelopmentMods/OreSpawn
28-
ref: 6a7c2bb07b9a7771128812fcc07d185f7d9df58b
28+
ref: 487805da1c3ad9f90fd4679eacc052bab2271b0b
2929
path: .ci-dependencies/OreSpawn
3030
- name: Use canonical LF dependency inputs
31-
# Base Metals predates archive text normalization; its LF artifact is separately pinned.
31+
# Keep dependency text files consistent between Linux and Windows.
3232
run: git config --global core.autocrlf false
3333
- name: Read Base Metals development pin
3434
id: basemetals-pin
@@ -74,7 +74,7 @@ jobs:
7474
(cd "$basemetals" && bash gradle/stage-orespawn-release.sh "$mirror" &&
7575
./gradlew jar "-PorespawnVerificationRepository=$mirror" --no-daemon --stacktrace)
7676
bm_version=$(sed -n 's/^basemetals_version=//p' gradle.properties)
77-
echo "orespawn=$orespawn/build/libs-dev/OreSpawn-4.1.0.113021-deobf.jar" >> "$GITHUB_OUTPUT"
77+
echo "orespawn=$orespawn/build/libs-dev/OreSpawn-4.1.7.113021-deobf.jar" >> "$GITHUB_OUTPUT"
7878
echo "basemetals=$basemetals/build/libs-dev/BaseMetals-$bm_version-deobf.jar" >> "$GITHUB_OUTPUT"
7979
- name: Initialize CodeQL
8080
uses: github/codeql-action/init@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
!/gradle/wrapper/gradle-wrapper.jar
7373

7474
/secret.json
75+
/gradle/development-dependencies.properties
7576
# Nested local tooling and generated output
7677
AGENTS.md
7778
AGENT.md

‎CHANGELOG.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.4.7.113021 - basePower for Minecraft 1.13.2
2+
3+
- Use the released Base Metals 3.0.3 and OreSpawn 4.1.7 builds.
4+
- Check local development jars separately from the dependencies approved for publishing.
5+
16
2.4.6.113021 - basePower for Minecraft 1.13.2
27

38
- Fix an intermittent world load and save crash when basePower and Base Metals start together.

‎README.md‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

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

5-
- 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.
5+
- 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.
66
- 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.
77
- 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.
88

99
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.
1010

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

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

2123
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.
2224

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

2527
```text
2628
gradlew.bat clean check build javadoc verifyReleaseDependencies verifyReleaseArtifacts writeReleaseChecksums verifyEclipseProductionClasspath
2729
```
2830

2931
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.
3032

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

‎build.gradle‎

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ plugins {
1414
id 'net.minecraftforge.gradle' version '7.0.34'
1515
}
1616

17+
apply from: 'gradle/development-dependencies.gradle'
18+
1719
group = project.mod_group
1820
version = project.mod_version
1921
base.archivesName = 'basePower'
@@ -165,11 +167,13 @@ repositories {
165167
// The default paths mirror the local MMD checkout layout without tying the
166168
// build to a drive letter. CI and other layouts can override either path.
167169
def baseMetalsDeobfJar = file(providers.gradleProperty('baseMetalsDeobfJar')
168-
.getOrElse('../../../BaseMetals/BaseMetals 113/BaseMetals/build/libs-dev/'
169-
+ "BaseMetals-${project.basemetals_version}-deobf.jar"))
170+
.getOrElse(developmentDependencyFiles.getProperty('baseMetalsDeobfJar',
171+
'../../../BaseMetals/BaseMetals 113/BaseMetals/build/libs-dev/'
172+
+ "BaseMetals-${project.basemetals_version}-deobf.jar")))
170173
def oreSpawnDeobfJar = file(providers.gradleProperty('oreSpawnDeobfJar')
171-
.getOrElse('../../../MinecraftMineralogy/OS113/OreSpawn/build/libs-dev/'
172-
+ 'OreSpawn-4.1.0.113021-deobf.jar'))
174+
.getOrElse(developmentDependencyFiles.getProperty('oreSpawnDeobfJar',
175+
'../../../MinecraftMineralogy/OS113/OreSpawn/build/libs-dev/'
176+
+ "OreSpawn-${project.orespawn_version}-deobf.jar")))
173177

174178
dependencies {
175179
implementation minecraft.dependency(
@@ -314,7 +318,7 @@ tasks.register('verifyReleaseConfiguration') {
314318
group = 'verification'
315319
description = 'Validates release identity, target metadata, and optional integration policy.'
316320
doLast {
317-
if (project.mod_version != '2.4.6.113021') {
321+
if (project.mod_version != '2.4.7.113021') {
318322
throw new GradleException("Unexpected PowerAdvantage release version: ${project.mod_version}")
319323
}
320324
if (project.minecraft_version != '1.13.2'
@@ -340,16 +344,17 @@ tasks.register('verifyReleaseConfiguration') {
340344
|| project.cf_versions != '1.13.2') {
341345
throw new GradleException('Unexpected CurseForge dependency or game-version metadata')
342346
}
343-
if (project.basemetals_version != '3.0.2.113021'
344-
|| project.orespawn_version != '4.1.0.113021'
345-
|| !(project.basemetals_source_commit ==~ /[a-f0-9]{40}/)
346-
|| project.orespawn_source_commit != '6a7c2bb07b9a7771128812fcc07d185f7d9df58b') {
347+
if (project.basemetals_version != '3.0.3.113021'
348+
|| project.orespawn_version != '4.1.7.113021'
349+
|| (!(project.basemetals_source_commit ==~ /[a-f0-9]{40}/)
350+
&& !(localDependencyBuild && project.basemetals_source_commit == 'UNRELEASED'))
351+
|| project.orespawn_source_commit != '487805da1c3ad9f90fd4679eacc052bab2271b0b') {
347352
throw new GradleException('Unexpected Base Metals or OreSpawn dependency identity')
348353
}
349354
String mainSource = file(
350355
'src/main/java/zone/moddev/mc/basepower/PowerAdvantage.java').getText('UTF-8')
351356
if (!mainSource.contains('MODID = "basepower"')
352-
|| !mainSource.contains('VERSION = "2.4.6.113021"')
357+
|| !mainSource.contains('VERSION = "2.4.7.113021"')
353358
|| !mainSource.contains('@Mod(PowerAdvantage.MODID)')) {
354359
throw new GradleException('PowerAdvantage source identity changed')
355360
}
@@ -431,7 +436,8 @@ tasks.register('verifyReleaseDependencies') {
431436
.digest(dependencyJar.bytes).encodeHex().toString().toUpperCase()
432437
Set<String> acceptedHashes = [expectedHash] as Set<String>
433438
if (dependencyJar == baseMetalsDeobfJar) {
434-
acceptedHashes.add(project.basemetals_deobf_lf_sha256.toString())
439+
def lfHash = project.findProperty('basemetals_deobf_lf_sha256')
440+
if (lfHash != null) acceptedHashes.add(lfHash.toString())
435441
}
436442
if (!acceptedHashes.contains(actualHash)) {
437443
throw new GradleException("${dependencyJar.name} SHA-256 is ${actualHash}, expected ${acceptedHashes}")
@@ -1139,9 +1145,11 @@ tasks.register('clientResourceProbeJar', Jar) {
11391145
// these deobf jars are runtime inputs, never release contents or compile dependencies.
11401146
def advantageExtensionJars = [
11411147
basesteam: file(providers.gradleProperty('steamAdvantageDeobfJar').getOrElse(
1142-
'../SteamAdvantage/SteamAdvantage/build/libs-dev/baseSteam-2.2.7.113021-deobf.jar')),
1148+
developmentDependencyFiles.getProperty('steamAdvantageDeobfJar',
1149+
'../SteamAdvantage/SteamAdvantage/build/libs-dev/baseSteam-2.2.8.113021-deobf.jar'))),
11431150
baseelectric: file(providers.gradleProperty('electricAdvantageDeobfJar').getOrElse(
1144-
'../ElectricAdvantage/ElectricAdvantage/build/libs-dev/baseElectric-2.2.7.113021-deobf.jar'))
1151+
developmentDependencyFiles.getProperty('electricAdvantageDeobfJar',
1152+
'../ElectricAdvantage/ElectricAdvantage/build/libs-dev/baseElectric-2.2.8.113021-deobf.jar')))
11451153
]
11461154

11471155
tasks.register('prepareCombinedEclipseLaunch') {
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# 1.13.2 Dependency Update Checks
2+
3+
## Candidate
4+
5+
This check is for basePower `2.4.7.113021`, baseSteam `2.2.8.113021` and
6+
baseElectric `2.2.8.113021`. It does not replace the records for earlier jars.
7+
Power needs a new patch number because `2.4.6.113021` is already public.
8+
9+
The required release inputs are public Base Metals `3.0.3.113021` and OreSpawn
10+
`4.1.7.113021`. Optional Mineralogy checks use public `6.0.2.113021`.
11+
The downloaded Base Metals and OreSpawn jars match the checked inputs.
12+
No Base Metals source changes are included in this update.
13+
14+
| Release jar | SHA-256 |
15+
| --- | --- |
16+
| `basePower-2.4.7.113021.jar` | `E7140E83D55D9FF71F63CD24FCBC09A6F95D24F800C93E83BD6CD60F6A63C74C` |
17+
| `baseSteam-2.2.8.113021.jar` | `2A7C74108B5C2E426C00E27748DA1DC07F52156BA667984244641AC73E524C7F` |
18+
| `baseElectric-2.2.8.113021.jar` | `96227C99DB329721E43067D4A0D7F8F51738747F600A087917E68E2584A80567` |
19+
20+
## Automated Checks
21+
22+
The local automated qualification completed on 15 November 2026. No new gameplay
23+
repairs were needed for these candidate jars.
24+
25+
| Check | Result |
26+
| --- | --- |
27+
| All three builds, unit tests, Javadocs, dependencies, archive and Eclipse audits | PASS |
28+
| Independent rebuild with build caching disabled | PASS: all twelve release, deobf, sources and Javadoc hashes match |
29+
| Actual Eclipse JDT compilation and combined native client | PASS: 94 items, 905 block states, 87 creative entries |
30+
| All 39 machine GUI layouts and captions | PASS: 351 caption cases; 355 deliberately broken controls rejected |
31+
| Measured machine operation and exact saved-state cold restart | PASS: 132 jobs and 132 restart comparisons |
32+
| Original Cyano 1.10, released base* 1.10 and released base* 1.12 upgrades | PASS: saved-state conversion, continued operation and full restart |
33+
| Both Base Metals/Power transformer orders, with player/entity fixtures | PASS |
34+
| Complete Works, with and without Base Metals | PASS: server assertions before and after restart; manual procedures remain separate |
35+
| Survival harvest tools, drops and block properties | PASS before and after restart |
36+
| Recipes, ingredient unlocks and manufacturing progression | PASS in all three recipe modes, with and without rubber availability |
37+
| Water and oil bucket/drain/pipe/tank lanes | PASS: exact identity and volume through two full restarts |
38+
| First-tick redstone interlocks | PASS: nine naturally earned mid-work seeds and sixteen real reload ticks |
39+
| Whole-chunk unload/reload and six-facing moving drills | PASS in fresh and migrated-copy worlds |
40+
| Extended drills, separate endpoint unloads and reload orders | PASS in fresh and migrated-copy worlds, including blocked output, cold restart and redstone recovery |
41+
| Pipe-only network interruption | PASS: three genuine bridge unload/reload cycles with resumed processing |
42+
| Thirty-minute repeat-batch endurance | PASS in both fresh and migrated-copy worlds, followed by cold restart and resumed processing |
43+
| Independent endurance endpoint replay | PASS: 66 raw checkpoints; four missing-evidence controls rejected |
44+
| OreSpawn providers, biome samples and persisted user choices | PASS: Advantage, Mineralogy and legacy-import profiles, each across restart |
45+
| Mineralogy oil processing and Forge Energy converter profiles | PASS across restart |
46+
47+
The mod suites passed 246 tests, and the harness passed 72 tests.
48+
The Python suite ran 391 tests with one documented transport-protocol skip.
49+
That skip is not counted as a pass. Forge 1.13 uses the explicitly flushed
50+
checkpoint protocol exercised by the native runs.
51+
52+
The harness isolation check now reads Power's version from `gradle.properties`
53+
instead of keeping its own jar version. Old profile assertions and dependency
54+
paths were refreshed without changing the machine or GUI expectations.
55+
56+
## Scope And Release Order
57+
58+
The endurance runs rebuild the declared Works stations in fresh and migrated-copy
59+
worlds. They prove repeated bounded work and restart recovery, not thirty minutes
60+
of every original machine in a player's workshop. Separate upgrade runs compare
61+
saved legacy state and operate imported equipment without rebuilding it.
62+
The lifecycle runner's inherited `original110-chained113` label uses the retained
63+
released-base* 1.12-to-1.13 source copy in this campaign.
64+
65+
The legacy-import fixture deliberately keeps its old unrestricted oil-vein
66+
settings. Desert-only generation applies to fresh Power defaults, not to an
67+
existing explicit configuration. The imported fluid vein can keep flowing;
68+
its oil count is the declared exception to exact restart terrain counts.
69+
70+
Manual movement, combat, general visual acceptance and arbitrary modpack worlds
71+
are not covered merely because a server assertion passes. The native GUI checks
72+
render real windows but do not replace every in-world interaction. This pass did
73+
not rerun the entire Sylvester modpack or a new cold-cache/Linux build.
74+
75+
All source fixtures and earlier failed attempts are retained. Raw reports, jar
76+
copies and logs are held locally under
77+
`_verification/advantage113-public-qualification-20261115` outside the projects;
78+
generated worlds and test output must not be committed.
79+
80+
Nothing is committed, pushed or published by this qualification pass. Release
81+
Power first, record its real released source commit and CurseForge file ID in
82+
Steam and Electric, then recheck their release guards and archive hashes. Their
83+
`UNRELEASED` pins deliberately block publication until that step is complete.

‎gradle.properties‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ curseforge_project_id=1780140
2626
mod_id=basepower
2727
mod_name=basePower
2828
mod_license=LGPL-3.0-only
29-
mod_version=2.4.6.113021
29+
mod_version=2.4.7.113021
3030
mod_group=zone.moddev.mc.basepower
3131
mod_authors=DrCyano (aka Cyanobacterium)
3232
mod_description=API and shared machines for pressure, electricity, quantum power, fluids, and item transport.
@@ -35,15 +35,13 @@ cf_requirements=base-metals,mmd-orespawn
3535
cf_optionals=additional-loot-tables
3636
cf_versions=1.13.2
3737

38-
basemetals_version=3.0.2.113021
39-
basemetals_source_commit=37717d0b9be31e8d73cfedf5d6a3c184af3ea579
38+
basemetals_version=3.0.3.113021
39+
basemetals_source_commit=4891e836b00356e13f0bbef631650f5539188e80
4040
basemetals_curse_project_id=240967
41-
basemetals_deobf_sha256=5A9A9E6B339B294CCFCD0DF3E8A51BA4CEF623EA084D9A5486C418A3B5995AFB
42-
# Same pinned source and class bytes, with a clean LF checkout on Linux.
43-
basemetals_deobf_lf_sha256=77CA0123FFB345F103AE64CC52FB4DA157D6867A44BABEA761EE188896D2AD83
41+
basemetals_deobf_sha256=D69AAD7B52FEB558404FF460FBB76FF4B46733692E4B113A69957274FB99CF01
4442

45-
orespawn_version=4.1.0.113021
46-
orespawn_source_commit=6a7c2bb07b9a7771128812fcc07d185f7d9df58b
43+
orespawn_version=4.1.7.113021
44+
orespawn_source_commit=487805da1c3ad9f90fd4679eacc052bab2271b0b
4745
orespawn_curse_project_id=245586
48-
orespawn_curse_file_id=9035885
49-
orespawn_deobf_sha256=F5A015584000CCEF0E94D8BB567E7B75603B37F10A88BFC5A129176D487BB038
46+
orespawn_curse_file_id=9611746
47+
orespawn_deobf_sha256=30943F730BA492C0A2FB1861A465F624286EA1724C9FE362FC8C587BBAD5629F

0 commit comments

Comments
 (0)