pdc4444 / ark_server_cron

PHP / Linux based cli automation of Ark: Survival Evolved server hosting
0 stars 0 forks source link

Code can't continue when a shard is corrupted #13

Open pdc4444 opened 2 years ago

pdc4444 commented 2 years ago

Right now the ark_server_cron is written in such a way that all shards are examined and summarized through ShardService and HelperService. If a saved folder for a shard is missing, the code blows up and we cannot continue without removing the shard.

We should instead generate feedback to the user via the console, let them know that shard_$number has been skipped and is considered corrupted. Ask them if they want to remove it or cancel to investigate. Give the user feedback as to what folders / path to look at.