Skip to content

Fulgora roads and ruins: round every step to f32 (#521) - #528

Merged
wormeyman merged 2 commits into
mainfrom
f32-521-fulgora
Nov 25, 2026
Merged

wormeyman merged 2 commits into
mainfrom
f32-521-fulgora

Conversation

@wormeyman

@wormeyman wormeyman commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Stack 3 of 5 for #521. Base #527. Merge that first; this then retargets to main.

This rounds Fulgora's roads and ruins to f32 at every step, in the Lua's order. The other Fulgora modules already did.

Results (tier 1, of 101 positions)

field before after
fulgora_spots_banding 50 101
fulgora_spots_prebanding 98 101
fulgora_tile_ruin_paving 97 101
fulgora_tile_ruin_conduit 96 101
fulgora_tile_ruin_machinery 94 101
fulgoran_dust_probability 45 46

No count went down. Every other field in the test was already 101 and stays there.

Not #453

These fields feed the artificial-tile scores, so they could have touched Fulgora's 20-pixel terrain gap. They did not. No tier-3 render row moved, and the frozen terrain count is still 20.

Notes for review

  • ruins_walls is now rounded to f32. An old comment said not to, because the TypeScript did not. The game's value is f32. Tier 1 is 101 either way, so only tier 2 shows it.
  • f64::min and f64::max became min2 and max2, with the argument order unchanged.
  • One unit test now feeds f64::from(0.9f32), because the outputs are f32 now.

Checks

  • cargo test -p fmw-noise --lib: 538 passed. scripts/verify-rust.sh: passed.
  • engine.wasm rebuilt. Tier 2: 34 Fulgora rows re-recorded. No other planet moved.
  • Full pnpm vp test: green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 37 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dcb02b76-55c0-404a-895c-c205b7505bd5
Commits

Reviewing files that changed from the base of the PR and between 5373c8a and c53d81c.

Files ignored due to path filters: 1

  • src/noise/wasm/engine.wasm is excluded by !**/*.wasm
Files selected for processing: 4

  • crates/fmw-noise/src/expressions/fulgora_roads.rs
  • crates/fmw-noise/src/expressions/fulgora_ruins.rs
  • crates/fmw-noise/src/fixtures.rs
  • test/fixtures/tier2-checksums.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@claude

claude Bot commented Nov 25, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

@wormeyman
wormeyman force-pushed the f32-521-nauvis-resources branch from 44acd6b to 0202fc1 Compare November 25, 2026 15:15
Base automatically changed from f32-521-nauvis-resources to main November 25, 2026 15:23
wormeyman and others added 2 commits November 25, 2026 07:23
fulgora_roads: spots_prebanding, pyramids_banding, the paving chain and
road_dust now round each operation to f32 in the Lua's order. Comparison
literals (0.03, 0.05, 0.06, 0.1, 0.2, 0.6, 0.8, 1.3, 0.08) are narrowed
before the compare, 0.85 and 0.9 before the multiply, and the two lerps
use lerp_f32. min and max go through min2/max2.

fulgora_ruins: ruins_walls rounds its subtraction, and all four tile_ruin
expressions round each step left to right, with 0.2 and 0.3 narrowed.

Tier 1 (oracle-fulgora-ruins, 101 positions): spots_prebanding 98 -> 101,
spots_banding 50 -> 101, tile_ruin_paving 97 -> 101, tile_ruin_conduit
96 -> 101, tile_ruin_machinery 94 -> 101, fulgoran_dust_probability
45 -> 46. Nothing went down. The ruins unit test now feeds an f32 value
for road_paving_2c, since the outputs are f32 now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC
34 Fulgora rows moved, all road, ruin and land-tile fields this branch
rounds. No row moved on any other planet, and no key was added or removed.
No tier-3 render row moved either, so Fulgora's 20-pixel terrain gap (#453)
is not in these fields. The full vitest suite passes after the re-record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kd6o1cBoAGaJ1FoYPm6arC
@wormeyman
wormeyman merged commit 52f3a76 into main Nov 25, 2026
16 checks passed
@wormeyman
wormeyman deleted the f32-521-fulgora branch November 25, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant