AMP
AMP copied to clipboard
Allow option to select sub-process for generic module
Feature Request
Feature Information:
It would be helpful to be able to specify a way to choose a sub-process when running a server in the generic module. Some games start a CMD/Terminal window then spawn a second "main" window. This would allow AMP to monitor the correct resource usage and provide console output. This could also benefit games that run under Proton, possibly.
I confirm:
- [x] that I have searched for an existing feature request matching the description.
This would be very useful, in a number of ways (I believe). For example:
- In a number of instances, particularly on Windows, a server when started opens a new console window (eg Unturned). In those cases AMP does not appear able to interact with the console - possibly because it is a separate process that it runs under.
- A server like Conan Exiles has a "launcher" executable that then calls another executable to actually run the game server. The normal server operation is to start the server with the "launcher" executable. While it is possible to have AMP just run the other executable directly, it is possible that the "launcher" executable does other things (such as set environment variables), without which the server does not run as well.
- When running a server on Linux with Proton (eg Wreckfest), AMP seems to monitor the Proton process for determining metrics like CPU and RAM usage, rather than the underlying game server. So for example when Wreckfest is started with Proton, the CPU is reported as 0% and the RAM as 6MB. In reality (as evidenced by the server operation on Windows), the server uses much more in the way of resources.
For console issues, this isn't really fixable since AMP doesn't get to control how sub-processes are started. Ideally the launcher should be circumvented if possible.
For process monitoring, that has since been addressed.