"Choose World" on a server for terraria

Yaeghs

Terrarian
Hi there !

I have a server (VPS on debian 10) and try to run a terraria server in order my friends and I can play in the same world without needing someone hosts it on her own computer.

I try to launch the server with a world created by the server. We wanted to play on another world, on which we've played for a while, and so I've copied the `.wld` file on the `Worlds` folder and changed the configserver.txt with this new world. And now, I get this :

"Terraria Server v1.3.5.3

1 baba
n New World
d <number>Delete World

Choose World: _"

"n" works for new world, but not "d". And with this I can't choose the world I've noticed with the config file. And I don't find how to choose it. And no wiki are dealing with it.

The world was created on a windows system, and my server is a Linux (Debian 10) one. I guess it's the reason, but not sure.

Regards
 
Hhhm, it seems that the "worldpath" option in the config file is totally ignored by the server. The real worldpath is "~terraria/.local/share/Terraria/Worlds/" and totally not one has specified.

So, I can now see the worlds I've created with the server in the "Choose World" interface. But not at all one created one Windows.
 
Hm, ok. Now it sees, but it won't launch without backup (I've many errors with the `dll` files Oo)
 
And definitely, the server exits with the windows world. Where is the log file ?
 
Summarize :
I've tried to launch terraria server on my VPS with debian 10. I've noticed (too) many errors with this software.

My set up is so : terraria is now a service (startable with systemd) with the terraria.service file (I've created a terraria server user) :

Code:
[Unit]
Description=server daemon for terraria

[Service]
Type=forking
User=terraria
KillMode=none
ExecStart=/usr/bin/screen -dmS terraria /bin/bash -c "/opt/terraria/TerrariaServer.bin.x86_64"
ExecStop=/usr/local/bin/terrariad exit

[Install]
WantedBy=multi-user.target


--
And I can attach the screen of the terraria admin panel with a `terrariad attach` with `terrariad` so :

Bash:
#!/bin/bash

send="`printf \"$*\r\"`"
attach='script /dev/null -qc "screen -r terraria"'
inject="screen -S terraria -X stuff $send"

if [ "$1" = "attach" ] ; then cmd="$attach"; else cmd="$inject" ; fi

if [ "`stat -c '%u' /var/run/screen/S-terraria/`" = "$UID" ]
then
    $cmd
else
    su - terraria -c "$cmd"
fi

Now, when I launc with a `systemctl start terraria && terrariad attach` i get the admin panel with "Choose World". The detected files are the worlds of `~terraria/.local/share/Terraria/Worlds/`. And :

- I can now choose between worlds (now I know where they are saved)
- I can launch the worlds created on Linux, but not those created on Windows (the server crashes when trying to launch a world from windows)
- The save command doesn't work. When I save, I got :

Code:
: save
Saving world data: 5%
Saving world data: 12%
Saving world data: 20%
Saving world data: 24%
Saving world data: 33%
Saving world data: 41%
Saving world data: 51%
Saving world data: 58%
Saving world data: 69%
Saving world data: 78%
Saving world data: 90%
Saving world data: 99%
Invalid command.
: Saving world data: 100%

but that finished.

- When I use the exit command ... server blocks. Nothing more happens and it runs again and again ... and i can't do anything more.

- Obviously, no changes are saved.
 
Back
Top Bottom