Quick Search for:  in language:    
TCPIP,FIRST,Flash,Winsock,Chat,Server,Client,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,149,602. lines
 Jobs: 144. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
 
PDC 2003: Make the connection
Login



Latest Code Ticker for Visual Basic.
Click here to see a screenshot of this code!HistoryWriter Add-In V.1
By Zvonko Kostovski on 9/3

(Screen Shot)

Click here to see a screenshot of this code!Control Winamp
By Dennis Wollentin on 9/3

(Screen Shot)

Fake Virus Version 1.0
By C.J. Laing on 9/3


][String Encoder
By Andron Smth on 9/3


Font Catalog
By Bill Adams on 9/3


professional search
By Ziad Said on 9/3


Click here to see a screenshot of this code!Drew's Meta Tag Generator
By Drew Phillips on 9/3

(Screen Shot)

Fast BruteForce Class
By §e7eN on 9/3


Click here to see a screenshot of this code!Lotus Domino Exploit Scanner
By §e7eN on 9/3

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Winsock Multiplayer Flash Game (Gimp Roulette)

Print
Email
 
winzip icon
Submitted on: 10/10/2002 1:37:35 PM
By: Ninnghizidha 
Level: Advanced
User Rating: By 51 Users
Compatibility:VB 6.0

Users have accessed this code 4339 times.
 

(About the author)
 
     Flash, Winsock TCP/IP, Chat, Server and Client - all in one application - and it's a multiplayer Internet/Network-Game. If you want you can call it: Russian Roulette. How does it work: Sends your local action FIRST to the Winsock-Control and execute it directly from the Winsock-Control, eg. Jump to the right flash-Frame. ---- Key-Features: * Animations in Flash * Control Flash-Frames trough VB * Push variables into a Flash-File * TCP/IP Server and client in one application * Chat- Server/Client * shows, if opponent gone offline * Learn how to use Winsock to control another app * Handshakes at winsock-load and -unload * Background-Sound * Statistics (Percent-Bar) * Ini-File - Support * clean and comented Code. * Includes the .fla-File, to show how it works. ---- Bugs: None (If you find one, i'll update the file) ---- Votes & comments: Yeah, would be cool - just try it and love it - i always wanted to win the contest :> If you don't vote, please drop me a line, that i know, what you think about it. And now: Enjoy and vote :>

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 5 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/10/2002 1:44:20 PM:J. Sperlhofer
voting makes beautiful :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 3:03:18 PM:
Pretty cool submission - seems it only 
needs minor tweaks (like updating score 
at the end of a round instead of the 
beginning of a new one). Missing a 
function to call to ("ClientJoinedOK") 
in the function "actionOK" - commented 
it out. Easily worthy of five planets.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 3:08:38 PM:J. Sperlhofer
"ClientJoinedOK" - eek - damit, i just 
deleteted it bevor uploading - was an 
empty function. Thanks, gonna update it 
now.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 3:33:30 PM:J. Sperlhofer
Updated. :>
Thanks for the report and 
the nice coment :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 4:32:12 PM:Coding Genius
Dude! This is so awesome! I 
mean...cool! The flash animations just 
perfect it! LOL. Soooo funny man! 5 
Globes! I'm still laughing. Great job.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 4:51:31 PM:J. Sperlhofer
thanks :) Some improvements found? :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 5:00:38 PM:Persona non grata
Awesome flash graphix dude :) Really 
looks professional! 5*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 5:06:58 PM:
GREAT WORK !
Thank you very much to 
share this with us ;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 5:35:39 PM:J. Sperlhofer
np, thats why i love psc :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 5:36:10 PM:J. Sperlhofer
don't forge tto vote :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 8:14:29 PM:ShaDoWsToRmEr
Nice, 5 Globes
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/10/2002 8:34:34 PM:
Nice :) You got my 5 starss :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 2:35:56 AM:Amer Khreim
great and very good, I like evry one 
who can understand what is flash
1000 
from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 4:27:58 AM:J. Sperlhofer
Just wanted to know, how to control 
Flash from VB. Thats the result, and 
its really not bad. Thanks to the 
voters :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 6:28:19 AM:
You Could Do The Entire Gui In Flash 
And Use The Fscommand To Allow Them To 
Communicate. Thats What I Do In My 
Flash Gui Programs :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 6:32:27 AM:J. Sperlhofer
I could to it, right - but i didn't 
wanted to do it. Next project, you got 
my word :>  
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 8:01:32 AM:
Hey, This application doesnot work in a 
standalone machine having TCP/IP even 
After running it as a Client. I ran 
Three Instances of the application . 
First one as server.
2nd one as 1st 
Client.
3rd one tried as 2nd Client. 
But it says 'THERE IS NO SERVER RUNNING 
OR ANOTHER WINSOCK-ERROR 
OCCURED.
CONNECTION IS FORCEFULLY 
REJECTED'.
-?????????????
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 8:35:01 AM:J. Sperlhofer
calm down .. why did you start 2 
clients? Its just a 2-player game ^^. 
And it runs on one machine, belive me. 
btw: Ever tried to open 3 ports with 
just 1 Winsock-Control? hehe  .. so "or 
a Winsock-Error occured" is more than 
the right answer :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 8:45:26 AM:Plasma
Nice job, 5 from me!
Make more games 
like this :) 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 9:12:15 AM:J. Sperlhofer
oh, thanks, i'm working on another 
right now... thanks for the globes :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 10:30:21 AM:Max Seim
With VB5, I'm getting an error on a 
couple of things.  ...Round(...) 
and
...Trim(Replace(...)  -- it says: 
Sub or Function not defined.
Maybe 
this doesn't work with VB5.0?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 10:32:03 AM:
Ok,THIS application for two players 
only. Actually, I went according to the 
title "Winsock Multiplayer ....".
Ho 
ho ho..
Any way , I know that client 
Sockets are one-to-one.
 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 11:02:19 AM:J. Sperlhofer
@Max Seim: Oh, sorry - i've corrected 
it, sorry for the 
confusion.
@Nameless:
fine :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 2:36:27 PM:gridrun
AHAHAH ROFL!!! SOO CUTE >:)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 5:52:11 PM:J. Sperlhofer
hehe.. cute ;)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/11/2002 8:52:19 PM:Savage
LEGEND!!!!, man thats good, i really 
like the animations and how the are in 
sync on the host and clint - 5* from 
me, bravo, keep it up
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/12/2002 1:01:02 PM:Paul Mather
You can play as 2 players on 1 PC if 
you use a different "Player Name" on 
the client and server.  5 globes!!  
Nice job!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/12/2002 2:13:10 PM:Ninnghizidha
That was the idea - so i could test it. 
Did i forget to mention that? sorry .. 
:S
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/12/2002 2:14:17 PM:Ninnghizidha
3rd place - thanks for voting, folks - 
and keep on voting :> Thx a lot :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/13/2002 8:31:53 AM:Ninnghizidha
Some Improvements found, some minor 
tweaks? If so, please tell me, i'm 
gonna update it soon..
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/2002 9:44:19 AM:CodeFester
I have wanted to know how the flash 
thing works.  Thanks for sharing.  5 
ballz from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/2002 2:06:29 PM:Ninnghizidha
What "flash-thing"? I'll answer, but 
you have to be more specific. Hey, 
would be fine if you vote - don't just 
say :(
Just ask an more specific 
question, and i'll answer :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/16/2002 8:23:39 AM:Ninnghizidha
c'mon - would be fine if you vote :S  1 
new vote and 1 comment in the last 2 
days .. poor :S *cry*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/17/2002 1:06:00 PM:Phantom Man
Nice Piece Of Code Ninnghizidha!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/17/2002 1:41:54 PM:Ninnghizidha
thanks a lot :) And: Nice C&P with my 
name :>
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/17/2002 9:43:57 PM:James P. Walters
Good program! : )  The first time I 
played I about crapped my pants when 
the other player shot himself.  lol .. 
Good Code!!
-JPW
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/18/2002 5:19:18 PM:Dude2
interesting idea. nice job dude! 5 
globez
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/21/2002 4:14:43 PM:
HI man ive been doing flash for about 
two years and never had the idea of 
controlling flash through vb absolutley 
amazing im going to try some stuff now 
:) thumbs up and ten stars heheh
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 2:15:44 AM:Emperor Frollard
one possible problem I found, played 
locally...havent tried internet yet, 
anyhoo, played for 4 'games' (not 
rounds) and after 4 wins for 'player 1' 
it said 'you - 4, player 2 - 4', its a 
bit confusing not knowing the diff 
between rounds and full games
5 for 
great idea, but I think it should also 
keep track of actual 'game' wins/losses
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 2:55:14 AM:Emperor Frollard
Found me a few bugs while playing for 
15 mins
for an unknown reason his 
action (Shoot) was displayed as debug 
in the chat, and not executed it, so 
neither of us had buttons to click, and 
I saw 
data+[ip]+playername+norotate+010000+1da
ta+[ip]+playername+10000+1 (we got 
stuck).  
Also, The Start New Game 
button is multi-clickable if theres any 
network lag, suggest to make it 
disabled...I started a game 5 times 
before it actually 'started'.
might 
want to look into it
other than 
that, excellent game
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 2:55:53 AM:Emperor Frollard
oops - 
make it disabled *after its 
clicked*
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 2:58:45 AM:Emperor Frollard
I just dont quit - it also ruins the 
effect of the waiting for the animation 
to play if your opponent dies or not, 
because the buttons can be clicked way 
faster than the animation can play, as 
well, it says 'and nothing happened' 
way before the animation 'clicks' to 
show no shot, recommended you delay the 
messages and enables of the 
buttons...
once again excellent game 
- just lookin out to make it excellenter
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 3:30:01 AM:Emperor Frollard
BUT WAIT!!!
DEYers 
MOAH!
hehehe
uh, if the client 
quits, and you send a chat message from 
the server afterwards, it errors you 
out of the program with a 'wrong 
connection state' runtime error.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 3:31:50 AM:Emperor Frollard
EGAD he just wont leave it alone 
:D
it just occurred to me, if you're 
'waiting for opponent', why is your 
opponent sitting there in the 
animation? hehehe
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/22/2002 5:00:23 AM:Ninnghizidha
hehe :D
Thanks for the suggestions - 
i'll wark into every of it tonight and 
update the game :)
woot - thanks for 
the coments :)
Greetz,
Ninn :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/7/2003 8:03:22 AM:Paul E Collingwood
Cool code, great game, & a worthy 
winner!
I have some questions - how 
did you produce the SWF files? What 
tools whould I need to create my 
own?
All the best!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/20/2003 2:19:53 AM:Ninnghizidha
macromedia Flash 5.0
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/21/2003 12:39:39 PM:Tony G
I get missing ABCTL32.OCX.
What is it? 
where is it?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/5/2003 9:09:35 AM:Ninnghizidha
I don't know this .dll - it has nothing 
to do with the game :-)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.