Kent747 Posted March 28, 2003 Share Posted March 28, 2003 I worked up a quick VB example that could help the Dev team a lot... As of know i understand you are sending the packets as a string, through UDP.... I worked up an example of how to send an Array of Doubles through Winsock, but this method would even work for cutom Types... This would help you all in several ways.... 1. you wouldn't need to waste cpu cycles putting the data into a string, or breaking the string back into data 2. You can cut down the amount of data to send... i.e. "1234.23432123" is 13 bytes, as opposed to just sending the 8 bytes that a double takes up... also including the ,'s would add an extra byte... All in all you could save a lot of space if you could use this method to send everything using the smallest amount of memory possible.... If someone on the DevTeam (if you are the net coder or otherwise)... would send me a PM with your e-mail address i can send you the project as an example.... because I don't have any web hosting services up right now.... Kent Link to comment
Kent747 Posted March 28, 2003 Author Share Posted March 28, 2003 gtatari is going to host the file for me... a zip file containing the project, and a text file for the source.... it was kinda a quickie... but i think the idea is there.. The concept that i use should be tweakable (if thats a word) to the point that you can change a lot of stuff but it should still work... possibly even copy it to a more compact string and still allow you to use Zlib compression on it... if you have any questions feel free to PM me.. Kent Link to comment
CroxyBoy Posted March 28, 2003 Share Posted March 28, 2003 I am assuming this method uses the CopyMemory api function to copy the data structures raw data in to a Byte array and then sends it, well thats how i would do it I would be interested to see the source code as well. Link to comment
Gtatari Posted March 29, 2003 Share Posted March 29, 2003 Here is the VB app (Hosted for Kent747) http://www.angelfire.com/games4/rctcool_stuff/gtamta/netcode.zip And here is a brief look at his source: http://www.angelfire.com/games4/rctcool_stuff/gtamta/NetCodeSource.txt Link to comment
Guest Posted April 3, 2003 Share Posted April 3, 2003 Isnt VB a little slow for game/network programming ? VB has to load each funtion from libary's and that takes some time up too... while other languages such as C++ or pascal has the funtions embedded... Link to comment
-=WeSsW@Re=- Posted April 25, 2003 Share Posted April 25, 2003 What does "Ubound" mean? Link to comment
Kent747 Posted April 27, 2003 Author Share Posted April 27, 2003 ubound is the upper bound of the array.. (the size) Link to comment
Recommended Posts