Welcome to GameHourz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

PC Client to Empire Server Communication

 
   Game Forums (Home) -> Hints about Empire RSS
Related Topics:
GUI Mac Client? - I've searched around and it appears this question hasn't been asked since 2003, sorry if I missed anything. I'd like to play Empire, and I'm running Mac OSX. I'd like to find a good GUI client. Has anyone managed to get PTkEI working on a modern Mac? I.

Suggested Linux client? - What linux client would you suggest for a fairly clueless player? The furthest I've ever gotten in empire was a frigate around. I think I might've gotten loaded on it. Do both ptkei and pei work with the new server? Any other..

Empire - Call4Players List - I'm the list of empire player email addresses that I will maintain for getting the word out for when a new game is being And as a reminder to those on the list, add my email to your list so I don't get tagged as spam, ..

Empire Call 4 Players List - I'm the list of empire player email addresses that I will maintain for getting the word out for when a new game is being To subscribe to this list, send an email to: @ with:

Installation of Empire source code - I the latest version of the source code and I have the that say to cd to the directory the package source code and type however I get the response that this is not a command. My..
Next:  Hints about Empire: Empire - Call_For_Players list  
Author Message
Frank Miller

External


Since: Nov 26, 2007
Posts: 7



(Msg. 1) Posted: Mon Dec 03, 2007 8:51 pm
Post subject: PC Client to Empire Server Communication
Archived from groups: rec>games>empire (more info?)

I'm playing around with VB.NET and figuring out how to parse various
Empire "xdump" output messages. What I'd like to do is to set up
communications between a VB.NET program (class) and my Empire server
(running on an OS X iMac). Then I could have my VB.NET programs "talk"
to the server and I could develop some "assistant" Empire utility
programs for Windows. Ive read the "clients_howto" document in the
server "docs" directory. This seem to discuss the "conversation" protocol.

Programming network communications is "terra incognita" to me. It looks
than unlike traditional VB, VB.NET does not support Winsock. In a
brief web search it looks like one guy found a way to "register"
Winsock into VB.NET. Hmmmm...sounds prone to break. In this article,
the author was able to use the native .NET socket classes and create a
client and a server:

http://www.eggheadcafe.com/articles/20020323.asp

He mentions that he is keeping this "synchronous" and very basic. I'm
not really clear if "synchronous" is what I want. Heck, I'm not really
very clear what "synchronous" is! I'm still "reading up" on the
subject. It occurs to me that there might even be more than one way to
do this. If anyone wants to step in and provide some advice, please do.

Thanks, Kelly (Zukhov)

 >> Stay informed about: PC Client to Empire Server Communication 
Back to top
Login to vote
rkoenderink

External


Since: Mar 16, 2005
Posts: 79



(Msg. 2) Posted: Tue Dec 04, 2007 5:38 am
Post subject: Re: PC Client to Empire Server Communication [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have written both a EmpireHub in C#/.NET and beginnings of rework of
WinCE in C#/.NET.

For the purposes of the discussion C# and VB.NET are very similar as
you are using the same .NET library in both cases.

It depends what you are trying to do. If you want to parse xdump and
store the information in a console type application synchronous would
be fine. If you want to have a Windows based program like WinACE I
would recommend an asynchronous model otherwise you can not do
anything like view the map while the xdump is being sumbitted, waiting
for response and parsing the response and storing information.

For a console type application I would start with this.

../empire 1 1 <xdump_request >xdump_output
cons_app <xdump_output

Once you have the cons_app running you can batch it with
../empire 1 1 <xdump_request | cons_app

If you want it self contained you can add synchronous socket code the
cons_app.

Another avenue to consider is working in C and modifying the
empire.exe source for a console application.

If you look in the MSDN you will examples on how to make both
synchronous and asychronous .NET soket examples. Here is an example:
http://msdn2.microsoft.com/en-us/library/fx6588te(VS.71).aspx.
If you are doing a Windows based tools you need learn about delgates
otherwise you will not be able communicate between window thread and
the socket thread as cross threading windows controls does not work.

 >> Stay informed about: PC Client to Empire Server Communication 
Back to top
Login to vote
Frank Miller

External


Since: Nov 26, 2007
Posts: 7



(Msg. 3) Posted: Wed Dec 05, 2007 3:44 pm
Post subject: Re: PC Client to Empire Server Communication [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

rkoenderink.RemoveThis@yahoo.ca wrote:
> I have written both a EmpireHub in C#/.NET and beginnings of rework of
> WinCE in C#/.NET.
>
> For the purposes of the discussion C# and VB.NET are very similar as
> you are using the same .NET library in both cases.
>
> It depends what you are trying to do. If you want to parse xdump and
> store the information in a console type application synchronous would
> be fine. If you want to have a Windows based program like WinACE I
> would recommend an asynchronous model otherwise you can not do
> anything like view the map while the xdump is being sumbitted, waiting
> for response and parsing the response and storing information.
>
> For a console type application I would start with this.
>
> ./empire 1 1 <xdump_request >xdump_output
> cons_app <xdump_output
>
> Once you have the cons_app running you can batch it with
> ./empire 1 1 <xdump_request | cons_app
>
> If you want it self contained you can add synchronous socket code the
> cons_app.
>
> Another avenue to consider is working in C and modifying the
> empire.exe source for a console application.
>
> If you look in the MSDN you will examples on how to make both
> synchronous and asychronous .NET soket examples. Here is an example:
> http://msdn2.microsoft.com/en-us/library/fx6588te(VS.71).aspx.
> If you are doing a Windows based tools you need learn about delgates
> otherwise you will not be able communicate between window thread and
> the socket thread as cross threading windows controls does not work.

I'm looking for the simplest building block, so synchronous sounds
right. The server must be remote, and the client on Windows XP. I
don't care if the application is locked up while waiting for a response.
There must be someone to simplify and avoid delegates.

Do I need to run the server in debug mode to watch the client connection
attempts? Sounds like it's best to jump and start coding and see if I
can get some sort of result from or at the server.

Regards, Kelly (Zukhov)
 >> Stay informed about: PC Client to Empire Server Communication 
Back to top
Login to vote
Markus Armbruster

External


Since: Nov 18, 2004
Posts: 243



(Msg. 4) Posted: Wed Dec 05, 2007 10:14 pm
Post subject: Re: PC Client to Empire Server Communication [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
   Game Forums (Home) -> Hints about Empire All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]