|
Thanks. This is exactly what I am looking for.
|
|
|
|
|
I have never really dealt with network packets, and am writing a fun program to really dive into them. I am making an RPG Game using DirectX for graphics, input, and sound. So far so good. I have the game engine started and think all is ok there.
I now want to start the client/server side of the programming. The problem is I don't know how to have the client and server actually talk. Do I use SOAP and send object, I could use TCP packets... Which can handle more concurrent connections? It is to be a MMORPG...
So, if I use one technology over another, still how to I determine what action they are taking(walking, talking, attacking... ect.)
Basically, what technology should I look into, and can you explain why and very basically how they work.
Keep in mind I am not asking for code but for advice. Code samples would be cool though. If you know any articles, send them my way as well.
Thanks for any help!
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I strongly encourage you to use WCF to implement the client/server bits of your app. It's easy to use, robust and very flexible. See this[^] CP section and this[^] MSDN tutorial.
/ravi
|
|
|
|
|
I skimmed over it and I still don't see how I determine what they are trying to do(walk, talk, attack ect...)
Have you used this before, and what for?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
You can use WCF to easily implement a solution for any of these scenarios:- Client (player) polls server when it needs to update its state of the world.
- Client (player) informs server when it performs an action (move, fire, etc.)
- Server broadcasts events to clients when the state of the universe changes.
I suspect you may want to use the 2nd and 3rd options, although you could use any combination. Btw, WCF is very efficient in handling multiple client sessions.
I currently use WCF at work.
/ravi
|
|
|
|
|
Ok, I will look into. Thanks for the help.
Would it be ok if I contacted you at your email address on your signature if I have any problems?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Feel free to send me email, although I can't guarantee a swift response. You're better off posting in this forum or in microsoft.public.dotnet.framework.
/ravi
|
|
|
|
|
Hi guys.
How can we change TreeView's node icon?
Do you know ?
|
|
|
|
|
Its a little wierd, but here it is:
this.treeView1.ImageList = new ImageList();
this.treeView1.ImageList.Images.Add("car", new Bitmap("C:\\Car.bmp"));
TreeNode myNode = new TreeNode("Car Node");
myNode.ImageKey = "CaR";
this.treeView1.Nodes.Add(myNode);
You can also set the ImageIndex of the node instead, so if you set this to 0 the node will use the first image in your image list, and if you set it to 1 it will use the second and so on.
Also, you will probably want to set the nodes SelectedImageKey unless if you want to use a different image when the node is selected.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
modified on Monday, May 19, 2008 9:24 PM
|
|
|
|
|
Use the:
treeView1.SelectedImageKey
property.
FYI the image needs to be in the correct size because the treeview will NOT scale the image.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
radialronnie wrote: FYI the image needs to be in the correct size because the treeview will NOT scale the image.
Yes it will.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
Sorry bout that, never saw that before.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
A train stops at a terminus, a bus stops at a terminus, on my desk I have a terminus.
(Well, I used to anyway.)
|
|
|
|
|
radialronnie wrote: FYI the image needs to be in the correct size because the treeview will NOT scale the image.
Thanks guys for your answers but What size the correct size is?
modified on Saturday, May 24, 2008 11:23 AM
|
|
|
|
|
None in particular. What I meant was that if you would add a High resolution folder icon (4example) it would show huge in the threeview. According to the post before this one though, you can set auto scale, where a 21X21 image would show the same size as a 128X128. I don't what property this is though.
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
|
sure, anyday!
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_______________________________________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Hi all.
I want to know What the meaning of @ character is in Regular expression pattern?
Like this :
Regex.Replace(str , @"pattern", "");
Thanks in advanced .
|
|
|
|
|
Hi,
The @ symbol is 'nothing' to do with the actual pattern... it is placed in front of a string to tell the compiler to ignore all escape characters (backslashes: \) contained within the string.
"\n" <- newline character
@"\n" <- \n
Matthew Butler
|
|
|
|
|
Thanks Matthew.
Your answer was useful.
|
|
|
|
|
The following is a sample HTTP POST request and response
POST /Suppliers/WebServices/InsertLeads.asmx/InsertLead HTTP/1.1
Host: apps.abcsite.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
SupplierID=string&SupplierPassword=string&FirstName=string&LastName=string&EmailAddress=string&CoAppFirstName=string&CoAppLastName=string&Address=string&City=string&State=string&PostalCode=string&HomePhone=string&WorkPhone=string&WorkPhoneExt=string&CurrentEmployer=string&YearsThere=string&Income=string&BestCallTime=string&OriginalLeadDate=string&ExternalLeadID=string&IPAddress=string&ExtraFields=string
I want the below code to return me in HTML format instead of XML.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<returnmessage xmlns="http://www.abcsite.com/">
<errorname>string
<errordescription>string
<leadid>string
<clientavailable>boolean
Here is one Instruction but I am asked to use this for C# , which I do not know :
This example assumes you have basic knowledge of how to use Visual Studio and the .NET Framework. In this example, the web reference to the ABCSite web service has already been added under a single folder called ABCSite. You would typically use this implementation when posting real time leads to our system via a form on one of your websites. This example is written in C#.
ABCSite.InsertLeads dpRealTimeWS = new ABCSite.InsertLeads();
ABCSite.returnMessage dpReturnWS = new ABCSite.returnMessage();
dpReturnWS = dpRealTimeWS.InsertLead(
Request.Form["txtSupplierID"],Request.Form["txtSupplierPassword"], Request.Form["txtFirstName"], Request.Form["txtLastName"],
Request.Form["txtCoAppFirstName"], Request.Form["txtCoAppLastName"],
Request.Form["txtCity"], Request.Form["txtState"], Request.Form["txtPostalCode"], Request.Form["txtHomePhone"], Request.Form["txtWorkPhone"], Request.Form["txtWorkPhoneExt"], Request.Form["txtBestCallTime"], Request.Form["txtEmailAddress"], Request.Form["txtOriginalLeadDate"],Request.Form["txtExternalLeadID"], Request.Form["txtIPAddress"], Request.Form["txtExtraFields"]);
lblWSResponse.Text = dpReturnWS.ErrorName + " " + dpReturnWS.ErrorDescription;
|
|
|
|
|
You need to ask this in the asp.net forum. I cannot stress highly enough the urgency of this advice.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi everyone
Does normal (not passive) FTP download needs threading? I mean when I make a data socket (bind, listen and then accept it) socket.accept is blocking and my program blocks and does no work anymore. should i seprate the socket.accept & the download process in two threads????
modified on Monday, May 19, 2008 4:57 PM
|
|
|
|
|
yes, you should.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
The simple answer is no it does not need threading however as Christian pointed out, you should implement it.
I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder
|
|
|
|