Vortex Level 1 Tutorial
Posted March 6th, 2008 by arcanum
Like i say in the video - there's a whole bunch of people who come to our community and dont quite know how to get started - well i made it a bit easier to understand the first level of vortex.
Feel free to comment on anything i'm missing!
Click "read more" to look at the video.
- arcanum's blog
- Login or register to post comments
Can anyone help me?
I managed to complete this challenge, but I've deleted the source code of the program I used to do it (still got the executable, so I didn't lose everything).
But I'm getting sidetracked. I've tried writing my own version of this for use on my private network, as a challenge for a few mates to try and complete. However, I'm not to sure whether I have a problem with my server, client or both.
EDIT: Don't worry. Once again I proved I can fix my own problems before you lot get back on the site ;-)
Big Problem!
I know this is bound to be a stupid question. I'm using windows (I can feel the flames now) with the Pelles C compiler.
When I run the program I recv() the four integers, add them together and send() the result back to vortex.
BUT when I recieve the login details I just get a bit of jiberish (similar to what you get after telneting to port 5842)
I had to make a few changes to the code to get the program to compile:
a,b,c,d are char instead of int.
char answer(1024) is just char answer now.
does answer Have to have the 1024 thing? Or is it another stupid little error somewhere?
Thanks in advance
Fixed it!
Scratch that, had a brainwave this morning. Had to change several things though, I'm not sure if it's because I'm using windows or Pelles C (or a combination of both).
a,b,c,d were changed back to int, but to do so I had to change my recv() function to:
recv(sock,(char *)&a,sizeof (unsigned int),0);
note the (char *) &a, without it the program just wouldn't compile.
Oh, and the answer was used as char answer[1024]; which after a bit of editing I managed to get to work.
So now I've finally finished! Hurrah!
Before I forget, thanks to whoever made this challenge, I loved it!
HALP!
please help me! im stuck cuz i cant get into the server. whenever i try to compile it says that the line
struct sockaddr_in s;
is wrong and it wont let me run the compiled code!
thanks in advance!
Clear and detailed
Clear and detailed video.
Good job.
byte order
When receiving the four integers they should be converted from network byte order to host byte order, then summed up, then the sum converted to network byte order and sent. Correct me if I'm wrong. Anyways good job.
Errors?
I reviewed the video over and over checking my source and it matches the video exactly but I recieve different numbers every time I run always wrong
example:
a = 456988206, b = -233626044, c = 1488772902, d = 233803358
Sum: 1945938422
bzzzt, wrong
?
I use Mac OS X 10.4.11
Thanks in Advance for any help!
You said "I use Mac OS X 10.4.11"
=> Look at the note...