.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)

Gandalf Parker November 4th, 2006 03:02 AM

Re: CLI for probing turn status
 
Im curious about it.
I doubt if Id be capable of programming anything to it at my level of programming but until I see the protocol I wont know.

NickW November 4th, 2006 04:37 AM

Re: CLI for probing turn status
 
Quote:

Johan K said:
If you are interested in doing something similar I could post the details for the game status retrieving part here.

I would be very much interested.

Arralen November 4th, 2006 04:58 AM

Re: CLI for probing turn status
 
Me too.

MarcinM November 10th, 2006 12:48 AM

Re: CLI for probing turn status
 
Awright, I got the server to talk to me, but I don't get the way the packet is constructed. I can see the name of the game, then a couple of zeros, then the magic 45 char, ... and then about 200 characters that don't make any sense to me, followed by the # of the turn.

How do I figure out what in those 200 corresponds to what nation, how it's controller and its connection status?

Thanks.

WraithLord November 10th, 2006 08:00 AM

Re: CLI for probing turn status
 
I've uploaded said CLI here

@MarcinM, the answers to your questions are in Johan's post.

MarcinM November 10th, 2006 11:08 AM

Re: CLI for probing turn status
 
-10 points for reading comprehension.

I do not understand how:

1 int ms left till host time
1 str message from host (unused)
P chars players controlled by (0=no one 1=human 2=AI)
P chars nationstatus
P chars connected or not

maps to ~200 assorted zeros and ones. That is what I need a bit of help with.

WraithLord November 10th, 2006 12:19 PM

Re: CLI for probing turn status
 
http://forum.shrapnelgames.com/images/smilies/happy.gif

I think it should be ~260. If you get 200 bytes response most likely something has gone wrong.

MarcinM November 10th, 2006 12:45 PM

Re: CLI for probing turn status
 
Go on .....

Johan K November 10th, 2006 02:17 PM

Re: CLI for probing turn status
 
3*P = 3*80 = 240 assorted zeroes and ones. "1 str message..." is just one byte (a zero).

MarcinM November 10th, 2006 05:50 PM

Re: CLI for probing turn status
 
Oh, I think I figured it out. I should have looked at this in the first place:
http://www.dom3minions.com/docs/nations.txt

All is clear now (I think).


All times are GMT -4. The time now is 05:51 AM.

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