Log in

View Full Version : Tip Playing turns on a network server


vfb
November 14th, 2008, 10:41 PM
When you're hosting a network game, your own turn files are saved to the same directory as the server directory. The server can become confused and think you're ready for a quickhost if you just save your turn half-done.

I tried running as a different user, but even after 'xhost +', dom dies with a Gick Fel, "Failed to init OpenGL"

One solution to the problem is to change your dominions save directory, like this:

mkdir /home/me/localsave
export DOM3_SAVE=/home/me/localsave
dom321

Connect to the localhost server, disconnect immediately after entering your password, and play the new turn. Any .2h you save will just go into localsave, and you can reconnect to localhost and upload your turn when you are ready.

I'm sure there's loads of other ways around the problem, but this works best for me.

Gandalf Parker
November 14th, 2008, 11:55 PM
In Windows I tend to copy all of the dominions directory and files to a different directory and make that the "server" copy.

On Linux I use a different user to run server games so that the directories and files stay different.

archaeolept
November 14th, 2008, 11:57 PM
yah, just copying the folder and running from there works in windows.

WraithLord
November 15th, 2008, 04:36 PM
In windows you can just connect to the server, get the turn but don't open it. Disconnect. Play the turn at your leisure and only when you're ready to submit, reconnect to the server. Its been so long since I last played on a server that I actually forgot the exact steps to do when d/ling the turn, but its possible and I used to do this all the time for dom-II and in my first games of dom-III.

JimMorrison
November 15th, 2008, 05:33 PM
In windows you can just connect to the server, get the turn but don't open it. Disconnect. Play the turn at your leisure and only when you're ready to submit, reconnect to the server. Its been so long since I last played on a server that I actually forgot the exact steps to do when d/ling the turn, but its possible and I used to do this all the time for dom-II and in my first games of dom-III.

I think he was saying that if you are also the host, since it saves the turn in the same folder, that it will consider you done, the first time you open and close the turn, whether you are actually "logged in" to the server or not.

I agree though, easiest way to deal with that is to have 2 seperate copies of the game (though the clever scripting can save you 700mb of disk space ;)).