Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: Joe on December 01, 2005, 07:26:31 pm

Title: [VB] Final Project?
Post by: Joe on December 01, 2005, 07:26:31 pm
Yeah, as you all (probably) know, I'm taking a class on VB. Midquarter is coming up next week, then we have about four weeks until the semester is over, and I start "learning" Java.

Anyhow, naturally, we're doing a final project. I want to end this class with a bang, because stuff that explodes (but not RTEs) is cool. I'm thinking of just showing JBBE, but..

1) OCX files are not distributed to all the computers (they have a weird network-installation of VB), so the RTB, ChannelList, etc, will crash VB upon loading. Running it, however, will work fine (I tried my BNLS thing from school once).
2) It's not illegal, but neither is it ethical, if you look at it from the standpoint of a Blizzard developer.
3) Its not all my code. The majority of it is, but BNCSUtil and a few lines from WiReS, Grok, etc, aren't.

Despite all that, I think I might use it anyhow, because I've devoted a good 20+ hours into it.

What do you think? If you think I shouldn't do this, what do you think I should do instead?
Title: Re: [VB] Final Project?
Post by: Newby on December 01, 2005, 08:04:12 pm
What do you think? If you think I shouldn't do this, what do you think I should do instead?

Do something like what I did with NP Server. Write a server/client with some really neat protocol over TCP. (NOT UDP, YOU ANUS FUCK.)

Of course, I had a huge flaw in NP Server. Mostly thanks to Raihan. The packet header, ID, length, etc, were supposed to be in hexadecimal, but at the time, I sucked at life, and Raihan told me to make it "GG" as a joke, and I did. :X
Title: Re: [VB] Final Project?
Post by: Hdx on December 01, 2005, 08:15:24 pm
Midquarter is coming up next week, then we have about four weeks until the semester is over,
I suggest you actually create a server/client like newby said. Make it have chat, file transfer, etc.. etc.. Something complicated. You have 4 weeks~!
JBBE is not good from what ive seen.
~-~(HDX)~-~
Title: Re: [VB] Final Project?
Post by: Joe on December 01, 2005, 10:07:07 pm
@Hdx: You haven't seen the latest release. Feel free to view the changelog (http://www.javaop.com/~joe/JBBE/changelog.txt), then rejudge.

@Sidoh: Having trouble comprehending the meaning of "final"? I mean end-of-term project, I never said I was quitting VB. Well, I did, but oh well?

EDIT -
Upon re-reading my comment to Sidoh, it looks like a flame. It wasn't intended that way, so eh?
Title: Re: [VB] Final Project?
Post by: iago on December 02, 2005, 08:47:39 am
I wrote a Pacman game for my final project in VB.  It was so totally elite, but I don't have it anymore.  *sniffle*
Title: Re: [VB] Final Project?
Post by: AntiVirus on December 02, 2005, 12:12:48 pm
Yeah!! Make a game!  That would be awesome!
Title: Re: [VB] Final Project?
Post by: Joe on December 02, 2005, 12:28:35 pm
Pacman would be fun and easy, but time consuming and not for the lazy. I may do it, but I think JBBE might be better. =/.
Title: Re: [VB] Final Project?
Post by: Joe on December 02, 2005, 10:16:01 pm
I'm making a chat thingy. Server will be in Java, for.. no reason, and client will be in Visual Basic. I might write a VC++ backbone DLL if I get bored.
Title: Re: [VB] Final Project?
Post by: Newby on December 03, 2005, 01:10:12 am
I'm making a chat thingy. Server will be in Java, for.. no reason, and client will be in Visual Basic. I might write a VC++ backbone DLL if I get bored.

Write the server and client in VB, if you're in a VB class.

See the relation?
Title: Re: [VB] Final Project?
Post by: Joe on December 03, 2005, 01:20:49 am
We're doing Java next semester anyhow. Besides, you're too late.

I'm finished, and I support open source. (http://www.javaop.com/~joe/VBFinal.zip)

Yes, my name is William.
Title: Re: [VB] Final Project?
Post by: Newby on December 03, 2005, 01:21:32 pm
We're doing Java next semester anyhow. Besides, you're too late.

I'm finished, and I support open source. (http://www.javaop.com/~joe/VBFinal.zip)

Yes, my name is William.

Ehh... I'd figure you'd have to code the project in VB during school, seeing as how a compiler for VB is $$$++, and most kids can't afford to blow money on it, especially at your grade level. :p

EDIT -- I fail to see where this shows 9 weeks of programming skills. Maybe the public school system sucks, but if it doesn't, this will net you a failing grade.

Again, listen:

Write a chat client and server. Both in VB. Make it a fairly advanced protocol, and involve some parsing. Add some packets. This sucks. This really sucks.

