I was thinking about getting back into stuff. I always wanted to code something from scratch so I was thinking its a way to learn everything from networking to directx and so on. If I ever finish it im sure it will take me years but I should learn along the way which is the whole point... anyways...
where should I begin? Should I begin with both the client and server and get connection so on going on? Should I start with just the server and then client later.... or should I start with the client?
My guess would be both get a connection between them. Then setup some way to create accounts... maybe add an account server to handle those so on...
also any guides to help me on my way would be appreciated. Not sure if Dx7 or 8 yet. Im going to use MS source to learn a lot as I go but doin it my own way.
Thanks for the reply and offer. I may take you up on that sometime.
So you say to learn DX8 and then to work on networking with winsock and so on.
If you are looking for some help with the DX, I can give you a hand.. I've been working on my class module and it seems to be a success. I am learning DX8 too.
Ehh don't learn it using Harold's work. That's the short and easy way for people who are too lazy to
learn how to use DX8 through scratch and you will barely learn crap.
Yeah I didn't really explain the code in my class. I just made it for people to use DX8 easily...it's just like a quick way to use DX8 simplified. I explained how to use my class like a book, but didn't explain how I used DX8...
I read the directx 4 vb site. So far its doing me well..
I was thinking of using mysql over binary files. What do you guys think about that? I always just thought it was easier to sort through data and incorporate stuff into a website if it ever came to that.
I don't know much of the technicalities of binary vs mysql.
However, I really prefer keeping my data stored locally, though I'm also very open to making my player accounts mysql, as their are huge benefits if I choose to do account creation on a webpage. As far as NPCs and Shops and all that, I'd just assume keep binary files locally.
Yeah I would rather use mysql... I have set up mysql server in the past and all, but just wonder how hard adding it would be. Guess I could take a look at old 3.0.7 MS to see how its done there.
Also could I get some more information on packets? I learned winsock and have it working very basically. Its connecting and sending a single message.
Thanks sorry for the noobness just been so long and I never really did understand packets much.
Ok I get about splitting them up but you will be sending many differnet packets. How do you have the client/server differentiate between all the packets so it knows what to do with that given one.
By giving each type of packet an ID number.
Could you give an example
Ok thanks that does make sense. Its been so long since I have messed with MS and some reason im brain dead about packets but im learning and getting better.
I'm working here and there and progressing some. Anyways, I was wondering the best way to do this...
I'm having it send username/password to server and saving to a file, but to do so I have a button that connects to the server and then I click another button that sends the information.
When I tried sending the information right after it connects to the server with the same button it gives me an error which I take it means its not connected yet to send the data.
I do not want to have a button to connect to server I would like it to do that and then send the information to the server. What is the best way of doing this?
Also I have the server sending a message as it connects back to the client just saying it connected for now... does this have anything to do with sending the information right away as in slowing it down or something?
Thanks
If you send the login packet right after trying to establish a connection, the server won't have enough time to accept the connection, which sounds like the problem in this case. You mentioned that the server sends a message after connecting; the point where the client receives that message would be a perfect time to send the login information.
Well thats all taken care of. I decided to add where you could kick anyone online from the server. Its basic just choose someone online and you can kick them and send a reason why to them. When they receive the message I have it bring back to the main menu, but I cant find out how to close the current form. I was thinking I needed to set a menu state like MS does each time you change forms but I cant see to get it going right. More less I just need a way for it to know which form is open so that it can close it when kicked.
Thanks much... all fixed and simpler than what I was trying.