Devidian / docker-spaceengineers

A Docker for Space Engineers Dedicated Server
89 stars 22 forks source link

Save Naming/Server Crash #8

Closed pietru2004 closed 3 years ago

pietru2004 commented 3 years ago

Does save need any special name? I get in log: 2020-12-19 17:44:25.358 - Thread: 1 -> MySandboxGame.Constructor() - END 2020-12-19 17:44:25.359 - Thread: 1 -> Server Name: 2020-12-19 17:44:25.361 - Thread: 1 -> World Name: 2020-12-19 17:44:25.420 - Thread: 1 -> Auto Restart Enabled 2020-12-19 17:44:25.433 - Thread: 1 -> MySandboxGame.Initialize() - START and it crashes server. World is in docker_folder_path/diff/appdata/space-engineers/instances/Saves Do I need to place SpaceEngineers-Dedicated.cfg in instances folder too?

pietru2004 commented 3 years ago

Seams like server has started after I added SpaceEngineers-Dedicated.cfg, could you add in setup to copy SpaceEngineers-Dedicated.cfg to /instances and save to /instances/Saves and change path to save in config?

Can I in any way have access to server console via docker screen ? Like in docker more info obraz

And how to make port setup - what ports I need to move to enter server - I can't connect to server via 192.168.1.XX:27016

Devidian commented 3 years ago

First of all, how did you start the docker container? It looks like you did something "wrong" on startup

pietru2004 commented 3 years ago

well first error I have solved I just added .cfg of server to /instance

pietru2004 commented 3 years ago

I have got to this structure obraz Curently I can't connect to server - I have firewall set but I can't connect via SE and I needed to add port from docker to host obraz

Devidian commented 3 years ago

image image It should look like this. The SpaceEngineers-Dedicated.cfg is always in an instance created by the Windows GUI.

If you start the docker via docker-compose all ports should work. If you start it via docker command you must pass in all stuff that is setup in the compose file by hand.

pietru2004 commented 3 years ago

obraz something might be broken - this is what I see default - I added 27016/udp self

pietru2004 commented 3 years ago

I started server via cockpit

Devidian commented 3 years ago

what is this? I cant read this. What is cockpit?

pietru2004 commented 3 years ago

well all above are settings provided by docker file - https://cockpit-project.org/

pietru2004 commented 3 years ago

and sr if you can't read - some text on screens is in my lang - PL

klucz - key wartość - value

Devidian commented 3 years ago

Oh i see cockpit is some docker admin tool, ok but i cant help here as i dont know how to setup my docker with cockpit.

pietru2004 commented 3 years ago

I know how to setup cockpit stuff my problem is that I can't connect to server

pietru2004 commented 3 years ago

port 27016 is open on firewall and on docker

Devidian commented 3 years ago

yeha, and i can tell you that the port part is in the compose file, dont know how to set this up on cockpit :)

pietru2004 commented 3 years ago

well I add here log of server SpaceEngineersDedicated_20201219_211314728.log

Devidian commented 3 years ago

Maybe its just incompatible with cockpit, if so im sorry! currently i dont have time to try it myself with cockpit, maybe next year

pietru2004 commented 3 years ago

do I need to worry about steam port ? <SteamPort 8766</SteamPort

Devidian commented 3 years ago

if you use a firewall, yeah might be an issue

pietru2004 commented 3 years ago

I try this - bottom post - https://www.reddit.com/r/spaceengineers/comments/4g17cv/dedicated_server_ports/

pietru2004 commented 3 years ago

erm ok so it seams SE wiiki is outdated - it is need to use 2716 tcp and udp for server

pietru2004 commented 3 years ago

and if you could update setup guide on here git - please; I mean telling to copy generated SpaceEngineers-Dedicated.cfg to /instance and save file to /instance/Saves folder + tell to use 27016 tcp and udp

Devidian commented 3 years ago

the setup guide is correct for normal usage. You dont need the SpaceEngineers-Dedicated.cfg in instances because in the docker-compose you set the INSTANCE_NAME=yournameofinstancehere and it will look up the config there. Also the 27016 port (you need only udp) is setup there.

pietru2004 commented 3 years ago

well I was able to join server after using also tcp port (mayby you can tell disclaimer to tell to try use udp and tcp if you can't connect server)

pietru2004 commented 3 years ago

I thinked bit and I know that simply only udp should work but this could be good ass added (anyway issue can be closed)

[COCKPIT] add port 27016 from docker to host twice, udp and tcp [JOIN ISSUE] try this solution https://www.reddit.com/r/spaceengineers/comments/4g17cv/dedicated_server_ports/