monoceres Posted December 13, 2008 Share Posted December 13, 2008 (edited) Hi!This is a project I've been working on for quite some time and I'm happy to finally being able to release something that almost works as a complete chess game.Features: - A working PvP mode that detects both Check, Checkmate and Stalemate. - Game engine written completely in C++ for maximum speed. - Clean looking GDI+ Graphics - In game assistance that help you see where you can move your piece. - Animated menus and info screens - High scoresToDo: - Bot (Need more testing of the game play so there is no weird bugs that undermine the bot before I can start working on it) - Rotation of board when players switch turns. - Castling - Better looking info when winning/draw occurs - Optimize for better speed - An icon (have any?)Screenies: Download:autoit_chess.zipIMPORTANT!If you cannot move the pieces or get an subscript error that means that the Game Engine couldn't be initialized, please download the VC++ 2008 Redist to install the libraries necessary for the game to function correctly.Have fun! Edited December 14, 2008 by monoceres xan 1 Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Andreik Posted December 13, 2008 Share Posted December 13, 2008 Just tried, I`m impressed, looks very nice and work fine. I like very much About from your menu. I like the effect of letters to move the mouse. Very good script. Link to comment Share on other sites More sharing options...
monoceres Posted December 13, 2008 Author Share Posted December 13, 2008 Just tried, I`m impressed, looks very nice and work fine.I like very much About from your menu. I like the effect of letters to move the mouse.Very good script. Thanks Andreik, I've spent quite some time on this so your kind words means a lot Yeah, I like the about too, I was actually surprised how well it followed the mouse when I first tried running it. Thought it would look jaggy at first. Also check out High Scores, there's a pretty decent looking fire there Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
James Posted December 13, 2008 Share Posted December 13, 2008 Looks nice!Chess Icons Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
TehWhale Posted December 13, 2008 Share Posted December 13, 2008 Immaculate! Just wow. Can't wait for the next release. :def: ~Immaculate~ 3. free from fault or flaw; free from errors Link to comment Share on other sites More sharing options...
monoceres Posted December 13, 2008 Author Share Posted December 13, 2008 Looks nice!Chess IconsThanks!Unfortunately I cannot use any of those icons since they look like shit when enlarged Immaculate! Just wow. Can't wait for the next release.:def: ~Immaculate~3. free from fault or flaw; free from errorsI'm overwhelmed, and also I've gotten a new word in my vocabulary I'm going to start working on the bot as soon as I get some free time Just be sure to hunt for bugs in the current version Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Robjong Posted December 13, 2008 Share Posted December 13, 2008 (edited) Hey, I have to say it looks realy nice! I think i found a bug, I clicked High scores, and it starts loading the high scores gui (like in your img) but when its almost done (which takes about a full sec.) it starts drawing the background darkgrey from top to bottom and then again with a different grey and so on.... AutoIt 3.2.12.1 Windows XP sp2 Edited December 13, 2008 by Robjong Link to comment Share on other sites More sharing options...
Robjong Posted December 13, 2008 Share Posted December 13, 2008 (edited) Hey again, Ok, so now i tried to play it, just clicked a white pawn and got pwned tongue.gif White Pawn selected C:\PathTo\AutoIt Chess.au3 (975) : ==> Subscript used with non-Array variable.: Return $call[0] Return $call^ ERROR changed to following code (line 969) Func CanPieceMoveThere($PieceIndex, $Column, $Row) $struct = GetStructFromPieces() $call = DllCall($hDll, "int:cdecl", "CheckPieceMove", "ptr", DllStructGetPtr($struct), "int", $PieceIndex, "int", $Column, "int", $Row) Return $call[0] Return False EndFunc ;==>CanPieceMoveThere It fixed the error but i can't play the game, keep getting the '!Move forbidden' message, think its something with the dll or dllcall. The dll is in the right place (unpacked it again to make sure it wasnt corrupt) Edited December 13, 2008 by Robjong Link to comment Share on other sites More sharing options...
Robjong Posted December 13, 2008 Share Posted December 13, 2008 and again, so i tried the following (line 969): Func CanPieceMoveThere($PieceIndex, $Column, $Row) $struct = GetStructFromPieces() $call = DllCall($hDll, "int:cdecl", "CheckPieceMove", "ptr", DllStructGetPtr($struct), "int", $PieceIndex, "int", $Column, "int", $Row) ConsoleWrite("CALL: " & $call & " (" & VarGetType($call) & ")" & @CRLF) If Not IsArray($call) Then Return SetError(1, 0, 0) _ArrayDisplay($call) Return $call[0] EndFunc ;==>CanPieceMoveThere i got the following output in the scite console: White Pawn selected CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) !Move forbidden White Pawn selected CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) CALL: 0 (Int32) !Move forbidden Hope you can fix it, the game looks very prommosing Link to comment Share on other sites More sharing options...
Andreik Posted December 13, 2008 Share Posted December 13, 2008 Read first post again. Bottom of page write IMPORTANT. Link to comment Share on other sites More sharing options...
Andreik Posted December 13, 2008 Share Posted December 13, 2008 @monoceresTry this icons. It`s only white pieces but is easy to make black pieces from white pieces.Hope you like.DOWNLOAD Link to comment Share on other sites More sharing options...
Robjong Posted December 13, 2008 Share Posted December 13, 2008 (edited) (ok, i feel stupid now, overlooked the IMPORTANT part ) Ok , so i installed the VC++ 2008 Redist, no effect, still can't move any pieces. BTW: high scores showed correctly once (out of +- 30 views) Edited December 13, 2008 by Robjong Link to comment Share on other sites More sharing options...
Andreik Posted December 13, 2008 Share Posted December 13, 2008 (ok, i feel stupid now, overlooked the IMPORTANT part )Ok , so i installed the VC++ 2008 Redist, no effect, still can't move any pieces.BTW: high scores showed correctly once (out of +- 30 views)WinXP? Link to comment Share on other sites More sharing options...
ProgAndy Posted December 13, 2008 Share Posted December 13, 2008 Restart PC after install? *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
Robjong Posted December 13, 2008 Share Posted December 13, 2008 WinXP?Yes, i mentioned that in my first post in this topic, WinXP SP2, AutoIt 3.2.12.1Restart PC after install?Yes. Link to comment Share on other sites More sharing options...
monoceres Posted December 13, 2008 Author Share Posted December 13, 2008 Hey, I have to say it looks realy nice! I think i found a bug, I clicked High scores, and it starts loading the high scores gui (like in your img) but when its almost done (which takes about a full sec.) it starts drawing the background darkgrey from top to bottom and then again with a different grey and so on.... AutoIt 3.2.12.1 Windows XP sp2 I know exactly why this is happening so I will fix it in the next version (using an additional buffer). @monoceres Try this icons. It`s only white pieces but is easy to make black pieces from white pieces. Hope you like. DOWNLOAD Thanks, the icon is only instead for the AutoIt logo so I really only need one. WHich one do you think is best? I really like the rook/castle (ok, i feel stupid now, overlooked the IMPORTANT part ) Ok , so i installed the VC++ 2008 Redist, no effect, still can't move any pieces. Can you please run this exe? If it doesn't run something went wrong with the VC++ install. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Andreik Posted December 13, 2008 Share Posted December 13, 2008 Yes, the rook looks good,it would be appropriate. Link to comment Share on other sites More sharing options...
monoceres Posted December 14, 2008 Author Share Posted December 14, 2008 w00t? 928 Downloads? That must be a bug Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Zedna Posted December 14, 2008 Share Posted December 14, 2008 VERY nice looking, very nice coding. Good work monoceres!! Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
sandin Posted December 14, 2008 Share Posted December 14, 2008 Wow, looks great! How long have u been working on this? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now