jeromehaynes Posted March 12, 2015 Share Posted March 12, 2015 TCAdmin kills the process instead of a graceful shutdown, due to this games like 7 days to die can not save their worlds properly, so the day count resets to 0. On the 7D2D webconsole issuing a shutdown command saves it gracefully. Is it possible to run a script or something to do this when the restart button is clicked? Kind Regards, Jerome Haynes Link to comment Share on other sites More sharing options...
xai Posted March 13, 2015 Share Posted March 13, 2015 Hi, I think there should be an Event option "Before stopped". Maybe you can create a script that is shutting down the server gracefully. Xai Link to comment Share on other sites More sharing options...
jeromehaynes Posted March 13, 2015 Author Share Posted March 13, 2015 Now that is exactly what I'd be after! And I wouldn't have any idea how to do it if I'm honest. Kind Regards, Jerome Haynes Link to comment Share on other sites More sharing options...
Dennis Posted March 13, 2015 Share Posted March 13, 2015 TCAdmin only kills the process if you're not using the command to stop it. 'Stop console commands' is what you're looking for. Link to comment Share on other sites More sharing options...
jeromehaynes Posted March 18, 2015 Author Share Posted March 18, 2015 TCAdmin only kills the process if you're not using the command to stop it. 'Stop console commands' is what you're looking for. Is this compatible with both windows and linux? Link to comment Share on other sites More sharing options...
Dennis Posted March 18, 2015 Share Posted March 18, 2015 Yes. Link to comment Share on other sites More sharing options...
jeromehaynes Posted March 22, 2015 Author Share Posted March 22, 2015 Yes. Where is this setting located? It appears to be fairly well hidden. Kind Regards, Jerome Haynes Link to comment Share on other sites More sharing options...
Dennis Posted March 23, 2015 Share Posted March 23, 2015 Select the game and go to 'Text Console'. Link to comment Share on other sites More sharing options...
jeromehaynes Posted March 23, 2015 Author Share Posted March 23, 2015 Ah I see what you mean, problem is 7DTD is on my Windows VM, and whilst I've enabled the text part, there's no way of verifying if it actually executes the command and works (seeing as 7DTD use telnet no real console option) and even enabling the web console to see if I can view an output to see if it does print the command doesn't work. Link to comment Share on other sites More sharing options...
Raizio Posted March 23, 2015 Share Posted March 23, 2015 well if it uses telnet, you -might- be able to create a batch script. Link to comment Share on other sites More sharing options...
jeromehaynes Posted March 24, 2015 Author Share Posted March 24, 2015 Something definetely to look into, if I or anyone else manages do this please share a fully working configuration, that way it's polished! Link to comment Share on other sites More sharing options...
LFA Posted March 24, 2015 Share Posted March 24, 2015 The stop console commands work on Windows and Linux but it only works for games that have a pure text console like minecraft. Window based consoles like the ones from Call of Duty games don't work. Fancy text consoles like Counter Strike Source don't work (shows the fps and map at the top). One thing you can try is enable interact with desktop in the game settings. Save and click on Update Existing Services. With interact with desktop enabled it will try to close the game server's main window instead of killing the process. You can confirm it's doing this by enabling debug mode in TCAdminMonitor.exe.config, restart service manager, then look in Logs/ServiceManager/console.log after stopping a game server. You should see something like this: ServiceId ### - Stopping the service by closing the main window... ServiceId ### - Stopped the service by closing the main window. It depends on the game if it actually shuts down gracefully when the main window is closed. Link to comment Share on other sites More sharing options...
tmyrdal Posted March 29, 2020 Share Posted March 29, 2020 I have noticed if lets say if you do some stuff inside the game, and when you stop the server, then Tcadmin do not stop the server on a humain way, if you let say if you write something on a sign inside the game the text is not saved before the server is shutdown on a proper way. As I can see in the logs on the server the server is saving some stuff if you shutdown the server on a humain way but if you click stop in the tcadmin controlpanel then the shutdown will happend witouth the game saving things, so I wondering is it a way to get tcadmin to shutdown the server in a humain and normal way ? as if I do a /shutdown inside the game in comman aera it works and the shutdown is normal. Is it any way we can make a command that tcadmin is using when we click stop in the controlpanel ? Link to comment Share on other sites More sharing options...
Dennis Posted March 30, 2020 Share Posted March 30, 2020 It could simply be because the 'Wait For Exit' (in Text Console tab) is set too low. Try setting it to 10 seconds. If TCAdmin cannot shut down the server before 10 seconds, it will kill the process. 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