CubeCoders / AMPTemplates

For the AMP community to share Generic Module templates.
MIT License
93 stars 290 forks source link

Space Engineers Torch APi Configuration #530

Open m-leonoff opened 1 year ago

m-leonoff commented 1 year ago

Module Request

Note: Please try setting up a configuration yourself before raising an issue to request a configuration: https://config.getamp.sh/ ***There is a newer beta version available at https://iceofwraith.github.io/GenericConfigGen/

Game Information:

Game Title: Space Engineers Torch API How to obtain: https://torchapi.com

This is super necessary for well-established space engineer servers. Torch API enables the use of server management plugins.

I confirm:

PepperJackExA commented 10 months ago

I would also like this to be added

m-leonoff commented 10 months ago

So any chances of this coming to life?

Greelan commented 10 months ago

Not possible on Windows given the system user that AMP runs under normally on that platform.

I played around with it on Linux (obv with Wine) and iirc it worked but it's not great since Torch starts a separate process for the server but AMP can't manage it.

Bitenode commented 10 months ago

have you tried the nogui mode? i can msg Bishbash777 see if he could help make a workaround it only really needs to have a plugin in your torch server that can communicate with your api

southnode commented 8 months ago

So from the Torch github - https://github.com/TorchAPI/Torch/issues/449

This was the original issue with Torch running as the network service just immediately shutting down. Torch could theoretically work with AMP now utilizing whatever development build you already have there @Greelan (if that was the problem in the first place given the NETWORK SERVICE user being non-interactive).

Greelan commented 8 months ago

The server complains about being run as a service

Greelan commented 8 months ago

Right, I've looked at the commit now. I see they've made a change to address the parent process being a service. Will test if this fixes the previous issue in AMP

Greelan commented 8 months ago

Derp, that commit was only 4 days ago and hasn't made it into a build yet

Greelan commented 8 months ago

Actually, it seems it has, last build was a day ago.

But still:

Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.