ill have to dig the code out and have a look
Printable View
ill have to dig the code out and have a look
Ok, figured out the initialization problem... Appears that global variables are initialized to 0, while local variables are not, and since m_module was never explicitly set to 0, it never got set to 0 in my own code. Fixed that, then ran into another init problem, which also stemmed from un-initialized variables, which I also fixed.
Now I can get a server running... however, I can stop it :D. The call to dsClose simply hangs, dont know whats happening here... will take some more looking =).
Z.
Ok, I've got the server running, and I can get a client to sort of connect =). It logs on, but immediately logs off, havent figured out why yet =).
Im thinking about converting the server to run on scripts, to make debugging a bit easier on me, but we shall see =).
Z.
hmmmm, seems to be running a bit crap :(
it seemed to work when i last ran it. i never tested it much on other computers though :s
Figured out WHY the server wont stop... now need to figure out how to fix it =).
Z.
Had to do with a socket being locked during a call to a blocking function... Essentially, the server would exit when someone tried to connect. Tested this, and found that it pretty much crashes the server. I simply removed the socket locking around the call, and things run smoothly now =). Now its time to figure out this login stuff =).
Z.
Im gonna see if I cant rip the I/O stuff from the DPlay8 Maze Server sample, and use that for our server console. If youve got the DX8 SDK, run that sample, and youll see what I mean. Or I could post a screen shot, let me know =).
I think Ill use the same console as the game engine uses, maybe stick it in a DLL for more portable use, dunno =).
However, all of the above implies that I have the networking under control =). Couple of small changes need to be made, but I think ive got the hang of it now =).
I was gonna say something else, but I forgot what it was at the moment =).
Z.
I have looked at DPlay and would run with that myself. It soooooo infinitly better than mine. Ive got a cd with the Multiplayer Game Programming Tutorials on it. do u want me to upload it to my site ? it uses direct play 8 ?
The only thing about DPlay8 is that I think it would be major overkill for what Im going to use it for, as well as it wont be able to run under lunix, which is what my server/router runs.Quote:
Originally posted by PsyVision
I have looked at DPlay and would run with that myself. It soooooo infinitly better than mine. Ive got a cd with the Multiplayer Game Programming Tutorials on it. do u want me to upload it to my site ? it uses direct play 8 ?
Z.
I might have us online by tonight =). Jsut doing a quick cleanup on mymail message system right now. Moved the code from the Core module into the game Module, since that is where I want to keep the networking stuff (I dont want the Core module relying on anything else). Had to modify my timed mail delievery system, changed the message queue to a message prority queue, sorted by time. If the next message to be delievered is greater then the current time, it remains on the queue, and the queue is considered empty. Pretty slick, I think =).
Now all I need to do is plug in the network code, and implement the code to send a message to the server.
Z.
Alright guys, I'm sorry about this whole absence thing, I'd like you to know that it stops after I get Gentoo up and running =).
Wow, Sas is inventing light speed travel =P.
Right now im trying to figure out the best way of letting the server know on which client a physical mailbox resides. Probably create a couple of new messages...
Z.
That I am ;) :p
Okay... on my side I am trying to find a fast Gentoo mirror... who knows what else is going on in my mind... =)
Ok, Ive got the game to connect to a server. Something is going wrong, however, but ill figure it out =).
Z.
Sonding good there Zaei!
Figured out the problem... virtual functions =).
Z.
Ok, ive got the server working, and the client working as well. New console functions, name(string) to set your playername, and connect(string addr) to connect to a server. Will be adding another connect function, connect(string addr, string pass) at some point. The addr string is the standard "127.0.0.1:5600", so you can specify port. Might also add in the option to specify full addresses: "tow://user:[email protected]:5600", let me know =).
Need to add some more things in... on join-game, the server will send the map name to the client. At some point, ill do a verification, and if the map doesnt exist, the client will notify the server, and either download it, or disconnect.
Also have the mail functionality implemented, though I dont know if it works yet, havent tested that out yet. For now, the server is acting as a mail router, recieving messages from the clients, and sending them back to all connected clients. The clients then stamp the raw messages and send them to the local PostOffice objects to deliever. The game is then simulated on each client separately. From the readings that I have done, this is the standard method of doing things =).
Z.
Again Zaei, Sounds Great.
For the support for tow:// things, make it so when the game starts if the command line is that or something like that it then stores the data and follows thru the normal steps to join a game (albeit automated and using the stored data).
Thats probably what I will do, Psy, though if the game is run with that as the command line, I can just send it straight on through to the console.
Z.
The packets are flying think and fast =). The server now sends the current map to the clients when they all signal ready. New console commands, say(string), whisper(string), for global messaging and whispering.
Z.
Sounds good, using my module ?
Yup =).
Z.
Ok, I need to do some thread proofing, and a couple of other things... moving along, though =).
Z.
Need to move some code around, going multi-threaded =). Wrote up a nifty thread object a few minutes ago, and a mutex object earlier, so we wills ee where this takes me =).
Basically, I want to move some stuff over into other threads so they canw ork while im rendering. Things like data loading, so I can print out live log data, etc, etc.
Z.
Alrighty, that time has again arrived, to clean up my code, and rebuild the engine =). I need to finally finalize object management and such, because at the moment, its driving me nuts =).
Z.
Oh, and the source is 25,109 lines of code in the base engine =).
Z.
Yeah, 25k :cool:
I can't wait until it comes time for the scripting ^_^
lol, just a few :):)
what code line counter do u have btw ? i tried to find a decent one that worked for vs7 but couldnt get one.
Psy: Project Line Counter, for vc6 (dunno if there is a 7 version).
Working on thread proofing everything... =)
Z.
Performance boost? :D
http://www.vbforums.com/attachment.p...postid=1366562
Z.
Alright, basically what I am doing now is looking over the components that I have, and thread proofing them, and slowly integrating the engine basics back into the system. As of right now, Ive got the console up and running, taking input, executing commands, etc. Having fun playing with these threads, currently getting ~44,000 updates per second (only timing the logic stuff for now, might add a second timer for actual fps) with the UI junk. That will drop quite quickly once I start getting some mutex clashing between the updating and rendering threads. Also had a small problem with my thread termination, but that has been sorted, and things are running smoothly =).
Z.
heh, nice fps there lol.
sounds good.
i tried that but it never seemed to install properly.
Hmmm? What were you installing? Sorry if its obvious, my brain has stopped working for the evening =).Quote:
Originally posted by PsyVision
]i tried that but it never seemed to install properly.
Z.
Project Line Counter
Ah =).
Z.
Spent the day tracking down memory leaks, making more, and fixing them =). Have caught all of them so far, so Im fairly happy at the moment =).
Z.
So thats what you do in your spare time :eek:
Today I spent doing so much work it wasn't funny =(
Yup... sounds like fun, eh? =)Quote:
Originally posted by Sastraxi
So thats what you do in your spare time :eek:
Today I spent doing so much work it wasn't funny =(
LAN party tomorrow..the day after, so nothing will be getting done except thinking, maybe some more stuff sunday =)
Z.
Hello, everyone.
I am sick. I've got mononucleosis. It's terrible. I've been sick for nearly 3 weeks and I've still got high temperature and an EXTREMELY soar throat...throaght...how is it written?
Nevertheless, I'm still here. If anybody wants me, I'm to be found sometimes at the MSN or you can notify me by email..I'm sure you all got it. I'm not really updated here, but I'd be happy to know how the progress are coming along.
Good night and good bye! See You
Well if I can remember any of my medical knowledge mono goes away in about a month... and you don't have to worry about getting it twice ;)... so tough it out until then! :)
And it's sore throat if you wanted to know =)