Skip to content

Settings.txt generating script#7

Open
RkShaRkz wants to merge 7 commits into
tg-2:masterfrom
RkShaRkz:settings-generator-script
Open

Settings.txt generating script#7
RkShaRkz wants to merge 7 commits into
tg-2:masterfrom
RkShaRkz:settings-generator-script

Conversation

@RkShaRkz
Copy link
Copy Markdown
Contributor

Based on darkstorm's one from Discord, but with a bit more customizability, less code repetition, and much better error-handling.

Also, in BASH format. So should work fine on Macs and linux machines. If only we could somehow make a batch file to execute this, without WSL and other required things...

Based on darkstorm's one from Discord, but with a bit more customizability,
less code repetition, and much better error-handling.

Also, in BASH format. So should work fine on Macs and linux machines.
If only we could somehow make a batch file to execute this, without WSL and other
required things...
Copy link
Copy Markdown
Contributor Author

@RkShaRkz RkShaRkz left a comment

Choose a reason for hiding this comment

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

Please address comments. seems fine but not quite there yet.

on the other hand, here's a sample generated file:
settings.txt

used the following input: 5, 28, 8, 4, n, 2, s, y, y, s, s, s, 1, 4, 3, n

Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Copy link
Copy Markdown
Contributor Author

@RkShaRkz RkShaRkz left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread GenerateSacrificeSettings.sh Outdated
Using --no-particles unless specifically answered with Y or y.
Parametrized two more aspects of the settings.txt:
1) the wizards, as an enumerated list, with names taken from https://github.com/tg-2/sacengine/blob/2883cb6f3b0115ad93f14095c1d06821d77a4ccb/source/nttData.d#L857
2) the screen resolution in the WidthxHeight format that allows 3 or 4 digits for resolutions. Also has warning that it's an advanced functionality.

- bugfixed the resolution check since regexes don't work in bash like they do everywhere else
- made skipping possible by just pressing enter (empty input)
- changed tabs back to normal spaces
Copy link
Copy Markdown
Contributor Author

@RkShaRkz RkShaRkz left a comment

Choose a reason for hiding this comment

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

Address these comments please

Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
Comment thread GenerateSacrificeSettings.sh Outdated
@RkShaRkz
Copy link
Copy Markdown
Contributor Author

LGTM

@tg-2 tg-2 force-pushed the master branch 3 times, most recently from b990e5b to 84b7fb5 Compare May 3, 2024 20:20
@tg-2 tg-2 force-pushed the master branch 2 times, most recently from 4a59672 to da21be2 Compare June 15, 2025 21:18
@tg-2 tg-2 force-pushed the master branch 2 times, most recently from 0a7591a to c1f8763 Compare December 28, 2025 02:17
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