Look at NP Server... that's something that doesn't suck. Well, it's just above borderline suck, but it beats this. At least it has packets && parsing.

Also, writing the server in Java will indicate to the teacher you don't know VB well, and regardless of what language you write the server in, if it isn't VB, the teacher will frown upon this. Going the extra mile should be done within the boundaries. If you write it in VB, he'll be impressed. If you write it in Java, he'll assume you have programming knowledge in Java, and you aren't very good in VB, and he will look down upon that.
Title: Re: [VB] Final Project?
Post by: Warrior on December 03, 2005, 02:01:46 pm
I'd be impressed if someone wrote a server in another language while writing a fairly good client in VB. Listen, you have four weeks. Add some packets, a userlist, etc. Really knock his socks off.
Title: Re: [VB] Final Project?
Post by: Newby on December 03, 2005, 02:28:18 pm
I'd be impressed if someone wrote a server in another language while writing a fairly good client in VB. Listen, you have four weeks. Add some packets, a userlist, etc. Really knock his socks off.

But if it's a class for VB, writing a server in another language would indicate knowledge that you don't know VB very well, or that you don't like VB, or some other negatory impact on his impression of you.
Title: Re: [VB] Final Project?
Post by: Warrior on December 03, 2005, 02:59:24 pm
I wouldn't think the entire thing would have to be in VB. You do it in Java you could post cross platform-ness and and all you'd need to do to keep up with the point of the final is to make a kickass client in VB to show him you know what you're doing. Writing a server in VB is messy and you can't do things like multithreading and you can't run it (easily) as a service.

If I was the teacher I'd mark up points on a Java server especially if it's efficient and nicely object oriented while still keeping the VB client in mind which does show off impressive organizational and logic skills. Be sure to provide nice commenting and not to write stupid code (API Calls versus other stupid workarounds).

Title: Re: [VB] Final Project?
Post by: Joe on December 03, 2005, 05:26:50 pm
1) The teacher is not a guy. =p

2) Over the 18 weeks (not nine, newby), I've shown many times that (as little as I like to blow my own horn), I have at least five times as much VB knoledge as anyone else in that class. Proving my skill is not a problem. The tictactoe project we started thursday and had a week to do was turned in flawless friday morning.

3) I suppose I'll have to add a protocol to it, because the way this is done, you can only have one-word (defined by spaces) names. Hm, w3rd.
Title: Re: [VB] Final Project?
Post by: MyndFyre on December 03, 2005, 05:38:58 pm
1) The teacher is not a guy. =p
Is she hot?!?
Title: Re: [VB] Final Project?
Post by: Newby on December 03, 2005, 05:59:09 pm
1) The teacher is not a guy. =p
Is she hot?!?

Haha, sleep with her for a good grade! :P
Title: Re: [VB] Final Project?
Post by: Joe on December 03, 2005, 08:09:45 pm
She's my first programming teacher, not my first sex teacher. Get it right, damnit! Yes, pun intended.

Binary protocol = implemented. No longer using any timers in Protocol.java, so I cut that down by about 255 timers. =)

Adding listview in client, the reuploading.
Title: Re: [VB] Final Project?
Post by: rabbit on December 03, 2005, 08:17:09 pm
Tic-Tac-Toe takes about 20 minutes to make :\
Title: Re: [VB] Final Project?
Post by: Joe on December 03, 2005, 08:53:06 pm
Reuploaded. Me and Warrior are talking on joex86.no-ip.org:99

EDIT -
Took me about a half-hour, Rabbit.
Title: Re: [VB] Final Project?
Post by: wires on December 03, 2005, 11:23:00 pm
Of course, I had a huge flaw in NP Server. Mostly thanks to Raihan. The packet header, ID, length, etc, were supposed to be in hexadecimal, but at the time, I sucked at life, and Raihan told me to make it "GG" as a joke, and I did. :X
LOL!
Title: Re: [VB] Final Project?
Post by: Joe on December 04, 2005, 10:35:13 pm
http://www.javaop.com/~joe/VBFinal.zip

Ton's of changes. Now named RabbiChat, and using port 8999. Kthxbai.

Server is running at www.javaop.com:8999 (on pie), if you wanna pop in.

EDIT -
I'm RC-Test. kthx.
Title: Re: [VB] Final Project?
Post by: Sidoh on December 04, 2005, 10:45:22 pm
http://www.javaop.com/~joe/VBFinal.zip

Ton's of changes. Now named RabbiChat, and using port 8999. Kthxbai.

Server is running at www.javaop.com:8999 (on pie), if you wanna pop in.

EDIT -
I'm RC-Test. kthx.

