![]() |
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 |
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. |
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? |
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. |
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? |
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? |
Re: CLI for probing turn status
1 Attachment(s)
Quote:
http://www.shrapnelcommunity.com/thr...9-goodseye.png |
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. |
Re: CLI for probing turn status
Quote:
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. |
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 12:22 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.