GrammarCzar Posted May 24, 2013 Share Posted May 24, 2013 I am a noob and would love some help on how to set one up. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 24, 2013 Boxelware Team Share Posted May 24, 2013 Hi! You can start a singleplayer game and it will start a server internally and people can connect to you (if you want to play via internet you should forward the tcp and udp ports 24000 to your computer). But this server will be closed as soon as you quit the game. If you want to start a dedicated server that continues running after everybody quit, you have to start the server from the command line or write a batch script that starts it, as you need to set some command line options: --datapath here you have to specify the path where the server will save the galaxy --admin Specify the admin nickname for the server If you have your game installed in the default folder, the final command would look something like "C:\Program Files\Avorion\bin\SpaceServer.exe" --datapath "C:\MyAwesomeGalaxy" --admin GrammarCzar This will create the folder C:\MyAwesomeGalaxy and the galaxy will be saved there. Side notes: Server admin does nothing until now though, it will be used in later releases, but must be specified nevertheless. Just like the clients, the server runs on windows only for now. More server administration (limited number of players, moderators etc.) features are the next thing I will implement. I guess an article in the wiki could be of use here, too. Edit: Corrected the command. Link to comment Share on other sites More sharing options...
MajorBravo Posted May 25, 2013 Share Posted May 25, 2013 I have enabled port forwarding on my router at 24000 for TCP on my computer hosting the server. I launch the cmd prompt and run the above command and it executes. I go into the game and choose the multi-player setting and launch it. It loads for a split second and I can see myself enter the world on the bottom left then I get Connection Closed prompt and forced to exit. The cmd prompt has "server: connection 0 closed by remote" Did I miss something? Or are you not able to play on the computer that is hosting the server as well? Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 25, 2013 Boxelware Team Share Posted May 25, 2013 It's definitely possible to play on the same machine that a dedicated server runs on. In your folder where your server created the galaxy, there should be a file called serverlog.txt. Could you please post its content? EDIT: The file should be located in your %appdata%\Avorion folder. Link to comment Share on other sites More sharing options...
zh259 Posted May 25, 2013 Share Posted May 25, 2013 Translation terrible translate.google ... I do not go to the server. run .bat console appears and disappears. It is better to create a video tutorial on creating a server Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 25, 2013 Boxelware Team Share Posted May 25, 2013 I guess this is the same issue as in the other thread. Make sure you don't have cyrillic letters in either your windows username or your path to %appdata%\Avorion. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 25, 2013 Boxelware Team Share Posted May 25, 2013 There's a tutorial on the wiki, too. Link to comment Share on other sites More sharing options...
MajorBravo Posted May 25, 2013 Share Posted May 25, 2013 Sorry for the late reply, I wish the forum had an email alert system hah. (found the Notify button at the bottom right... Doh!) Here is the issue: An Exception occured: could not load script 'data/scripts/craftorders.lua': cannot open data/scripts/craftorders.lua: No such file or directory still want that log file, let me know Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 25, 2013 Boxelware Team Share Posted May 25, 2013 Make sure that the working directory is the Avorion installation folder, when you start the server. So, when you start the game from the command line, you should be in the Avorion installation folder. The server should then be started with bin\SpaceServer.exe [...] Link to comment Share on other sites More sharing options...
zh259 Posted May 26, 2013 Share Posted May 26, 2013 writes it can not find DataPath Link to comment Share on other sites More sharing options...
zh259 Posted May 26, 2013 Share Posted May 26, 2013 No, I'm not running from the command line Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 26, 2013 Boxelware Team Share Posted May 26, 2013 Did you use the script supplied with the installer? This script is buggy. It contains fixed paths on my pc, which are obviously not valid on your pc. Check the tutorials section on the wiki http://www.avorion.net/wiki/index.php?title=Tutorials on how to write your own setup script. Link to comment Share on other sites More sharing options...
Never7Dice Posted May 26, 2013 Share Posted May 26, 2013 Admin here may be problem in path. In your command folder Avorion. And in our folder is avorion 0.3. Rename it. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 26, 2013 Boxelware Team Share Posted May 26, 2013 I don't exactly understand what you mean. I assume now, you mean you installed the game in another folder. As stated on the article in the wiki, in the tutorial it is assumed that the game is installed in the given folder. If your folder is different you must specify another name. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 26, 2013 Boxelware Team Share Posted May 26, 2013 Maybe you should try reading some tutorials on how to run programs from the command line. You need some basic knowledge about this to set up a server. Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 26, 2013 Boxelware Team Share Posted May 26, 2013 Updated the article in the wiki. I hope it is clear now. Link to comment Share on other sites More sharing options...
PVD Posted May 28, 2013 Share Posted May 28, 2013 I have success in starting multi-player, but my friend can't play. Its look like he connected, but then his client closes. In what can be a problem? Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 28, 2013 Boxelware Team Share Posted May 28, 2013 Do you see a chat message that he was logged in? Can he start the singleplayer? Link to comment Share on other sites More sharing options...
PVD Posted May 29, 2013 Share Posted May 29, 2013 Do you see a chat message that he was logged in? Can he start the singleplayer? Yes, he was logged in, he even could write a chat message, but past some time his client closes. Some time server console writes "time out" or "closed by remote", I think that I should increase server waiting time and client too, but how can I do this? Link to comment Share on other sites More sharing options...
Boxelware Team koonschi Posted May 29, 2013 Boxelware Team Share Posted May 29, 2013 Is it always the timeout? have you opened/forwarded both tcp and udp ports? Link to comment Share on other sites More sharing options...
PVD Posted May 29, 2013 Share Posted May 29, 2013 Look like i have done all but it doesn't work. However i tried to launch throw hamachi and it works :) . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now