PDA

View Full Version : Online 3Ds Battleship


labbejason
06-02-2009, 07:57 AM
Hey all,

So I think this is the last game I'll be making in Max :P. It's a game of battleship, but you're able to play it with another person online. I've got it setup so you can join from a list of games that others create. Most of it is taken care from a database; I'm no expert with mySQL, so I'm predicting many screw ups! Even though you don't see the chat being used in the screen cap, I can assure you that it works for trash talking!

Here's a screen capture of the game (may have to copy paste this in the task bar):
www.jasonlabbe3d.com/animationfiles/screencaps/battleship_screencapture.avi (http://www.jasonlabbe3d.com/animationfiles/screencaps/battleship_screencapture.avi)

I should be posting the game itself sometime this week or so, just need to do some tweaks in the meantime.

diffx
06-02-2009, 08:15 AM
Hi Jason, good to see another game from you. It looks great, love the particles :D

The chat functionality looks quite useful. Might come in handy for basic communications so you don't need external tools for that?

Oh and by the way, the link is broken, you might want to fix that.

MarcoBrunetta
06-02-2009, 02:35 PM
:applause:

The explosion/water effects was a master touch.

PartiallyFrozen
06-02-2009, 08:02 PM
Hey all,

So I think this is the last game I'll be making in Max :P. It's a game of battleship, but you're able to play it with another person online. I've got it setup so you can join from a list of games that others create. Most of it is taken care from a database; I'm no expert with mySQL, so I'm predicting many screw ups! Even though you don't see the chat being used in the screen cap, I can assure you that it works for trash talking!

Here's a screen capture of the game (may have to copy paste this in the task bar):
www.jasonlabbe3d.com/animationfiles/screencaps/battleship_screencapture.avi (http://www.jasonlabbe3d.com/animationfiles/screencaps/battleship_screencapture.avi)

I should be posting the game itself sometime this week or so, just need to do some tweaks in the meantime.

This game is so cool trust me. Its the greatest thing since FFDs. Just wait till its all decked out with real time particle effects and wave simulations. And with the new max dope viewport rendering.....RIGHT J LABBE??? haha kidding yeah its super fun and amazing that it works over the network.

nom nom nom.
Mark

LoneRobot
06-02-2009, 09:44 PM
tee hee that is some clever shinola Jason, raised a smile to my cynical and loveless chops. nice one.

thatoneguy
06-03-2009, 01:00 AM
I wanted to learn how to make a bump map in Mental Mill so I made a water patch to put under your game board for max 2010.

http://www.mediafire.com/?sharekey=132cdc5b96f43213312dbd5f2bdc5062cc059d6afd803d205be6ba49b5870170

99% of the file size is the noise map. If someone could convert it to a jpg or something smaller we would be in business. :D

Just plug in an HDR sky of your choice and the noise map into the noise slot and you're good to go.

http://i111.photobucket.com/albums/n134/im_thatoneguy/water.jpg

martroyx
06-03-2009, 02:05 AM
he he can't wait to play this with my mom :-)

just kidding (I was just kidding mom... just in case she read this) ,
and we event get particle. I like particle!

nice one :thumbsup:

kees
06-03-2009, 04:25 AM
That is awesome Jason!

You got way to much time on your hands though!! :)

JHN
06-03-2009, 08:53 AM
That is awesome Jason!

You got way to much time on your hands though!! :)

My thoughts exactly, roflol, looks really nice though!

-Johan

MatanH
06-03-2009, 10:14 AM
can't wait to try it,
looks very cool Jason!

PEN
06-03-2009, 01:04 PM
What codec is it? I can't play the AVI.

What is the best place to get a pack of codecs as well that isn't full of viruses?

scrimski
06-03-2009, 01:06 PM
Paul, get the VLC player. No need to install any codec.
http://www.videolan.org/vlc/

JHN
06-03-2009, 01:18 PM
It's the techsmit codec (TSCC).
I personally have ffdShow installed, since it's a codec pack that has most used codecs installed and doesn't require the use of a special player, like VLC or MPC.It plays everything in every player, if you enable the codec in the settings. Heck with the 64 bit of ffdShow I can even make maxpreviews in max 64bit avi!

-Johan

