.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 3: The Awakening (http://forum.shrapnelgames.com/forumdisplay.php?f=138)
-   -   CLI for probing turn status (http://forum.shrapnelgames.com/showthread.php?t=31264)

WraithLord October 23rd, 2006 05:45 PM

CLI for probing turn status
 
Hi,

Does someone know if there is a CLI option to probe a DOM-III tcp server turn status?- I really miss the "gods-eye" utility for dom-II and until there is (hopefully) one for dom-III this command (if exists) will be very handy.

I have multiple computers and every now and again when I check the turn status I get my turn wiped out (when a blank turn is uploaded instead of a full one).

TIA

MarcinM October 23rd, 2006 05:50 PM

Re: CLI for probing turn status
 
I would like to know this too. What I'm using in the meantime is writing the events out to a logfile, then reading it and parsing it for info.

I also add player names, but of course that all takes manual setup upfront. Let me know if you want the script though (and happen to be running PHP on your server http://forum.shrapnelgames.com/images/smilies/wink.gif.

WraithLord October 23rd, 2006 06:58 PM

Re: CLI for probing turn status
 
Can this script run from the client side?

I'm afraid I didn't quite get the part about events, what events are those exactly?

Gandalf Parker October 24th, 2006 10:59 AM

Re: CLI for probing turn status
 
If you have logging turned on and going to a file then doing a "tail" of that log shows this....

Fast2, Connections 1, Time 21h (quick host)
Er- Ul- Ti- Mi- Ct- *Yom-

That says no one has done the turn (the - changes to a + when a turn is turned in) and it shows that Yom is connected.

There is alot of info there. Just a CGI to tail -1 of the log shouldnt be hard. Parsing that into an html wouldnt be too difficult either. Adding abit of scripting to change it into something more readable might even be fun.

Adding icons for all of the nation flags and turning them into flags with an X on it, adding the chain links for a connection, etc so that it looks like people see at their end would be possible.

Adding a countdown clock till the next hosting, adding clouds or frowny faces to the ones that are close to getting a stale turn, all of that would be possible. Insane, but possible.

WraithLord October 24th, 2006 11:43 AM

Re: CLI for probing turn status
 
Thanks Gandalf, your suggestion sounds simple to do, but it requires adding things (CGI for example) and not supported off the shelf so to speak.

I wonder how did the god's eye client work, I could have figured this out had I had access to its source code (I would guess its Java). Or maybe I can ask the its author, does anyone recall whom might he be?

Gandalf Parker October 24th, 2006 12:02 PM

Re: CLI for probing turn status
 
Sorry. I tend to think of hosting as a linux server (CGI isnt something you add, its part of web pages)

If you let me know the OS I can answer more exactly. Are you wanting something you can click on in windows that checks the host without having to load Dominions?

Arralen October 24th, 2006 12:53 PM

Re: CLI for probing turn status
 
1 Attachment(s)
Quote:

WraithLord said:
I wonder how did the god's eye client work, I could have figured this out had I had access to its source code (I would guess its Java). Or maybe I can ask the its author, does anyone recall whom might he be?

IIRC, it's written in Eiffel and Illwinter disclosed part of the client/server protocol. Search the Dom2 forum for more info ... .. or look here ...

http://www.shrapnelcommunity.com/thr...9-goodseye.png

MarcinM October 24th, 2006 12:59 PM

Re: CLI for probing turn status
 
Yep, that's what I'm doing, works pretty well. As was said however, it does require scripting and hosting on the client side.

You could write that logfile out and just put it in a publicly accessible webdir as a very crude method of getting feedback with no scripting.

WraithLord October 24th, 2006 01:42 PM

Re: CLI for probing turn status
 
Quote:

Gandalf Parker said:
Sorry. I tend to think of hosting as a linux server (CGI isnt something you add, its part of web pages)

If you let me know the OS I can answer more exactly. Are you wanting something you can click on in windows that checks the host without having to load Dominions?

I can add CGI if I'm the web page admin http://forum.shrapnelgames.com/images/smilies/wink.gif

Assuming my OS os windows, I want what you said: something the checks the host w/o loading dominions.
Is that feasible? (God's eye suggest the answer is yes).

Had I know the details of the protocol I could have done this manually with telnet, or write a smallish script that does the same automatically.

WraithLord October 24th, 2006 01:45 PM

Re: CLI for probing turn status
 
@MacrinM, please correct me if I'm wrong but as I understand what you're doing is not similar to god's eye. What you're doing is server side and you allow players to see status by web. God's eye is a client that "talks" to the dominions server and report back to the player, all this w/o ever loading dominions. This is what I'm looking for.


All times are GMT -4. The time now is 11:16 AM.

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