I'll try playing with those a bit more then, maybe it can fix what i have left... all i have to say to you will, is if you attempt byte arrays... enjoy the editors :lol:
the in-game editors...
sending data back and forth is the hardest part of the entire thing... they make me want everyone else to die :lol: ... sorry... aqua teen hunger force quote... yeah but the editors are a pain in the ass. get them working and you should be able to fix the other errors pretty easily.
Binary packets are a pain in the butt, yes, but it is going to slow you down a LOT if you don't use it in the long run. Think, now, what you plan to accomplish. If you expect to get 50+ players on at once, then you should use binary packets to prevent lag since you can decrease the size of packet information (not packets) by quite a lot (300%-800% typically about is what I found when looking at Kronia's code, which uses Mirage). If you do that, though, you will also want to add in packet buffering. Keep in mind TCP/IP packets have an overhead of about 55 bytes. If you send data as fast as you can, you will kill yourself with overhead bandwidth. Nagling is enabled in Winsock Control by default (unable to turn it off, too), which is a very poor way to buffer and NOT recommended for games (can I elaborate if you wish). How long you buffer is up to you - flush the buffer after every server loop by default in vbGORE, just since the extra bandwidth isn't needed until theres a lot more connections so it is best to give the speed for the cost of bandwidth. It is very easy to extend the time you buffer, though.
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
It worries me that binary packets has such a big importance. Im planning on having around 50 players in my game hopefully. I've done pretty much all optimizations that could be done from my experience, but I dont know if I can take on binary packets thought. Cause after you converted all the packets, and hope for it to work. It wont no matter what you did. And then I will probably end up with a non working source, and about 2 weeks wasted time...
stop doing basic development of your game, copy/paste and/or zip up your game (for a backup), then just do byte arrays on the one that you still have. i was actually surprised how easy they appeared to be... and then of course i got errors with all the stupid editors... but it definitely makes a noticeable difference
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
To construct byte arrays is the easy part. Since all you need to do is spend many hours and follow how Verrigan did it. But to get it working is the hard part. Im not sure if I wanna spend the time required on it, when it might not work.