Skip to content

Implements the second version of the rail generator.#98

Open
Jasupa wants to merge 2 commits into
mainfrom
railgen-v2
Open

Implements the second version of the rail generator.#98
Jasupa wants to merge 2 commits into
mainfrom
railgen-v2

Conversation

@Jasupa

@Jasupa Jasupa commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Rail Generator v2 with configurable rail types, persistent custom rail presets, sleeper placement, and support for parallel tracks. This also improves the rail type menu so builders can select, create, edit, delete, reload, and browse rail types in-game.

What Changed

  • Added persistent rail type configuration via rail-types.yml.
  • Added configurable rail blocks, blocks below rails, sleeper blocks, sleeper spacing, track count, and track spacing.
  • Added parallel track generation based on the selected rail type.
  • Added sleeper placement along generated tracks.
  • Added in-game rail type creation, editing, deletion, and reload support.
  • Improved the rail type selection menu with pagination, clearer controls, and feedback messages.
  • Polished the rail type editor layout and menu interactions.
  • Cleaned up rail static analysis issues around validation, progress state, clamping, and sound handling.

Testing

  • Ran ./gradlew.bat --no-daemon compileJava.
  • Manually checked the rail type menu flow during implementation:
    • selecting rail types.
    • editing custom rail types.
    • creating custom rail types.
    • deleting custom rail types.
    • page navigation controls.
    • editor controls for track count, track spacing, sleeper spacing, and block choices.

Full milanote explanation

-> https://app.milanote.com/1WBCJO1ohuya7q/v20

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

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