Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify the CONTENTS of input files on startup (and handle bad files) #11

Open
RVRX opened this issue Jun 20, 2021 · 1 comment
Open
Labels
feature request New feature or request

Comments

@RVRX
Copy link
Owner

RVRX commented Jun 20, 2021

To prevent any incorrect tampering by the user that might lead to the application crashing.
On that note, throwing exceptions when the file has bad data is important as well to stop crashes even if files are bad.

@RVRX RVRX added the feature request New feature or request label Jun 20, 2021
@RVRX RVRX changed the title Verify the CONTENTS of input files on startup (and handle bad files)? Verify the CONTENTS of input files on startup (and handle bad files) Jun 20, 2021
@RVRX
Copy link
Owner Author

RVRX commented Jun 20, 2021

This would involve:

teams.txt

  • check for illegal chars
  • make sure each line follows the "Name|ABBR" format
  • Issue a warning if a team is missing an image
  • No images with no team in the txt (warning)

maps.txt

  • make sure each map in txt has an image

TimerLength.txt

  • has a positive value
  • nothing else

output/Timer.txt

  • might need to make sure this exists, unsure how the program will behave if it doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant