DeltaBoss Posted November 11, 2023 Share Posted November 11, 2023 Does anybody know how to properly write a .bat file to run the startup .bat file for each map only after the previous one has started? Everything I've tried starts them all at the same time or within seconds of the previous one. Just trying to find a way to run 1 file and then each map runs once the previous has fully started. Link to comment Share on other sites More sharing options...
ServerWolf Posted November 11, 2023 Share Posted November 11, 2023 Putting it all in one bat file and have the script watch the each server and restart them if they crash sounds quite complicated. It's probably doable though. I'd just use a batch for each server to be honest. Alternatively you can then make a batch next to all your server start batches that launches them all in sequence. Here's my start up batch for ASA: Link to comment Share on other sites More sharing options...
DeltaBoss Posted November 11, 2023 Author Share Posted November 11, 2023 The main reason I was hoping to try that is because some maps take a hit minute to start up so it would be nice to just do one and they all go. If not it takes 45 minutes sometimes. Some maps fire up in 2-3 but there's a couple that take 10-15 I've noticed. Still new to hosting my own so learning Link to comment Share on other sites More sharing options...
Larkfields Posted November 12, 2023 Share Posted November 12, 2023 On 11/11/2023 at 3:22 AM, DeltaBoss said: Does anybody know how to properly write a .bat file to run the startup .bat file for each map only after the previous one has started? Everything I've tried starts them all at the same time or within seconds of the previous one. Just trying to find a way to run 1 file and then each map runs once the previous has fully started. How about sending an RCON command "admincheat listplayers". If the server responds, then you can probably start up the next map. You might need to include a timeout, just in case a map has a problem that prevents it from starting up. Link to comment Share on other sites More sharing options...
DeltaBoss Posted November 12, 2023 Author Share Posted November 12, 2023 How do RCOM commands work? New to hosting so still learning. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now