Kind of annoying that you can't push a button or something to reconnect/re-enter connection information if the initial attempt fails.

Also, lock the RTB... :P

One last thing... when I tried to close it, I got RTE 40006 - Wrong protocol or connection state for the requested transaction or request.  Fix.  :P
Title: Re: [VB] Final Project?
Post by: rabbit on December 04, 2005, 10:51:24 pm
[10:56:54 PM] rabbit has connected.
[10:56:54 PM] rabbit is logged on.
[10:56:54 PM] rabbit is logged on.
[10:56:54 PM] rabbit is logged on.

Can you say....owned?

[edit]
Turned Joe's client into a bomber to flood his own server.  Bad Joe.

[edit]
Found a bug, I got a short packet.
0000:  00                                                ................
Title: Re: [VB] Final Project?
Post by: Joe on December 04, 2005, 11:14:15 pm
Yeah, because you killed my client from the inside out. =p

Quote
One last thing... when I tried to close it, I got RTE 40006 - Wrong protocol or connection state for the requested transaction or request.  Fix.  Tongue
Fixed already.

Quote
Also, lock the RTB... Tongue
Oops.

@Reconnect:
Quote
[10:17:20 PM] RabbiChat Client by William LaFrance
[10:17:20 PM] Computer Programming 1 - Final Project
[10:17:20 PM] Connecting..
[10:17:20 PM] Connected!
[10:17:21 PM] You are position 3 in the array of client sockets.
[10:17:21 PM] joe has connected.
[10:17:22 PM] Reconnecting..
[10:17:23 PM] Connected!
[10:17:23 PM] You are position 4 in the array of client sockets.
[10:17:23 PM] joe has connected.
[10:17:28 PM] Reconnecting..
[10:17:28 PM] Connected!
[10:17:29 PM] You are position 5 in the array of client sockets.
[10:17:29 PM] joe has connected.
New command: /reconnect

EDIT -
Reuploaded.
Title: Re: [VB] Final Project?
Post by: Newby on December 05, 2005, 12:32:24 am
(20:25:20) Billy: how was your shit
(20:30:48) PeeOnMyPC: Painful.
(20:30:58) Billy: nice
(20:31:16) Billy: too much pizza?
(20:31:20) Billy: ypu ate like 20 slices

Err, newby@impaler:~/Downloads/VBFinal/VBFinal/ChatClient$ wine prjRabbiChatClient.exe
fixme:ole:CoRegisterMessageFilter stub
fixme:richedit:RichEditANSIWndProc EM_SETOLECALLBACK: stub
fixme:richedit:RichEditANSIWndProc EM_GETOLEINTERFACE 0x403a4f60: stub
fixme:richedit:RichEditANSIWndProc EM_EXLIMITTEXT: stub
fixme:richedit:RichEditANSIWndProc EM_SETTARGETDEVICE: stub
fixme:richedit:RichEditANSIWndProc WM_SETFONT: stub
fixme:richedit:RichEditANSIWndProc WM_STYLECHANGING: stub
fixme:richedit:RichEditANSIWndProc WM_STYLECHANGED: stub
fixme:richedit:ME_StreamOutFlush Invalid returned written size *pcb: 0xdeadbeef (-559038737) instead of 0
fixme:richedit:RichEditANSIWndProc EM_SCROLLCARET: stub
fixme:richedit:IRichEditOle_fnInPlaceDeactivate stub 0x403a5520
Title: Re: [VB] Final Project?
Post by: MyndFyre on December 05, 2005, 11:51:37 am
0xdeadbeef (-559038737) instead of 0
Lmao, WINE sucks.  :P  It can't even run Notepad.

Quote
[10:17:20 PM] RabbiChat Client by William LaFrance
[10:17:20 PM] Computer Programming 1 - Final Project
[10:17:20 PM] Connecting..
[10:17:20 PM] Connected!
[10:17:21 PM] You are position 3 in the array of client sockets.
[10:17:21 PM] joe has connected.
[10:17:22 PM] Reconnecting..
[10:17:23 PM] Connected!
[10:17:23 PM] You are position 4 in the array of client sockets.
[10:17:23 PM] joe has connected.
[10:17:28 PM] Reconnecting..
[10:17:28 PM] Connected!
[10:17:29 PM] You are position 5 in the array of client sockets.
[10:17:29 PM] joe has connected.
Why are you 1.) telling the client where in the client socket set he is, and 2.) why would you increment each time you disconnect?

I hope you're re-creating sockets after they've been closed....

Actually I hope you're closing sockets!
Title: Re: [VB] Final Project?
Post by: Joe on December 06, 2005, 12:02:57 pm
I wasn't at the time, but I am now.

EDIT -
Haha, VB rocks!