tModLoader - Typing in the AMP console inputs nothing into server console

System Information

Field Value
Operating System Windows - Windows 11 Home on x86_64
Product AMP ‘Phobos’ v2.6.2.6 (Mainline)
Virtualization None
Application tModLoader
Module GenericModule
Running in Container No
Current State Stopped

Task

Save or exit the world with the AMP console

Problem Description

Typing into AMP console inputs nothing into server console

Issue

There is no way to forward any commands to the tmodloader console through the AMP interface, so every time the server is shut down for whatever reason there is always lost progress as the autosave only activates every 10 minutes ONLY when a player is on the server. I also haven’t been able to find a way to have the tmodloader console be visible after launching it from AMP to where I can just manually type commands into it.

Reproduction Steps

  • Launch the server, everything works properly
  • Type “save” into the server console, nothing happens, no response from server console
  • Type “exit” into the server console, same as above
  • Type anything and nothing is forwarded to the actual tmodloader server console

Seems this is a longstanding issue with tModloader on Windows when run under AMP, AMP can’t access the console. Works fine on Linux

In better news, I tested changing the shutdown method on Windows, and that at least forces a save. Will update the template

Now updated. Update your instance from the main instances page in AMP

Thank you for the quick patch, but unfortunately it doesn’t seem to be working properly for me; I see the “Saving before exit…” text pop up before the server shuts down but the changes I make to the world don’t seem to actually be saved. For example, I place/break some blocks, shut down the server and see the text, boot it up again and the changes are reverted to the last autosave.

Rip, then I have nothing else. When I tested it, it seemed to update the save file timestamp and create a backup

Well thanks for trying, as an alternative solution is it possible to have the tmodloader console be accessible so I can just type into it? Otherwise I guess I will try to learn how to set up a linux VM

No, it is not possible to have the separate console

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.