Skip to content

Added a check to prevent a world name with spaces - #88

Merged
JacksonTheMaster merged 4 commits into
nightlyfrom
fix-world-name-spaces
Sep 19, 2025
Merged

Added a check to prevent a world name with spaces#88
JacksonTheMaster merged 4 commits into
nightlyfrom
fix-world-name-spaces

Conversation

@akirilov

Copy link
Copy Markdown
Contributor

Changes

Bugfixes

  • Attempting to create a world with spaces in the name will block the wizard and show an error

Copilot AI review requested due to automatic review settings September 19, 2025 03:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds validation to prevent world names with spaces during the world creation wizard process and updates the version number to 5.6.6.

  • Added space validation check for world names in the onboarding form
  • Updated application version from 5.6.5 to 5.6.6
  • Displays error notification when spaces are detected in world names

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/config/config.go Version bump to 5.6.6
UIMod/onboard_bundled/twoboxform/twoboxform.js Added space validation for world names with error handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread UIMod/onboard_bundled/twoboxform/twoboxform.js Outdated
akirilov and others added 2 commits September 19, 2025 05:51
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
mitoskalandiel
mitoskalandiel previously approved these changes Sep 19, 2025

@mitoskalandiel mitoskalandiel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah makes sense, since all worldtypes are strings with no spaces..

@JacksonTheMaster

Copy link
Copy Markdown
Member

Yeah makes sense, since all worldtypes are strings with no spaces..

Pretty much, this fixes the world name because the arg parsing breaks when we use -file start My Save Mars2 because the dedi then tries to use "Save" as the worldID and Mars2 as the difficulty :D

@JacksonTheMaster
JacksonTheMaster merged commit ab99e81 into nightly Sep 19, 2025
1 check passed
@JacksonTheMaster
JacksonTheMaster deleted the fix-world-name-spaces branch September 19, 2025 16:03
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.

4 participants