seanybob Posted July 16, 2010 Share Posted July 16, 2010 A partner and I have just finished coding several multiplayer games using a framework we developed. To highlight our new products, we specifically created a Tic-Tac-Toe mod using that framework that we are releasing for free to the McCode community. Screenshot: Download: Tic-Tac-Toe.zip Demo: Demo Site *Note - You'll need two people (or two browsers logged into two different accounts) to experience much in the demo. Our other, paid products: Multiplayer Mancala Multiplayer Connect 4 Multiplayer Backgammon Multiplayer Battleship Multiplayer Othello Multiplayer Checkers Multiplayer Minesweeper All available at: [mp]198[/mp] Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 16, 2010 Share Posted July 16, 2010 Awesome! Great work! Quote Link to comment Share on other sites More sharing options...
Uridium Posted July 17, 2010 Share Posted July 17, 2010 Nice work seany :) Quote Link to comment Share on other sites More sharing options...
DeaTH_RideR Posted July 17, 2010 Share Posted July 17, 2010 works great , thank you for this :thumbup: Quote Link to comment Share on other sites More sharing options...
chicka Posted July 17, 2010 Share Posted July 17, 2010 Very impressive SB. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 18, 2010 Author Share Posted July 18, 2010 There was a minor ascetic bug in this mod (as a result of an overzealous copy and paste session). It could not be exploited. The files above have been updated, so if you download the files after this post, it will already be fixed. If you downloaded the files before this post, to fix: 1) Open up ttt_play.php 2) Find $db->query("INSERT INTO man_chat (man_room, timestamp, txt) VALUES($roomid, unix_timestamp(), '$txt')"); 3) Replace with $db->query("INSERT INTO ttt_chat (ttt_room, timestamp, txt) VALUES($roomid, unix_timestamp(), '$txt')"); Sorry about that. ;) Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 18, 2010 Share Posted July 18, 2010 Could you put this into one single file? Quote Link to comment Share on other sites More sharing options...
Dominion Posted July 18, 2010 Share Posted July 18, 2010 it is in one zip file Download: Tic-Tac-Toe.zip nice mod even made me think about buying some of your paid game very nice work +1 (you know if that was still on here) Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 18, 2010 Share Posted July 18, 2010 I mean all in one PHP file. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 21, 2010 Author Share Posted July 21, 2010 I mean all in one PHP file. Yes, of course. However, we choose not to. It's useful having the framework in separate files, so to create a new game we just have to create 3 new files. Oh, and the config file could be jammed into another file. The func file doesn't really have to be separate from the play file. Etc, etc. However, it seems much more readable and easier to navigate that way (as well as making more logical sense in my mind), so that is the way we'll keep it. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 21, 2010 Author Share Posted July 21, 2010 Also, just a note, we've cut the prices in half for the paid games. Check out the new listing below: [mp]198[/mp] Quote Link to comment Share on other sites More sharing options...
Dayo Posted July 21, 2010 Share Posted July 21, 2010 looks good! Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 26, 2010 Share Posted July 26, 2010 Seany Baby! Could you help me please? I have converted this to use with v1/lite but I have an error. My ttt_play.php file.. [expander] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. [/expander] But whenever I play it I get.. "1" printed on the screen. If you need me to post any other files I will... Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 26, 2010 Share Posted July 26, 2010 And Chat doesn't work. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 26, 2010 Author Share Posted July 26, 2010 And Chat doesn't work. This mod was not made for version 1, that's why. You must have converted it wrong. It'd be fairly difficult to convert mate - I honestly wouldn't bother. You'd have to go through every file and restructure the queries, you'd have to change the global variables in all the functions from $db to $c, you'd have to change the headers in the files from the mcv2 to mcv1, and that's just what I remember off the top of my head. There's a reason I didn't make a v1 version of this mate. I do wish you the best of luck though if you continue trying to convert it, but I really want no part in that - seems liike a waste of time to me. Edit: As for the error you were getting in that file you posted, I have no way of knowing. I have no idea what's in your mysql.php file. However... it looks like perhaps a connection to the database isn't being established properly on that page, for one reason or another. Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 27, 2010 Share Posted July 27, 2010 Cheers. Got it working. ;) Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 27, 2010 Share Posted July 27, 2010 Could you make it so if they have had there first go they can only surrender. If they surrender the money goes to the other player. This is so they don't leave the table because there losing. :) Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 27, 2010 Share Posted July 27, 2010 Hall of fame doesn't work for V2, V1 or lite. You didn't give us an SQL of ttt_ranks. $cnt=mysql_query("SELECT * FROM {$gpre}ranks ORDER BY {$by} {$order}"); Quote Link to comment Share on other sites More sharing options...
Paddy Posted July 27, 2010 Share Posted July 27, 2010 hall of fame is only included in the other games which can be purchased, since this is free its limited if you know what i mean. Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 28, 2010 Author Share Posted July 28, 2010 Paddy is completely correct. The hall of fame is only functional for the other paid games, not this free game. As for the surrender option - the person auto-loses if the game has started and they leave the table (which I guess is what you're looking for?). For those who really like this mod, you should totally be checking out the other games - they are, quite simply, a lot better. I'm always willing to haggle a little on price. Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 28, 2010 Share Posted July 28, 2010 Ah, ok. If I buy another game will I get the hall of fame for tic-tac-toe? Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 28, 2010 Author Share Posted July 28, 2010 Ah, ok. If I buy another game will I get the hall of fame for tic-tac-toe? Hehe :P You're really intent on getting that Hall of Fame working for Tic-Tac-Toe. I'd have to recode portions of Tic-Tac-Toe to make it fully compatible with the hall of fame... and... I really don't want to. I'll toss the idea to my partner though, see if he wants to do it. I just hate the idea of making a hall of fame for a "solved" game like Tic-Tac-Toe that people can ensure they always win or tie on. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted July 28, 2010 Share Posted July 28, 2010 Interesting, got to admit most of your modifications bring a certain level of uniqueness to MCC so kudos for that. :) Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted July 29, 2010 Share Posted July 29, 2010 Why did you make it to reload every 5 seconds? I've changed it to 1 second or does that use lots of bandwidth? Quote Link to comment Share on other sites More sharing options...
Danny696 Posted July 29, 2010 Share Posted July 29, 2010 That will use quite abit of bandwidth :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.