Skip to content

Comments

Improve New Mod Name During Creation#160

Merged
JohnAFernandez merged 1 commit intoKnossosNET:mainfrom
JohnAFernandez:Fix-Mod-Creation-Naming-Issues
Mar 5, 2024
Merged

Improve New Mod Name During Creation#160
JohnAFernandez merged 1 commit intoKnossosNET:mainfrom
JohnAFernandez:Fix-Mod-Creation-Naming-Issues

Conversation

@JohnAFernandez
Copy link
Contributor

  1. Remove the regex replace for mod names, as there is no restriction in the mod dev details tab.

  2. Automatically replace spaces with underscores in the modID

  3. Keep track of whether the user has manually set the ModID, and stop automatically setting the ModID from the mod name, if so.

Tested.

Fixes #151
In draft until I hear back from ShivanSpS about whether having arbitrary characters in the mod name is supported by Nebula.

1) Remove the regex replace for mod names, as there is no restriction in the mod dev details tab.
2) Automatically replace spaces with underscores in the modID
3) Keep track of whether the user has manually set the ModID, and stop automatically setting the ModID from the mod name, if so.
@JohnAFernandez JohnAFernandez self-assigned this Feb 20, 2024
@JohnAFernandez JohnAFernandez added the fix Fix for a bug label Feb 20, 2024
@notimaginative
Copy link
Contributor

I don't believe there is any restriction on mod names, just the mod id. Aside from length, nebula itself doesn't limit content on either even though mod id requires a limited character set. Old-knossos does a regex check on the mod id but has no restriction on the name.

@JohnAFernandez
Copy link
Contributor Author

I'll mark it as ready for review, then. Looks like the regex replace on the mod name was a just a small mistake.

@JohnAFernandez JohnAFernandez marked this pull request as ready for review February 20, 2024 14:59
@JohnAFernandez JohnAFernandez added this to the 1.1.0 milestone Mar 3, 2024
@JohnAFernandez JohnAFernandez merged commit b7d35ca into KnossosNET:main Mar 5, 2024
@JohnAFernandez JohnAFernandez deleted the Fix-Mod-Creation-Naming-Issues branch March 5, 2024 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dev tab new mod name field behavior

3 participants