I am tired. Calculator & FSM class were pretty simple (with the exception of Dump and DoWork at first). Test functions were a bit annoying to copy over and get them to work for my specific functions. Just a lot of extra typing. The InterLeaved queue I had trouble with at the end, but then I reviewed what people had said on the GoogleGroup and so I pushed everything into one queue and did boxing and unboxing when I pulled it out of the queue. It was fun times.
-TZ
Saturday, April 30, 2011
Saturday, April 23, 2011
PA3 - Client feeds the server. The server vomits...
Well, I didn't want to push this back to the last minute, but too much stuff came up at once for me to get the Multiplayer Programming out of the way early. I started out by trying to abide by the message that was send out by one of the students saying that one of the commands used in the demo was depreciated and to use another one. I started out by trying to get that to work, but then it proved to be too difficult for the little amount of time I had left.
I started out by using the the Blocking Demo that was used in class as a base. I then started by serializing and sending the data through an array of ints. The server then received them, deserialized them, and put them into an array, which it then sorted. I then sent back the sorted list and the client received them, deserialized them again, then pushed them back into the node list.
I also ran into the problem of my server outputing garbage values because the buffer it was using to write the messages from was filled with garbage. I fixed this by memset-ing everything in the buffers to 0 when I started, and it ended up being fine.
I started out by using the the Blocking Demo that was used in class as a base. I then started by serializing and sending the data through an array of ints. The server then received them, deserialized them, and put them into an array, which it then sorted. I then sent back the sorted list and the client received them, deserialized them again, then pushed them back into the node list.
I also ran into the problem of my server outputing garbage values because the buffer it was using to write the messages from was filled with garbage. I fixed this by memset-ing everything in the buffers to 0 when I started, and it ended up being fine.
Wednesday, April 6, 2011
PA2 End
Well, that took about as long as I thought it would (not very).
The concept seemed pretty simple in class. Just rearranging the private variables so that they are allocated correctly, mem-copying to the buffer, then mem-copying from the buffer. The only difficulty I had was with the pointers. Ended up being not that bad.
I added in some printf statements that printed the value returned by the sizeof() function, just to be sure it was allocating correctly.
Glad I don't have to worry about this class until next week now. :D
The concept seemed pretty simple in class. Just rearranging the private variables so that they are allocated correctly, mem-copying to the buffer, then mem-copying from the buffer. The only difficulty I had was with the pointers. Ended up being not that bad.
I added in some printf statements that printed the value returned by the sizeof() function, just to be sure it was allocating correctly.
Glad I don't have to worry about this class until next week now. :D
Tuesday, April 5, 2011
PA2 Beginning
So, I thought I'd get a headstart on the homework tonight. It seems easy enough, and I thought I might as well get it out of the way. Downloaded it, extracted it, submitted to perforce, then tried to build it. Ran into an error that I thankfully have seen twice before.
If anyone gets an error after a successful build telling them the .exe won't launch, here's the fix for that:
If anyone gets an error after a successful build telling them the .exe won't launch, here's the fix for that:
- Right click the project in the solution navigation.
- Select "Properties"
- Configuration Properties>Linker>Manifest File>Generate Manifest: (Change to) NO
- Apply changes.
I'll probably post this again if it comes up in the Google Group Discussion.
Sunday, April 3, 2011
PA1 - Environment
Getting the environment set up wasn't that difficult. I have had Perforce, Visual Studio 2010 Ultimate, and XNA installed on my machine because I'm working on a Capstone game for the Windows Phone 7.
The C++ program was a little confusing at first since I tried to just declare a char * and set it's value to a string of characters. I then instead created a char [] and initialized it with a string. Capitalization was just seeing what the int value of the character's were and subtracting them so that they were the indexes of the capital letters instead. Spacewar game went smoothly until I tried to play it (not knowing what the controls were). Then I found the readme.htm and everything was good.
I'd be lying if I said I wasn't intimidated by the class, but I hope to learn and get some really cool stuff that I can use for my future projects and possibly my job.
The C++ program was a little confusing at first since I tried to just declare a char * and set it's value to a string of characters. I then instead created a char [] and initialized it with a string. Capitalization was just seeing what the int value of the character's were and subtracting them so that they were the indexes of the capital letters instead. Spacewar game went smoothly until I tried to play it (not knowing what the controls were). Then I found the readme.htm and everything was good.
I'd be lying if I said I wasn't intimidated by the class, but I hope to learn and get some really cool stuff that I can use for my future projects and possibly my job.
Subscribe to:
Posts (Atom)