labbejason
06-08-2009, 12:26 AM
Online 3Ds Battleship game (http://www.jasonlabbe3d.com/files/scripts/JDL_Battleship.zip) (Check my site (http://www.jasonlabbe3d.com/scripts.html) for instructions for installing if you don't know MZP files)


hehe thanks guys! Here's the first release of the game. I encrypted it to avoid any massive mess ups, as I noticed people were cheating on the Tetris game I posted before :P. On its very early stages, it was messing up on Max 64bit, so I'm not sure if it'll still screw up. I'm thinking the main problem will be people not being able to connect to the database, but hopefully that won't be a big problem.

By the way, can someone confirm that this is the first online game for Max? That would be pretty neat if it is :P.


diffx: Thanks for the heads up on the dead link. Chat seemed pretty necessary so you knew someone was still on the other end. Also to trash talk when blowing up his ships!

MarcoBrunetta, TzMtN: Thank guys! Hope you enjoy the game.

Partially Frozen: Hey Mark! Soon it will take over Max and be a full game! om nom nom

LoneRobot: Thanks Peter :). You always do inspirational stuff so means alot coming from you.

thatoneguy: I actually owe you a big thanks for the database portion of this. On another thread you explained and provided some info on connecting to a database through maxscript, so thank you! If I do some other iterations of the game, I'll try to add some of that funky water in there!

martroyx: Thanks Martin :). Been working on any new games?

kees, JHN: I know I know, but it was totally worth it :P!

PEN: Someone had the same problem with the codec. It worked with quicktime, though.

PEN
06-08-2009, 12:32 PM
First on line game that I know of for Max J, Would love to see how you are doing it as well.

Fabiomussarela
06-08-2009, 01:14 PM
hahaha, canīt believe it ! awesome as usual :)

It will be really nice to use the realtime lighting and shadows in max with some low poly boats, and if we can see those ships shooting "bullets", "missiles" and stuff :)

Just some ideas :)

Once again, congratulations Jason :)

martroyx
06-08-2009, 06:43 PM
I get 'cannot find dll to connect on database' message anyone else got this ?
it does this in max 2009/2010 ...any idea ?

labbejason
06-09-2009, 07:11 AM
Martin, that message pops up if the doesFileExist fails. Maybe the MZP didn't extract properly. You can always change it to a zip and extract the dll manually to:
\Autodesk\3ds Max 2008\Scripts\JDLtools\Battleship\MySql.Data.dll
I should also note that I only tested this on 2008 32bit.

Well that's good to hear Paul! I'll probably post the file in a bit so anyone can see exactly what's being done.

Thanks Fabio, the missiles sound like a good idea :)

MatanH
06-09-2009, 07:48 AM
When I first opened the game, I got the same error message as martroyx
but the files where extracted correctly so I tried copying them to the 64bit directory
(I have both max 2008 32bit and 64bit installed on a win xp 64bit system)
Now I'm able to open the dialog but when I try creating a game I get this error:
"Error connecting on database. Closing dialog."
And I so wanted to play already :cry:

labbejason
06-09-2009, 06:05 PM
Hmmm I don't get that problem at home, but I do get it at work. Time to put my detective hat on!

martroyx
06-09-2009, 07:56 PM
yes the file are at the correct location but still doesn't work!
do you plan to add single player mode or is it already there ? :-)

Martin

holycause
06-10-2009, 01:43 PM
nice script ;)

martroyx
06-10-2009, 01:51 PM
Why it doesn't work on my system is beyond me, here's my spec in case it help you diagnose this bug :-)

P4-3.7gzh-hyper threading
2gig ram
XP64 bit --- could this be the problem ???

PEN
06-10-2009, 04:35 PM
J, just tried it and I can't get it to work either. Same error as others and it is in the right directory. Suggestions?

holycause
06-10-2009, 04:37 PM
same problem for me :S

PEN
06-10-2009, 04:53 PM
J I have tried just about every thing that I can think of to get it to load. I'm running Max 2009 32 bit on an XP system.

labbejason
06-10-2009, 06:06 PM
I'm going to update it tonight, just a little busy at work at the moment :P

labbejason
06-12-2009, 08:04 AM
Sorry about the delay. I updated the file, download it here (http://www.jasonlabbe3d.com/files/scripts/JDL_Battleship.zip). I'm actually unable to connect to the database from work as it throws a system exception. It seems like it may be a firewall, so you may have to disable it to get it to work. Let me know if this still gives any problems.

PEN
06-12-2009, 12:31 PM
Might have been the case for me as I was at Humber when I tried it. I will try from my office next week.

We should have a round robin tournament.

^Lele^
06-12-2009, 06:18 PM
Ahah, nice idea Jason!
Splendid explosions too! :)

CGTalk Moderation
06-12-2009, 06:18 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.