.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $7.00
Bronze- Save $9.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #71  
Old July 1st, 2012, 12:31 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Linux Admining

Up to you. My server runs many things including 2 online worlds. And I have up to 100 Dom3 games on my server at a time. I dont really have much of a need to access them directly.

But of course for people managing fewer games at a time then screen might be a good idea.
Reply With Quote
  #72  
Old August 6th, 2012, 05:28 AM

Joku Joku is offline
Private
 
Join Date: Aug 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Joku is on a distinguished road
Default Re: Linux Admining

This might be a stupid question, but how can you manually make the command line server to change turn? I host the game on a server on screen..
Reply With Quote
  #73  
Old August 6th, 2012, 08:31 AM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Linux Admining

The game does not accept normal kill command requests such as "reset" or "reread config"

So the only way I have been found is to slip into PbEM mode temporarily. I take the game down, run it again without the "S" switch (server), and then when its done I restart it again with the S switch back on.

Just for fun I have messed around with automating it along with lots of other admin commands if you want to discuss that.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #74  
Old August 6th, 2012, 10:04 AM

Joku Joku is offline
Private
 
Join Date: Aug 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Joku is on a distinguished road
Default Re: Linux Admining

Thanks, I don't need to automate it as I'm just running a single game currently.

Anyways, for some reason the game seems to crash sometimes, the script in the screen just stops running and it's back on the command line.. has anybody any idea what is causing that? I'm running it on FreeBSD 8.2 with Linux emulation, though.
Reply With Quote
  #75  
Old August 6th, 2012, 06:10 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Linux Admining

add a -dd switch and redirect to a file. The last thing in the file should be the reason it crashed.
Reply With Quote
  #76  
Old August 9th, 2012, 01:07 AM

Joku Joku is offline
Private
 
Join Date: Aug 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Joku is on a distinguished road
Default Re: Linux Admining

I added -ddd switch, and the last lines are these, doesn't really indicate anything though:


gameserver got packet 11
sendpacket first:12 len:7


Then it just exited to command line.. I was running it on a screen, so I try to run it with nohup to see if there's some issues with screen.

Last edited by Joku; August 9th, 2012 at 01:29 AM..
Reply With Quote
  #77  
Old August 26th, 2012, 06:26 PM

Joku Joku is offline
Private
 
Join Date: Aug 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Joku is on a distinguished road
Default Re: Linux Admining

Also, for some reason crowns appear on the map, and victory points aren't set on by options. The game options window when playing a turn doesn't say they are on, either. Does anybody know the reason for this?
Reply With Quote
  #78  
Old October 6th, 2012, 04:03 PM

ascen ascen is offline
Private
 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ascen is on a distinguished road
Default Re: Linux Admining

I'm trying to set up a Linux server, but am running into
weird problems with the IP address the Dom3 uses for the server.
For some reason the game decides to use IP 127.0.1.1 (loopback?).

I'm running the game on a netbook with only WLAN connectivity.
After noticing that IP address, I did "ifconfig ... down" for both my eth0 and lo interfaces, so wlan0 is the only interface up at the moment. Still the same IP though.

Looking through the thread it seems there is no flag for setting the server ip? Does anyone have any ideas how this could be fixed?

My desired end result should be it getting an local network address, which the firewall would port forward to.
Reply With Quote
  #79  
Old October 6th, 2012, 04:35 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Linux Admining

Thats a problem on all machines. Especially the windows ones.

The game sets itself up with the local machines address which is all that it can easily "see". If no other address is set for the machine, it will not create one for itself.

However, usually external addresses work fine for reaching it. Just go ahead and try it. For the windows users we usually have them use their browser from that machine to visit a site such as WhatIsMyIP.com to find out what address is being seen by the internet. Giving that address to players will usually let them find the game ok
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #80  
Old October 6th, 2012, 04:57 PM

ascen ascen is offline
Private
 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ascen is on a distinguished road
Default Re: Linux Admining

Thanks GP, for making me take yet another look at it.

I was testing it from my laptop on the same local network,
so the external IP was never an issue.
The actual problem was that the server was running an unpatched version, and Dom3 displays this situation as not having found a server at all.

Once I patched the server and tried again, it works like a charm.
So the displayed IP has no function at all - even though it lists a loopback address, it's still listening on the local network address(es).
Reply With Quote
Reply

Bookmarks

Tags
admin, automation, command line, hosting, linux, script, server, switches

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2021, Shrapnel Games, Inc. - All Rights Reserved.