Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: feeble on November 26, 2006, 07:36:17 PM

Title: SMFChess
Post by: feeble on November 26, 2006, 07:36:17 PM
Ill update this later with more info, but i would probably just read the last couple of posts in this thread for more info.
Just thought i should get rid of the dated info in this post.

Essentially at this point in time, this Mod adds Drag-Drop PHP Chess to your forums. You can challenge and have a game of Chess with your mates and forum users.

If you have any suggestions, advice or layout ideas. I would love to hear.

Languages:
Language is nearly done, so what I'm going to ask now is that if you would like a translation.
The minimum I need at the moment is this document to be translated into the language that you require and also to specify if you require it in utf-8 variety.
Download the file here (http://www.leaderless.net/SMFChess%20Translate.txt)
This document contains all the text, located outside of the Chess Language file.

If you can either PM or email ([email protected]) the translated document to me,  and also specify the language and if utf-8 is required, would be greatly appreciated.

Received Languages
German - translated by flame baiter
Thai UTF-8 - translated by Pongsak
Croatian UTF-8 - translated by Senad
Portuguese - translated by Bruno
Turkish - translated by PLAYBOY
French - translated by Fred


Package is for 1.1.2-3
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://custom.simplemachines.org/mods/index.php?mod=1102)
Preview Here (http://crossfire.org/covenant/index.php?action=chess) or Here (http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39&action=chess) - Thanks to David and weightman
Manual Theme Changes (http://www.leaderless.net/PackageParser/index.php?show=theme)

Languages: If you do not see your language here, please follow this link (http://www.simplemachines.org/community/index.php?topic=129749.msg827672#msg827672)
NOTE: LANGUAGE FILES ARE INCOMPLETE AND NOT RECOMMENDED TO BE TRANSLATED AS OF YET
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop your errors in your forum log regarding missing languages.
Out of date and should not be used
German (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_german.zip)
Thai UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_thai_utf-8.zip)
Croatian UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_croatian_utf-8.zip)
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip)
Turkish (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_turkish.zip)
French (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_french.zip)


Have TP Installed?
A SMFChess Block has been put together by Lord Anubis (http://www.simplemachines.org/community/index.php?action=profile;u=66788)
Download Images and Instructions (http://www.leaderless.net/tp-downloads/chessblock.zip)
Original Post can be found here (http://www.simplemachines.org/community/index.php?topic=129749.msg1373650#msg1373650)
Preview:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2Fchessblockprev.jpg&hash=1cac85de5696a32d7c4188801d63c330afcfa142)

2 new Piece Set Pack are avaliable and have been included in the main package, kindly put together by Smith Online (http://www.simplemachines.org/community/index.php?action=profile;u=90465)
Stylish (http://www.leaderless.net/tp-downloads/Chess_Piece_Sets/stylish.zip) - Instructions and recommended Colours are in a text file in the zip or here (http://www.simplemachines.org/community/index.php?topic=129749.msg1397118#msg1397118)
Screen Shot Preview (http://www.leaderless.net/tp-downloads/preview/stylishscreen.jpg)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2Fwhite_pawn_stylish.gif&hash=5ed01c1c8d60aed7f40c9ea8fd0b785a2cd241ff)

Polished (http://www.leaderless.net/tp-downloads/Chess_Piece_Sets/Polished.zip) - Instructions and recommended Colours are in a text file in the zip or here (http://www.simplemachines.org/community/index.php?topic=129749.msg1399996#msg1399996)
Screen Shot Preview (http://www.leaderless.net/tp-downloads/preview/Screenshot_polished.jpg)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2Fwhite_pawn_polished.gif&hash=14db561f613239317d69c659a2e158c57b281b75)

2 piece set packs have been included in the main package, kindly put together by Godsongz (http://www.simplemachines.org/community/index.php?action=profile;u=97970)
Alpha (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Falpha%2Fwhite_knight.gif&hash=76078651026e1d819bf62fd733202846a8217a7c)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Falpha%2Fblack_rook.gif&hash=4ac9b2c0a7618ed31835856901aa71007fba5ef1), Harlequin (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fharlequin%2Fwhite_knight.gif&hash=f0d8893c6588870199730e6c37a16d4a50a9f65c)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fharlequin%2Fblack_rook.gif&hash=2446c2cd4f51a3dce1a883c4f697e286f1ef8622), & Leipzig (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fleipzig%2Fwhite_knight.gif&hash=606478b274b9b66ed259b4a296b410f23972fdfa)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fleipzig%2Fblack_rook.gif&hash=ccc9e2be7c8e544c46fe049bda89b0c8b744ee9c)
Condal (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fcondal%2Fwhite_knight.gif&hash=b9c40da09a347699abfefa12a24f21ef6d6781d3)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fcondal%2Fblack_rook.gif&hash=c2d9f7047e55dd770279369de2aa6287889874a0), Magnetic (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmagnetic%2Fwhite_knight.gif&hash=2bf5691258e6fe051e3f972ebd779d6d331ea8b6)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmagnetic%2Fblack_rook.gif&hash=05d414463b448523ad9ccc4964083a5d5e25bcd4), & Marroquin (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmarroquin%2Fwhite_knight.gif&hash=16b94abc092c955d081fa1a693933575c2982997)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmarroquin%2Fblack_rook.gif&hash=caca9511dfa0aeecf455ee01345dcbc463e3c02e)

to use just upload the file contents to your "FORUM DIR/Themes/default/SMFChess/pieces/"

In Package
01/02/08
-Made a few adjustments to the javascript, hopefully should load a little quicker on slower connections
-Added two Chess variants (moreinfo) (http://en.wikipedia.org/wiki/Chess_variant)
--Dark Chess : is a devious and interesting variant of chess, in which the battlefield is covered by fog of war. All of your opponent's pieces are invisible unless when threatened by one of your own. The goal in Dark Chess is simply to capture the enemy king. There is no check or checkmate, so be sure to keep your king safe since he can be captured at any time.
--Extinction Chess : players in the game have to capture all of their opponent's pieces of any particular type. Losing your King, Queen, both Rooks, Both Bishop, Both Knights or all eight pawns will result in defeat. Check and checkmate do not apply. The King can be captured at any time.
-Added text to InstallScript.php, so you know whats its doing.
-Updated captured piece Section: now its much more compact and has been separated columns
30/01/08
-Language files are done.  :D There is no super grin, so this will do.
Only thing is that, I can't decide on redoing the ChessAdmin language file. More then likely I won't.
If I left any out, let me know but I think I caught all language snippets.
-New Colourpicker:
*Solved, uploaded a new build with fix for ie
Actually this is a lie. New colourPicker for firefox uers. About 30min ago, I wanted to make sure it was working in IE. To my surprise IE aborted the page as it tried to load. I have a feeling its to do with IE not liking dom transveral within a <form> tag under certain conditions or something. Its weird(I don't like IE so I don't mind all that much) but I'll get it working eventually or find a different one.
Also it seems to slow page loading, so more then likely I'll replace it with something else in another patch.

-Added png file support.
-Added native image size support.(0 in Piece Size in admin area)
Since we are starting to get different Chess Piece sizes I thought this would be a good idea.
-Added Chess Set Information Box
a scrolling box on the right side of selecting chess sets.
When you select a set, it will display a preview on the chess set, and display the contents of a Info.txt if it finds one.
What this means is that, you can have a small description or information regarding this chess set, who put it together, where it came from, history regarding the pieces etc.
As well as recommendations to use as your chess board colours, to go with the chess pieces.
Making this simple as well, so the users just have to click, and the colours are automatically adjusted.

P.S.: I was pretty lazy with the Info.txt files. So I'll fix that up later, or if anyone wants to create a narrative for a chess set they like, I would love to hear it. Possible history, maybe a good moment you had with it. Crushing Victory?

-Fixed PM's
Should be right now, no more \r\n etc.
-Added a 3 new Chess Sets to the main package
Stylish and Polish put together by Smith-online
and
a tribute Chess Set to Thinking Machine (http://www.turbulence.org/spotlight/thinking/chess.html) (Haven't got permission for this yet as I haven't received an email back yet, but I have high hopes)
Also the TM Chess Set is the first to use png image type. So it looks better, and is overall better in every way.
My new fav as well, I think it looks great.
-Added Captured Pieces
Simplistic at best. Basically just works out whats missing, and goes from there
25/01/08
Ok uploaded a new version, pretty much the same points are listed yesterday
-Improved the user search, actually looks pretty funky now.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2FsearchUserprev.png&hash=5940eada0f1eed5438b8abfffe46b777a14f4ccf)
Notes: the -95, is the difference between mine and Godsongz ELO. Arrow and Enter Key are useable to select player
-When you create a quickmatch, it will be listed now below, just so you know it has been created, and not think that you have done something wrong.
-Added a difference in ELO. so you can see a quick comparative skill to your opponent.
-added [C] next to players names on my page and leaderboard. This just means that if you want to challenge that player, just click the [C] and it will take you straight to the challenge page.
-Effects Added: Shake, Pulse and Fade Highlight
13/01/08
Without furture delay thou(been enough of that already), New version is up.
Its not that big of an update really
Mostly just contains
-alot of bug fixes
-doubling clicking should be fixed
-Chess960 Castling issues should be fixed(dont hold me to this thou, but im pretty sure)
-Better Castling - brought back castling with moving the castle. so now you have two ways to castle.
--I'm looking into lightbox scripts to make this look better as well, but thats another thing
-Much for advanced chess tag you can see examples here (http://www.leaderless.net/index.php?topic=12.0)
-More personal ELO rating, as describe in the above post.
--I'm really interested in how this turns out, so please recount your Chess Results(Found in Chess Admin Maintenance)
Please let me know how this gets on

-Few other things, but ive forgotten as its been awhile since last update   ::)
25/08/07
-Added yours and meaction to turnname
-watching now is accurate to 20 seconds
-limited watching name to 10 chars
23-24/08/07
-Added basic move clock
-Added Upgraded Quickmatch to Challenge Page
-Move ControlMsg to below board, so that its easier to see with Board Chat
-Changed text to flip board
-Castling now avaliable in Chess960, great thank you to t0AsD for providing pretty much everything to accomplish this
22/08/07
-Select Pawn Promotion added as per request
-Can now remind(4days late)
21/08/07
-Admins can admin their own games
-Added ELO rating, starting point is 1200
-Added My Stats and Top Players on My Page
-Fixed bug with admins and finishing games
-Pieces now move back to original position if move was illegal
14-16/AUG/07
-Fixed a bug with userSearch
-Added basic Move Log
-Added Fischerrandom Chess
13/AUG/07
-Started preparing Sources files for submission
-Converted over to sa actions instead of do
-tweaked board update check

[truncated]
Title: Re: SMFChess - Early days
Post by: vbgamer45 on November 26, 2006, 11:14:46 PM
Looks good so far! Keep up the good work. This would be a great addition to many sites.
Title: Re: SMFChess - Early days
Post by: indigotwilight on November 27, 2006, 06:51:36 PM
I'll beta test it for you... send me the mod and I'll see what happens.

I have RC3 on four domains, two of which have TP v9.6, and as the TP ones are very new (only created these past few days) I can use one as a beta test site until everything's up and running.

Twilight
Title: Re: SMFChess - Early days
Post by: feeble on November 27, 2006, 07:51:08 PM
Quote from: indigotwilight on November 27, 2006, 06:51:36 PM
I'll beta test it for you... send me the mod and I'll see what happens.

I have RC3 on four domains, two of which have TP v9.6, and as the TP ones are very new (only created these past few days) I can use one as a beta test site until everything's up and running.

Twilight

thanks for your support, ill get back to you soon, when im close to releasing the beta package.


just struck my first problem, and i can do anything else till i get it sorted.
basically the drag drop script doesnt work under IE in smf, but works fine in firefox.
example page http://www.leaderless.net/index.php?page=19

anyone have any ideas? im gradually trying every possible fix i can think of.
its strange as the drag drop does work normally in ie.

from what i can tell at this point in time, is that it has to do with the <body> tags. but cant verify.
Title: Re: SMFChess - Early days
Post by: Elmacik on November 27, 2006, 07:57:10 PM
It seems there is something wrong with the sizing pawn image.
It works in Opera but width and height of the image is reduced.
And in IE, it seems width and height are set to 0.
Title: Re: SMFChess - Early days
Post by: Bigguy on November 27, 2006, 08:03:12 PM
I will beta test also if you need me to. Very nice mod. :)
Title: Re: SMFChess - Early days
Post by: junglecat on November 27, 2006, 08:26:53 PM
I'll beta test it
Title: Re: SMFChess - Early days
Post by: feeble on November 27, 2006, 08:27:26 PM
Quote from: Elmacik on November 27, 2006, 07:57:10 PM
It seems there is something wrong with the sizing pawn image.
It works in Opera but width and height of the image is reduced.
And in IE, it seems width and height are set to 0.

ah thanks for that, lol, cant believe i missed that.

umm, now just don't look at how ive fixed it for the moment.

its fowl, ill try and get a better solution later, but its work now. just that i think a few ppl out there will be rolling in their graves.

Quote from: Bigguy on November 27, 2006, 08:03:12 PM
I will beta test also if you need me to. Very nice mod. :)

Quote from: junglecat on November 27, 2006, 08:26:53 PM
I'll beta test it

for sure, ill also get back to you when im close to releasing the beta. thanks, its greatly appreciated
Title: Re: SMFChess - Early days
Post by: Elmacik on November 27, 2006, 08:48:05 PM
Yes, it seems you increased the width/height.
Weird but all the three browsers show the width/height absolutely the same now :)
(Opera 9.02, IE 6, FF 2.0)
Title: Re: SMFChess - Early days
Post by: feeble on November 27, 2006, 10:25:07 PM
Quote from: Elmacik on November 27, 2006, 08:48:05 PM
Yes, it seems you increased the width/height.
Weird but all the three browsers show the width/height absolutely the same now :)
(Opera 9.02, IE 6, FF 2.0)

as it should be...
Title: Re: SMFChess - Early days
Post by: Elmacik on November 27, 2006, 10:27:36 PM
The weird thing is, yes they show the same, but bigger than normal
Title: Re: SMFChess - Early days
Post by: franklinrony on January 23, 2007, 02:38:03 PM
good mod, congratulations, is public mod? sorry but i dont understan very god the english
Title: Re: SMFChess - Early days
Post by: feeble on January 23, 2007, 09:42:55 PM
Quote from: frony on January 23, 2007, 02:38:03 PM
good mod, congratulations, is public mod? sorry but i dont understan very god the english

thankyou,

but due to other commitments at this point in time, I have stopped work on this mod due to lack of time, and will be finished at some future date.

This mod is currently not avaliable anywhere for download to answer your question.
Title: Re: SMFChess - Developement on Hold
Post by: franklinrony on January 24, 2007, 10:27:14 AM
well, wait the mod, too good mod vwar bridge
Title: Re: SMFChess - Developement on Hold
Post by: PLAYBOY on May 11, 2007, 08:43:32 PM
Please somebody finish this mod. This mod is an incredible. Why dont some good experts work together for one thing? It doesnt have to be a "One Man Job" come on guys. we really need this thing.
Title: Re: SMFChess - Developement on Hold
Post by: feeble on May 12, 2007, 06:47:59 AM
Quote from: PLAYBOY on May 11, 2007, 08:43:32 PM
Please somebody finish this mod. This mod is an incredible. Why dont some good experts work together for one thing? It doesnt have to be a "One Man Job" come on guys. we really need this thing.

Hey Playboy, thanks for your interest in this project.

To tell the truth, i would love to actually start working on this again, but I just need to finish my current project.

In saying this, when i do actually eventually finish my other project, and my mates are happy with the initial release of it. Im going to start working on this again. That should be about in a couple of months or a couple of weeks depending on alot of little things.

But what I wouldnt mind doing till then is actually discussing what you and others want from this mod, other then Chess. To build a framework with what you guys want from this.

Im thinking that im going to have to rewrite, pretty much everything that ive go so far, for reasons i wont go into, so basicaly ill be starting from scratch again.

so features im thinking that it should have
-drag and drop chess using javascript(can still be used with javascript turned off)
-user custom pieces, board frame and colour scheme - stored in theme table if not default.
-Tournament - Both knock out and points based ladders.
-Game presets - casual, professional gametype. so lets say it includes timed moves, game time limit, scoring, game history, to review game.
-Feeds - ical, xml, and rss. so lets say your calendar get the ical feed. and lets you know when your move will end. tournaments are starting, your game will start, professional games. anything you might like really.
-iGoogle Gadget- so on google homepage, say your current games, current tournaments etc.

thats off the top of my head, ill update this later.

If you have any ideas at all, please write them down. just brain storming really.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on May 12, 2007, 10:54:28 AM
Thank you for yoru reply. You have good ideas about the features. But when you are adding more features, please dont forget about the security of the forum too. Cause whenever i see the word, java or xml i always get scared of my forums security.

Also i think you dont have to add anything more than chess for now. Because thas the main thing and lets keep it fast and simple. Then you can improve it later on if you like.

We will be waiting for your good work on this. Believe me i will be sooo much appretiated when this project is done.

What do we really want from this mod?

Fast quick and easy, Chess mod for SMF thas it. When i say that i mean, i dont really care about the looking or points or something else. I just want that mod to be connected to me DB so people can use their own username when they are playing and the little section can be added for showing the "Playing Members Now"

I think it would be really good to have something like a little prototype without so many features for now. So when we are wasting some time with that, you can go ahead and work on your other projects and work to improve this.

Thank you very much for your support for our request.
Title: Re: [on hold]SMFChess
Post by: feeble on May 12, 2007, 07:04:58 PM
your very correct about that. when i eventually get around to it, and start working on it.
it will be very simple with no real bells and whistles.

but since it will be a while before i get started(again), it cant hurt to lay down some ground work. then separate the features into legs that needs to be completed before a release.

so with javascript, it wont be anything complicated, just for the drag and drop interface.
the one that im planning on using is made by walterzorn, can have a play around with it here (http://www.walterzorn.com/dragdrop/dragdrop_e.htm)

when i had my demo running several months ago, it work very nicely. but even so, you can still play without it.

for the xml, its more for rss feeds which is almost a requirement for myself these days as i love them.
Title: Re: [on hold]SMFChess
Post by: demarda on May 19, 2007, 08:27:59 AM
Waiting for this mod become real! The mod like this will become best of all our enhancement web forum! Anyone can finish this mod?!
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on May 19, 2007, 10:58:20 AM
Quote from: demarda on May 19, 2007, 08:27:59 AM
Waiting for this mod become real! The mod like this will become best of all our enhancement web forum! Anyone can finish this mod?!

I totally agree with you. Please someone take care of this mod.
Title: Re: [on hold]SMFChess
Post by: gmvasco on May 30, 2007, 07:17:04 AM
feeble, as you can see, there is a lot of interest in this mod.
I really really want it as well.
I know that you have other things to attend to right now, but I just wanted to show you that I too want this chess mod going.
I think you could also ask us for any help you might need. Like for tiles, or other graphic/sound work. I know I can help in this department.

As for the programming, alas, I can't help you there.

Also, regarding those features you were asking about, I'll list mine in order of preference:

Important:
playable game with the correct rules
easy language translations
recorded results
drag and drop


Somewhat important:
tournaments/championships/team play
game invite/accept


Not important, but would be nice:
sound notification of adversary's move/win/lose/start game
recorded games (history of moves)
other rules (10x10 squares/ time limit/ 4 player chess/ all queens and 2 kings boards, etc...)


Don't even bother programing that hard stuff like other rules, but you could develop the mod in a way that it will become possible later on to do it. I think this mod will have it's own mods.

We'll be waiting to hear from you :)
Title: Re: [on hold]SMFChess
Post by: feeble on May 30, 2007, 11:32:56 PM
Quote from: gmvasco on May 30, 2007, 07:17:04 AM
We'll be waiting to hear from you :)

thanks for your post.

I wont promise anything, but ill try and get something out so that you can at least see if this mod is all thats its cracked up to be. Give me about 3 days, give or take.
Title: Re: [on hold]SMFChess
Post by: feeble on May 31, 2007, 09:40:56 AM
ok, before you Download this package, please note its just a proposal.

Nothing flash. You can challenge and play a game of chess against someone.

its mostly to see if this is any good has a method of playing chess and also if this project is a good idea or not. mostly.

Package is for 1.1.2, i would probably recommend installing on a temp forum, since its not really designed for public use.

Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Please let me know what you think so far
Title: Re: [on hold]SMFChess
Post by: franklinrony on May 31, 2007, 12:23:03 PM
thanks i test this beta in localhost
Title: Re: [on hold]SMFChess
Post by: feeble on June 03, 2007, 04:32:32 AM
So, is this a viable way of playing Chess?
Title: Re: [on hold]SMFChess
Post by: gmvasco on June 05, 2007, 04:41:26 PM
I currently don't have my test forum up because I was trying some amateur coding in it and I totally killed it. I am trying to solve the problem (just to learn som more). By the end of this week I will have a working test forum (maybe a new one if I can't fix the problem). Doesn't matter anyway.

Meanwhile I went to the preview forum to start a game with you. Thanks for getting this show back on the road :)
Title: Re: [on hold]SMFChess
Post by: feeble on June 07, 2007, 07:56:09 PM
Im pretty close to submitting this mod to SMF, other then a few layout changes, a more complete "My Page" and a few other tweaks here and there, and also getting it xhtml compliant.

Since last version i posted, its changed dramatically
more refined and looks a whole lot better
no real changelog sorry other then an obscene amount of time spent of a colourPicker :)


Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.

Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Please let me know if you have any suggestions
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 08, 2007, 11:42:31 AM
you are the mannnnn!

thank you very very very much!

now i have some questions,

1- how can i apply it to another theme? for example http://demo.padexx.de/

2- this mod works only when my forum is in english. it doesnt appear in turkish.There is only a blank on upper panel

Note: turkish smf users are most active users on SIMPLEMACHINE.ORG

3- is there any kinda security bug?

Thank you again.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 08, 2007, 01:22:50 PM
By the way, how the hack am i gonna play this? I press on challange and invite another person (fake member which is me again) but it just stays there and there is no move or start option. how am i gonna start playing? it is something about the write permissions of ftp? please help me about it...
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 08, 2007, 01:47:35 PM
well i guess you are not able to play yet. this is only a picture preview or something. cause i tried everything and couldnt start a game.

if we are not able to play yet, how we r gonna test this???

i wouldnt install it if i knew i wasnt able to play :(
Title: Re: [on hold]SMFChess
Post by: feeble on June 08, 2007, 04:37:07 PM
Quote from: PLAYBOY on June 08, 2007, 01:47:35 PM
1- how can i apply it to another theme? for example http://demo.padexx.de/

it will take a bit to apply it to another theme
ill be adding a custom bar theme, so that all you need to change is
customChess.template.php file
index.template.php

Quote from: PLAYBOY on June 08, 2007, 01:47:35 PM
2- this mod works only when my forum is in english. it doesnt appear in turkish.There is only a blank on upper panel
this mod well, is still in english, ill need to translate it first into other language for it to appear in other languages
im just focusing on getting this done, and also getting SMFChess accepted as an SMF mod.
After that ill release other languages

i did not know turkish users were the most active

Quote from: PLAYBOY on June 08, 2007, 01:47:35 PM
3- is there any kinda security bug?
what sort of security bug. i think ive complied with all SMF mod guidelines, but i wont fully know till I submit

Quote from: PLAYBOY on June 08, 2007, 01:47:35 PM
well i guess you are not able to play yet. this is only a picture preview or something. cause i tried everything and couldnt start a game.

if we are not able to play yet, how we r gonna test this???

i wouldnt install it if i knew i wasnt able to play :(

umm preview?

ahh i know whats going on, im a slight idiot in this regards

i was rewriting parts the challenge code, and decided that white should be the challenge user not the challenger.
in doing this, i also have it so no new challenged games show up in the "Current" area, untill the first move has been made.

ive made a quick edit so it should be right now to challenge
i revert it back later, once personal messages are being sent and "My Page" is up and running

Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)
Title: Re: [on hold]SMFChess
Post by: KGIII on June 08, 2007, 06:05:40 PM
Heh. You included (first thing I've checked) En Passant. I'm assuming you've then done the castling properly. Dynamic updates and notification of challenges. ;) Those two features are some that I would REALLY like to see.
Title: Re: [on hold]SMFChess
Post by: feeble on June 08, 2007, 06:55:42 PM
Quote from: KGIII on June 08, 2007, 06:05:40 PM
Heh. You included (first thing I've checked) En Passant. I'm assuming you've then done the castling properly. Dynamic updates and notification of challenges. ;) Those two features are some that I would REALLY like to see.

To be honest, i didnt write the Chess Functions.
Im just using a free chess function library that ive modified.

And yes castling does work, ill be including a notification to let you know if you can perform it or not.

Ill be doing notifications of challenges and move updates by PM

What do you mean by "Dynamic updates"?
Title: Re: [on hold]SMFChess
Post by: KGIII on June 08, 2007, 06:58:20 PM
Dynamic meaning that when one person makes a move that the move is shown "instantly" on the other person's screen.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 08, 2007, 10:21:26 PM
Quote from: KGIII on June 08, 2007, 06:58:20 PM
Dynamic meaning that when one person makes a move that the move is shown "instantly" on the other person's screen.

This sound really good. And this is what we need.
Title: Re: [on hold]SMFChess
Post by: feeble on June 09, 2007, 04:29:14 AM
Quote from: KGIII on June 08, 2007, 06:58:20 PM
Dynamic meaning that when one person makes a move that the move is shown "instantly" on the other person's screen.

I don't want to close the door on this, but the short answer is "Not at this point in time"

Ill more then likely look it to it, once I've got this mod to a certain point, as I've been looking for a project to use Ajax in.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 09, 2007, 11:53:23 AM
well if there wont be dynamic updates then we need to refresh the page all the time. and i think that sucks. how we gonna know if the person has quit the game or moved something or still thinkin?

also how can we delete the current games? do we have to finish the game to get it deleted from the db?
Title: Re: [on hold]SMFChess
Post by: feeble on June 09, 2007, 06:44:05 PM
Quote from: PLAYBOY on June 09, 2007, 11:53:23 AM
well if there wont be dynamic updates then we need to refresh the page all the time. and i think that sucks. how we gonna know if the person has quit the game or moved something or still thinkin?

also how can we delete the current games? do we have to finish the game to get it deleted from the db?

Initially(and still is) this mod was so that a couple of my mates and I could have a game of chess over a period of weeks. Averaging maybe one or two moves per day.
And atm it does exactly that, its almost perfect for what I want it for.

Now in saying this thou, I know what changes I need to make to get dynamic updates, but I going to put it off, until visually I have SMFChess looking good which is mostly all that needs to be completed.

Quotealso how can we delete the current games? do we have to finish the game to get it deleted from the db?
I need to add that to.
Title: Re: [on hold]SMFChess
Post by: KGIII on June 09, 2007, 10:52:03 PM
I think I like it, as it is, already... In other words - it needs a bit of polishing up but, really, it's fantastic. I'd watched and watched and watched this thread until I finally saw the last version and opted to test it locally and then on a real server. I'm impressed and want to say congratulation. If you should ever need assistance with hosting it during the beta (should it catch on and start eating your bandwidth) let me know.
Title: Re: [on hold]SMFChess
Post by: feeble on June 10, 2007, 09:44:50 AM
Quote from: KGIII on June 09, 2007, 10:52:03 PM
I think I like it, as it is, already... In other words - it needs a bit of polishing up but, really, it's fantastic. I'd watched and watched and watched this thread until I finally saw the last version and opted to test it locally and then on a real server. I'm impressed and want to say congratulation. If you should ever need assistance with hosting it during the beta (should it catch on and start eating your bandwidth) let me know.

Thanks, its appreciated.
I should be right bandwidth wise, but thanks for the offer

At the end of the day, ill eventually tackle "Dynamic Updating", but I haven't got the basics completed yet.

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Change Log:
-Should now be valid XHTML 1.0 Transitional
-"My Page" is taking shape, still havent worked out what to do with all the white space, itll get there in the end. Javascript is required to Accept Challenges, but ill be fixing this in the future.
-Chess admins can now delete boards. I haven't worked out a good way for 2 users to agree on deleting a board yet, so its not final
-Trialing CustomBar : not sure if its a good idea or not, still working it through, but essentially the idea is that you can have different menu bars for each of your themes, by just coping ChessCustom.template.php to each of your sites themes. Since there is no patches atm, i wouldnt edit the one in themes/default, but if you are interested, just copy ChessCustom.template.php to your sites theme and edit it there. I wont be changing the file at all, other then the comments at the top.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 10, 2007, 10:45:09 AM
now it looks lot better. i really like this mod. Thank you very much again.

by the way, if you add admin to make moves in anygame he wants that would be so cool :)

lets say i am the admin and i am watching other 2 peoples match and i can make their moves if i want to :D

i donno if some thing like this feature would be easy to make, but it would make it really cool for admin... :) or maybe add this feature to permissions so we can make global moderators to have this permission too :)
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 10, 2007, 10:56:17 AM
another small thing is, i think we should be able to delete multiple matches at one time, cause the forums which has lots of members would need this feature for admin.
Title: Re: [on hold]SMFChess
Post by: PLAYBOY on June 10, 2007, 12:15:08 PM
how about sending an automatic personal message when somebody invites you for a match? or you can add this as an option.

also, i have no idea how am i gonna custom the bar because chess doesnt even show as a blank on my theme bar. there is no any button for chess, eventhough its installed.

my theme is pdx http://www.padexx.lux-mundi.co.uk/ dark yellow
Title: Re: [on hold]SMFChess
Post by: feeble on June 11, 2007, 04:47:36 AM
Quote from: PLAYBOY on June 10, 2007, 10:45:09 AM
by the way, if you add admin to make moves in anygame he wants that would be so cool :)
Maybe in the future, but to be honest probably not. Sounds good in theory, but since it can be abused to readily, its not worth adding it in at present.

Quoteanother small thing is, i think we should be able to delete multiple matches at one time, cause the forums which has lots of members would need this feature for admin.
Currently at present its good enough, but your right something does need to be added thats more powerful. Ill look more into it after official release. Im looking into a maintenance system, such as purging finished games older then 30 days or removing game requests that are too old.

Quotealso, i have no idea how am i gonna custom the bar because chess doesnt even show as a blank on my theme bar. there is no any button for chess, eventhough its installed.
my theme is pdx http://www.padexx.lux-mundi.co.uk/ dark yellow
What do you mean by theme bar? you mean the top of your website where it shows a list of all your sites themes?


Also in saying that about PM, here is another update

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Changelog:
-PM's are sent on challenge, moves and undo requests. Current messages are just temps, and will change in the future
-Move History: Moves are now stored in table, so we have a working history for moves. Its slightly bloated with info atm, as im still working out what should be included.
-Undo requests: Made a bad move? ask your opponent if you can retake your move. Will be adding a system for conceding and deleting a game in the future.
-Fixed a few template issues.
Title: Re: SMFChess
Post by: PLAYBOY on June 11, 2007, 10:34:40 AM
thank you for your answers. i may want so many things. you are right. actually my top desire is on dynamic update now. because nobody plays the game unless dynamic update is there. because it takes hours for one match and thousand times of refreshing page.

when i said theme bar, i meant this...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg386.imageshack.us%2Fimg386%2F6409%2Funtitleduf2.jpg&hash=85ace13a91e8368ae893fc6920cc5845faca72e7)

how am i gonna add chess in there?

i know this is not your profession but just maybe you can help you know :)

Title: Re: SMFChess
Post by: TrueSatan on June 11, 2007, 11:32:59 AM
@ PLAYBOY

SMF Documentation is your friend...the general methodology for any addition of a nav bar button (and that's what you're asking about) is much the same so if you follow the example (from the SMF Documentation) given on this link for the Babylon and Classic themes you should soon get the hang of it.

http://docs.simplemachines.org/index.php?topic=1032.msg2407#msg2407 (http://docs.simplemachines.org/index.php?topic=1032.msg2407#msg2407)
Title: Re: SMFChess
Post by: feeble on June 12, 2007, 07:16:38 AM
Quote from: PLAYBOY on June 11, 2007, 10:34:40 AM
when i said theme bar, i meant this...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg386.imageshack.us%2Fimg386%2F6409%2Funtitleduf2.jpg&hash=85ace13a91e8368ae893fc6920cc5845faca72e7)

how am i gonna add chess in there?

This mod edits a few template files which you will have to manually change to get it to show.

Ill be writing up the changes thats ive made to each template file after release as there may be some minor changes in the mean time.


On a small note:
Dynamic updates is nearly done, its currently working on my site, but its only updating the board and nothing else in 5sec intervals. Ill be increasing this to about 30secs as default, but will be able to be changed in the back end. And I'll be gradually getting it to update all other variables as well.
It works ok, its not a great bit of javascript that I've written but it works. ill update again after release.
For release, it will be that you still need to post a form to make a move, but the board will auto update when its not your turn. reason for this is I don't want to force javascript on anyone, which is actually a laugh all things considering.
Title: Re: SMFChess
Post by: PLAYBOY on June 12, 2007, 10:46:50 AM
on the game screen, you wrote the word "Request" wrong. You wrote "Requst".

Also i am happy that you have the dynamic update on your websites chess but what about us? :)

can we have that too please? where can we download the mod with dynamic update? :)
Title: Re: SMFChess
Post by: PLAYBOY on June 12, 2007, 10:49:42 AM
another small thing is, pms are sent on each move, i think thas too much.

we should get a pm only when they accept the invitation or the first move they make. my pm box is limited to 50 for each person and i cant have pm for each move my members make.
Title: Re: SMFChess
Post by: PLAYBOY on June 12, 2007, 10:50:25 AM
by the way, dynamic update looks really cool. NOW ITS PLAYABLE :)
Thanks again. Its a realy good job you are doing.
Title: Re: SMFChess
Post by: feeble on June 13, 2007, 02:44:21 AM
Quote from: PLAYBOY on June 12, 2007, 10:49:42 AM
another small thing is, pms are sent on each move, i think thas too much.

we should get a pm only when they accept the invitation or the first move they make. my pm box is limited to 50 for each person and i cant have pm for each move my members make.

How about if I change it to PM user if they are offline only
Title: Re: SMFChess
Post by: PLAYBOY on June 13, 2007, 07:15:51 AM
i dont think it be really useful. The reason of the pm is to let the guy know he is invited when he is hanging arround the forum.

people usually invite each other when they are online only anyway.

so i think it would be good idea to make it send one pm only when the guy is invited for a match.

by the way, where can i download the lates version, the one has dynamic update? i really need that one quickly. cause that version is the real PLAYABLE one.
Title: Re: SMFChess
Post by: feeble on June 13, 2007, 10:22:25 AM
Since ive had to adjust my code for the dynamic updates, you might find that already create games might be bugged. for example the "Move History"
Just make a few more moves and things should sort them selves out.

I wont be adding anything else, since the list goes on.
I'm just going to be fixing bugs, finishing the interface and tweaking here and there before submission.

The update Interval for Dynamic updates is up to your discretion. Seemed to work best at 5 seconds.
If its to small an Interval, the data wont get a chance to take any effect and will cause errors, so just play around with it as it could be server dependent.

If you find any bugs please let me know.

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Changelog:
-PM's are now sent only when your opponent is not online unless its a challenge
-Alter Move history. You will find that things dont actually much up if you have installed previous version. im sorry for this but ive changed a bit of the structure. it will fix it self in time thou.
-Fix a few bugs
-Dynamic updates now on both updating and sending. Ill expand this in the future to undo and concede requests.
Title: Re: SMFChess
Post by: gmvasco on June 13, 2007, 02:01:47 PM
Hi
Your mod is looking better and better. Thank you so much.
Here are my two cents on some typos:
The "Challange" button should read "challenge".
"Game has not started Yet"  ...."yet."
Two cents. That's it :)
Title: Re: SMFChess
Post by: gmvasco on June 14, 2007, 08:06:29 AM
I didn't notice the drag and drop thing untill now. Was it allways there?

Anyway, the mod has reached a point in development where I would call it BETA, and I would use it in a live site.
So, I want to translate the whole use interface to Portuguese. The admin I can do without. How can I go about that?
Title: Re: SMFChess
Post by: feeble on June 14, 2007, 08:20:38 AM
Quote from: PLAYBOYi dont think it be really useful. The reason of the pm is to let the guy know he is invited when he is hanging arround the forum.

people usually invite each other when they are online only anyway.

users can make this happen by turning off updates in there chess settings.
else, they will get a pm if they are offline.
is that a good enough solution?

Quote from: gmvasco on June 14, 2007, 08:06:29 AM
I didn't notice the drag and drop thing untill now. Was it allways there?

Anyway, the mod has reached a point in development where I would call it BETA, and I would use it in a live site.
So, I want to translate the whole use interface to Portuguese. The admin I can do without. How can I go about that?
Thank you for saying so.
Drag and drop has always been there, ill make a small note of it under the board to let users know.
Im actually thinking(in the future) to put in an option, if you let go of the piece, it will auto submit the move, similar to the real world :)


for text, not just yet sorry, i still haven't move all the text over to the english language file, and plus as you pointed out there are still typo(which ill fix up this weekend)
Title: Re: SMFChess
Post by: pongsak on June 14, 2007, 11:40:24 AM
I can install it perfectly on 1.1.2 dilbermc theme with little adaptation on index.template.php.
However when i challange , the other side player can't move. Drag & drop ok but when he click send button,it quiet. Then he try to press enter instead. The chess page reload and everything go back to the beginning and the message "Please make move to start Game" appearred. It can't really play, can't start the game.

In error log it show this:

Quote2: chessxml() [<a href='function.include'>function.include</a>]: Failed opening '/home/med17/domains/med17.com/public_html/forum/Sources\ChessFunctions.php' for inclusion (include_path='.:/usr/local/lib/php')
File: /home/med17/domains/med17.com/public_html/forum/Sources/ChessXml.php
Line: 120

First i don't know why, now OK i see how it error , the path is not correct. It must be "/" instead of "\" in line 120 of ChessXml.php

And i see same error in Chess.php line 632 too.
Title: Re: SMFChess
Post by: pongsak on June 14, 2007, 01:17:35 PM
How to delete the fault chess board as seen in the picture?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg507.imageshack.us%2Fimg507%2F1752%2F44271496jr1.png&hash=56f29891fcdc626db74c07828a0bf19818616805)
Title: Re: SMFChess
Post by: feeble on June 14, 2007, 06:02:12 PM
Quote from: pongsak on June 14, 2007, 11:40:24 AM
First i don't know why, now OK i see how it error , the path is not correct. It must be "/" instead of "\" in line 120 of ChessXml.php

And i see same error in Chess.php line 632 too.

Ok, sorry about that, I've made the necessary changes

If you still have the same problem, please let me know

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)


Quote from: pongsakHow to delete the fault chess board as seen in the picture?
What do you mean by this sorry?

The chess board images are stored in themes/default/SMFChess/pieces/ directory
This directory is deleted at uninstall, so if you make any changes just remember to back it up
To add a new Piece set, just create a new folder and keep the filenames exactly the same as whats in classic.

To delete a board, your opponent has to reject the challenge or if the match has already started, an Admin must delete the board on the "Current" page
Title: Re: SMFChess
Post by: pongsak on June 14, 2007, 07:29:47 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg507.imageshack.us%2Fimg507%2F1752%2F44271496jr1.png&hash=56f29891fcdc626db74c07828a0bf19818616805)

From the picture U'll see board(10) tab, but i'd  deleted it already but it still show.
When i click at board(10) it shown as in the picture.
The question is how to delete this tab. When i click current tab it show "No matches at all, get playing".
(No this board in current tab.) Thanks.

And the another questions (quess may be a lot of questions in the future  :D )
How to delete the finished game that i see when i click the finished tab.

PS: I found another error at chessadmin.php line 53 "\" instead of "/" .
Title: Re: SMFChess
Post by: feeble on June 14, 2007, 07:56:18 PM
Quote from: pongsak on June 14, 2007, 07:29:47 PM
From the picture U'll see board(10) tab, but i'd  deleted it already but it still show.
When i click at board(10) it shown as in the picture.
The question is how to delete this tab. When i click current tab it show "No matches at all, get playing".
(No this board in current tab.) Thanks.

And the another questions (quess may be a lot of questions in the future  :D )
How to delete the finished game that i see when i click the finished tab.

That variable "10" (in this case) is stored in the themes table.
Ill make a few changes so that if the game isn't found, it will clear that variable, and the tab should just disappear.

Its more so that you can have a quick link to a game that you are watching/playing and I haven't finished with it yet, and Ill make the changes over the next couple of days.

Quote from: pongsak on June 14, 2007, 07:29:47 PM
And the another questions (quess may be a lot of questions in the future  :D )
How to delete the finished game that i see when i click the finished tab.
Again, I'll add this in the next couple of days.
Also, actually I prefer if you did have questions, I probably would have never found those include issues.

Quote from: pongsak on June 14, 2007, 07:29:47 PM
PS: I found another error at chessadmin.php line 53 "\" instead of "/" .

This should of been fixed along with all the other directory calls.
Could you just check the timestamp if it was after or before you installed the new build?
Title: Re: SMFChess
Post by: pongsak on June 14, 2007, 08:29:03 PM
Thanks for reply , U're the most acive mod maker i've ever met .  :D

QuoteCould you just check the timestamp if it was after or before you installed the new build?

Sorry , i don't understand your question , please give me the detail please.
Title: Re: SMFChess
Post by: feeble on June 14, 2007, 09:09:16 PM
Quote from: pongsak on June 14, 2007, 08:29:03 PM
Thanks for reply , U're the most acive mod maker i've ever met .  :D
lol, you just caught me at a good time, I actually need to head out in a sec. So you probably wont get a reply straight back.

Quote from: pongsak on June 14, 2007, 08:29:03 PM
QuoteCould you just check the timestamp if it was after or before you installed the new build?

Sorry , i don't understand your question , please give me the detail please.

The time the error occurred.
Did it happen after or before you installed the mod with the fixes.
Its shouldn't be happening now, but if it still is let me know.
Title: Re: SMFChess
Post by: pongsak on June 14, 2007, 09:24:01 PM
Oh, i see, it's a version before the latest , i've not replace the new one yet. Sorry.
Title: Re: SMFChess
Post by: KGIII on June 15, 2007, 04:18:38 AM
I'm going to say stick with PM notification BUT give the admin control if they want perhaps??? It could be tough to add that but, impressive, you're doing one heck of a job on this.
Title: Re: SMFChess
Post by: feeble on June 16, 2007, 04:11:08 AM
Quote from: KGIII on June 15, 2007, 04:18:38 AM
I'm going to say stick with PM notification BUT give the admin control if they want perhaps??? It could be tough to add that but, impressive, you're doing one heck of a job on this.
Well ATM PM's are send on Challenges and move updates are only sent if the user is off-line. Users can turn off move updates but not challenges.

Do you think that is adequate?
Title: Re: SMFChess
Post by: gmvasco on June 16, 2007, 11:06:32 AM
That is more than adequate. The users can turn off all move updates, but can't ever turn off challenge PMs. That's perfect.
Again, feeble congratulations. Oh, and Thanks. :)
Title: Re: SMFChess
Post by: KGIII on June 17, 2007, 01:44:11 AM
That is ideal - VERY impressive. When are you going to submit it to the modifications section?

(A mod of this magnitude is going to, likely, take a while to get approved.)
Title: Re: SMFChess
Post by: Smith Online on June 17, 2007, 10:33:41 AM
Superb!!&nbsp; ;D Feeble i use almost all your mods they are all great with the best support possible if something goes wrong.

I asked a while back for a mod like this. This mod fits everything i wanted and much much more perfectly.

Thank you!

Regards

Smith Online

P.S I can see your a very busy now with all the mods and forums your on.
Title: Re: SMFChess
Post by: Smith Online on June 17, 2007, 10:40:18 AM
One quick question how close is it from being fully fineshed???

Regards

Smith Online
Title: Re: SMFChess
Post by: PLAYBOY on June 17, 2007, 11:06:04 AM
Am i the only one that dynamic update dont work? i tried the latest version (with dynamic update) on opera and firefox, but i couldnt get any performance. Am i doing something wrong?

i logged in with 2 different member accounts , one using firefox other one opera and tried to make a match to try dynamic update but it just didnt work at all. then i tried one with int explorer, it says "page done with errors" and shows an error warning on the left down corner of the page.

am i missing anything? or doing something wrong?

i got 1.1.2. and everything was ok until the latest version with dynamic update.
Title: Re: SMFChess
Post by: PLAYBOY on June 17, 2007, 11:23:14 AM
yeah, i tried it again but it doesnt work. i think we need another update, which has fully loaded dynamic update without a "send" button. that would  really make it playable instantly with your opponent
Title: Re: SMFChess
Post by: Smith Online on June 17, 2007, 11:30:18 AM
QuoteAm i the only one that dynamic update dont work? i tried the latest version (with dynamic update) on opera and firefox, but i couldnt get any performance. Am i doing something wrong?

i logged in with 2 different member accounts , one using firefox other one opera and tried to make a match to try dynamic update but it just didnt work at all. then i tried one with int explorer, it says "page done with errors" and shows an error warning on the left down corner of the page.

am i missing anything? or doing something wrong?

i got 1.1.2. and everything was ok until the latest version with dynamic update.

I have same problem tried on ie7 i have same issue as you and on firefox too but on PS3 broswer mozila it works fine??

Also we have just been playing a test match and was trying to move a night from g1-h3 and it said it was an illegal move??

Regards

Smith Online
Title: Re: SMFChess
Post by: feeble on June 17, 2007, 06:12:08 PM
Quote from: PLAYBOY on June 17, 2007, 11:06:04 AM
i logged in with 2 different member accounts , one using firefox other one opera and tried to make a match to try dynamic update but it just didnt work at all. then i tried one with int explorer, it says "page done with errors" and shows an error warning on the left down corner of the page.

Is this on your website or mine?
Also if possible can you try and replicate the error warning in IE, then double click on the error icon, then send me the details of the error.
Also are you on a windows or linux server?
And do you still have drag drop functionality even thou you get update errors?
Any errors in your forum log?

Quote from: PLAYBOY on June 17, 2007, 11:06:04 AM
yeah, i tried it again but it doesnt work. i think we need another update, which has fully loaded dynamic update without a "send" button. that would  really make it playable instantly with your opponent

Ill be looking to adding this in soon, just need to get rid of any bugs.


Quote from: Smith OnlineI have same problem tried on ie7 i have same issue as you and on firefox too but on PS3 broswer mozila it works fine??

Also we have just been playing a test match and was trying to move a night from g1-h3 and it said it was an illegal move??
Again can you send me the error details using the same method.
Any errors in your forum log?

Was this your opening move?
Were you white?
Title: Re: SMFChess
Post by: Smith Online on June 17, 2007, 07:21:34 PM
QuoteAgain can you send me the error details using the same method.
Any errors in your forum log?

The error on page gives me the following details:-

Line: 701
Char: 2
Error: Object Required
Code: 0
URL: http://mysite.com/index.php?action=chess;id=3

QuoteWas this your opening move?
Were you white?

The player was white yes the game opening move was c2-c4 (99% sure)

Regards

Smith Online

P.S I can set this up on the testing forum for you if you wish ill do what i can help
Title: Re: SMFChess
Post by: Smith Online on June 17, 2007, 07:27:47 PM
After the opponent logged back in after playeing the test match with me he was taken to the following page automatically: -

http://mysite.com/index.php?action=chessXml;do=update;sesc=0635635c900011f42e7357f55c3d8cbf;id=3;xml

Witch showed the following on screen:-

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Switch from current encoding to specified encoding not supported. Error processing resource 'http://mysite.com/i...

<?xml version="1.0" encoding="ISO-8859-1"?>

Also i forgot to mention there is no errors at all shown in forum error log. I also have daniel15's forum debug mod on my site that does not show anything.

Regards

Smith Online
Title: Re: SMFChess
Post by: PLAYBOY on June 17, 2007, 07:29:33 PM
Quotes this on your website or mine?

no its only on my website however. like i said, maybe those happening because of my browsers of java settings. but i need to know how am i gonna set those settings.

QuoteAlso if possible can you try and replicate the error warning in IE, then double click on the error icon, then send me the details of the error.

i am pressing on send but it doesnt work at all on firefox and doesnt give me any error eighter.

when i am on ie 6 and pressing on send. this is the details of the error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg111.imageshack.us%2Fimg111%2F9366%2Funtitledol7.jpg&hash=c9f3f6a7f6eb4ad5ea1c6b0d42e79d24f0b8cb4c)


QuoteAlso are you on a windows or linux server?

linux.

QuoteAnd do you still have drag drop functionality even thou you get update errors?

i do. but problems start when i press on send button.

QuoteAny errors in your forum log?


2: chessxml() [<a href='function.include'>function.include</a>]: Failed opening '/home/site/public_html/forum/Sources\ChessFunctions.php' for inclusion (include_path='.:/usr/local/lib/php')
File: /home/site/public_html/forum/Sources/ChessXml.php
Line: 120

8: Undefined index: cannot_chess_main
Dosya: /home/site/public_html/forum/Sources/Security.php
line: 741

and i have lot more of this line 120 errors.


also yes this happens on the first move which is white.
Title: Re: SMFChess
Post by: feeble on June 17, 2007, 09:20:02 PM
Quote2: chessxml() [<a href='function.include'>function.include</a>]: Failed opening '/home/site/public_html/forum/Sources\ChessFunctions.php' for inclusion (include_path='.:/usr/local/lib/php')
File: /home/site/public_html/forum/Sources/ChessXml.php
Line: 120
to be honest I'm surprised your still getting this.
I've rechecked all the includes, so you should be having this issue any more.
This is probably the main cause of your issues.

Quote8: Undefined index: cannot_chess_main
Dosya: /home/site/public_html/forum/Sources/Security.php
line: 741
I'm pretty sure your forum isn't in english....if I'm wrong I'll recheck this.
As this call is stored in an error.english.php

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Changelog: 18/JUN/07
-Current and Finished templates are pretty much done. If you have any suggestions or complaints please let me know.
-Fixed a few update and save issues.
-Changed once again how SMFChess stores who has won. So if you have any finished games it will show the opposite of who actually won...only affects already finished games.
Title: Re: SMFChess
Post by: PLAYBOY on June 18, 2007, 11:10:04 AM
my forum has 4 langueges. everybody picks their own language.

also did you fix the "send" buttton error with this version?
Title: Re: SMFChess
Post by: feeble on June 18, 2007, 02:59:35 PM
Quote from: PLAYBOY on June 18, 2007, 11:10:04 AM
my forum has 4 langueges. everybody picks their own language.

also did you fix the "send" buttton error with this version?

should have


If you are having any issues, let me know after you have tried the latest build.


Otherwise, over the next couple of days, I'm just going to be working on the templates and try to optimize the code.
Title: Re: SMFChess
Post by: Godsongz on June 19, 2007, 12:50:42 AM
I posted this on the leaderless board also, but you seem to be responding more here, so I'll post here too :)

You've got the board turned 90 degrees out of position.  Square A1 is supposed to be a dark square, and initial board setup needs to have the queens on their own colors.  Turn the board 90 degrees in either direction and both of these problems are fixed.

Also, you might want to consider using standard algebraic notation (http://www.uschess.org/beginners/read/), and possibly the ability to export a .pgn file as a record of game moves.  Most chess programs can read a standard-format .pgn file, and it would give your software great portability.

Do you recognize legal castling?  How about En Passant?
Title: Re: SMFChess
Post by: KGIII on June 19, 2007, 01:02:08 AM
En Passant is there. "White on Right." (I could have sworn I'd mentioned that already though maybe not. I tested an earlier version and En Passant was the first thing I noticed.) I understand both king and queen-side castling is configured to work.
Title: Re: SMFChess
Post by: feeble on June 19, 2007, 01:47:49 AM
Quote from: Godsongz on June 19, 2007, 12:50:42 AM
Also, you might want to consider using standard algebraic notation (http://www.uschess.org/beginners/read/), and possibly the ability to export a .pgn file as a record of game moves.  Most chess programs can read a standard-format .pgn file, and it would give your software great portability.

As I said on my forums, I'll look into using PGN notation and probably move this mod over to use it eventually.
Title: Re: SMFChess
Post by: PLAYBOY on June 19, 2007, 11:53:37 AM
looks PERFECT! for now :) now its really playable... Thank you very much.
Title: Re: SMFChess
Post by: PLAYBOY on June 19, 2007, 05:45:08 PM
when you press "Finished games", the winner is wrong. The winner is actually the loser.. you need to swich that.

on the finished games screen, winner is actually the loser. but when you open up the game screen it says the real winner.

i mean the winner tab on finished games, has the losers name under it.
Title: Re: SMFChess
Post by: feeble on June 19, 2007, 06:17:55 PM
Quote from: PLAYBOY on June 19, 2007, 05:45:08 PM
when you press "Finished games", the winner is wrong. The winner is actually the loser.. you need to swich that.

on the finished games screen, winner is actually the loser. but when you open up the game screen it says the real winner.

i mean the winner tab on finished games, has the losers name under it.

I do actually know of this, and was thinking of leaving it alone, as it doesnt actually affect the game at all.

I'll fix this up later, as I'm currently minimizing div insertHtml calls since I'm looking at alternative methods.
Title: Re: SMFChess
Post by: KGIII on June 19, 2007, 07:02:28 PM
I'd like to take another chance to say how impressed I am with your work and your dedication. I can't wait for it to be finalized and then, hopefully, distributed from the modifications section of this site. :D Your dedication to fixing such a large modification and creating it is impressive - if nothing else.

(Though there is plenty else in this case, it's great work so far.)
Title: Re: SMFChess
Post by: JaGuR123 on June 20, 2007, 05:22:52 AM
Hi great mod ,

One thing though, i have installed it on a custom theme "orange lt" and the chess pieces don't line up with the board

Can view here http://www.racinginteractivesystems.com/index.php?action=chess;id=1

Is there a simple solution ?

Cheers
Title: Re: SMFChess
Post by: feeble on June 20, 2007, 09:44:51 AM
Quote from: KGIIII'd like to take another chance to say how impressed I am with your work and your dedication. I can't wait for it to be finalized and then, hopefully, distributed from the modifications section of this site. :D Your dedication to fixing such a large modification and creating it is impressive - if nothing else.

(Though there is plenty else in this case, it's great work so far.)

lol, sorry I don't know what to say actually to this. Thanks, more then likely you attitude will change if you actually saw my disastrous attempts at writing PHP.


Quote from: JaGuR123 on June 20, 2007, 05:22:52 AM
Hi great mod ,

One thing though, i have installed it on a custom theme "orange lt" and the chess pieces don't line up with the board

Can view here http://www.racinginteractivesystems.com/index.php?action=chess;id=1

Is there a simple solution ?

Cheers


Ill look into it, I have a feeling its to do with the theme you are using, since default theme works fine on your forum and "Orange LT" doesn't pass validation, but I could be wrong.
Title: Re: SMFChess
Post by: feeble on June 20, 2007, 10:47:50 AM
Quote from: JaGuR123 on June 20, 2007, 05:22:52 AM
Hi great mod ,

One thing though, i have installed it on a custom theme "orange lt" and the chess pieces don't line up with the board

Can view here http://www.racinginteractivesystems.com/index.php?action=chess;id=1

Is there a simple solution ?

Cheers


Ok worked out a fix, you will need to test this your self, as all I know is that it displays the pieces on the board correctly now.
Tested in both IE and firefox, and you will need to delete your cache to more then likely see the changes.

open
themes/orange-lt07/style.css
find
#wrapper {
margin: 0 auto;
position: relative;
width: 900px;

}

#shadow-l {
background: url(images/shadow-l.png) 0 0 repeat-y;
padding-left: 6px;
position: relative;
}

#shadow-r {
background: url(images/shadow-r.png) 100% 0 repeat-y;
padding-right: 6px;
position: relative;
}


replace with
#wrapper {
margin: 0 auto;

width: 900px;

}

#shadow-l {
background: url(images/shadow-l.png) 0 0 repeat-y;
padding-left: 6px;

}

#shadow-r {
background: url(images/shadow-r.png) 100% 0 repeat-y;
padding-right: 6px;

}


I've kept the spaces to show you what I changed, hopefully this should fix your issues, and hopefully not break anything else in your forums.
Title: Re: SMFChess
Post by: KGIII on June 20, 2007, 06:45:11 PM
It isn't how easily you accomplish something - it is how you accomplish something regardless of the effort. ;)
Title: Re: SMFChess
Post by: feeble on June 21, 2007, 02:07:51 AM
New package, no theme changes...sorry haven't got around to it yet.
Mostly just some changes that needed to be made sooner rather then later. Thanks to Godsongz for his help on this.

Package is for 1.1.2.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Changelog: 21/JUN/07
-PGN notation now stored in move history...Thanks to Godsongz for pointing this out
-Correct board rotation now, dark and light are in the correct squares now...Thanks to Godsongz for pointing this out
-Added export - export games into standard PGN notation. I've written this about 10minutes ago, so there might be some bugs. It WILL be bugged for games created before today, since PGN move notation wasnt being stored...sorry about that
Also its not final this export, as I've got it in the xml file, not sure if this is allowed or not, just a quick fix for now.
-Changed once more and final time how SMFChess stores move count. Its actually correct now, so any games created like over a week or 2 ago will have repeats in their move count. Should be right thou in time.
-Few other minor changes
Title: Permissions?
Post by: Godsongz on June 21, 2007, 11:10:42 AM
Where do I set permissions for who can play Chess?&nbsp; Basically I just want to only exclude guests since you need to be a logged-in-user.&nbsp; The menu items in index.template.php are checking for "allow_chess", so where is that variable defined?&nbsp; I can't seem to find it.

Of course, I might also just be missing something.&nbsp; Due to my hosting provider's configuration, I can't do package installs, so I do all mods manually.

EDIT:  Mea Culpa...  like I kinda thought it was going to be.  I never uploaded my edited ManagePermissions.php.  All set now.
Title: Re: SMFChess
Post by: pongsak on June 21, 2007, 08:00:57 PM
1.Still error "\" at chess.xml at line 120 and chess.php line 632
2. Suggestion : may be add ding dong sound when there's movement (may be an option).
Title: Re: SMFChess
Post by: feeble on June 21, 2007, 08:24:49 PM
Quote from: pongsak on June 21, 2007, 08:00:57 PM
1.Still error "\" at chess.xml at line 120 and chess.php line 632
2. Suggestion : may be add ding dong sound when there's movement (may be an option).

Hmm, I am going to have to take a look at your site,
Since there is nothing on line 120 anymore and line 632 is a new issue.
Are you sure you are using the latest build that I posted up yesterday?
If you are, can you send me your website URL in a PM or something similar


As for the ding, lol sounds like a good idea, I'll look into it, but I'm trying to cut down on bloat ATM (let alone finish the template), so I probably won't include it just yet.
I have been thinking about this issue thou,
What would you say to the last move been highlighted briefly?
or "Its your turn" being displayed at the top of the board?
Title: Re: SMFChess
Post by: pongsak on June 21, 2007, 10:36:46 PM
Oh, U're here again.  :)
1.I just install newest code yesterday, and don't touch anything, then i challange my partner. Wait for awhile he told me that he can't move, then i know it 's old problem, it's true.  the string errors again as i wrote and i correct it already. I'll snap the picture for you next time.

2.i think flashing 3 times and then persistent highlight at taskbar 's more cool idea, cause someone may listen music and don't hear alert sound., the text at the top of page may be less interesting because someone may browse another page at the same time. This must be an option cause if he both 're in the game all time may be very annoying .
Title: Re: SMFChess
Post by: pongsak on June 22, 2007, 02:03:32 AM
Another  suggestions.
1.may be add user in user online today , which guy and who between who.
2. limit time for each side, and let's user to choose and must same both side such as 60 sec. 120 sec. 180 sec, etc.
Title: Re: SMFChess
Post by: pongsak on June 22, 2007, 04:28:30 AM
I've an idea for temporarily correct communicate problem by put shout box at the end of gaming page like this.  :D

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg120.imageshack.us%2Fimg120%2F2442%2F32621990ks9.jpg&hash=f1dfb67280862a54bd0ead44d135a94a10630cb6)
Title: Re: SMFChess
Post by: JaGuR123 on June 22, 2007, 06:29:01 AM
Thanks Feeble Worked Cheers
Title: Re: SMFChess
Post by: feeble on June 22, 2007, 08:56:30 AM
Ok you will have to bear with me with my answers as you've covered a lot of different topics. Alot of my answers is just floating ideas, and I cant promise any of it sorry. I'm nearly finished my exams and should have more time on my hands soon.

Quote from: pongsak on June 22, 2007, 02:03:32 AM
1.may be add user in user online today , which guy and who between who.
Thats a pretty good idea actually. I probably wont add that just yet, as there is alot of little things that need to be added with it, like enable and disable, template edits etc. And how to actually show that sort of data efficiently.

Quote from: pongsak on June 22, 2007, 02:03:32 AM
2. limit time for each side, and let's user to choose and must same both side such as 60 sec. 120 sec. 180 sec, etc.
This was initially going to be in the mod, but I've dropped it for now as I'm looking into a tournament system which would be more at home with a timelimit. Whilst right now its more of a casual game of  chess.

Quote from: pongsak on June 22, 2007, 02:03:32 AM
I've an idea for temporarily correct communicate problem by put shout box at the end of gaming page like this.  :D
That screen looks really good, a little to many smiley's, but something similar might work. I'm assuming thats photoshoped but what shoutbox are you using there? I also wouldn't mind supporting another SMF mod if they have a good chat system, so I'll do a little research on this over the next week, or if you or anyone has any suggestions, I'm all ears.

Quote from: pongsak on June 22, 2007, 02:03:32 AM
1.I just install newest code yesterday, and don't touch anything, then i challange my partner. Wait for awhile he told me that he can't move, then i know it 's old problem, it's true.  the string errors again as i wrote and i correct it already. I'll snap the picture for you next time.
Screen shot should suffice, or your website url. Was he able to drag-drop correctly? or was he just not able to send? I dont know all the details yet to produce a fix yet.

Quote from: pongsak on June 22, 2007, 02:03:32 AM
2.i think flashing 3 times and then persistent highlight at taskbar 's more cool idea, cause someone may listen music and don't hear alert sound., the text at the top of page may be less interesting because someone may browse another page at the same time. This must be an option cause if he both 're in the game all time may be very annoying
I'll look into various methods of alerting a user. But I don't want it to be invasive. Don't really have an answer to this at this point.

That actually brings up an idea for a Firefox extension that will alert you of new PM's or replies...thats a conversation for another time
Title: Re: SMFChess
Post by: PLAYBOY on June 22, 2007, 10:30:32 AM
tournament system ??? WOW, thas sounds so good. i ll be waiting for that one.


I am pretty silent there days. cause i got what i needed for now. and i dont download the new updates now. i am waiting for it to become a final version. Its playable and thas all i needed for now. i thin we should let him take his time off and work a little bit. lets not make so much pressure on the guy.

Thanks again

Title: Re: SMFChess
Post by: pongsak on June 22, 2007, 11:04:34 AM
1. For error, he can move but can't send.
2. For shout box. http://custom.simplemachines.org/mods/index.php?mod=412
3. After i played for one game, one thing that i 'll suggest (again) is the text size of
    your turn and status ( progress, check, etc.) is so small , may be bold or blink a few   times.
4. Some sound for walking ( tok tok  :))

Thanks.
Title: Re: SMFChess
Post by: digger on June 22, 2007, 03:31:48 PM
Quote from: PLAYBOY on June 19, 2007, 05:45:08 PM
when you press "Finished games", the winner is wrong. The winner is actually the loser.. you need to swich that.

on the finished games screen, winner is actually the loser. but when you open up the game screen it says the real winner.

i mean the winner tab on finished games, has the losers name under it.
In Chess.template.php at line 706
replace
', $row['turn'],'
with
', ($row['turn']==$row['whiteName']) ? $row['blackName'] : $row['whiteName'] ,'
Title: Re: SMFChess
Post by: feeble on June 22, 2007, 07:01:29 PM
Quote from: digger on June 22, 2007, 03:31:48 PM
Quote from: PLAYBOY on June 19, 2007, 05:45:08 PM
when you press "Finished games", the winner is wrong. The winner is actually the loser.. you need to swich that.

on the finished games screen, winner is actually the loser. but when you open up the game screen it says the real winner.

i mean the winner tab on finished games, has the losers name under it.
In Chess.template.php at line 706
replace
', $row['turn'],'
with
', ($row['turn']==$row['whiteName']) ? $row['blackName'] : $row['whiteName'] ,'

Thanks for this, but PLAYBOY was refering to after a dynamic checkmate only, it would say the wrong name.

Quote from: PLAYBOYtournament system  WOW, thas sounds so good. i ll be waiting for that one.
This is a while away, so I wouldnt hold you breath for it.

Quote from: PLAYBOY
I am pretty silent there days. cause i got what i needed for now. and i dont download the new updates now. i am waiting for it to become a final version. Its playable and thas all i needed for now. i thin we should let him take his time off and work a little bit. lets not make so much pressure on the guy.
Lol, I've actually wondered where you had gone off to.
I suppose, thats actually the answer I'm actually still looking for.
If this mod is working for you, then thats perfect really.

Quote from: pongsak1. For error, he can move but can't send.
I really need more info on this sorry. Website url, screenshot of forum error log.

Quote from: pongsak3. After i played for one game, one thing that i 'll suggest (again) is the text size of
    your turn and status ( progress, check, etc.) is so small , may be bold or blink a few   times.
still havent finished that template, it will more then likely bold when its 'finished'

Title: Re: SMFChess
Post by: JaGuR123 on June 22, 2007, 07:18:10 PM
Thought i would check back in , and again congratulate Feeble for such a great mod and all the hard work he has put into it. It really works great.

Top Stuff
Anywhere i can donate a little cash for you , do you have Paypal or something ?

Also if you ever think of making a new Game mod , could i suggest Hold'em Poker ;)
I would pay for that :D


Cheers for great work
Title: Re: SMFChess
Post by: auspool on June 22, 2007, 07:42:17 PM
i would also like to thank feeble for the work that has gone into this
and also would love to have hold'em poker

daniel d
Title: Re: SMFChess
Post by: PLAYBOY on June 22, 2007, 10:05:15 PM
QuoteIf this mod is working for you, then thats perfect really.

is that a compliment :D anyway, you are doin a really good job.
Title: Re: SMFChess
Post by: Tron420 on June 23, 2007, 12:53:04 AM
im using this mod on my site but its not working correctly. the images / etc arent where they are supposed to be.

XD-Obtuse theme

see screenshots

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhittemupgaming.com%2Fpp.bmp&hash=b1420ffe4ff35ad13cb4333e7b3203fc1274eb7b)



SETTINGS MENU

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhittemupgaming.com%2Fll.bmp&hash=045679c68f307af3b9089e4709f4da22d5c2bfa4)
Title: Re: SMFChess
Post by: auspool on June 23, 2007, 01:04:27 AM
my chess peices end up out of alignment aswell after i have moved
but i will live with it till he has time to fix

daniel d
Title: Re: SMFChess
Post by: Tron420 on June 23, 2007, 01:14:06 AM
actually.. its worse depending on the users resolution...
Title: Re: SMFChess
Post by: pongsak on June 23, 2007, 03:12:00 AM
Another problem founded.
From my last post i'd putted smf shout box in chess.template.php.
Today i switch that to nneonneo's shoutbox
http://custom.simplemachines.org/mods/index.php?mod=585.
Which 's the ajax system and coing in index.template.php
Then when i open chess board it also automatically reloaded.
Something happen as shown in the picture.

Before shout reload.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg296.imageshack.us%2Fimg296%2F736%2Fpsk11xh0.jpg&hash=b8a53f16acc607a441bab559696addc0a71d79a2)

After shout reload.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg530.imageshack.us%2Fimg530%2F7105%2Fpsk12iw8.jpg&hash=88977b8377bd7f1cede4df5abff5c3bb04ec0e72)

Don't know how to fixed it.

Title: Re: SMFChess
Post by: feeble on June 23, 2007, 04:57:39 AM
Apologies for some of my responses in this post, as I've just arrived home from work.

Quote from: JaGuR123 on June 22, 2007, 07:18:10 PM
Top Stuff
Anywhere i can donate a little cash for you , do you have Paypal or something ?

Also if you ever think of making a new Game mod , could i suggest Hold'em Poker ;)
I would pay for that :D
Short answer to that is no, I wont except any money.

Also Hold'em Poker is a very good idea, but I probably wont look into it. Maybe someone else can.

Quote from: Tron420 on June 23, 2007, 12:53:04 AM
im using this mod on my site but its not working correctly. the images / etc arent where they are supposed to be.
XD-Obtuse theme

Ill look into it, this seems to be a common issue with certain themes. I might need like a reset piece button, or something similar. On the other hand, using Firefox works perfectly, IE seems to be the one with the issue.

Quote from: auspool on June 23, 2007, 01:04:27 AM
my chess peices end up out of alignment aswell after i have moved
but i will live with it till he has time to fix

daniel d

Really? you wouldn't have a screen on this, and what browser were you using at the time? I tried both firefox and IE on your site, and both seemed to work fine.

Quote from: pongsak on June 23, 2007, 03:12:00 AM
Another problem founded.
From my last post i'd putted smf shout box in chess.template.php.
Today i switch that to nneonneo's shoutbox
http://custom.simplemachines.org/mods/index.php?mod=585.
Which 's the ajax system and coing in index.template.php
Then when i open chess board it also automatically reloaded.
Something happen as shown in the picture.

That looks like a much better shoutbox.
I havent worked out exactly what to do about chat yet, since I don't want to force users to install one of these.
Right now, im thinking of making it an optional addon for this mod. A small package that will add the necessary code to put a chatbox at the bottom of the page.

Also that issue stems from the javascript in the drag drop code, ill look into a button that can reset the pieces back into position.
Also you wouldn't have that problem if you put the chat box beneath the chess board.
Title: Re: SMFChess
Post by: Tron420 on June 23, 2007, 06:34:58 AM
can u plz help me get it working on my site -

http://hittemupgaming.com/cz/index.php?action=chess
Title: Re: SMFChess
Post by: pongsak on June 23, 2007, 06:37:03 AM
Quoteyou wouldn't have that problem if you put the chat box beneath the chess board.

Good idea, i've already moved chat to below chess board. Done.
Title: Re: SMFChess
Post by: feeble on June 23, 2007, 08:03:51 AM
Quote from: Tron420 on June 23, 2007, 06:34:58 AM
can u plz help me get it working on my site -

http://hittemupgaming.com/cz/index.php?action=chess

Im trying to
but i cant do anything until these are sorted
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhittemupgaming.com%2Fcz%2Findex.php%3Faction%3Dchess%3Bdo%3Dcurrent

im testing the theme on my own site, and ill get back to you
Title: Re: SMFChess
Post by: Tron420 on June 23, 2007, 08:07:03 AM
kool thx

what are all those errors? i didnt realize there were that many lol...i dont get any errors
Title: Re: SMFChess
Post by: pongsak on June 23, 2007, 11:43:16 AM
Quotewhen you press "Finished games", the winner is wrong. The winner is actually the loser.. you need to swich that.

on the finished games screen, winner is actually the loser. but when you open up the game screen it says the real winner.

i mean the winner tab on finished games, has the losers name under it.

I've same problem too, and Digger's solution don't work.
How to correct?
Title: Re: SMFChess
Post by: feeble on June 23, 2007, 10:34:58 PM
Quote from: Tron420 on June 23, 2007, 08:07:03 AM
kool thx

what are all those errors? i didnt realize there were that many lol...i dont get any errors
You can read more about it here http://validator.w3.org/about.html
Ive spent some time working with your theme, and I havent solved it yet, and I probably wont until after I've submitted this mod, as even if I do, I'm still changing things around and it could cause more issues.

I would infact just get your errors down to at the most 5. Should help with consistency with your site between viewers and also possibly speed up the loading speed on your website.


Quote from: pongsakI've same problem too, and Digger's solution don't work.
How to correct?
Please don't read into this to much, Ive change the method of checking who has won about 3 times in the last week, and will probably change it again in the future, this problem might have to wait until after submission.
Title: Re: SMFChess
Post by: PLAYBOY on June 24, 2007, 02:20:35 AM
guys if you have problems with theme please refer your questions to your theme creator or your theme support. let the guy work on this mod and finish it quickly. he cant just solve every little theme problem. i think we are slowing him down so we ll be waiting for the final version  longer.
Title: Re: SMFChess
Post by: feeble on June 25, 2007, 01:49:49 AM
Just an update on whats currently happening

Chat - Ive recently just got permission from nneonneo to intergrate his really cool Shoutbox Mod (http://custom.simplemachines.org/mods/index.php?mod=585). So for the next couple of days I'm just going to be taking it apart and seeing how it ticks. I've already got it slightly integrated, in that its a separate shoutbox per board.

Chess board - I'm working on a better method for the chess pieces so that it can except either png or gif image types(still laying down some of the ground work) and to possibly use gd to determine the default piece size. also increasing the text size to go along with the pieces as well.


Also PLAYBOY is right in that I really should be focusing on getting this mod ready for submission, so I wont be looking at any more theme issues.
I'm going to have to write up a guideline which will need to be followed before you can ask for help or reporting a bug.
The guideline will more then likely follow the course of, getting your site xhtml validated and then I'll take a look.

I'll post up more on this after I've submitted the mod, as KGIII has said a few times that this mod may take awhile to check, so there will be lots of time to do it then.
Title: Re: SMFChess
Post by: TrueSatan on June 25, 2007, 09:36:13 PM
Sorry to put a dampener on part of this but I'd be disappointed to see that shoutbox as other than an option as it's a problem mod for a number of users...if you don't have a php accelerator installed and don't tinker with it to reduce (substantially!) the refresh rate it can flood your forums with database queries. If it's an option with suitable warnings given then that's fair enough.
Title: Re: SMFChess
Post by: feeble on June 25, 2007, 09:49:53 PM
Quote from: TrueSatan on June 25, 2007, 09:36:13 PM
Sorry to put a dampener on part of this but I'd be disappointed to see that shoutbox as other than an option as it's a problem mod for a number of users...if you don't have a php accelerator installed and don't tinker with it to reduce (substantially!) the refresh rate it can flood your forums with database queries. If it's an option with suitable warnings given then that's fair enough.

What sort of database queries flood are we talking about here?

is there a thread regarding this issue with the shoutbox mod?
Title: Re: SMFChess
Post by: TrueSatan on June 25, 2007, 10:19:18 PM
There are a lot of postings about it in the mods forum topic for the shoutbox. Reply 664 relates directly http://www.simplemachines.org/community/index.php?topic=137508.660 (http://www.simplemachines.org/community/index.php?topic=137508.660)

I know it's an easy enough thing for those of us used to editing code to do but less experienced members baulk at editing files and may well have problems such as their hosts suspending their sites as a result (see http://www.simplemachines.org/community/index.php?topic=137508.600 (http://www.simplemachines.org/community/index.php?topic=137508.600) reply 609 as an example)...this too has been reported on the shoutbox mod topic on more than one occasion.

If the chess mod has that particular shoutbox as other than an option the same problems will be faced by it...and even if it is an option then I would strongly advise that warnings be given regarding the need for either a php accelerator or a substantial reduction in refresh rate,

Frankly inclusion of a shoutbox would put me off using the chess mod so I'd only be happy if it were an option. By all means let those who want it have it but please, please make it an option so those of us who don't want such add ons can also be comfortable with the product.

BTW...in case this sounds too doom and gloom thus far I'm delighted with the chess mod and would like to thank you for your continued hard work on it.
Title: Re: SMFChess
Post by: feeble on June 25, 2007, 10:39:25 PM
Quote from: TrueSatan on June 25, 2007, 10:19:18 PM
There are a lot of postings about it in the mods forum topic for the shoutbox. Reply 664 relates directly http://www.simplemachines.org/community/index.php?topic=137508.660 (http://www.simplemachines.org/community/index.php?topic=137508.660)

I know it's an easy enough thing for those of us used to editing code to do but less experienced members baulk at editing files and may well have problems such as their hosts suspending their sites as a result (see http://www.simplemachines.org/community/index.php?topic=137508.600 (http://www.simplemachines.org/community/index.php?topic=137508.600) reply 609 as an example)...this too has been reported on the shoutbox mod topic on more than one occasion.

If the chess mod has that particular shoutbox as other than an option the same problems will be faced by it...and even if it is an option then I would strongly advise that warnings be given regarding the need for either a php accelerator or a substantial reduction in refresh rate,

Frankly inclusion of a shoutbox would put me off using the chess mod so I'd only be happy if it were an option. By all means let those who want it have it but please, please make it an option so those of us who don't want such add ons can also be comfortable with the product.

BTW...in case this sounds too doom and gloom thus far I'm delighted with the chess mod and would like to thank you for your continued hard work on it.

Its fair enough really, your "Doom and Gloom" is well placed, I know I'm not going to be able to please everyone.

I'm still working through the shoutbox mod, but hopefully by the end of it, you should be able to enable/disable the shoutbox from Chess Admin, and also adjust the refresh rate.

I still don't know how its going to react to websites hosted on free servers, so I might even have to move it to start storing the chat in a mysql database.
Title: Re: SMFChess
Post by: TrueSatan on June 25, 2007, 10:50:27 PM
Thanks for your positive attitude...it's always a pleasure using your codes as I know you support them this way.

I'd also be inclined to suggest that you consider having the shoutbox go dormant after a period of inactivity...either fixed (save for code edits) or set via the admin panel...this would mitigate problems to some extent even if a user were to set a refresh rate that would otherwise cause him/her server issues.
Title: Re: SMFChess
Post by: feeble on June 25, 2007, 11:21:46 PM
Quote from: TrueSatan on June 25, 2007, 10:50:27 PM
Thanks for your positive attitude...it's always a pleasure using your codes as I know you support them this way.

I'd also be inclined to suggest that you consider having the shoutbox go dormant after a period of inactivity...either fixed (save for code edits) or set via the admin panel...this would mitigate problems to some extent even if a user were to set a refresh rate that would otherwise cause him/her server issues.

This actually kinda reminds me, I kind of need to put a inactivity timeout for the chess updates itself.

I should be able to also manage one on the chat eventually.
Title: Re: SMFChess
Post by: PLAYBOY on June 26, 2007, 06:15:36 PM
i hate when people leave the match with finishing. I doesnt log that match as i won. i am wondering would you be able to add a "Give Up" button to game?

even though i have no idea about php programming, it sounds pretty easy to make this button
Title: Re: SMFChess
Post by: feeble on June 26, 2007, 09:14:21 PM
Quote from: PLAYBOY on June 26, 2007, 06:15:36 PM
i hate when people leave the match with finishing. I doesnt log that match as i won. i am wondering would you be able to add a "Give Up" button to game?

even though i have no idea about php programming, it sounds pretty easy to make this button

Already there, its the "Request Concede"
Title: Re: SMFChess
Post by: Godsongz on June 26, 2007, 10:26:18 PM
I think he means if the opponent has just abandoned the game.  Request Concede would only work if the opponent threw in the towel, but if he/she just walked away and left the game hanging...

Perhaps there should be a way for an administrator or moderator to grant a win to a player if their opponent has abandoned the game for a set period of time.
Title: Re: SMFChess
Post by: feeble on June 26, 2007, 11:32:25 PM
Quote from: Godsongz on June 26, 2007, 10:26:18 PM
I think he means if the opponent has just abandoned the game.  Request Concede would only work if the opponent threw in the towel, but if he/she just walked away and left the game hanging...

Perhaps there should be a way for an administrator or moderator to grant a win to a player if their opponent has abandoned the game for a set period of time.

I'll look into something like this, but I'm a little hesitant right now to do it, as I don't exactly trust admins to be able to handle something like this properly. But I'll look into a solution.


In other news, Ive uploaded the latest build.

I've added , on trial of course, quick play(I come up with the best names for features). Which is, that as soon as you drop the piece it will submit a move, instead of having to click send all the time.
I much prefer this, but if you don't like it please let me know, and I'll make it into an option.
I'm only forcing it atm to see if anyone doesn't like it.

I've dropped integrating nneonneo shoutbox mod into SMFChess as it was causing to many problems, and it was a little to complicated for what I wanted.

So instead, I made my own AJAX chat. Its very simple, but i'll improve it over time. Its my first attempt at ever making one and I think it turned out pretty well.
At the moment, its working on the same refresh rate at the board updates, but I change this in the future. Also Ill be adding the ability to disable it in the next build, but as with the quick play feature, I need it sort of tested, so please by all means let me know if there is something wrong with it or what it needs.

Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quick Changelog: 27/JUN/07
-Fixed a few bugs in index.template.php pointed out by nneonneo.
-Forcing 'Quick Play' - lets see how it goes
-Add Chat - again early days for this
Title: Re: SMFChess
Post by: Tron420 on June 28, 2007, 05:05:25 AM
i just tried the newest version and the pieces are still way outta place on my forum.. whenever the theme is on default it looks right however.. but i havent used a default theme since i started using smf. is there an edit i should make to a php file?
Title: Re: SMFChess
Post by: JaGuR123 on June 28, 2007, 06:13:18 AM
Do i uninstall the old version first, or just install over the top of it ?
There is no uninstall of the old version
Title: Re: SMFChess
Post by: feeble on June 28, 2007, 07:11:32 AM
Quote from: Tron420 on June 28, 2007, 05:05:25 AM
i just tried the newest version and the pieces are still way outta place on my forum.. whenever the theme is on default it looks right however.. but i havent used a default theme since i started using smf. is there an edit i should make to a php file?

I can't help you with this at present, as I need to focus on finishing and submitting this mod, as it is very time consuming fixing and getting themes validated.

I am working on a fix, that may or may not help, but in the mean time I would highly recommend start sorting out those Validation errors, as this would more then likely fix it.
Its another matter thou, if you aren't familar with php and are unable to go about fixing your theme.

http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fhittemupgaming.com%2Fcz%2Findex.php%3Faction%3Dchess%3Bdo%3Dcurrent
http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fhittemupgaming.com%2Fcz%2Findex.php%3Faction%3Dchess%3Bdo%3Dcurrent

Even if its to much trouble to get this mod working, it would be in your interest for a healthy website to sort those errors out.

QuoteDo i uninstall the old version first, or just install over the top of it ?
There is no uninstall of the old version
Ummmm, not good actually.

This is actually a slight issue, you might need to send me the chess.zip in YOUR FORUM/Packages/ and ill need to make a change
as I've altered the index.template code in the last package. Call this bad timing.
My email address is [email protected]

alternatively, if you know how to alter templates, upload the latest build into YOUR FORUM/Packages/ and you should be able to uninstall, but it Will fail when it comes to the index.template.php, you will need to manually take out the SMFChess code.
Just search for //SMFChess code start

This is really bad timing to say the least, if anyone else is having this issue please let me know, I might have to produce a patch and knock this mod up a version.
Title: Re: SMFChess
Post by: Tron420 on June 28, 2007, 07:40:40 AM
i didnt make the theme that im using and i really dont care about those errors if the site runs fine. i use it for a gaming clansite and its not like i get 100 visitors a day.. anyway its not worth all that work ( i wouldnt know where to start anyway ) just for 1 mod..
but if u ask me.. a mod that only works on the default theme isnt even worth downloading ..how many ppl use the default theme? maybe 1 outta 10?

woulda been kool to play chess ,but since ur so worried about my "errors" i guess il just wait till someone else makes a chess mod thats more "site friendly"

Title: Re: SMFChess
Post by: shred_head on June 28, 2007, 10:51:27 AM
why am i not seeing the chess option in my theme? aa_new_damage
Title: Re: SMFChess
Post by: PLAYBOY on June 28, 2007, 11:50:07 AM
Quote from: feeble on June 26, 2007, 09:14:21 PM
Quote from: PLAYBOY on June 26, 2007, 06:15:36 PM
i hate when people leave the match with finishing. I doesnt log that match as i won. i am wondering would you be able to add a "Give Up" button to game?

even though i have no idea about php programming, it sounds pretty easy to make this button

Already there, its the "Request Concede"

:D sorry about my english. You are right.

QuotePerhaps there should be a way for an administrator or moderator to grant a win to a player if their opponent has abandoned the game for a set period of time.

yeah that sounds good.

QuoteI've added , on trial of course, quick play(I come up with the best names for features). Which is, that as soon as you drop the piece it will submit a move, instead of having to click send all the time.
I much prefer this, but if you don't like it please let me know, and I'll make it into an option.
I'm only forcing it atm to see if anyone doesn't like it.

I think i ll like it.

QuoteI've dropped integrating nneonneo shoutbox mod into SMFChess as it was causing to many problems, and it was a little to complicated for what I wanted.

I was never on the chat side of it anyway :D

I believe chat should be an option for admin to set. I dont use chat on my site. Chat makes your forum to get less posts.

I gonna try the new version now to see wassup with it :D
Title: Re: SMFChess
Post by: Godsongz on June 28, 2007, 03:55:16 PM
Using the chat function to discuss a game with your opponent makes it feel more like an over-the-board game to me.  I like it.
Title: Re: SMFChess
Post by: JaGuR123 on June 28, 2007, 05:38:21 PM
Thanks Feeble , that fixed my problem.

Installed the new version , bloody brilliant .... love the drag and drop immediate move rather then send, and also love the chat window, but one request for the chat window , some people may agree with me , can you make it so that only the 2 players can see the chat window, it should be a simple fix shouldn't it  ?

Cheers Great work :D
Title: Re: SMFChess
Post by: feeble on June 28, 2007, 05:55:27 PM
Quote from: JaGuR123 on June 28, 2007, 05:38:21 PM
Thanks Feeble , that fixed my problem.

Installed the new version , bloody brilliant .... love the drag and drop immediate move rather then send, and also love the chat window, but one request for the chat window , some people may agree with me , can you make it so that only the 2 players can see the chat window, it should be a simple fix shouldn't it  ?

Cheers Great work :D

At the moment only the players and admins can actually Chat, whilst everyone else can only view but not able to add anything to the conversation.

If thats still not ok, I'll look into an option to who can see and not see the Chat area.

Quotewhy am i not seeing the chess option in my theme? aa_new_damage
This mod only alters the default theme, you will need to manually edit a few of your custom themes.

I'll be writing up a tutorial after I've submitted this mod.
Title: Re: SMFChess
Post by: KGIII on June 29, 2007, 07:24:46 AM
Quote from: Tron420 on June 28, 2007, 07:40:40 AM
a mod that only works on the default theme isnt even worth downloading ..how many ppl use the default theme? maybe 1 outta 10?

All mods that do any changes to the themes only work with the default theme(s). That is because that is how the theme system works.
Title: Re: SMFChess
Post by: Tron420 on June 29, 2007, 09:53:23 PM
Quote from: KGIII on June 29, 2007, 07:24:46 AM
Quote from: Tron420 on June 28, 2007, 07:40:40 AM
a mod that only works on the default theme isnt even worth downloading ..how many ppl use the default theme? maybe 1 outta 10?

All mods that do any changes to the themes only work with the default theme(s). That is because that is how the theme system works.

actually most mods ( well made ) DO work on other themes.. the only thing that usually doesnt "work" are the buttons on the index..
Title: Re: SMFChess
Post by: PLAYBOY on June 30, 2007, 12:38:59 AM
well i have tried the last version and it works perfect for me. good job.
Title: Re: SMFChess
Post by: TrueSatan on June 30, 2007, 04:54:28 AM
Yes, I've tested it too and as PLAYBOY says it seems to be problem free...a very good job on a very
Quotewell made
mod.

N.B. Mod developers are required to make sure that their mod(s) work(s) properly on/in the default theme...if certain members choose to use it/them in/on other themes that's not the choice, fault or problem of the mod(s) developer(s). Many mod developers do give limited assistance regarding use on other themes but that's out of kindness and consideration to fellow SMF users not out of any requirement.

A mod working or not working in a custom theme has nothing to do with how well the mod is made.
Title: Re: SMFChess
Post by: gmvasco on July 02, 2007, 06:12:42 PM
Hey feeble, how is the translation possibility going? I'dd very much like to translate. If you are not going to put that in, that's ok, I'll translate the game myself, it will just be a little more trouble every tome I want to upgrade.
Thanks.
Title: Re: SMFChess
Post by: feeble on July 02, 2007, 07:08:31 PM
Quote from: gmvasco on July 02, 2007, 06:12:42 PM
Hey feeble, how is the translation possibility going? I'dd very much like to translate. If you are not going to put that in, that's ok, I'll translate the game myself, it will just be a little more trouble every tome I want to upgrade.
Thanks.

Since I'm still adding/finalizing text, I haven't completed the english language file yet.

In the main package I want to include english and english-utf8

Since your after a Portuguese translation?
I could translate it using google translate, but if their are any grammer/spelling issues you might have to left me know and possibly fix yourself.

EDIT: Im also, still looking and trying to replace as much text as I can with Images, which is difficult in some places
Title: Re: SMFChess
Post by: Bulakbol on July 02, 2007, 09:38:49 PM
I installed it and using it now. It's working flawlessly  ;)

Thanks Feeble for this mod.
Title: Re: SMFChess
Post by: feeble on July 03, 2007, 09:25:04 AM
Quote from: JohnyB on July 02, 2007, 09:38:49 PM
I installed it and using it now. It's working flawlessly  ;)

Thanks Feeble for this mod.

I'm glad its working for you, if you have any suggestions at all, I'm more then happy to hear them.


Another note, an update for the next build, should be out in a couple of days.
This update will mostly be utilized on the control panel and finishing that section up.
I'll be finally adding ajax to those commands, so you don't have to reload the page and also changing the layout of it.
It will look something like this, unless anything else is needed?
For Players
Request: Undo Draw Resign

Also for chess admins - if it goes to plan that is
Add-Move Delete Clear-Chat Declare Win: White Black Draw

Add-Move - will just ask for coordinates, this is mostly to make it a little more difficult to use this command. Again its not final.
Title: Re: SMFChess
Post by: Bigguy on July 03, 2007, 11:46:30 AM
I have it installed at my site with about 30 other mods and it installed great and works awesome.  :)
Title: Re: SMFChess
Post by: gmvasco on July 05, 2007, 04:13:24 PM
Well, thank you feeble, if you are willing to translate it to portuguese (albeit some minor google translate errors).
Also, about those images, if you want my opinion, don't use them for comands. Everytime someone wants a translation (this mod is picking up followers) we have to translate the images, and that's a lot of trouble.
I prefer simple buttons. No pictures.
That's just my two cents on that.
So, the day you can provide me with that Portuguese translation, is the day I will be upgrading my smfchess instalation, AND to smf 1.13 :)
Again, thanks.
Title: Re: SMFChess
Post by: mohaakilla51 on July 05, 2007, 06:57:26 PM
wow, amazing mod feeble, I will be using this for the rest of my life !! :)
Title: Re: SMFChess
Post by: feeble on July 05, 2007, 09:28:57 PM
Quote from: gmvasco on July 05, 2007, 04:13:24 PM
Also, about those images, if you want my opinion, don't use them for comands. Everytime someone wants a translation (this mod is picking up followers) we have to translate the images, and that's a lot of trouble.
I prefer simple buttons. No pictures.
I do agree with you on this.

The one section I am thinking of switching to images only is the Castling area. To let the user if king or queen-side castling is available.
Reason being, is that I don't think using text for this section will be any good.

Everything else, is pretty much right with using text.


On another note, my site will be up and down for a couple of days till Tuesday 10am(GMT +10:00)
Title: Re: SMFChess
Post by: Godsongz on July 06, 2007, 11:47:37 AM
Quote from: feeble on July 05, 2007, 09:28:57 PMOn another note, my site will be up and down for a couple of days till Tuesday 10am(GMT +10:00)

I can see that.  I'm having a hard time getting leaderless to load right now.  Very sluggish, and when it finally does come up, most of the graphics are broken, which makes my next move in our chess game difficult...  but if my memory serves...  my move is Qxf2, checkmate.

I hope my recall of the layout is right, I hate calling checkmate when it isn't, so embarrassing :)
Title: Re: SMFChess
Post by: feeble on July 06, 2007, 10:30:37 PM
Quote from: Godsongz on July 06, 2007, 11:47:37 AM
my move is Qxf2, checkmate.

I hope my recall of the layout is right, I hate calling checkmate when it isn't, so embarrassing :)
Your very Correct, I even saw it...just didnt register till 5min afterwards.

I was Hoping you wouldnt notice lol. GG thanks for that
Title: Re: SMFChess
Post by: feeble on July 11, 2007, 04:48:30 AM
Update:
New build is rolling along nicely. Nothing new, just everything is running smoother and faster.

Also Moving day has arrived(This Friday), which means tonight and tomorrow I'll be moving over to my backup server(could take 4-6 days to kick the domain over).

The preview page is now jumping over to SMFHelper (http://www.smfhelper.info/forum/index.php) which will also be the place for Troubleshooting and any questions related to this mod(Thanks for bigguy and TrueSatan)
Title: Re: SMFChess
Post by: feeble on July 12, 2007, 10:47:55 AM
Ok, this mod is in the home stretch.
Essentially this build is the final for all the features and functions for V1 of this mod.
So please, if there is anything you would like added to this mod, please let me know ASAP.
Next build will just be theme updates and also I'll be moving all txt to the language files.
After that I'll be submitting the mod and ill be taking a break from working on SMFChess.
So again, if you want or think this mod needs something, please let me know.

Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quickchange Log:
12/JUL/07
-Added admin control panel
-Fixed bug where default wouldnt unset itself if not board was found
-tidied up add move function
-Fixed theme bug on 'finished' page
-Added /me command to chat
-Can now delete individual chat messages
-Group Color added to chat
-Chat Settings now in admin area
-Added user option "Quickplay"
-Change user options for resizing.
11/JUL/07
-Chat is now deleted when deleting a game
-Fixed bug on finished page
-Added delete button to Finished page
-Fixed timeout bug in Chat from nothing has been said
10/JUL/07
-Chat nows loads faster and sends-> faster as well
-Chat and Board now on timeouts - roughly 5min till timeout for either
-Control Panel Requests now using Ajax. No more page reloads Wooo. Changed Concede to Draw(causes Stalemate), added Resign(causes Checkmate)
Title: Re: SMFChess
Post by: pongsak on July 12, 2007, 11:52:25 AM
Thanks for a very good game.
Title: Re: SMFChess
Post by: auspool on July 12, 2007, 05:43:47 PM
so if i want the new version i have to uninstall th old is this right ??
and then will i have my current games still or will they be lost

daniel d
Title: Re: SMFChess
Post by: feeble on July 12, 2007, 05:49:50 PM
Quote from: auspool on July 12, 2007, 05:43:47 PM
so if i want the new version i have to uninstall th old is this right ??
and then will i have my current games still or will they be lost

daniel d
No game data(Mysql tables) is deleted on uninstall
Title: Re: SMFChess
Post by: Godsongz on July 14, 2007, 12:33:25 PM
A couple of questions for ya feeble...
-Where is the "Admin Control Panel" that you just added?
-What bug did you fix on the "finished" page? My finished page is still showing the loser as the winner.

And a few picky things...
-"Current" page is only showing the black pawns for black's turn. On games where it is white's turn, no pawn is shown.
-In chess.template.php, lines 1009 & 1019, change "challange" to "challenge"
-In PM's generated by SMFChess, the 1st line is always "<username> has made his move.", and I have a lot of female players on my site. Could we change "his" to a more generic "a" to be more inclusive? (chess.php, line 911)
-When SMFChess is loaded, both the HOME and CHESS icons are "lit". (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fchess_menubar.jpg&hash=8544a874e3d9d479bb0b3337c667235434d1dfa2)


That's all I can think of for now. I'd still love to see a structured tournament mode, and maybe a way of keeping a library of classic games for teaching purposes, but these are things for version 2 :) Along with everyone else here feeble, I offer congratulations on a fantastic mod!!
Title: Re: SMFChess
Post by: feeble on July 14, 2007, 06:35:12 PM
Quote from: Godsongz on July 14, 2007, 12:33:25 PM
A couple of questions for ya feeble...
-Where is the "Admin Control Panel" that you just added?
-What bug did you fix on the "finished" page? My finished page is still showing the loser as the winner.
-Admin control panel will only show if
A- you are an admin
and
B- You are not playing in the board you are looking at

I did this mostly so that a player cannot try and abuse his admin privileges, as now that they can add moves. I think its a good simple system. Should of explained that better before.
I know its probably silly thinking an admin would like to cheat.

-On the finished page, its only fixed for newly finished games, reason being is that it was checking the wrong variable to tell who had won. So in the old games, it will still be showing the wrong person.
Quote from: Godsongz on July 14, 2007, 12:33:25 PM
And a few picky things...
-"Current" page is only showing the black pawns for black's turn. On games where it is white's turn, no pawn is shown.
-In chess.template.php, lines 1009 & 1019, change "challange" to "challenge"
-In PM's generated by SMFChess, the 1st line is always "<username> has made his move.", and I have a lot of female players on my site. Could we change "his" to a more generic "a" to be more inclusive? (chess.php, line 911)
-When SMFChess is loaded, both the HOME and CHESS icons are "lit". (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fchess_menubar.jpg&hash=8544a874e3d9d479bb0b3337c667235434d1dfa2)
-Are you sure its only showing black? I'm on your site, and its showing both black and white for turns.
-LOL, I'll be putting the $txt for the PM in the language file soon, so Ill make the relevant changes....
How about if I check what the user has in there profile?
-That was fixed, well should of been fixed...
Did it failed at all when you were installing the package?
If not, can you send me a copy of your index.template.php to [email protected]

Quote from: Godsongz on July 14, 2007, 12:33:25 PM
That's all I can think of for now. I'd still love to see a structured tournament mode, and maybe a way of keeping a library of classic games for teaching purposes
I would to ;) but might be there for V2.
Classic games sounds like a good idea, let me first integrate a PGN importer, then that shouldn't be to much of a leap. Again for V2
Title: Re: SMFChess
Post by: Godsongz on July 14, 2007, 06:59:04 PM
Quote from: feeble on July 14, 2007, 06:35:12 PM
B- You are not playing in the board you are looking at
Oh, right, didn't think of that :)

Quote from: feeble on July 14, 2007, 06:35:12 PM
-Are you sure its only showing black? I'm on your site, and its showing both black and white for turns.
I should have edited that out of my last message, so sorry for sending you on a wild goose chase.  That problem was due to a bad FTP upload, which I fixed by switching my FTP client to "Binary" uploads.
Title: Re: SMFChess
Post by: Godsongz on July 15, 2007, 08:50:22 AM
Quote from: Godsongz on July 14, 2007, 12:33:25 PM
-When SMFChess is loaded, both the HOME and CHESS icons are "lit". (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fchess_menubar.jpg&hash=8544a874e3d9d479bb0b3337c667235434d1dfa2)

I found that bug too.  Because my hosting provider doesn't have "suexec" as part of their php build, I am forced to do all my updates and modifications manually.  No package installs for me. :( Looks like I missed a step in the manual install, so my index.template.php wasn't quite right.  All set now.
Title: Re: SMFChess
Post by: feeble on July 15, 2007, 09:43:10 AM
Quote from: Godsongz on July 15, 2007, 08:50:22 AM
Quote from: Godsongz on July 14, 2007, 12:33:25 PM
-When SMFChess is loaded, both the HOME and CHESS icons are "lit". (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fchess_menubar.jpg&hash=8544a874e3d9d479bb0b3337c667235434d1dfa2)

I found that bug too.  Because my hosting provider doesn't have "suexec" as part of their php build, I am forced to do all my updates and modifications manually.  No package installs for me. :( Looks like I missed a step in the manual install, so my index.template.php wasn't quite right.  All set now.

Oh ok, well thats good to hear.

Template modifications should be final now.
I wont be adding or changing any more template files using xml.
Title: Re: SMFChess
Post by: Ryan on July 15, 2007, 10:54:58 AM
Ok tested on my live active forum of 50,000 members.
Bugs i found

1) Seems that the chat times out after 4 mins due to "inactivity" at least thats what it says in the disabled chat textbox...

2) Seems that if u refresh the page whilst playing the pieces reset as if it was a new game about to begin, although if u goto current games link u can retrieve the game and continue playing.

3) On the my page i had won 2 games but the my page presents it as:
AfterShock beat Method Checkmate
ωħϊşŧļεя beat Method Checkmate
This is misleading people to think i was beaten in both games when infact i won them?
But when you actualy check the games it does say Method winner there. (Check screenshot below)

Hope you can fix all that my friend!

Thanks for all the great effort you put in!
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=129749.0;attach=36546)
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=129749.0;attach=36548;image)
Title: Re: SMFChess
Post by: feeble on July 15, 2007, 11:30:28 AM
Quote from: M3THOD on July 15, 2007, 10:54:58 AM
1) Seems that the chat times out after 4 mins due to "inactivity" at least thats what it says in the disabled chat textbox...
This is actually deliberate.(and requested)
Both the Chess board and the Chat area will time out after 5min(well should be this, ill recheck it) if not used.
This is mostly just incase a user leaves the browser open and goes to sleep or work etc whilst viewing a board.
Would you like an option for this? or to be able to set your own inactivity timeout?
EDIT:I will be adding a link, so you can reset the inactivity if it does timeout. So you dont have to reload the page if it does happen.

Quote from: M3THOD on July 15, 2007, 10:54:58 AM
2) Seems that if u refresh the page whilst playing the pieces reset as if it was a new game about to begin, although if u goto current games link u can retrieve the game and continue playing.
I'm a little surprised by this.
As the board is initially loaded to its current state on page load, not after.
I'll try and replicate this on my own test forum.

Quote from: M3THOD on July 15, 2007, 10:54:58 AM
3) On the my page i had won 2 games but the my page presents it as:
AfterShock beat Method Checkmate
ωħϊşŧļεя beat Method Checkmate
This is misleading people to think i was beaten in both games when infact i won them?
But when you actualy check the games it does say Method winner there. (Check screenshot below)
To be honest I'm still designing and throwing up ideas for "My Page" still.
I'm still a little stumped to what information it should contain.

At the moment thou, that section(Recent Matches) is going to be dropped in the next build, which is why I haven't fix the issue.
Reason for this is because I don't think there is enough room to display results, and the actual "Result" page does a far sight better job.


Thanks for the feedback as well, its greatly appreciated.
Title: Re: SMFChess
Post by: Ryan on July 15, 2007, 02:26:41 PM
Well i guess maybe it could be that i have Mkportal and so it could be that causing the refresh not to work as it suposed to.

Maybe changing the text box to somthing like 30 mins? thats th average length of a game i guess...

Or a reactivate chat link like u say would be good too.

Would be nice to have a stats page to show who one latest games rather than a finnished games page.. WHich would be the main chess page.
On side in blocks have
top 5 nicks won most games..
top  5 nicks lost most games

In middle have latest 20 games played, and display it  how u got it on finnished page..

Maybe if someone has offerd a challenge buildthe notification from my page into the challange page where u can offer a challenge to someone aswell as accept new ones that have been offerd to you.

I understand that this mod has been just put together and u aint realy organised anything yet, but just thought it would be quite cool to have it like that.





Title: Re: SMFChess
Post by: feeble on July 16, 2007, 09:04:10 PM
Apologies for the delayed response.

Quote from: M3THOD on July 15, 2007, 02:26:41 PM
Well i guess maybe it could be that i have Mkportal and so it could be that causing the refresh not to work as it suposed to.
I think this could be the case as well, but Ill look into it anyways.
I believe SMFShop had a similar issue and I might use the same fix.

Quote from: M3THOD on July 15, 2007, 02:26:41 PM
Maybe changing the text box to somthing like 30 mins? thats th average length of a game i guess...
I'll add this as an option in the admin area.

Quote from: M3THOD on July 15, 2007, 02:26:41 PM
Would be nice to have a stats page to show who one latest games rather than a finnished games page.. WHich would be the main chess page.
On side in blocks have
top 5 nicks won most games..
top  5 nicks lost most games
I was hoping to delay stats till after release.
As I would prefer a point system as well as a win/loss record.

Quote from: M3THOD on July 15, 2007, 02:26:41 PM
In middle have latest 20 games played, and display it  how u got it on finnished page..

Maybe if someone has offerd a challenge buildthe notification from my page into the challange page where u can offer a challenge to someone aswell as accept new ones that have been offerd to you.
The Challenge page is very basic...very basic.
I really like that idea, I think I will include it in, as well as a better challenge system which an actual search.
Also I've been toying with a "quick game" addition if I can get it to work correctly.
Title: Re: SMFChess
Post by: Godsongz on July 16, 2007, 10:21:55 PM
Quote from: feeble on July 16, 2007, 09:04:10 PM
As I would prefer a point system as well as a win/loss record.

Yes. The standard Win = 1 point, Draw/Stalemate = 0.5 point, Loss = 0 points would also fit in nicely to a tournament system.

Off-topic Grammar Question: why is 1 point singular, but 0 points plural? That always bothered me.
Title: Re: SMFChess
Post by: Godsongz on July 17, 2007, 12:33:33 AM
I wanted to contribute a little to this project, since it's my #1 favorite SMF mod. I have many freeware chess fonts in my library, and I've begun converting a few to graphic form so they can be used in SMFChess. Decompress this archive (nothing but .gif files in there, don't worry) into your /$themedir/SMFChess/pieces directory for three new sets of chess pieces.

PiecePack01.rar (http://crossfire.org/PiecePack01.rar) = "Alpha", "Harlequin", & "Leipzig"

Enjoy, and more to come!
Title: Re: SMFChess
Post by: feeble on July 17, 2007, 02:49:38 AM
Quote from: Godsongz on July 17, 2007, 12:33:33 AM
Yes. The standard Win = 1 point, Draw/Stalemate = 0.5 point, Loss = 0 points would also fit in nicely to a tournament system.

Off-topic Grammar Question: why is 1 point singular, but 0 points plural? That always bothered me.
I agree, I like simple systems...

Thats a good question.

Quote from: Godsongz on July 17, 2007, 12:33:33 AM
I wanted to contribute a little to this project, since it's my #1 favorite SMF mod. I have many freeware chess fonts in my library, and I've begun converting a few to graphic form so they can be used in SMFChess. Decompress this archive (nothing but .gif files in there, don't worry) into your /$themedir/SMFChess/pieces directory for three new sets of chess pieces.

PiecePack01.rar (http://crossfire.org/PiecePack01.rar) = "Alpha", "Harlequin", & "Leipzig"

Enjoy, and more to come!

Wow thank you very much for this contribution.
I actually stunned to tell the truth.

Just need to confirm thou, is there any licenses/agreements attached to any of these images?

Thank you very much again, Leipzig is my default choice now.
Ill have to let you beat me now as well...
Title: Re: SMFChess
Post by: TrueSatan on July 17, 2007, 04:15:40 AM
Quote from: feeble on July 17, 2007, 02:49:38 AM
Quote from: Godsongz on July 17, 2007, 12:33:33 AMOff-topic Grammar Question: why is 1 point singular, but 0 points plural? That always bothered me.
Thats a good question.

Very off topic reply (remember, you did ask)!

Proper nouns are divided into two classes, countable and definite; countable nouns refer to people, places, or things that can be counted. When dealing with a Plural or Uncountable Noun one should ask oneself, "Is the noun definite?" if yes then use "the"; for example, "The bugs I found..." (Plural and definite) if no then use 0 (no article); for example, "Long bug reports are difficult to write." (Plural and indefinite)

Note that the 0 (no article) distinction is a special grammatical form given specific treatment...that's what you were asking about in your question and it's because it is a distinct type (class) of proper noun that its treatment stands out from the rest.
Title: Re: SMFChess
Post by: Godsongz on July 17, 2007, 10:36:18 AM
Quote from: feeble on July 17, 2007, 02:49:38 AM
Just need to confirm thou, is there any licenses/agreements attached to any of these images?

No. The fonts that I used to create the images from were released as freeware with (at least to my knowledge) no stipulations as to thier use. If you're planning on including them in the distributed package for SMFChess, you might want to mention the author's names though, as a courtesy at least. "Alpha" was created by Eric Bentzen, "Harlequin" and "Leipzig" by Armando H. Marroquin. You're eventually going to need to put a readme or something in the package anyway.

TS: thanks for the grammar lesson :) English is chock full of specifics and exceptions, so it's no surprise that there's a well-defined rule for this.
Title: Re: SMFChess
Post by: TrueSatan on July 17, 2007, 11:55:38 AM
@ Godsongz

My pleasure as regards grammar lessons.

Would you just check something though...I know you've told us those images were released as freeware, and I'm not doubting you at all, but could you give a link such that it could be in the read me and show that there were no stipulations as to their use...it would head off any possible questions about them that might be raised in the future.
Title: Re: SMFChess
Post by: Godsongz on July 17, 2007, 12:00:59 PM
Quote from: TrueSatan on July 17, 2007, 11:55:38 AM
Would you just check something though...I know you've told us those images were released as freeware, and I'm not doubting you at all, but could you give a link such that it could be in the read me and show that there were no stipulations as to their use...it would head off any possible questions about them that might be raised in the future.

Here's where I got the fonts from originally...  http://www.enpassant.dk/chess/fonteng.htm
Title: Re: SMFChess
Post by: TrueSatan on July 17, 2007, 03:25:27 PM
Thanks! That certainly does open up a big selection for use in the mod...and I even saw a link to another page with still more.
Title: Re: SMFChess
Post by: PLAYBOY on July 17, 2007, 11:55:23 PM
can somebody please change the winner to THE REAL WINNER on finished games tab? I won most of my games and i look like a huge loser there.
Title: Re: SMFChess
Post by: feeble on July 18, 2007, 02:40:32 AM
Quote from: PLAYBOY on July 17, 2007, 11:55:23 PM
can somebody please change the winner to THE REAL WINNER on finished games tab? I won most of my games and i look like a huge loser there.

Cant really fix this for completed games sorry.

It is "fixed" in the latest build.
Problem was that after a win, it was checking the wrong variable so it would always be false.
Reason why it is correct when you view the board, is because it pulls the win from the fen string, which isn't a practical method on the finished page.

Fixed for future games thou.

Maybe this could help
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smbc-comics.com%2Fcomics%2F20070716.gif&hash=9e2eb39b675c187e81e2d94163f3812e31b9ee2c)
Title: Re: SMFChess
Post by: Godsongz on July 18, 2007, 01:21:21 PM
Quote from: TrueSatan on July 17, 2007, 03:25:27 PM
Thanks! That certainly does open up a big selection for use in the mod...and I even saw a link to another page with still more.

I plan to make another "PiecePack" when I get home (on a short business trip to Florida right now). From the fonts on that page I linked, are there any specific requests for pieces?
Title: Re: SMFChess
Post by: MinasC on July 18, 2007, 05:05:07 PM
great mod , but is it ok with 1.1.3 ? i got an error in index.template.php !

thnx !
Title: Re: SMFChess
Post by: feeble on July 18, 2007, 07:33:02 PM
Quote from: GodsongzI plan to make another "PiecePack" when I get home (on a short business trip to Florida right now). From the fonts on that page I linked, are there any specific requests for pieces?
Thanks for going through the trouble and converting these fonts mate.

Quote from: MinasC on July 18, 2007, 05:05:07 PM
great mod , but is it ok with 1.1.3 ? i got an error in index.template.php !

thnx !
This has more the likely happened since you have other mods installed.

I wouldn't recommend installing this mod, as since it is still in development, I can't give or fix any template issues for now since I'm still adjusting and making changes, and you will need to be required to not only install but uninstall the builds that get released.
Title: Re: SMFChess
Post by: Tron420 on July 19, 2007, 05:02:27 AM
is there any way someone can help get this mod to work on XDObtuse theme?
Title: Re: SMFChess
Post by: MinasC on July 19, 2007, 02:05:41 PM
Quote from: feeble on July 18, 2007, 07:33:02 PM
Quote from: GodsongzI plan to make another "PiecePack" when I get home (on a short business trip to Florida right now). From the fonts on that page I linked, are there any specific requests for pieces?
Thanks for going through the trouble and converting these fonts mate.

Quote from: MinasC on July 18, 2007, 05:05:07 PM
great mod , but is it ok with 1.1.3 ? i got an error in index.template.php !

thnx !
This has more the likely happened since you have other mods installed.

I wouldn't recommend installing this mod, as since it is still in development, I can't give or fix any template issues for now since I'm still adjusting and making changes, and you will need to be required to not only install but uninstall the builds that get released.

thnx a lot for the answer , i guess i will have to wait for that mod ...
Title: Re: SMFChess
Post by: Godsongz on July 20, 2007, 12:08:53 AM
6 new piece sets available now:

PiecePack01 (http://crossfire.org/PiecePack01.rar) = Alpha (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Falpha%2Fwhite_knight.gif&hash=53353ce2014e6f134171d7c12d0b6e39e3e75c64)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Falpha%2Fblack_rook.gif&hash=7eb97dc70303ef5f9f55b8e2f6cc8366d25e4f8b), Harlequin (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fharlequin%2Fwhite_knight.gif&hash=ed7cefb0bf200ec1507daff431d82d93b49774d2)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fharlequin%2Fblack_rook.gif&hash=7b3494a8fddc25658d13e7fe3ce035c1d76afcf5), & Leipzig (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fleipzig%2Fwhite_knight.gif&hash=db9973f0a1f25d79e31899860d91bed14cb17e7f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fleipzig%2Fblack_rook.gif&hash=41dfc0912127aa531998d1bc3d0b807fe4bb1bd1)
PiecePack02 (http://crossfire.org/PiecePack02.rar) = Condal (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fcondal%2Fwhite_knight.gif&hash=305397c0f28cc19abb3ae42ccbfa806379e3cd66)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fcondal%2Fblack_rook.gif&hash=91c7facde0f1a97df92da93a07c486e5b291c9b5), Magnetic (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmagnetic%2Fwhite_knight.gif&hash=cae8db63387b3cdae0f9b29feefbc6b422cc6044)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmagnetic%2Fblack_rook.gif&hash=d5ab243fcfc61ef81da8acf05c82ea3e28afc338), & Marroquin (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmarroquin%2Fwhite_knight.gif&hash=1b8cef54faa774f1a09b0afb101bf93178ea1e7c)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fcovenant%2FThemes%2Fdefault%2FSMFChess%2Fpieces%2Fmarroquin%2Fblack_rook.gif&hash=687d42480ce68da7e6fba8c7bb4001375dd3a238)
Title: Re: SMFChess
Post by: Bigguy on July 20, 2007, 12:28:42 AM
Nice, thank you very much. :)
Title: Re: SMFChess
Post by: pongsak on July 20, 2007, 02:06:02 AM
Thanks.  8)
Title: Re: SMFChess
Post by: feeble on July 20, 2007, 02:19:20 AM
Quote from: Tron420 on July 19, 2007, 05:02:27 AM
is there any way someone can help get this mod to work on XDObtuse theme?

Im very sorry to say this, but at the moment I cant give any support inregards to theme issues.

Reason for this is that since this is this indevelopment, things are still being moved around and I cant guareentee that any fixes that are made now will actual help once the mod has been officially been released.

Now regarding your theme, XDObtuse, the reason for the misalignment with the pieces is to do with the Drag-Drop script by Walterzorn. The best answer to the problem I can give at the moment is that, the grid that the drag-drop works on gets pushed out of alignment by unclosed <div> and <tables>.

From looking at the troubleshooting guides regarding this script,  is to validate the theme in question. Im more then happy to help you with this issue after release, but you can either try and fix these issues your self, talk to the theme creator in question or just wait for release.

Apologies if this is not an acceptable answer, but its the best that I can give for now.
Title: Re: SMFChess
Post by: Godsongz on July 21, 2007, 09:54:05 PM
Quote from: M3THOD on July 15, 2007, 10:54:58 AM
3) On the my page i had won 2 games but the my page presents it as:
AfterShock beat Method Checkmate
ωħϊşŧļεя beat Method Checkmate
This is misleading people to think i was beaten in both games when infact i won them?

Until a permanant fix (or removal, or whatever) happens for this, just make an easy edit to your Chess.template.php file, line 124, and reverse whiteName and blackName. You should have correct results then.
Title: Re: SMFChess
Post by: PLAYBOY on July 23, 2007, 06:14:13 PM
i think it would be good if you can add "Watchers" section in game. So people can see who are wathinc their game, when they are playin.
Title: Re: SMFChess
Post by: PLAYBOY on July 23, 2007, 06:21:02 PM
also Admins should be able to write to Chat section, even when they are not one of the players.
Title: Re: SMFChess
Post by: feeble on July 24, 2007, 01:51:59 AM
Quote from: PLAYBOY on July 23, 2007, 06:14:13 PM
i think it would be good if you can add "Watchers" section in game. So people can see who are wathinc their game, when they are playin.
I am looking into a better way to work out where users are and what they are viewing, to better handle PM's.
Nothing is done yet thou, so I cant promise anything at the moment.

If thou it could be done, where abouts would you like it to be displayed? To the right of the chat area?

Quote from: PLAYBOY on July 23, 2007, 06:14:13 PM
also Admins should be able to write to Chat section, even when they are not one of the players.
This is how it is done already(well should be done).
Have you had any issues where admins weren't able to chat in a game?
Ill look over the code again for any errors
Title: Re: SMFChess
Post by: PLAYBOY on July 24, 2007, 05:01:09 AM
QuoteIf thou it could be done, where abouts would you like it to be displayed? To the right of the chat area?

I think it would be ok on somewhere in right side of board.

QuoteThis is how it is done already(well should be done).
Have you had any issues where admins weren't able to chat in a game?
Ill look over the code again for any errors

well i tried yesterday and it didint work. would it be because of i use a different theme than default? i dont think so. because everything else is ok.
Title: Re: SMFChess
Post by: PLAYBOY on July 24, 2007, 10:28:28 AM
i got this in my error log about admin to chat as watcher...

8: Undefined index: Text
File: /home/site/folder/forum/Themes/default/ChessChat.template.php (eval?)
Line: 34
Title: Re: SMFChess
Post by: PLAYBOY on July 24, 2007, 10:29:34 AM
and this

8: Undefined index: allow_chess_admin
File: /home/site/folder/forum/Sources/ChessChat.php
Line: 78
Title: Re: SMFChess
Post by: jiminoregon on July 24, 2007, 03:12:47 PM
Any idea why I can't get the chess button to appear to anyone but admins? Code Below:


// The [arcade]!
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="', $scripturl, '?action=arcade">' , $txt['permissiongroup_arcade'] , '</a>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
&nbsp;
&nbsp; &nbsp; &nbsp;//Begin SMFChess code
   if($context['allow_chess']){
   loadLanguage("Chess");
   echo ($context['current_action'] == 'chess' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
         <td valign="top" class="maintab_' , $context['current_action'] == 'chess' ? 'active_back' : 'back' , '">
            <a href="', $scripturl, '?action=chess">'.$txt['SMFChess'].'</a>
         </td>' , $context['current_action'] == 'chess' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
   }
   //END SMFChess code   &nbsp; &nbsp;&nbsp; &nbsp;
&nbsp; &nbsp;
   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'admin' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=admin">' , $txt[2] , '</a>
            </td>' , $current_action == 'admin' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Thanks,

Jim
Title: Re: SMFChess
Post by: feeble on July 24, 2007, 05:33:03 PM
Quote from: PLAYBOYi got this in my error log about admin to chat as watcher...

8: Undefined index: Text
File: /home/site/folder/forum/Themes/default/ChessChat.template.php (eval?)
Line: 34

Can I just confirm first off that you are using the latest build?
You said in an earlier post, that you were comfortable with a certain build that was put out a while ago?


Quote from: PLAYBOYand this

8: Undefined index: allow_chess_admin
File: /home/site/folder/forum/Sources/ChessChat.php
Line: 78
You will get this for a while I'm sorry to say, as this error is referring to a $txt variable, which is currently located in an English Language file.

On another note with this, I've looked into converting the Language files using Google Translate...and whilst it works, it doesn't do a very good job, in fact gibberish comes to mind.

So what I'm thinking instead, is to do the Portuguese(etc) language files in English, then ask someone else to do a translate, then update the language files.

Quote from: jiminoregon on July 24, 2007, 03:12:47 PM
Any idea why I can't get the chess button to appear?  Code Below:
Before you do this thou, can i just confirm, did you get any errors when you were installing this mod? As since this is an early build and not finished, you will be required to uninstall.

First off, can you please check your
Sources/Subs.php
Look for $context['allow_chess']

If you cant find it,
search for
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
and on the next line add

$context['allow_chess'] = allowedTo(array('chess_main', 'chess_play'));
$context['allow_chess_admin'] = allowedTo('chess_admin');
Title: Re: SMFChess
Post by: jiminoregon on July 24, 2007, 07:17:55 PM
Quote from: jiminoregon on July 24, 2007, 03:12:47 PM
Any idea why I can't get the chess button to appear?&nbsp; Code Below:

Quote
Before you do this thou, can i just confirm, did you get any errors when you were installing this mod? As since this is an early build and not finished, you will be required to uninstall.

First off, can you please check your
Sources/Subs.php
Look for $context['allow_chess']

If you cant find it,
search for
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
and on the next line add

$context['allow_chess'] = allowedTo(array('chess_main', 'chess_play'));
$context['allow_chess_admin'] = allowedTo('chess_admin');


First let me say how cool this mod is, and how kind you are to help.

The subs.php is correct. I went through all the affected sheets...all edits seem fine.

Yes there was an error in installation noted on index.template.php.  I traced all the edits on it and they worked fine...so no idea what the problem was supposed to be. I'll keep tracing it down and if I find out I'll let you know.

Jim
Title: Re: SMFChess
Post by: jiminoregon on July 25, 2007, 03:41:26 PM
Quote from: jiminoregon on July 24, 2007, 07:17:55 PM
Quote from: jiminoregon on July 24, 2007, 03:12:47 PM
Any idea why I can't get the chess button to appear?&nbsp; Code Below:

Quote
Before you do this thou, can i just confirm, did you get any errors when you were installing this mod? As since this is an early build and not finished, you will be required to uninstall.

First off, can you please check your
Sources/Subs.php
Look for $context['allow_chess']

If you cant find it,
search for
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
and on the next line add

$context['allow_chess'] = allowedTo(array('chess_main', 'chess_play'));
$context['allow_chess_admin'] = allowedTo('chess_admin');


First let me say how cool this mod is, and how kind you are to help.

The subs.php is correct. I went through all the affected sheets...all edits seem fine.

Yes there was an error in installation noted on index.template.php.&nbsp; I traced all the edits on it and they worked fine...so no idea what the problem was supposed to be. I'll keep tracing it down and if I find out I'll let you know.

Jim

An Update... I put it on another forum and had the exact same results:

1.  Install warned it couldn't write to index.template.php....but it did...all edits in place.
2.  Chess button is visible to admins...and 2 admins can play fine.
3.  Chess button is not visible to non admins...and if they try to go there manually it tells them they are no allowed.

So apparently this is a permissions problem.  I've searched and I'll be darned where it is...all edits look fine.   Any Ideas?

Jim
Title: Re: SMFChess
Post by: feeble on July 25, 2007, 05:37:00 PM
Quote from: jiminoregon on July 25, 2007, 03:41:26 PM
First let me say how cool this mod is, and how kind you are to help.

The subs.php is correct. I went through all the affected sheets...all edits seem fine.

Yes there was an error in installation noted on index.template.php.&nbsp; I traced all the edits on it and they worked fine...so no idea what the problem was supposed to be. I'll keep tracing it down and if I find out I'll let you know.

Jim

Go into permissions for the membergroup your want to allow to play SMFChess
on the right hand side look for
SMFChess
   Access to SMFChess    
   Allowed to Challenge    
   Admin Access

Enable Access and Alllowed to

Should work after that
Title: Re: SMFChess
Post by: jiminoregon on July 25, 2007, 06:22:03 PM
Quote from: feeble on July 25, 2007, 05:37:00 PM
Quote from: jiminoregon on July 25, 2007, 03:41:26 PM
First let me say how cool this mod is, and how kind you are to help.

The subs.php is correct. I went through all the affected sheets...all edits seem fine.

Yes there was an error in installation noted on index.template.php.&nbsp; I traced all the edits on it and they worked fine...so no idea what the problem was supposed to be. I'll keep tracing it down and if I find out I'll let you know.

Jim

Go into permissions for the membergroup your want to allow to play SMFChess
on the right hand side look for
SMFChess
   Access to SMFChess    
   Allowed to Challenge    
   Admin Access

Enable Access and Alllowed to

Should work after that

An Update... I put it on another forum and had the exact same results:

1.  Install warned it couldn't write to index.template.php....but it did...all edits in place.
2.  Chess button is visible to admins...and 2 admins can play fine.
3.  Chess button is not visible to non admins...and if they try to go there manually it tells them they are no allowed.

So apparently this is a permissions problem.  I've searched and I'll be darned where it is...all edits look fine.   Any Ideas?

Jim

That was it...thanks so much.  Swore I checked there, but I must of missed it. 

Thanks again...very cool mod,

Jim
Title: Re: SMFChess
Post by: feeble on July 26, 2007, 10:28:07 AM
Quote from: jiminoregon on July 25, 2007, 06:22:03 PM
That was it...thanks so much.  Swore I checked there, but I must of missed it. 

Thanks again...very cool mod,

Jim

Glad you got it working, and appreciated.


Short update of whats been happening lately(these updates should, hopefully, be included in the next build and more)
-Updated Challenge Page
-"Can Castle" images now reappear if undo is used after castling, and images are related to board pieces, instead of just defaulting to "Classic" set
-Moved most Board JavaScript to its own file
-Added the option to set the timeout value in admin area
Title: Re: SMFChess
Post by: ogmios on July 26, 2007, 01:02:06 PM
hello,
i am assuming i should see a 'chess' button after the install, but i am using the babylon theme and it doesn't show up... i had no problems during the install and i'm not sure what to do next... any help?

hopefully i can get this working - it looks to be a great addition - good job!
Title: Re: SMFChess
Post by: feeble on July 26, 2007, 05:10:23 PM
Quote from: ogmios on July 26, 2007, 01:02:06 PM
hello,
i am assuming i should see a 'chess' button after the install, but i am using the babylon theme and it doesn't show up... i had no problems during the install and i'm not sure what to do next... any help?

Reason for this, is because you will actually need to make some template changes to see the button.

For the moment, there is no tutorial for this, as the template changes are not finalized.
Which is also, I'm sorry to say, the reason why I can't give any real support on this mod, till its been actually released.

You should be able to find the current changes in the xml document in the zip.
And I'll try to inform if I make any major changes.

Apologies if this was not the answer you were looking for.
Title: Re: SMFChess
Post by: hvyhitter on July 26, 2007, 07:52:02 PM
wow this mod is NUTS... i love it..

on the summary screen however it is showing that the opposite person won.. rather than the winner.. .i downloaded the mod from the VERY first post.. is that the right one?
Title: Re: SMFChess
Post by: feeble on July 26, 2007, 09:17:53 PM
Quote from: hvyhitter on July 26, 2007, 07:52:02 PM
wow this mod is NUTS... i love it..

on the summary screen however it is showing that the opposite person won.. rather than the winner.. .i downloaded the mod from the VERY first post.. is that the right one?

Its all the same file.

Which summary screen?
The one on "My Page" is wrong.
Whilst on the "Finished" page should be correct.
Title: Re: SMFChess
Post by: hvyhitter on July 26, 2007, 09:29:40 PM
also wrong.. 1 is right 6 are wrong.

if you click on them its fine. but.. not from both screens.. the same way.

http://www.hvyhitter.com/index.php?action=chess;do=finished
this page 1 wrong

http://www.hvyhitter.com/index.php?action=chess
This page 1 is right..

Hey whatever man.. the mod is great.. love to help you in anyway I can.. I installed the one from the front page.. although I found one that said it was for version 1.1.2. and version 1.1.3 laster on in the thread.. I downloaded both.. compared the files.. and the file sizes and the dates were the same.. so I SHOULD have the right one..

Title: Re: SMFChess
Post by: Godsongz on July 26, 2007, 10:23:56 PM
Quote from: hvyhitter on July 26, 2007, 09:29:40 PM
also wrong.. 1 is right 6 are wrong.

Were the 6 completed prior to the latest release of the package?  Only games completed after the latest version is in use will "score" correctly on the finished screen.
Title: Re: SMFChess
Post by: MYBESTHOMESnet on July 27, 2007, 03:12:04 AM
how to integrate this to smf arcade? When you click the arcade you can have chess game but still the feature is there. ex. invite an opponent etc.

thanks
Title: Re: SMFChess
Post by: TrueSatan on July 27, 2007, 05:22:02 AM
@ MYBESTHOMESnet

How about we let the developer finish the basic product instead of loading him with add on items?
Title: Re: SMFChess
Post by: hvyhitter on July 27, 2007, 08:23:05 AM
Quote from: Godsongz on July 26, 2007, 10:23:56 PM
Quote from: hvyhitter on July 26, 2007, 09:29:40 PM
also wrong.. 1 is right 6 are wrong.

Were the 6 completed prior to the latest release of the package?  Only games completed after the latest version is in use will "score" correctly on the finished screen.

negative sir.. I installed the Chess mod yesterday the first time. I downloaded the 2 different copies in this thread.. I opened both and compared BOTH side by side. They are the EXACT same.

Its a fresh install yesterday.. and its an insanely popular mod :D
Title: Re: SMFChess
Post by: hvyhitter on July 27, 2007, 08:45:58 AM
If anyone needs help adding a button for this in your DilberMC theme let me know. Pm me here or my place (In the bottom of this post)

Its not that hard.. but it can be tricky to get it working right. Most people dont see the all places you need to change something.
Title: Re: SMFChess
Post by: feeble on July 27, 2007, 09:32:26 AM
Quote from: hvyhitter on July 27, 2007, 08:23:05 AM
negative sir.. I installed the Chess mod yesterday the first time. I downloaded the 2 different copies in this thread.. I opened both and compared BOTH side by side. They are the EXACT same.

Its a fresh install yesterday.. and its an insanely popular mod :D


Looks like only 1 out of 6 has stored the information wrong...i might be tired thou.
which isn't bad odds, but it really shouldn't be happening.
Ill look into it.

QuoteIf anyone needs help adding a button for this in your DilberMC theme let me know. Pm me here or my place (In the bottom of this post)

Its not that hard.. but it can be tricky to get it working right. Most people dont see the all places you need to change something.
Appreciated. would you mind sending me a copy of the button code? so i can file it away.
Title: Re: SMFChess
Post by: hvyhitter on July 27, 2007, 11:00:32 AM
definitely to add the chess button to dilberMC do the following

in index.template.php

Find

if (in_array($context['current_action'], array('search',

insert after that in the middle of that line

'chess',


find

   // Dummy place holder, to set the height
   echo'
            <td align="center" class="menubg" height="30" width="20">
            </td>';

after add

   // Here we go [chess] button.
            echo'
                     <td align="center" class="menubg' , $current_action == 'Chess' ? '2' : '' , '">
                        <a href="', $scripturl, '?action=chess">' , 'Chess' , '</a>
                  </td>';

That is for DilberMC (I run tinyportal too, but that is not relevant to this theme mod, these changes are applicable for all)
Title: Re: SMFChess
Post by: feeble on July 30, 2007, 10:07:23 AM
Ok new build out,
I keep adding things when I'm just trying to finish this mod off.

Notable Changes
-My Page has finally received a cosmetic upgrade
-Added a better system for checking to see if Opponent requires PM reminder. Now will send if Opponent is not specially looking at the board. Meaning Opponent can still be browsing the forum and receive a PM notification.
-Added "watching" column, completely experimental just mucking about really
-Added "Maintenance", not finished thou
-New and improved "Challenge" system, also a simple "Quickmatch" added

Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Quickchange Log:
30/JUL/07
-fixed a bug in "Watching"
-Finished "Quickmatch"
-Added "Maintence" to admin - Not finished
-Added Piece Packs put together by Godsongz to main package
-Cosmetic changes to "My Page"
29/JUL/07
-added "Watching" column to my page - experimental
-updated is how sendPm checks if users is online, now can check where exactly user is in the forums. Only sends if user is watching that particular board
27/JUL/07
-Fixed some javascript consistency with Chat updates
-Fixed bug with Chat regarding usage of *
26/JUL/07
-Can Castle images now reappear if undo is used after castling
-Moved most Board JavaScript to its own file
-Added the option to set the timeout value in admin area
-Updated Challenge screen, better user search
Title: Re: SMFChess
Post by: PLAYBOY on July 30, 2007, 03:19:54 PM
how can i remove your forum link from "My Page"? i dont want people to see my nickname here. is there anyway you can move the forum link to admin section or something? please help me about it
Title: Re: SMFChess
Post by: PLAYBOY on July 30, 2007, 03:29:01 PM
nevermind i fixed it. But i would be grateful, if you can fix this in the next version.
Title: Re: SMFChess
Post by: brianjw on July 30, 2007, 05:14:11 PM
OK I believe I have found a bug. My settings are set to not send me a pm if someone makes a move and on smfhelper.info where I am playing, it send me a pm anyway.

Also it looks like this is considered a "beta release" or "beta testing". When is the actual version going out to the public?

Brianjw
Title: Re: SMFChess
Post by: pongsak on July 30, 2007, 10:01:12 PM
I found something after installed last version.
1. At finished page, when i clicked delete any game, it always redirect to current page. It should come to finished page again, right?
2. No online icon for me but ok for anyone else.
3. When i looked at any finished game, the watching section still show "Loading..." but ok in current game, does it right?
4. What's the meaning of timeout, time limit for anyone to walk? or for all the game?
Title: Re: SMFChess
Post by: feeble on July 31, 2007, 12:54:07 AM
Quote from: PLAYBOYnevermind i fixed it. But i would be grateful, if you can fix this in the next version.
Ill remove it in the next build
But im hoping to beable to put a message there, that you can set from the admin area.
So for instance you can congratulate a member for doing a good job, or let members know of any News related to Chess etc.

Quote from: pongsak on July 30, 2007, 10:01:12 PM
I found something after installed last version.
1. At finished page, when i clicked delete any game, it always redirect to current page. It should come to finished page again, right?
Thanks for that, fixed for next build

Quote from: pongsak on July 30, 2007, 10:01:12 PM
2. No online icon for me but ok for anyone else.
Its done like that for a reason, I can put it back in, but I wasn't exactly sure if the user wanted to know if they were online or not.
It wont show up if you are that particular player, otherwise it will.

Quote from: pongsak on July 30, 2007, 10:01:12 PM
3. When i looked at any finished game, the watching section still show "Loading..." but ok in current game, does it right?
Reason for this is that, the "Watching" is pulled from the same xml as the board updates.
Ill fix this in the next build.

Quote from: pongsak on July 30, 2007, 10:01:12 PM
4. What's the meaning of timeout, time limit for anyone to walk? or for all the game?
Timeout, is the amount of time till the board or chat area stops working and the page will require a refresh to work again.
Reason for this, is just in case a user leaves the page open all day.
Before it was defaulted to 5 minutes, but it was requested to put this as an option.
Title: Re: SMFChess
Post by: JaGuR123 on July 31, 2007, 05:03:25 AM
Can't download the latest version , the download site seems to be offline .... anybody want to attach the new upgrade for please ?I should have downloaded the newest version before uninstalling my old version  :'(
Title: Re: SMFChess
Post by: PLAYBOY on July 31, 2007, 10:32:55 AM
Quote from: Feeble on July 31, 2007, 12:54:07 AM
Quote from: PLAYBOYnevermind i fixed it. But i would be grateful, if you can fix this in the next version.
Ill remove it in the next build
But im hoping to beable to put a message there, that you can set from the admin area.
So for instance you can congratulate a member for doing a good job, or let members know of any News related to Chess etc.

Thank you. you can put your own website link or your own contact info there, im ok with it. but i just dont want anybody from my website knows me here. if you add that as an option on admin panel, i think that would be the best. thanks for your understanding.

i think we need to have a languege file to edit the language?
Title: Re: SMFChess
Post by: t0AsD on July 31, 2007, 01:48:05 PM
I love your mod and it works pretty well on my site (http://chillboard.de/schach).

I did not upgrade to the current version yet, because i'm afraid that changes I made (added a german language file) will be deleted and running as well as old games will be deleted when I uninstall the mod.

I also have a request for a feature: If it is your turn in any of the games, it would be great if the Chess-button on top of the forum would change the color or display an exclamation mark or something similar, so you could immediately see when your attention is required and don't have to actually click on the Chess-button first.

Also while installing your mod, its directory is chmod-ed in a way so I cannot access it with the ftp-user. I don't know if you can do anything about it or if I have to resolve it with my host.
Title: Re: SMFChess
Post by: brianjw on July 31, 2007, 05:17:47 PM
Quote from: t0AsD on July 31, 2007, 01:48:05 PM
I also have a request for a feature: If it is your turn in any of the games, it would be great if the Chess-button on top of the forum would change the color or display an exclamation mark or something similar, so you could immediately see when your attention is required and don't have to actually click on the Chess-button first.
I think this is a great idea but I think it should be like the My Messages/PM button so it would bold and show a number like this
Chess [1]
The number would be how many games are waiting for you to make your move. ;)

Also is there going to be an official release or anything?

Brianjw
Title: Re: SMFChess
Post by: feeble on July 31, 2007, 05:43:25 PM
Quote from: PLAYBOYThank you. you can put your own website link or your own contact info there, im ok with it. but i just dont want anybody from my website knows me here. if you add that as an option on admin panel, i think that would be the best. thanks for your understanding.
I will be putting a credits page, also in the next build. This will not contain my website, but more credit towards the people who's scripts I borrowed with permission.
Ill change the default news text to something else, maybe something quirky.

Quote from: PLAYBOYi think we need to have a languege file to edit the language?
My main focus for the next build, will be languages. Should have an update shortly.

Quote from: t0AsD on July 31, 2007, 01:48:05 PM
I did not upgrade to the current version yet, because i'm afraid that changes I made (added a german language file) will be deleted and running as well as old games will be deleted when I uninstall the mod.
Uninstallation will not delete any game data stored in mysql, and will also leave the German language files alone.
It will delete however, the SMFChess folder locations in default theme directory and any other file that came "initially" with the mod.

Quote from: t0AsD on July 31, 2007, 01:48:05 PM
I also have a request for a feature: If it is your turn in any of the games, it would be great if the Chess-button on top of the forum would change the color or display an exclamation mark or something similar, so you could immediately see when your attention is required and don't have to actually click on the Chess-button first.
Nice idea,
Ill look into, shouldn't be to much of an issue adding this in.

Quote from: t0AsD on July 31, 2007, 01:48:05 PM
Also while installing your mod, its directory is chmod-ed in a way so I cannot access it with the ftp-user. I don't know if you can do anything about it or if I have to resolve it with my host.
This mod doesn't not perform any chmod requests.
Can I ask which directory you are unable to access?
This might have to be something that you will need to take up with your host.

Quote from: brianjwAlso is there going to be an official release or anything?
Eventually yes, but since this mod is still in development, and hasn't been submitted yet I'm just going to put out new builds as I find it speeds up development and I'm able to get feedback faster.

But once the mod gets to a certain point, it will be submitted, then you will start getting patches instead of new builds.
This also means that there will be a significant wait between each version.
Whilst ATM, I can make a few fixes, and then upload the changes fairly quickly.
Title: Re: SMFChess
Post by: brianjw on July 31, 2007, 06:05:02 PM
Ok, Well I am waiting till the official public release. ;)
Title: Re: SMFChess
Post by: t0AsD on August 01, 2007, 12:27:25 AM
Thanks for answering my questions and looking into my feature request :)

Quote from: Feeble on July 31, 2007, 05:43:25 PM
This mod doesn't not perform any chmod requests.
Can I ask which directory you are unable to access?
This might have to be something that you will need to take up with your host.

It's the /Themes/default/SMFChess/ folder. Stating that I cannot access it was very unclear, I just cannot write into it. I wanted to add the new piece sets, but the folder is set to 755 (rwx,r-x,r-x), so writing with the ftp user is not possible. For some reason attempted chmods with the ftp-user also fail, but that's really something I have to bug my host with.
Title: Re: SMFChess
Post by: PLAYBOY on August 03, 2007, 10:51:59 PM
i had these 2 errors on my error log,

8: Undefined index: ID_MEMBER
Dosya: /home/site/folder/forum/Sources/Chess.php
Satýr: 254

8: Undefined index: ID_MEMBER
Dosya: /home/site/folder/forum/Sources/Chess.php
Satýr: 253

can you help me on these? are these theme errors or something about the mod?
Title: Re: SMFChess
Post by: feeble on August 06, 2007, 04:26:13 AM
Quote from: PLAYBOY on August 03, 2007, 10:51:59 PM
i had these 2 errors on my error log,

8: Undefined index: ID_MEMBER
Dosya: /home/site/folder/forum/Sources/Chess.php
Satýr: 254

8: Undefined index: ID_MEMBER
Dosya: /home/site/folder/forum/Sources/Chess.php
Satýr: 253

can you help me on these? are these theme errors or something about the mod?
Thanks for this.
Made a few adjustments to those lines, should be fixed.
Title: Re: SMFChess
Post by: Grudge on August 06, 2007, 04:28:57 AM
Have to say that I love the idea for this mod - fantastic work :D
Title: Re: SMFChess
Post by: brianjw on August 06, 2007, 05:55:59 PM
I have a little request. When selecting a member to challenge, there should be that little clickable image (like when selecting members for pm) that opens up into a popup window and you search for members. That one :)

Brianjw
Title: Re: SMFChess
Post by: feeble on August 06, 2007, 06:42:54 PM
Quote from: brianjw on August 06, 2007, 05:55:59 PM
I have a little request. When selecting a member to challenge, there should be that little clickable image (like when selecting members for pm) that opens up into a popup window and you search for members. That one :)

Brianjw
It was in initially, but Ive put a different one in.

Have you tried challenging on the latest build, on SMFHelper site?

If you still prefer the popup window member search, ill put it back in.
Title: Re: SMFChess
Post by: brianjw on August 06, 2007, 06:54:57 PM
Nevermind, I like the search you have on smfhelpers site :)
Don't put it back in lol leave the one you got ;)
Title: Re: SMFChess
Post by: feeble on August 06, 2007, 07:02:32 PM
Quote from: Grudge on August 06, 2007, 04:28:57 AM
Have to say that I love the idea for this mod - fantastic work :D
Appreciated :). If you have any suggestions I would love to hear.

Quote from: brianjw on August 06, 2007, 06:54:57 PM
Nevermind, I like the search you have on smfhelpers site :)
Don't put it back in lol leave the one you got ;)
Ok cool

Quote from: brianjwI think this is a great idea but I think it should be like the My Messages/PM button so it would bold and show a number like this
Chess [1]
The number would be how many games are waiting for you to make your move. ;)
An update on this.

Currently it is working, and looking like
Chess[!]

Which denotes if its your turn in at least one of your current games.
I haven't put in the actual number, reason for this is because it takes you to the page where you will find this out anyways.
And also the place where it gets this data is going to be cached on some websites.

If you still think putting the exact number is more beneficial, ill make the adjustments.

Having been looking at this small little change over the last week, I think its actually great and not very intrusive.
Title: Re: SMFChess
Post by: brianjw on August 06, 2007, 07:34:32 PM
Yeah! I like that :)

I think it's better than receiving a PM everytime it's your turn :)
Title: Re: SMFChess
Post by: hvyhitter on August 06, 2007, 08:39:54 PM
my users LOVE your chess mod.. we have started a BUG thread if that helps at all. I can post the comments here by myself too if need be.

http://www.hvyhitter.com/index.php?topic=1548

Title: Re: SMFChess
Post by: hvyhitter on August 06, 2007, 08:41:34 PM
btw: Iam having a HELL of a time figuring out what the latest version is..
Title: Re: SMFChess
Post by: feeble on August 07, 2007, 01:45:57 AM
Quote from: hvyhitter on August 06, 2007, 08:39:54 PM
my users LOVE your chess mod.. we have started a BUG thread if that helps at all. I can post the comments here by myself too if need be.

http://www.hvyhitter.com/index.php?topic=1548
I've Bookmarked the thread,
Thanks for doing this,
Just fixed a "resign" bug cause of that thread.

Quotebtw: Iam having a HELL of a time figuring out what the latest version is..
What do you mean exactly?

Atm there really isn't any versions as such. And each download link that i post, actually points to the same file, so you can't actually download anything other then the latest version since thats all that is available.

There will be versions, but only after its actually released.
Title: Re: SMFChess
Post by: flame baiter on August 07, 2007, 06:23:58 AM
So how far away do you think this mod is from a release?

It looks very promising!  :)
Title: Re: SMFChess
Post by: brianjw on August 07, 2007, 08:40:34 AM
I would think it's ready to come out. On SMFHelpers website, I haven't seen any bugs with it.

However where it says
Quote

Welcome to SMFChess Admin Area
Thank you for trying this mod out, almost done.
If you have any suggestions Im more then happy to discuss
I have a thread going up at SMF Forum
Follow the Jump

I think it shouldn't say Admin Area because normal members are looking at it. It should say welcome to SMFChess, To learn how to play chess click here

or something else ;) ;)
Title: Re: SMFChess
Post by: edi67 on August 07, 2007, 09:26:09 AM
Great mod and beautiful idea but there is way for translate it in others language , without change default file ?
Title: Re: SMFChess
Post by: brianjw on August 07, 2007, 10:00:04 AM
I am not sure if this mod modifies the Modifications.english.php file but if it does. Then simply go to your Modifications.<language>.php and add the chess code from modifications.english.php to modifications.<language>.php and change the language to your own. THose files are found in /Themes/default/languages/

Brianjw
Title: Re: SMFChess
Post by: feeble on August 07, 2007, 10:50:10 AM
Quote from: edi67 on August 07, 2007, 09:26:09 AM
Great mod and beautiful idea but there is way for translate it in others language , without change default file ?
My main focus atm, is finishing the last few features(1 more to do) and also finalizing the text,
so that in the next build that will be put out, most of the text should be moved over in the language file.

Reason for it not being in there just yet, is that the text is still being added and finalized.

If possible, please just wait a little while longer and the language file should be ready for translations.
Title: Re: SMFChess
Post by: hvyhitter on August 07, 2007, 01:06:43 PM
Quote from: Feeble on August 07, 2007, 01:45:57 AM
Quote from: hvyhitter on August 06, 2007, 08:39:54 PM
my users LOVE your chess mod.. we have started a BUG thread if that helps at all. I can post the comments here by myself too if need be.

http://www.hvyhitter.com/index.php?topic=1548
I've Bookmarked the thread,
Thanks for doing this,


Just fixed a "resign" bug cause of that thread.

Quotebtw: Iam having a HELL of a time figuring out what the latest version is..
What do you mean exactly?

Atm there really isn't any versions as such. And each download link that i post, actually points to the same file, so you can't actually download anything other then the latest version since thats all that is available.

There will be versions, but only after its actually released.

couple of notes..

I love the [chess(!)] notification. If it is not to much trouble I would PREFER the [Chess (4)]

On the First page I would put right next to the file download link something like (UPDATED and then the date)

I was at least 2 versions behind.. and the difference is MAJOR and awesome.. wow.. have I said how much I think this mod rocks..

me and one of my admins just ran through the resign and draw options.. and had some suggestions for it.. let me know what you think.

When I hit the draw button I would like a pop up dialog saying.. are you sure.. when I click yes it submits to to the other user.

I found no bugs in the draw system. if user denied it went back.. if it was accepted it gave a status of Stalemate.. I like it..

When I click resign I want it to give me some kind of pop up saying are you SURE you want to resign.. and when I select yes it changes the status to "Checkmate*" and ends the game without the other user being prompted.. I dont want the user to have the ability to deny my resignation. I resign.. they get a checkmate with a * indicating it wasnt a standard checkmate.

also on feature requests.. on the front page I would like to see a page summarizing chess players and their win loss draw record.. or.. just the users win loss draw record. whatever is easiest.


Wow.. this mod is awesome..

Title: Re: SMFChess
Post by: PLAYBOY on August 07, 2007, 02:56:42 PM
here is another one

8: Undefined index: SMFChess_admin_maintenance
Dosya: /home/site/folder/forum/Sources/Subs.php
Satýr: 2825
Title: Re: SMFChess
Post by: t0AsD on August 08, 2007, 07:28:37 PM
Hey, I found an important missing feature: When promoting a pawn there is no option to choose between Queen, Rook or Knight in the version I'm running. (I'm using the version from the 12th of July since when I uninstall, then install the newer version it installs the old version. Yes I have checked that I uploaded the new .zip twice, it doesn't even install the new sets when I try the version from 30th; so if this has been fixed, disregard what I just said :) This whole issue is probably my fault, I will just retry when you release the next update.).

Also sometimes moves the enemy makes are not shown to you automatically and you have to reload. This doesn't happen with the chat, so we resorted to telling each other when we made a move and both people are online.

And I cannot find an option to unset the default board (not setting it to another board, unsetting it, so clicking on "Board" reloads the current game properly, e. g. when the piece positions are distorted from declining an undo move).
I hope I'm not reporting old bugs :) (or rather not hope, in the case you already have fixed it).
Title: Re: SMFChess
Post by: feeble on August 08, 2007, 07:33:06 PM
I've put out a new build which should fix all those bugs that was found, appreciated. Probably put a few more in for good measure.
Also contains several changes in the backend, namely finished importing the "PGN Import" function from SomeChess (http://somechess.org/web/)(with permission from the author of SomeChess of course) so you can do some really cool stuff like watch Kasparov vs Deepblue (http://www.leaderless.net/index.php?action=chess;id=45) going at it.  8)

No language changes so far, haven't gotten around to it yet.
As I still need to finished implementing 2 other things that users have requested.

List of Chat Commands so far:(If you have any other ideas that you would like added, I would like to hear
/me, /french, /italian and /portuguese

No change log, as I was to lazy to keep one

Package is for 1.1.2 and 1.1.3.
Please note: All download links point to the same file, so you cannot download anything but the latest build
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)


Quote from: PLAYBOYhere is another one

8: Undefined index: SMFChess_admin_maintenance
Dosya: /home/site/folder/forum/Sources/Subs.php
Satýr: 2825
Cause again by the language file.

I'll have a present for you soon enough regarding this errors :)

Quote from: hvyhitterI love the [chess(!)] notification. If it is not to much trouble I would PREFER the [Chess (4)]
Give the current implementation a try, if you still require it ill put it in. But I have a feeling it might cause issues which websites that cache.

Quote from: hvyhitterWhen I hit the draw button I would like a pop up dialog saying.. are you sure.. when I click yes it submits to to the other user.
Added in

Quote from: hvyhitterWhen I click resign I want it to give me some kind of pop up saying are you SURE you want to resign.. and when I select yes it changes the status to "Checkmate*" and ends the game without the other user being prompted.. I don't want the user to have the ability to deny my resignation. I resign.. they get a checkmate with a * indicating it wasn't a standard checkmate.
It was more for courtesy then anything. Ill make the change in next build.

Quote from: hvyhitteralso on feature requests.. on the front page I would like to see a page summarizing chess players and their win loss draw record.. or.. just the users win loss draw record. whatever is easiest.
I was going to wait till after, and put this in with a patch. But...ill look into it.
Title: Re: SMFChess
Post by: feeble on August 08, 2007, 07:40:26 PM
Quote from: t0AsD on August 08, 2007, 07:28:37 PM
Hey, I found an important missing feature: When promoting a pawn there is no option to choose between Queen, Rook or Knight in the version I'm running. (I'm using the version from the 12th of July since when I uninstall, then install the newer version it installs the old version. Yes I have checked that I uploaded the new .zip twice, it doesn't even install the new sets when I try the version from 30th; so if this has been fixed, disregard what I just said :) This whole issue is probably my fault, I will just retry when you release the next update.).
I have been thinking about this as well. At the moment it just defaults to a Queen piece. Since I'm using someone else's function, this was just how it was designed.
I'll look into making some adjustments and might be able to give the user a choice. Cant promise this thou. as more then likely the user is going to pick the Queen anyways.

Quote from: t0AsD on August 08, 2007, 07:28:37 PM
Also sometimes moves the enemy makes are not shown to you automatically and you have to reload. This doesn't happen with the chat, so we resorted to telling each other when we made a move and both people are online.
thats a bit odd....what refresh rate do you currently have set in the admin area? default should be 5 seconds. you could tone this done maybe.

Quote from: t0AsD on August 08, 2007, 07:28:37 PM
And I cannot find an option to unset the default board (not setting it to another board, unsetting it, so clicking on "Board" reloads the current game properly, e. g. when the piece positions are distorted from declining an undo move).
I hope I'm not reporting old bugs :) (or rather not hope, in the case you already have fixed it).
The default board, actually gets unset if the board in question, isn't found.
I could add a button in settings if you would like to unset it manually.

The distortion after clicking on "board", should also be fixed now in the build I posted today. think this was caused by the board centering in the box.
Title: Re: SMFChess
Post by: t0AsD on August 08, 2007, 08:32:39 PM
I have set 12 (game) and 6 (chat) seconds for the updates. Of course we have waited longer than that for the move to appear.

I will (try to) update to the current version when some of my users finish their game (it's 2:30 am over here, lol).

An option to post the move just made to the chat would be nice, so you would have a timestamped history, almost like a commented chess game. Of course then you need the option to view the whole chat too.

Including the chess board into actual posts in the forums would be very smooth and great to discuss games, but I understand this is probably a huge task :)

I just had an idea: Why timeout the chat and the board seperately? If there is action on one of them, the other is probably needed too. So it would be good if either chatting or playing prolong both timeouts.

Edit: I just installed the new version and it doesnt fully work. I got this error in the log:
http://chillboard.de/index.php?action=packages;sa=install2;package=chess_070809.zip
Apply Filter: Only show the errors with the same message
2: opendir(/var/www/web3/html//Packages/temp/SMFChess) [<a href='function.opendir'>function.opendir</a>]: failed to open dir: No such file or directory
File: /var/www/web3/html/Sources/Subs-Package.php
Line: 1253


The installer said everything went fine, but your moves are not accepted  and the chat and watching areas keep on "Loading..."


Congrats on the improved "My Page", looks swell now. 8)
One tiny thing you could change there: make the "Yours"-text (for your move) bold or red or something, but i can add that myself of course, same could be done in the game screen.

Edit2: I fixed the error by manually copying over the "SMFChess" folder into the default template, works great now. Clickable + scrollable history! That's so great, thanks again for making this wonderful mod.
Title: Re: SMFChess
Post by: brianjw on August 08, 2007, 08:59:18 PM
Quote from: t0AsD on August 08, 2007, 08:32:39 PM
An option to post the move just made to the chat would be nice, so you would have a timestamped history, almost like a commented chess game. Of course then you need the option to view the whole chat too.
I would like this too.
Title: Re: SMFChess
Post by: t0AsD on August 09, 2007, 12:11:00 AM
I didn't like the way the "Watching"-column flickers because people keep refreshing the page at different times. So ich changed it by adding " ORDER BY mem.memberName" at the end of the first query in the whosWatching() function and commenting out the "krsort($return['users']);", all in the ChessChat.php. Especially with the Admin and Gmod colors, this drove me nuts :)

I think the fact that you can only be shown in the watching-column of 1 game at a time is not caused by my modification? Any way around this?

Also the [!] indicator does not work for me and another member (it is displayed all the time), others report it as working. I manually put it into my theme like this:
//Begin SMFChess code
if(true || $context['allow_chess']){ //<t0AsD> always show chess
if(loadLanguage("Chess")==false)
   loadLanguage("Chess",'english');
echo ($context['current_action'] == 'chess' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $context['current_action'] == 'chess' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=chess">'.$txt['SMFChess'], ($context['user']['chess_turn'] != 0) ? '[<strong>!</strong>]' : '', '</a>
</td>' , $context['current_action'] == 'chess' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
}
//END SMFChess code
in the index.template.php. I tried the admin function "Find and repair any errors" and it didn't help here, although it fixed showing an  erroneous game winner in one game.

Regarding the board-is-not-updated-bug: It occurs when the board did timeout and you then make a move and the text, indicating the timeout, gets overwritten, so that you think the board gets updated again, which is not the case. To fix this you could either restart the board updates once you make a move or keep the timeout-text showing.
Title: Re: SMFChess
Post by: feeble on August 09, 2007, 05:40:58 PM
Quote from: t0AsD on August 09, 2007, 12:11:00 AM
I didn't like the way the "Watching"-column flickers because people keep refreshing the page at different times. So ich changed it by adding " ORDER BY mem.memberName" at the end of the first query in the whosWatching() function and commenting out the "krsort($return['users']);", all in the ChessChat.php. Especially with the Admin and Gmod colors, this drove me nuts :)
Thanks, I haven't been able to test it with multiple users. I've made the adjustments.

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
I think the fact that you can only be shown in the watching-column of 1 game at a time is not caused by my modification? Any way around this?
Not really. Since the Watching column essentially just does a search for where you are in the forum. It can only find either one or the other. and not both at the same time.
Hopefully I can finish the move timer soon, and this should make it more beneficial on keeping to the one game.

Also atm, it looks like I'll need to lock the game if the timer is small enough and the users will be required on the board at the same time for the board to be unlocked and playable.

Reason for the lock, is to say if the move clock is at 30seconds. You don't want your opponent to
make a move whilst you are a sleep and lose the game.
Quote from: t0AsD on August 09, 2007, 12:11:00 AM
Also the [!] indicator does not work for me and another member (it is displayed all the time), others report it as working. I manually put it into my theme like this:
//Begin SMFChess code
if(true || $context['allow_chess']){ //<t0AsD> always show chess
if(loadLanguage("Chess")==false)
   loadLanguage("Chess",'english');
echo ($context['current_action'] == 'chess' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $context['current_action'] == 'chess' ? 'active_back' : 'back2' , '">
<a href="', $scripturl, '?action=chess">'.$txt['SMFChess'], ($context['user']['chess_turn'] != 0) ? '[<strong>!</strong>]' : '', '</a>
</td>' , $context['current_action'] == 'chess' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
}
//END SMFChess code
in the index.template.php. I tried the admin function "Find and repair any errors" and it didn't help here, although it fixed showing an  erroneous game winner in one game.
Im also having an issue with it. Ill make some adjustments.
Find and repair is still a little limited. It can't fix anygames that were ended in a resignation, until after the latest patch. So there is still going to be some games with error nous values. Should be right for future games thou.

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
Regarding the board-is-not-updated-bug: It occurs when the board did timeout and you then make a move and the text, indicating the timeout, gets overwritten, so that you think the board gets updated again, which is not the case. To fix this you could either restart the board updates once you make a move or keep the timeout-text showing.
It does check for updates when you do send a move. Only that it wont update the actually board if the move failed for any reason(illegal move, not your turn etc). It might just come down to bad timing I'm afraid to say.
Since for example, I don't want the opponent to receive an update if you put in an illegal move.

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
An option to post the move just made to the chat would be nice, so you would have a timestamped history, almost like a commented chess game. Of course then you need the option to view the whole chat too.
Added in

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
Including the chess board into actual posts in the forums would be very smooth and great to discuss games, but I understand this is probably a huge task :)
Might have to wait till after sorry lol. Its definently possible.
either lets say [chess type=id]1[/chess] or [chess type=fen]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[/chess]

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
I just had an idea: Why timeout the chat and the board seperately? If there is action on one of them, the other is probably needed too. So it would be good if either chatting or playing prolong both timeouts.
To separate, there was actually a request for this several pages back. Reason for this is that some users don't actually use the chat, and much prefer using MSN or teamspeak.
But I guess it wont matter as much, since Moves will soon be added to the chat area.

Quote from: t0AsD on August 09, 2007, 12:11:00 AM
One tiny thing you could change there: make the "Yours"-text (for your move) bold or red or something, but i can add that myself of course, same could be done in the game screen.
Reason this isn't done yet, is because I haven't found the appropriate css class to use for this. Since all themes are different, there might be a theme with a red background.
Title: Re: SMFChess
Post by: flame baiter on August 09, 2007, 05:59:46 PM
Quote from: Feeble on August 09, 2007, 05:40:58 PM
Quote from: t0AsD on August 09, 2007, 12:11:00 AM
Including the chess board into actual posts in the forums would be very smooth and great to discuss games, but I understand this is probably a huge task :)
Might have to wait till after sorry lol. Its definently possible.
either lets say [chess type=id]1[/chess] or [chess type=fen]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[/chess]

Yeah, that would be great. Or sth like an additional and optional SMF Mod that adds a chess icon to the editor and a pop-up that lets you choose a game and move and then a "snapshot" of that move gets added to the post...hey, just a thought.

I know it would be a ******load of work and is not really needed, but ehh...lol.
Title: Re: SMFChess
Post by: t0AsD on August 09, 2007, 06:31:44 PM
Quote from: Feeble on August 09, 2007, 05:40:58 PM
Not really. Since the Watching column essentially just does a search for where you are in the forum. It can only find either one or the other. and not both at the same time.
Hopefully I can finish the move timer soon, and this should make it more beneficial on keeping to the one game.
Ok, I thought this would be the answer, well, it's not the most important part of the mod, just a nice to have.
Quote
Also atm, it looks like I'll need to lock the game if the timer is small enough and the users will be required on the board at the same time for the board to be unlocked and playable.

Reason for the lock, is to say if the move clock is at 30seconds. You don't want your opponent to
make a move whilst you are a sleep and lose the game.
Not starting the clock until the enemy loads the move from the database is probably not an option, unless you set the game to be visible only to the players? I think with refresh times of several seconds in a game with a clock everything else could prove impractical.
Which brings up the idea of per-game-permissions (to see the board and/or to see/use the chat.)

Quote
Quote from: t0AsD on August 09, 2007, 12:11:00 AM
An option to post the move to the chat...
Added in
This is great news, thanks!

Quote
Quote from: t0AsD on August 09, 2007, 12:11:00 AM
One tiny thing you could change there: make the "Yours"-text (for your move) bold or red or something, but i can add that myself of course, same could be done in the game screen.
Reason this isn't done yet, is because I haven't found the appropriate css class to use for this. Since all themes are different, there might be a theme with a red background.

what about this one:

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
color: red;
}


The problem with that one is, that it's not a standard-button, so some people will not know about it and might not have changed the color to match their themes.
/me likes that one best though, it denotes oneself is doing something, like you are when using it in the chessgame :)
Title: Re: SMFChess
Post by: flame baiter on August 13, 2007, 02:27:14 AM
I wanted to ask how stable this is and does it integrate well with a bridged SMF in Joomla (http://www.dachboden-wg.de/portal/index.php?option=com_smf&Itemid=104)? I'm not sure, maybe we should wait for the stable release? What do you guys think?
Title: Re: SMFChess
Post by: feeble on August 13, 2007, 03:04:20 AM
Quote from: stokedfish on August 13, 2007, 02:27:14 AM
I wanted to ask how stable this is and does it integrate well with a bridged SMF in Joomla (http://www.dachboden-wg.de/portal/index.php?option=com_smf&Itemid=104)? I'm not sure, maybe we should wait for the stable release? What do you guys think?

Umm, I'm really not to sure how to answer this anymore, with the recent drop of the bridge, I'm unsure about handling Joomla questions these days.

It should work, but I would wait till after its been released, as you will be required to uninstall any early builds.
Title: Re: SMFChess
Post by: flame baiter on August 13, 2007, 03:08:44 AM
Aww, thank you. Yes, we know about the drop of the bridge and are evaluating what to do now...even a switch back to Mambo might be an option, we'll see. No good news tho...sigh.

We'll wait for the final then...thanks!   :)
Title: Re: SMFChess
Post by: t0AsD on August 14, 2007, 02:42:17 PM
I think I've found a bug in the challenge system.

I cannot challenge some members (I found 1) of my forum, it just will not show their name in the results when I type it in the first challenge box. This is a member I restored by hand in SQL, maybe this has something to do with it. Also some weird members show up everytime in the challenge results.

I didn't investigate this further up to now, you are free to try it feeble, the member's name is "OZ". (Schach at Chillboard (http://chillboard.de/schach/)). I hope this isn't something that's my fault ;)
Title: Re: SMFChess
Post by: feeble on August 14, 2007, 05:14:34 PM
Quote from: t0AsD on August 14, 2007, 02:42:17 PM
I think I've found a bug in the challenge system.

I cannot challenge some members (I found 1) of my forum, it just will not show their name in the results when I type it in the first challenge box. This is a member I restored by hand in SQL, maybe this has something to do with it. Also some weird members show up everytime in the challenge results.

I didn't investigate this further up to now, you are free to try it feeble, the member's name is "OZ". (Schach at Chillboard (http://chillboard.de/schach/)). I hope this isn't something that's my fault ;)

I think I know what is wrong and Ill also increase the search limit (currently limit is 10)

The Challenge Search works, by searching in both "membername" and "realName" fields of the members table.

Im not sure why some of those members are appearing, but I'll adjust it so that it only searchs in "realName", as that is what people will be searching for anyways.
Title: Re: SMFChess
Post by: feeble on August 15, 2007, 04:09:47 AM
Ok, things are going well, at the moment I'm preparing the files for release and fixes bugs that have cropped up.

Language is nearly done, so what I'm going to ask now is that if you would like a translation.

The minimum I need at the moment is this document to be translated into the language that you require and also to specify if you require it in utf-8 variety.
Download the file here (http://www.leaderless.net/SMFChess%20Translate.txt)
This document contains all the text, located outside of the Chess Language file.

If you can either PM or email ([email protected]) the translated document to me,  and also specify the language and if utf-8 is required, would be greatly appreciated.

Ill keep a running log of the translations I receive in the first post.
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 04:50:07 AM
http://rapidshare.com/files/49094320/smf_chess_german.txt.html

(I'm a native German speaker)

Might not be perfect, but ehh, I tried!  ;)  UTF-8? I have no idea what you mean...is this about umlauts? German uses ö, ä, ü and stuff, yes. And there's an "ä" in my translation...
Title: Re: SMFChess
Post by: slovenec on August 15, 2007, 05:08:22 AM
When i try to install chess i get this error:
...
16.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
17.    Execute Modification    ./Sources/Subs.php    Test successful
18.    Execute Modification    ./Themes/default/index.template.php    Test failed
19.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful

How can i solve this problem?
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 05:14:00 AM
Btw, this mod is ad-free, right?
Title: Re: SMFChess
Post by: feeble on August 15, 2007, 05:40:53 AM
Quote from: flame baiter on August 15, 2007, 05:14:00 AM
Btw, this mod is ad-free, right?
It will be Ad-free as much as I am allowed legally.
Since I am using other peoples scripts, I have to follow there licences for non-commercial use.
So basically, I will do the absolute minimal I can.
In fact, I will not even be including my nickname anywhere.

QuoteWhen i try to install chess i get this error:
...
16.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
17.    Execute Modification    ./Sources/Subs.php    Test successful
18.    Execute Modification    ./Themes/default/index.template.php    Test failed
19.    Execute Modification    ./Themes/default/languages/Errors.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/ManagePermissions.english.php    Test successful

How can i solve this problem?
Since this is still in beta, I can't answer this question right now, since you will be required to uninstall this mod, as there wont be any patches to the next version, until after release.

In saying this thou, the template changes are final. So I can refer you to SMFHelper (http://www.smfhelper.info/forum/index.php)(ran by a small guy by the name of bigguy)
Which will be the place for help and troubleshooting SMFChess as well as other SMF Modding needs.

QuoteMight not be perfect, but ehh, I tried!  ;)  UTF-8? I have no idea what you mean...is this about umlauts? German uses ö, ä, ü and stuff, yes. And there's an "ä" in my translation...
UTF-8 just refers to if you forum has been concerted over to use the UTF-8 format(mysql database and language files)
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 05:48:40 AM
So this...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimage.bayimg.com%2Fgafkhaabk.jpg&hash=a1924b6485101095ab3b1f32ea8de6b008b59e46)

...is part of the mod?  :(
Title: Re: SMFChess
Post by: feeble on August 15, 2007, 06:16:16 AM
Quote from: flame baiter on August 15, 2007, 05:48:40 AM
So this...
...is part of the mod?  :(
No

Possibly to it belongs to the theme of the Forum that you saw that on.
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 06:17:37 AM
Aww, okay. I can't try the mod yet (I'm not the only one deciding about the mods we use) and we're waiting for the final, therefore the question. Btw, I saw that on YOUR preview-forum!!  ;)

Oh, and I'll let you know 'bout the UFT-8...thanks for all your work!
Title: Re: SMFChess
Post by: feeble on August 15, 2007, 06:43:47 AM
Quote from: flame baiter on August 15, 2007, 06:17:37 AM
Aww, okay. I can't try the mod yet (I'm not the only one deciding about the mods we use) and we're waiting for the final, therefore the question. Btw, I saw that on YOUR preview-forum!!  ;)
You saw the AD's at Leaderless (http://www.leaderless.net/index.php?action=chess)? or SMFHelper (http://www.smfhelper.info/forum/index.php?action=chess)?
Leaderless should have no ads, whilst SMFHelper does have ads, but the ads are part of their website, not the mod itself.

Quote from: flame baiter on August 15, 2007, 06:17:37 AM
Oh, and I'll let you know 'bout the UFT-8...thanks for all your work!
No problems, take your time.
Thanks for your interest in this Mod, if you have any requests to suite your needs just ask.
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 07:10:16 AM
Quote from: Feeble on August 15, 2007, 06:43:47 AMYou saw the AD's at Leaderless (http://www.leaderless.net/index.php?action=chess)? or SMFHelper (http://www.smfhelper.info/forum/index.php?action=chess)?

Well I saw it here (http://www.smfhelper.info/forum/index.php?action=chess;id=5) at the bottom so I thought it could be part of the mod.

No big deal, I was just wondering!  :)

Anyway, back on topic:

Quote from: Feeble on August 15, 2007, 04:09:47 AMLanguage is nearly done, so what I'm going to ask now is that if you would like a translation.

The minimum I need at the moment is this document to be translated into the language that you require and also to specify if you require it in utf-8 variety.
Download the file here (http://www.leaderless.net/SMFChess%20Translate.txt)
This document contains all the text, located outside of the Chess Language file.

If you can either PM or email ([email protected]) the translated document to me,  and also specify the language and if utf-8 is required, would be greatly appreciated.
Title: Re: SMFChess
Post by: brianjw on August 15, 2007, 09:53:44 AM
Hey thats my chess game lol
Title: Re: SMFChess
Post by: flame baiter on August 15, 2007, 11:21:42 AM
Hum, so I'm trying to install this in our hidden dev-area on SMF 1.1.3...

But how to do this? I uploaded http://www.leaderless.net/tp-downloads/chess.zip and then wanted to install it on the package manager but nothin happens when I click on it. It loads for a few seconds and then jumps back to the same page - the same for "view files".

(as you can see, it's listed)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimage.bayimg.com%2Fpafmgaabk.jpg&hash=fddbf675d0ca56c28a3b1de5dc44118a5179f70a)

Help? Sorry for my ignorance but this is the first time I'm trying to install a mod by myself...
Title: Re: SMFChess
Post by: pongsak on August 15, 2007, 08:58:36 PM
I've sent u a Thai utf8 file.
Title: Re: SMFChess
Post by: feeble on August 16, 2007, 02:25:40 AM
New build, contains alot of tweaks and bug fixes. As well as a few surprises.
I highly recommend this update

My favourite change, and very selfish on my behalf, is that I've added "Fischer Random Chess" (http://www.chessvariants.org/diffsetup.dir/fischer.html) board configurations.(about 100 of 960 possible starts)
I've always wanted this in a chess program and never had a go of it yet. so :D

Note to t0AsD: Can you let me know if you can find Oz after this, he should be found now

Also Ive converted over to sa actions instead of do. Which means that if you have been using the "Custom Bar" my apologies, just open it up and look for ;do and replace with ;sa
There should be two occurrences.

I have made a few changes to the template edits.
Basically you dont need loadLanguage('Chess'); in any of your themes template files.
Its not necessary to make the changes now, but it will be a good idea in the future.

Other Notable Changes
-Tweaks to Board Update Checks, as much as i possibly can.
-Added "Move Log", very basic more to follow.

Also, ive been listening to the complaints regarding "Quickmatch", so im going to build a better more robust. So you can pick and choose your opponent, as well and create one if none suite your fancy.

Language Packs are on trial, I'm completely in the woods about what to do for it, so for the moment you get your own packages containing the language file changes and chess language file.
If anyone can recommend something better, I'm all ears.


Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Languages: If you do not see your language here, please follow this link (http://www.simplemachines.org/community/index.php?topic=129749.msg827672#msg827672)
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop language errors in your forum log regarding missing languages.
German (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_german.zip)
Thai UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_thai_utf-8.zip)
Croatian UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_croatian_utf-8.zip)

Quickchange Log:
14-16/AUG/07
-Fixed a bug with userSearch
-Added basic Move Log
-Added Fischerrandom Chess
13/AUG/07
-Started preparing Sources files for submission
-Converted over to sa actions instead of do
-tweaked board update check
Title: Re: SMFChess
Post by: PLAYBOY on August 16, 2007, 07:28:29 AM
I think you need to add chess in "Who`s Online" page too. Because when people r playin, it says "Unknown Action" on the list.
Title: Re: SMFChess
Post by: feeble on August 16, 2007, 07:44:29 AM
Quote from: PLAYBOY on August 16, 2007, 07:28:29 AM
I think you need to add chess in "Who`s Online" page too. Because when people r playin, it says "Unknown Action" on the list.

Should be working, its possible that its still saying "Unknown Action" as your forum is not in english?

This is essentially what the language packs are fixing at the moment
Title: Re: SMFChess
Post by: PLAYBOY on August 16, 2007, 11:08:28 AM
my forum has more than one languages and it says "Unknown Action" even in english "Who`s Online" page. Would it be, because of my theme?

My theme is also (originally) english.
Title: Re: SMFChess
Post by: Bulakbol on August 16, 2007, 02:13:47 PM
Hi Feeble. I uninstalled the old chess game like what you said with no problem at all. The problem is in the new copy and it won't install because of an error.


Database Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1
File: /homepages/48/d163961015/htdocs/smf113/Packages/temp/installScript.php
Line: 78

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I tried to install it again and came up with the same error. Now my forum is chessless  :P
Do you have any advice on this kind of error?

Thanks.
Title: Re: SMFChess
Post by: feeble on August 16, 2007, 05:34:22 PM
Quote from: PLAYBOYmy forum has more than one languages and it says "Unknown Action" even in english "Who`s Online" page. Would it be, because of my theme?

My theme is also (originally) english.
Hmm, ill take another look. It might have been affected do to converting over to sa actions.
Just wondering, are you running your forum in english UTF8 ?

Quote from: JohnyB on August 16, 2007, 02:13:47 PM
Hi Feeble. I uninstalled the old chess game like what you said with no problem at all. The problem is in the new copy and it won't install because of an error.


Database Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1
File: /homepages/48/d163961015/htdocs/smf113/Packages/temp/installScript.php
Line: 78

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.3, while your database is at version 1.1. The above error might possibly go away if you execute the latest version of upgrade.php.


I tried to install it again and came up with the same error. Now my forum is chessless  :P
Do you have any advice on this kind of error?

Thanks.

Sorry about this, download the package again, link for your here (http://www.leaderless.net/tp-downloads/chess.zip)

And you shouldn't have any issues, I was kind of expecting it to cause errors, but no matter, I have an alternative way to do it anyhow.
Title: Re: SMFChess
Post by: Bulakbol on August 16, 2007, 06:18:22 PM
Quote from: Feeble on August 16, 2007, 05:34:22 PM

Sorry about this, download the package again, link for your here (http://www.leaderless.net/tp-downloads/chess.zip)

And you shouldn't have any issues, I was kind of expecting it to cause errors, but no matter, I have an alternative way to do it anyhow.

Thanks. I'll try to install it again. I'll let you know the outcome. 
Title: Re: SMFChess
Post by: mohaakilla51 on August 16, 2007, 11:06:21 PM
Just a simple question, but, WTF!!! HOw does your site claim to be using SMF 3.0, when 2.0 hasn't even be released to the general public...
Title: Re: SMFChess
Post by: Bigguy on August 16, 2007, 11:12:17 PM
lmao, well  I am from the future and..... I changed the version number for SMF in the index.php file.
Title: Re: SMFChess
Post by: Bulakbol on August 16, 2007, 11:29:22 PM
@Feeble. It works like a charm. Thanks a bunch. So, what did you do? I am curious to know.   :D
Title: Re: SMFChess
Post by: mohaakilla51 on August 17, 2007, 12:02:50 AM
BTW, I love this mod... amazing...
Title: Re: SMFChess
Post by: t0AsD on August 17, 2007, 12:37:24 AM
Thanks a lot for the update, I'm looking forward to some fisher random games, I have never played those before. I can challenge the member OZ now and it doesn't show the other random innocent members, that had nothing to do with that.
I had a lot of trouble installing due to my server's stupid file permissions, maybe the following error is caused by that, but maybe it's genuine:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' SUBSTRING('SMFChess_board', 1, 255), SUBSTRING('44', 1, 65534))' at line 3
Datei: /var/www/web3/html/Sources/Profile.php
Zeile: 970

when I try to set an existing, running game to default, like in http://chillboard.de/index.php?action=chess;id=44;default and it happens for all the games.

This is profile.php, line 970 and above, so I have no clue what could be going on.

// If themeSetArray isn't still empty, send it to the database.
if (!empty($themeSetArray))
{
db_query("
REPLACE INTO {$db_prefix}themes
(ID_MEMBER, ID_THEME, variable, value)
VALUES " . implode(",
", $themeSetArray), __FILE__, __LINE__);
}


I'm running MySQL 5.0x and am using SUBSTRING(str FROM start FOR len) in one of my custom mods without problems. On further review it appears that you are not even generating the sql code by yourself, as I cannot find SUBSTRING being used in any of the chess*.php files. Edit: D'oh, it's right there in Profile.php in the makeThemeChanges-function.

Btw. why did you use the error class for the "Yours" text instead of the meaction class? I thought the meaction made sense ;)

Would be cool if you could apply the color to your own nick in the board screen too where it says:

Status:  In Progress
Turn: <YourNick>
Title: Re: SMFChess
Post by: feeble on August 17, 2007, 02:19:14 AM
Quote from: mohaakilla51 on August 16, 2007, 11:06:21 PM
Just a simple question, but, WTF!!! HOw does your site claim to be using SMF 3.0, when 2.0 hasn't even be released to the general public...
SMFHelper is run by bigguy, and yes, I do belive he is from the future.

Quote from: JohnyB on August 16, 2007, 11:29:22 PM
@Feeble. It works like a charm. Thanks a bunch. So, what did you do? I am curious to know.   :D
The error was caused by a mysql table altering sql.
Basically I was trying to force the Chat table to UTF-8.
Doesn't matter thou, I'm going to add something in "Maintenace" to do it manually.

Quote from: t0AsD on August 17, 2007, 12:37:24 AM
Thanks a lot for the update, I'm looking forward to some fisher random games, I have never played those before.
Same here, you up for a game, Ill pop over and send you a challenge if you would like?
Quote from: t0AsD on August 17, 2007, 12:37:24 AMI can challenge the member OZ now and it doesn't show the other random innocent members, that had nothing to do with that.
Glad to hear
Quote from: t0AsD on August 17, 2007, 12:37:24 AMI had a lot of trouble installing due to my server's stupid file permissions, maybe the following error is caused by that, but maybe it's genuine:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' SUBSTRING('SMFChess_board', 1, 255), SUBSTRING('44', 1, 65534))' at line 3
Datei: /var/www/web3/html/Sources/Profile.php
Zeile: 970

when I try to set an existing, running game to default, like in http://chillboard.de/index.php?action=chess;id=44;default and it happens for all the games.

This is profile.php, line 970 and above, so I have no clue what could be going on.

// If themeSetArray isn't still empty, send it to the database.
if (!empty($themeSetArray))
{
db_query("
REPLACE INTO {$db_prefix}themes
(ID_MEMBER, ID_THEME, variable, value)
VALUES " . implode(",
", $themeSetArray), __FILE__, __LINE__);
}


I'm running MySQL 5.0x and am using SUBSTRING(str FROM start FOR len) in one of my custom mods without problems. On further review it appears that you are not even generating the sql code by yourself, as I cannot find SUBSTRING being used in any of the chess*.php files. Edit: D'oh, it's right there in Profile.php in the makeThemeChanges-function.
Hmm odd, Ill check my code, is possibly that this has been caused by switching over to the sa actions.
But I am using the recommended SMF function to store information in the theme data.
The "Settings" tab is working? as that uses the same function

Quote from: t0AsD on August 17, 2007, 12:37:24 AM
Btw. why did you use the error class for the "Yours" text instead of the meaction class? I thought the meaction made sense ;)
Reason for this was because I wasn't entirely sure how long "meaction" has been around(since I just found out about it  :P)
So I wasnt sure how many current theme had the meaction class in there css file.
Ill switch over to the meaction, no worries.

Quote from: t0AsD on August 17, 2007, 12:37:24 AM
Would be cool if you could apply the color to your own nick in the board screen too where it says:

Status:  In Progress
Turn: <YourNick>

Sure ill make the change, I dont mind doing that now that the javascript is pretty much in place.
Title: Re: SMFChess
Post by: feeble on August 17, 2007, 04:59:07 AM
Quote from: t0AsD on August 17, 2007, 12:37:24 AMI had a lot of trouble installing due to my server's stupid file permissions, maybe the following error is caused by that, but maybe it's genuine:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' SUBSTRING('SMFChess_board', 1, 255), SUBSTRING('44', 1, 65534))' at line 3
Datei: /var/www/web3/html/Sources/Profile.php
Zeile: 970

when I try to set an existing, running game to default, like in http://chillboard.de/index.php?action=chess;id=44;default and it happens for all the games.

This is profile.php, line 970 and above, so I have no clue what could be going on.

// If themeSetArray isn't still empty, send it to the database.
if (!empty($themeSetArray))
{
db_query("
REPLACE INTO {$db_prefix}themes
(ID_MEMBER, ID_THEME, variable, value)
VALUES " . implode(",
", $themeSetArray), __FILE__, __LINE__);
}


I'm running MySQL 5.0x and am using SUBSTRING(str FROM start FOR len) in one of my custom mods without problems. On further review it appears that you are not even generating the sql code by yourself, as I cannot find SUBSTRING being used in any of the chess*.php files. Edit: D'oh, it's right there in Profile.php in the makeThemeChanges-function.

Ok this was my fault, and I've updated the build, so you can either uninstall, download the new build and reinstall to fix this issue.

Or open up
sources/Chess.php
on line 391
alter to
global $db_prefix, $context, $options, $modSettings, $scripturl, $user_info, $txt, $ID_MEMBER, $sourcedir, $memberContext, $settings;

Basically $settings was missing from the line
Title: Re: SMFChess
Post by: t0AsD on August 17, 2007, 07:27:07 AM
Great it works now, thanks for the quick support once again :) Only thing was that I had to change line 781, not 391, first line in function SMFChessBoard() in the Chess.php. Thank you for providing the code for the manual change, so I didn't have to compare the releases.

And sure, I'll challenge you to a 960 game at my site. We'll just probably not be around at the same times, but thanks to the nature of your mod we don't have to ;)

Edit: one of my Members just found a feature missing that you had in the previous versions: If you make an illegal move, that move isn't taken back immediately. It says that you made an illegal move, but the piece is not moved back to its field of origin, is that intentional?
Title: Re: SMFChess
Post by: feeble on August 17, 2007, 08:19:08 AM
Quote from: t0AsD on August 17, 2007, 07:27:07 AM
Edit: one of my Members just found a feature missing that you had in the previous versions: If you make an illegal move, that move isn't taken back immediately. It says that you made an illegal move, but the piece is not moved back to its field of origin, is that intentional?
Umm i dont think that was ever in, doesn't matter, ill put it in anyways, as I've been wanting this as well.
Title: Re: SMFChess
Post by: PLAYBOY on August 19, 2007, 09:15:49 AM
admins can clear chat, declare the winner and do lotto things But not in their own match. Admins should be able to do everything in any match even in their own match.
Title: Re: SMFChess
Post by: PLAYBOY on August 19, 2007, 09:17:01 AM
it still shows the wrong WINNER in "Finished" page. please fix this with the next version. I really need it.
Title: Re: SMFChess
Post by: brianjw on August 19, 2007, 07:51:32 PM
Feature Request
The "Remind" feature.

After 3 days a "Remind" link will appear somewhere in the chess page. It will only appear if the opponent hasn't made a move for 3 days. Then the member can click the "Remind" link if they wish and will send a pm message like
"You haven't made a move for # days. This is an automatic message sent to you for the game "Chess Board Link" then the member can type his/her own message.
-Where # is, will be how many days since the member has made a move (3+ days!),
-Where "Chess Board Link" is, will be the link to the board game and appear as "name v.s. opponent"

This should be a feature to disable/enable in admin panel (if there is one). Also if enabled you should be allowed to select how many days until remind link will appear.


Brianjw :)
Title: Re: SMFChess
Post by: feeble on August 20, 2007, 07:25:51 AM
Quote from: PLAYBOY on August 19, 2007, 09:15:49 AM
admins can clear chat, declare the winner and do lotto things But not in their own match. Admins should be able to do everything in any match even in their own match.
Hmm
Ill make the changes that you have requested, so that admins can use admin commands in their own game.

Quote from: PLAYBOY on August 19, 2007, 09:17:01 AM
it still shows the wrong WINNER in "Finished" page. please fix this with the next version. I really need it.
Apologies for this.
Was the game ended in a resign? or did an admin force a win?
If so, I can't fix this as it was stored incorrect. Now that they have their own status, "Checkmate*" since the last build, it should be fine from now on.

Quote from: brianjw on August 19, 2007, 07:51:32 PM
Feature Request
The "Remind" feature.
I really like this, ill put something basic in, and if it works Ill expand on the idea.

Would you prefer the remind link on "My page" instead? possibly highlighted. This way you don't have to go onto the chess page to click to remind.

Also I am hoping to have finished a move clock soon, so this should also help with this issue.
Title: Re: SMFChess
Post by: feeble on August 20, 2007, 08:00:36 AM
New Translation
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip) - Translated by Bruno
Title: Re: SMFChess
Post by: brianjw on August 20, 2007, 08:09:26 AM
Quote from: Feeble on August 20, 2007, 07:25:51 AM
Would you prefer the remind link on "My page" instead? possibly highlighted. This way you don't have to go onto the chess page to click to remind.

Yeah. That would be good :)
Title: Re: SMFChess
Post by: PLAYBOY on August 20, 2007, 11:23:36 PM
Quoteit still shows the wrong WINNER in "Finished" page. please fix this with the next version. I really need it.


Apologies for this.
Was the game ended in a resign? or did an admin force a win?

No. It was a regular game which i won after 40 moves.

Quote from: Feeble on August 20, 2007, 08:00:36 AM
New Translation
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip) - Translated by Bruno

What do you mean porttugese? is there a language version that we can convert to oter languages??? i would probably the one to translate it to turkish.
Title: Re: SMFChess
Post by: feeble on August 21, 2007, 12:46:58 AM
Quote from: PLAYBOY on August 20, 2007, 11:23:36 PM

No. It was a regular game which i won after 40 moves.
Hmm I thought i fixed, ill do another retake.
Just to also confirm, have you tried fixing the errors, using the "Fix errors link" in Chess Maintenance?

Quote from: PLAYBOY on August 20, 2007, 11:23:36 PM
What do you mean porttugese? is there a language version that we can convert to oter languages??? i would probably the one to translate it to turkish.

Follow this link (http://www.simplemachines.org/community/index.php?topic=129749.0), details are in the first post.
Basically just translated the txt file, then either send it to me in a pm or email etc.
Title: Re: SMFChess
Post by: PLAYBOY on August 21, 2007, 12:00:13 PM
Quotehave you tried fixing the errors, using the "Fix errors link" in Chess Maintenance?

no but you r right. I ll try it.

Here is the Turkish part of the language file but i think its too short. It should be lot more.


$txt['cannot_chess_main'] = 'Satranc bolumune girme izniniz yok.';
$txt['cannot_chess_play'] = 'Diger uyeler ile satranc oynama izniniz yok.';
$txt['cannot_chess_admin'] = 'Satranc (Admin) bolumune girme izniniz yok.';

$txt['permissiongroup_chess'] = 'Satranc';
$txt['permissionname_chess_main'] = 'Satranc Giris';
$txt['permissionname_chess_play'] = 'Oynamaya Izinli';
$txt['permissionname_chess_admin'] = 'Admin Girisi';

$txt['whoall_chess'] = 'Viewing <a href="'.$scripturl.'?action=chess">Satranc</a>.';
$txt['whoall_chessXml'] = 'Viewing <a href="'.$scripturl.'?action=chess">Satranc</a>.';
$txt['whoall_chessChat'] = 'Viewing <a href="'.$scripturl.'?action=chess">Satranc</a>.';

$txt['SMFChess'] = 'Satranc';
$txt['SMFChess_admin'] = 'Satranc Admin';
$txt['SMFChess_admin_settings'] = 'Genel Ayarlar';
$txt['SMFChess_admin_maintenance'] = 'Bakim';

There should be everything about the game and game page. I think this is only admin area, which i dont think i need to translate. The most important part is the game pages and personal pages of members. We need a language file for entire mod.
Title: Re: SMFChess
Post by: feeble on August 21, 2007, 06:17:39 PM
Quote from: PLAYBOYThere should be everything about the game and game page. I think this is only admin area, which i don't think i need to translate. The most important part is the game pages and personal pages of members. We need a language file for entire mod.
You are absolutely correct. Reason for this is because, well, I haven't gotten around to moving all the text over to the language file.
At the moment, the Language Packs only contain text that is located outside of the Chess.language.php.
It should basically stop any errors related to languages filling up your error log.

New Translation
Turkish (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_turkish.zip) - Translated by PLAYBOY
Title: Re: SMFChess
Post by: hvyhitter on August 22, 2007, 11:56:03 AM
Awesome Mod Feeble.. keep it up.
Title: Re: SMFChess
Post by: PLAYBOY on August 23, 2007, 07:33:55 AM
I think it sends the pm after making a move, pretty late. I mean once you make the move, person gets the pm after 3-5 minutes maybe even more. It maybe my servers or themes fault but i have tested this. it goes after some minutes.
Title: Re: SMFChess
Post by: PLAYBOY on August 23, 2007, 07:37:21 AM
also, instead of just a little scratch on top of the chessboard, it would be better to show "Whose Turn is it now"

what is the difference between quick match and a regular match?
Title: Re: SMFChess
Post by: PLAYBOY on August 23, 2007, 07:49:39 AM
when undo/resign/draw requested, i think it would be good to have that posted (or logged) somewhere on the game page, so people can see how many times the opponent has asked for undo and we accepted/refused.

There should be an option to set a limit for undo/draw/resign request.

It think it would be nice if we had an option to resize the chess board.. but of course this request can be done later on. im just getting so spoiled cause Feeble does all the requests to the mod. :D

Feeble Rocks! Hell... Yeah BABY!
Title: Re: SMFChess
Post by: MinasC on August 23, 2007, 10:18:23 AM
i finally managed to install it and looks great but when i try to challenge a member it searches without giving any results ! at the same time at the bottom left corner of my browser i got an "error on page" message ! any ideas why ?

thnx a lot in advance !
Title: Re: SMFChess
Post by: feeble on August 23, 2007, 10:33:45 AM
Quote from: PLAYBOY on August 23, 2007, 07:33:55 AM
I think it sends the pm after making a move, pretty late. I mean once you make the move, person gets the pm after 3-5 minutes maybe even more. It maybe my servers or themes fault but i have tested this. it goes after some minutes.
Hmm bit odd, I haven't seen this issue on my test site.
Are you referring to a PM on the forum or an email?

Quote from: PLAYBOY on August 23, 2007, 07:37:21 AM
also, instead of just a little scratch on top of the chessboard, it would be better to show "Whose Turn is it now"
Whos turn is listed on the right.
If you would like, I can change it to display "Yours" when its your turn similar effect like on "My Page"

Quote from: PLAYBOY on August 23, 2007, 07:37:21 AM
what is the difference between quick match and a regular match?
Not much, its alot more intuitive now.
I just called it Quickmatch, because I was bored at the time.
Basically, if you dont have anyone in particular to challenge, you can select quickmatch, and an opponent will be found for you.(basically how it works in the public build, is that the next person to click on quickmatch, is matched up with you)
Works alot better now thou, think Creating and Joining Matches.

Quote from: PLAYBOY on August 23, 2007, 07:49:39 AM
when undo/resign/draw requested, i think it would be good to have that posted (or logged) somewhere on the game page, so people can see how many times the opponent has asked for undo and we accepted/refused.
It will be like that eventually, everything hopefully should be logged soon. The current implementation is just a test to see if it worked ok.

Quote from: PLAYBOY on August 23, 2007, 07:49:39 AM
There should be an option to set a limit for undo/draw/resign request.
To be honest, you are probably correct. Except I dont think you can put a limit on resign or draw. ;)
For Undo, ill need to add another column to store it, but what limit would be best?
This value could differ per game.....Ill look into.

Quote from: PLAYBOY on August 23, 2007, 07:49:39 AM
It think it would be nice if we had an option to resize the chess board.. but of course this request can be done later on. im just getting so spoiled cause Feeble does all the requests to the mod. :D
lol, I don't really mind.
You can actually already do this in the admin area under "Set Chess Board Size:" ;)

Quote from: MinasC on August 23, 2007, 10:18:23 AM
i finally managed to install it and looks great but when i try to challenge a member it searches without giving any results ! at the same time at the bottom left corner of my browser i got an "error on page" message ! any ideas why ?
Thank you for trying the mod, if you have any suggestions, feel free.
Anything being displayed in your forum error log?
Any chance I could jump onto your forum and take a look? url? IE doesn't give to many hints when it comes to javascript.
Title: Re: SMFChess
Post by: PLAYBOY on August 23, 2007, 11:37:04 AM
QuoteHmm bit odd, I haven't seen this issue on my test site.
Are you referring to a PM on the forum or an email?

you r right. its normal. i thought it sends it late but i tested in another computer and its all good. nevermind.

QuoteWhos turn is listed on the right.
If you would like, I can change it to display "Yours" when its your turn similar effect like on "My Page"

its up to you. anything would be better than just a scratch.

QuoteFor Undo, ill need to add another column to store it, but what limit would be best?

i think it should be an option. admins should be able to set the limit of undo request for match-s

QuoteExcept I dont think you can put a limit on resign or draw.
I think you can. if a person ask to draw the game and you say no. he can ask again and again and again... so i think there should be a limit for that too which admins can set.

And a new BUG. this needs to be fixed pretty quick because it effects my matches....

when a member who has a long member name; watching the game, "Watching" column pushes other columns and chessboard on the side but the pieces stay at where they are. so  what i am trying to say is when a guy who has a long membername watching the game this is what happens to chessboard...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg249.imageshack.us%2Fimg249%2F7530%2Funtitledco5.jpg&hash=e180b9f7239f50d816bec751781dd09e7a5b2705)
Title: Re: SMFChess
Post by: Talia on August 23, 2007, 11:50:07 AM
Thank you very much for this great mod. It looks wonderful. I've tried it on my site with no errors so far.
However, I have one question. Does the Auto (dynamic) refresh affect in any way the server load or resources, If I am using a shared host? If yes, how can I disable it?
Title: Re: SMFChess
Post by: t0AsD on August 23, 2007, 03:26:35 PM
Quote from: Talia on August 23, 2007, 11:50:07 AM
Thank you very much for this great mod. It looks wonderful. I've tried it on my site with no errors so far.
However, I have one question. Does the Auto (dynamic) refresh affect in any way the server load or resources, If I am using a shared host? If yes, how can I disable it?

Certainly loading a page affects your server load, but I think that a dynamic update of a (lightweight) XML-page (like this mod does it) causes much less load then if you had to refresh the whole page all the time.

The autoupdate time is adjustable in the admin menu, and you can set it to about 20-40 seconds if your players don't usually move very quickly and your serverload is high :)

Don't forget to adjust the value for the chat update too. Also lower timeout values for the autoupdate could help if you experience problems.
Title: Re: SMFChess
Post by: MinasC on August 23, 2007, 05:48:55 PM
Quote from: Feeble on August 23, 2007, 10:33:45 AM
Quote from: MinasC on August 23, 2007, 10:18:23 AM
i finally managed to install it and looks great but when i try to challenge a member it searches without giving any results ! at the same time at the bottom left corner of my browser i got an "error on page" message ! any ideas why ?
Thank you for trying the mod, if you have any suggestions, feel free.
Anything being displayed in your forum error log?
Any chance I could jump onto your forum and take a look? url? IE doesn't give to many hints when it comes to javascript.


i'll pm you the url . thnx for the effort !
Title: Re: SMFChess
Post by: MinasC on August 23, 2007, 06:52:18 PM
i just need that i have to thank Feeble for his support ! you really rock man !  ;)
Title: Re: SMFChess
Post by: feeble on August 23, 2007, 07:20:18 PM
Quote from: PLAYBOY on August 23, 2007, 11:37:04 AM
its up to you. anything would be better than just a scratch.
Ill look into this
Quote from: PLAYBOY on August 23, 2007, 11:37:04 AM
QuoteFor Undo, ill need to add another column to store it, but what limit would be best?

i think it should be an option. admins should be able to set the limit of undo request for match-s

QuoteExcept I dont think you can put a limit on resign or draw.
I think you can. if a person ask to draw the game and you say no. he can ask again and again and again... so i think there should be a limit for that too which admins can set.
It is suppose to be a honorable game, so I hope people aren't doing this.
But, I'll look into a way to get this done.
As if they do abuse at the start, how will they use it once they actually need it.
Quote from: PLAYBOY on August 23, 2007, 11:37:04 AM
And a new BUG. this needs to be fixed pretty quick because it effects my matches....

when a member who has a long member name; watching the game, "Watching" column pushes other columns and chessboard on the side but the pieces stay at where they are. so  what i am trying to say is when a guy who has a long membername watching the game this is what happens to chessboard...
Fixed in a new build I just uploaded, give that a try.

Im at odds thou as how this is affecting the board.
Can i just ask, is the watching column next to the chat, or next to the players avatars?

Quote from: Talia on August 23, 2007, 11:50:07 AM
Thank you very much for this great mod. It looks wonderful. I've tried it on my site with no errors so far.
However, I have one question. Does the Auto (dynamic) refresh affect in any way the server load or resources, If I am using a shared host? If yes, how can I disable it?
As t0AsD said, it shouldn't be to much strain if you have the correct timeout and update intervals.

I have been likening to about 10-12 second interval, and about 20min timeout.
You shouldn't see any noticeable difference with those settings.

I only have it to a quick update interval when I'm testing/making changes.

Quote from: MinasC on August 23, 2007, 06:52:18 PM
i just need that i have to thank Feeble for his support ! you really rock man !  ;)
Apologies I couldn't solve it for you thou, let me know how you get on with it.
Title: Re: SMFChess
Post by: feeble on August 23, 2007, 09:11:22 PM
New Build out, Contains alot of bug fixes, overhauls and new features.

Most notably
Basic Move Clock is now added. It will improve in future version, but I thought I might just add something basic in then improve in the future

Pawn Promotion is now possible, Mystify your opponent by promoting to a Bishop and join the 0.2% (http://en.wikipedia.org/wiki/Promotion_(chess))

Castling now available in New Chess960 games. Its not 100% just yet, but its almost there. Want to thank t0AsD for working out the adjustments require to handle Chess960 Castling, and spending a couple of hours testing to make sure it all works. Thanks Mate.

Can now remind your opponent after 4 days, Link to remind is on "My Page". Requested by Brianw.
Do you think you need this delay as a admin setting? only reason its 4 days is to coincide with the move clock.

Oh yeah, ELO rating is now available with Leaderboard. And new Interface for Quickmatch. Limited to 1 day joining and 1 day creating.

Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Languages: If you do not see your language here, please follow this link (http://www.simplemachines.org/community/index.php?topic=129749.msg827672#msg827672)
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop language errors in your forum log regarding missing languages.
NOTE: If you have installed one of the language packs already, dont worry about uninstalling, the new build will not affect any of the language packs.
German (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_german.zip)
Thai UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_thai_utf-8.zip)
Croatian UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_croatian_utf-8.zip)
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip)
Turkish (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_turkish.zip)

Quickchange Log:
25/08/07
-Added yours and meaction to turnname
-watching now is accurate to 20 seconds
-limited watching name to 10 chars
23-24/08/07
-Added basic move clock
-Added Upgraded Quickmatch to Challenge Page
-Move ControlMsg to below board, so that its easier to see with Board Chat
-Changed text to flip board
-Castling now avaliable in Chess960, great thank you to t0AsD for providing pretty much everything to accomplish this
22/08/07
-Select Pawn Promotion added as per request
-Can now remind(4days late)
21/08/07
-Admins can admin their own games
-Added ELO rating, starting point is 1200
-Added My Stats and Top Players on My Page
-Fixed bug with admins and finishing games
-Pieces now move back to original position if move was illegal
Title: Re: SMFChess
Post by: brianjw on August 23, 2007, 10:16:55 PM
I have another feature request -

The undo command should not have to be approved by the opponet, however so the opponet doesn't get driven nuts the limit will be set to 2 and can be changed via administrator panel.
Just so you can change the move right away and only get a limit of # changes.

--Another feature request--
the LIVE game -- When you go to challenge a few radio buttons should appear (the kind that only one can be selected at a time for). It will allow you to select the new feature "Quickmatch", "Normal/Choose Member", and my request "LIVE Game".

The live game can only be played when both members are there facing the board so they can play one nice live game of chess. The rules would be if they exit or leave the board at anytime then it would count as a truce/draw/resign or whatever the word is lol :P. It would be a nice way to play chess almost right there with them :)
Title: Re: SMFChess
Post by: Godsongz on August 24, 2007, 12:53:19 AM
Quote from: brianjw on August 23, 2007, 10:16:55 PMThe undo command should not have to be approved by the opponet

Most tournaments I play in follow touch rules.  There's just no such thing as "undo".  An honest mouse-slip is one thing, but otherwise you should commit to a move before you touch a piece.  As an option, sure, if feeble feels like it and has time, but as a rule no.  Undo's need approval.

I love the "live game" idea.  Once the points and clocks (I did hear feeble say recently he was working on the clock, I think) are worked out, then I can easily see people setting aside an afternoon to play chess on their favorite forum and using this for hours straight.
Title: Re: SMFChess
Post by: PLAYBOY on August 24, 2007, 04:44:06 AM
QuoteCan i just ask, is the watching column next to the chat, or next to the players avatars?

on the right side of avatars.


I installed the new version but my winner section is still showing wrong. If you want i can copy any file here so you can work on the codes. maybe you can help me more like that.

its ok for the new games but old ended games are still showing the wrong winner on the Winner column.

It really hurts especially if you won all of your games but some of them still says YOU LOST.

please look into this. im having a really hard time about it.
Title: Re: SMFChess
Post by: PLAYBOY on August 24, 2007, 04:46:24 AM
maybe it could be fixed by "Declaring The Winner by Admin" but i need to have that option for the "Finished games"
Title: Re: SMFChess
Post by: PLAYBOY on August 24, 2007, 05:49:07 AM
nevermind, i got it.

I thought you were telling me to try forums error fixing feature. I didnit think you were talking about chess error fixing. Everything works perfectly now.

But we still need a full language file. That is the only problem i have right now.
Title: Re: SMFChess
Post by: feeble on August 24, 2007, 06:57:19 PM
Quote from: brianjw on August 23, 2007, 10:16:55 PM
The undo command should not have to be approved by the opponet, however so the opponet doesn't get driven nuts the limit will be set to 2 and can be changed via administrator panel.
Just so you can change the move right away and only get a limit of # changes.
Quote from: Godsongz on August 24, 2007, 12:53:19 AM
Most tournaments I play in follow touch rules.  There's just no such thing as "undo".  An honest mouse-slip is one thing, but otherwise you should commit to a move before you touch a piece.  As an option, sure, if feeble feels like it and has time, but as a rule no.  Undo's need approval.

To be honest, I think you are both correct.
I was thinking of implementing a handicap system based on your ELO rating(still working out the details)
For example, if you ELO rating is above 1400, Undo is disabled
If you ELO rating is below 1200 and your opponent is not "Watching", Undo is instant
Else its on a request basis.

Would that be a good enough solution?

Quote from: brianjw on August 23, 2007, 10:16:55 PM
--Another feature request--
the LIVE game -- When you go to challenge a few radio buttons should appear (the kind that only one can be selected at a time for). It will allow you to select the new feature "Quickmatch", "Normal/Choose Member", and my request "LIVE Game".

The live game can only be played when both members are there facing the board so they can play one nice live game of chess. The rules would be if they exit or leave the board at anytime then it would count as a truce/draw/resign or whatever the word is lol :P. It would be a nice way to play chess almost right there with them :)
Quote from: Godsongz on August 24, 2007, 12:53:19 AM
I love the "live game" idea.  Once the points and clocks (I did hear feeble say recently he was working on the clock, I think) are worked out, then I can easily see people setting aside an afternoon to play chess on their favorite forum and using this for hours straight.
I think its a good idea to, but again the details are still a little vage.
The only problem I can see atm is that it sort of defeats the point of a playing of a Forum.
There are also a few other issues as well, such as much up. I was thinking of Locking the game until both players are Watching, and then moves are based of a clock. (2min or 5min move time).
This way, you can still browse the forum without losing your game.


Quote from: PLAYBOY on August 24, 2007, 05:49:07 AM
nevermind, i got it.

I thought you were telling me to try forums error fixing feature. I didnit think you were talking about chess error fixing. Everything works perfectly now.

But we still need a full language file. That is the only problem i have right now.
Glad its sorted, I was getting worried it still wasn't working correctly.
Ill get rid of the name length limitor as it doesnt affect the board at all when its displayed next to the chat.
Im working on the language files now, it should be the next big update.
Title: Re: SMFChess
Post by: Godsongz on August 25, 2007, 03:21:45 PM
Quote from: Feeble on August 24, 2007, 06:57:19 PMThe only problem I can see atm is that it sort of defeats the point of a playing of a Forum.

Not at all...  the biggest point of playing on a forum is physical distance.  We can be all over the planet, but still play a live game in our favorite forums.

Having an odd bug here though with the new version (and remember, I have to do all mods manually so it's very possible that I just missed something).  After installing the new version, when going to the Challenge screen, I get the database error "Unknown column 'true' in 'field list'" in Chess.php line: 642.  Any thoughts?

NOTE:  Feeble solved this bug with a simple edit to the chess.php file.  It was due to my mysql version being 4.1 or less (my host is running 4.0.26).
Chess.php line #636

Replace
THEN false ELSE true END AS is_chess960

with
THEN '0' ELSE '1' END AS is_chess960

You probably don't want to change this unless you're having the bug I had.
Title: Re: SMFChess
Post by: t0AsD on August 25, 2007, 05:46:12 PM
I don't like the idea of a "live game" too much, as feeble says it almost defeats the purpose of having a chess game on a forum. Playing on the forum is the perfect balance between a live internet game (where you usually have a real-time move clock and as drawbacks cannot have your internet disconnect, the server reset and can't take a call etc.) and e-mail games that are cumbersome and slow.

You can already have live games, you are on a forum. Go make a thread and invite the people for a game, stating the rule that you want the game to be not interrupted if possible.

Regarding the undo without confirmation, please either don't implement it at all or make it admin or per-game togglable. As we say in German: "berüht - geführt (touch - move)", if you touch a piece you have to make a legal move with that piece (see FIDE rules chapter 4 (.3) (http://www.fide.com/official/handbook.asp?level=EE101)). So in internet chess, if you make a move you should be commited to it unless you have a very good excuse for wanting to undo, like a software error or that your mousekey slipped while drag+dropping the piece. In my opinion everything regarding undo is fine at the moment.

And for the limitation of undo, etc. requests, I think that these things should simply be brought to an admin's attention, so he can warn the offending member about it or take further action if neccessary (giving a default loss, revoking the members rights to play chess).
Title: Re: SMFChess
Post by: PLAYBOY on August 26, 2007, 09:54:39 AM
QuoteIll get rid of the name length limitor as it doesnt affect the board at all when its displayed next to the chat.

its good now. Because you put the watching column to the bottom of the page.

ELO (whatever that means) doesnt count the old game, which had been played and finished before this version. I have played lots of matches but my elo is 1200 just like everybody else.
Title: Re: SMFChess
Post by: flame baiter on August 26, 2007, 04:45:01 PM
Oh, now that the beta is out for charter members...any chance to update this mod for smf 2.0?
Title: Re: SMFChess
Post by: feeble on August 26, 2007, 08:11:20 PM
Quote from: PLAYBOY on August 26, 2007, 09:54:39 AM
ELO (whatever that means) doesnt count the old game, which had been played and finished before this version. I have played lots of matches but my elo is 1200 just like everybody else.
You can read more about ELO here (http://en.wikipedia.org/wiki/ELO_rating_system)

What this means thou, is that your W/D/L's are separate from your ELO rating. Essentially the rating is designed so that you could possibly predict the outcome between two players.
I probably explained it incorrectly, so just read the wiki :)

Also I've started the default at 1200, which was probably a bad thing to do, as it will probably cause more confusion.
If you would like your forum to be restarted to 1000. Send me a PM.
I forgot to discuss this before I put out the new build, so my apologies in regards to this.

Quote from: flame baiter on August 26, 2007, 04:45:01 PM
Oh, now that the beta is out for charter members...any chance to update this mod for smf 2.0?
I haven't actually got my hands on a copy of SMF 2.0, so at the moment no.
Title: Re: SMFChess
Post by: PLAYBOY on August 27, 2007, 12:32:18 AM
Thank you but i guess you forgot to answer to my question :D

ELO (whatever that means) doesnt count the old finished games, which had been played before this version. I have played lots of matches but my elo is 1200 just like everybody else.

I personally dont care which number ELO stars from. But it should count the games which has been played before this update.
Title: Re: SMFChess
Post by: Godsongz on August 27, 2007, 12:44:00 PM
I don't think it's that big of a deal if the Elo rating doesn't count games prior to it's inception.  It calculates at the end of each game and a new Elo is issued to both the winner and the loser.  I think it's too much to expect that Feeble have the Elo system go back through history.  It will eventually "catch up" as more games are played.  Besides, remember that SMFChess is still beta software.  The important part is that Elo will be in place when version 1.0 is released.
Title: Re: SMFChess
Post by: PLAYBOY on August 27, 2007, 05:10:28 PM
Well maybe you are right. Maybe its not big of deal for you. But think about if made 30 matches and you havent lost any of them? Then how would you feel about it? You ELO is like your level of pride in chess... and its not easy to win those games everytime.

So i respect your opinion but i believe this is something should be looked into. Its not an immidiate request but i dont think its something we should put in the freezer eighter.
Title: Re: SMFChess
Post by: t0AsD on August 27, 2007, 05:36:19 PM
I also have won most of my games and I wanted to request the same thing you did. Then I thought better of it, because this is a beta mod and feeble has better and more useful things to do then to satisfy our pride by coding some probably difficult stuff (elo is based on the elo, so it's not a simple script) that is only useful once.
Title: Re: SMFChess
Post by: feeble on August 27, 2007, 06:54:30 PM
Sorry about the lack of updates or communication. Just been taking a look over SMF2 for the past couple, and visited Rapture for a bit.

In regards to the updating on ELO and stats for all your game.
Ill look into it, its a little bit more difficult, so I'm looking forward to getting it done.
But if you do recalculate, you ELO will be restarted to 1000 + your results.

The ELO scoring has me a little worried thou in its present state. As ELO shouldn't really be using to rank players, but more to compare in my opinion.
And since it can go up or down, there isn't much incentive for players to accept challenges from players with a lower ELO.

Would it be ok, if I put one more scoring system in?
basically ELO but your rating will only ever go up. And this method would be used to order the leaderboard. And the ELO rating, would be used as secondary.


Regarding Undo.
After reading your comments on this request.
I think it should stay as request only. Reason for this is because well, the touch system is really how you should play Chess.
If you still want it thou Brianw, I might be able to adjust it for you personally, anyways let me know if this is ok.


Regarding Live Games.
I do really want this, but.
The only problem is that, well...I have this strange suspicion its going to cause more problems then its worth, especially as it can already be done, just needs some scheduling by the Players.
So would you like possibly a place to chat globally so you can see if anyone else is looking for a game at the same time you are as well?
Title: Re: SMFChess
Post by: brianjw on August 27, 2007, 10:18:39 PM
I do still want this if you don't mind. But don't post it now as I am waiting for the FIRST Real version no betas.
Title: Re: SMFChess
Post by: PLAYBOY on August 28, 2007, 04:21:10 AM
(https://www.simplemachines.org/community/Themes/smsite/images/badge_charter.gif) <<<<<<<<< CHARTER MEMBER? :) Good Job man. you deserve it. Whatever that is. It sounds cool :D


Here are what i got in my error logs...

8: Undefined index: SMFChess_admin
Dosya: /home/site/folder/forum/Sources/Subs.php
Satır: 2819


Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
GROUP BY ID_BOARD' at line 3
Dosya: /home/site/folder/forum/Sources/Subs-Post.php
Satır: 1976

1024: sendNotifications(): non-existant topic passed
Dosya: /home/site/folder/forum/Sources/Subs-Post.php
Satır: 1388

8: Undefined index: allow_chess_admin
Dosya: /home/site/folder/forum/Sources/ChessChat.php
Satır: 97

2: unlink(/home/site/folder/forum/Themes/default/SMFChess/pieces/leipzig/black_king.gif) [<a href='function.unlink'>function.unlink</a>]: Permission denied
Dosya: /home/site/folder/forum/Sources/Subs-Package.php
Satır: 1157

8: Undefined index: SMFChess_admin_maintenance
Dosya: /home/site/folder/forum/Sources/Subs.php
Satır: 2825

8: Undefined index: ID_MEMBER
Dosya: /home/site/folder/forum/Sources/Chess.php
Satır: 254
Title: Re: SMFChess
Post by: feeble on August 28, 2007, 05:28:51 AM
Quote from: PLAYBOY on August 28, 2007, 04:21:10 AM
(https://www.simplemachines.org/community/Themes/smsite/images/badge_charter.gif) <<<<<<<<< CHARTER MEMBER? :) Good Job man. you deserve it. Whatever that is. It sounds cool :D
lol, thanks but charter really doesn't mean anything.
Quote from: PLAYBOY on August 28, 2007, 04:21:10 AM
Here are what i got in my error logs...
Im a little confused. as "SMFChess_admin_maintenance"
isn't even used anymore.

What are the dates on those errors anyway and are you using the latest build?

Also "SMFChess_admin" should of been solved by the Turkish language pack
Title: Re: SMFChess
Post by: hvyhitter on August 28, 2007, 09:41:32 AM
hahah feeble.. people wanting it to work with beta 2.0.. like you didnt see that coming..

let me know if I can help in any way.. I am not moving to 2.0 any time soon my test install didnt go so well (as I expected) no 2.0 for me..for now.. :D
Title: Re: SMFChess
Post by: PLAYBOY on August 28, 2007, 10:46:16 AM
maybe those errors are old. i deleted all the errors now. if same thing happens again i ll let you know.


but these errors are new... just came out fresh :)

http://www.site.com/forum/index.php?action=chessXml;sa=update;sesc;id=47;timestamp=1188063293;xml
Unable to load the 'main' template

8: Undefined index: SMFChess_admin
Dosya: /home/site/folder/forum/Sources/Subs.php
Satýr: 2819
Title: Re: SMFChess
Post by: t0AsD on August 30, 2007, 09:03:04 AM
I'd like to suggest an improvement regarding the export of Fischer-games. Currently the starting notation is not exported to PGN, so that if you want to replay or analyze the game in another software, you have to enter it manually.

PGN supports alternate starting positions (cf. specs (http://www.very-best.de/pgn-spec.htm#9.7)) and I know you are using FEN already, so implementing this should be possible. I think you are not saving the inital game position as FEN, but as this would be useful for the castling code anyway (you can castle as the first move in some random setups) you might want to add it? Maybe it could be saved in the chess_move database as move 0, but that's just a quick idea without knowing your code as a whole, you probably select from the move db somewhere to determine whether a game is running :).
Title: Re: SMFChess
Post by: Flying Drupalist on August 30, 2007, 10:36:05 AM
Is there a way to manually upgrade? I can't uninstall without breaking my files.
Title: Re: SMFChess
Post by: feeble on August 30, 2007, 03:14:07 PM
Quote from: t0AsD on August 30, 2007, 09:03:04 AM
I'd like to suggest an improvement regarding the export of Fischer-games. Currently the starting notation is not exported to PGN, so that if you want to replay or analyze the game in another software, you have to enter it manually.

PGN supports alternate starting positions (cf. specs (http://www.very-best.de/pgn-spec.htm#9.7)) and I know you are using FEN already, so implementing this should be possible. I think you are not saving the inital game position as FEN, but as this would be useful for the castling code anyway (you can castle as the first move in some random setups) you might want to add it? Maybe it could be saved in the chess_move database as move 0, but that's just a quick idea without knowing your code as a whole, you probably select from the move db somewhere to determine whether a game is running :).
No worries, Ill make the change
currently its exporting

[Site "Leaderless Clan Website"]
[Date "2007.08.23"]
[Round "0"]
[White "Feeble"]
[Black "t0AsD"]
[Result "*"]
[Board "48"]

1.h4 f6 2.g4 Qf7 3.Ng3 Ne6 4.e4 b5 5.g5 b4 6.g6 b3 7.gxh7 bxa2 8.h5 Ba6 9.c4 axb1=R 10.b4 Rxb4 11.Ba3 Nc6 12.d3 Rbb8 13.d4 g5 14.f3 g4 15.f4 Rg5 16.Ne2 Rb3 17.Ng3 Rgb5 18.Ne2 Rbb8 19.Ng3 O-O-O *


just need to add
'[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]'

I haven't seen the tag "SetUp" very often.
But if you want, ill include that as well.


Ill also make a few adjustments to the PGN import, so that it can handle the FEN tag. as at the moment it assumes default positions.

Quote from: Miraploy on August 30, 2007, 10:36:05 AM
Is there a way to manually upgrade? I can't uninstall without breaking my files.
Hmm, ill make a manual Script package.
But you will have to wait as Im made alot of small changes to the tables for the next build.
Title: Re: SMFChess
Post by: t0AsD on August 30, 2007, 05:49:07 PM
Miraploy, I'm not sure what you mean by "breaking" your files, but it probably would be best to uninstall via the mod manager and then manually uninstall (have a backup of the install/uninstall xml) from the files, that the package manager couldn't get hold of. Then do a clean install of a new version.

I assume you meant that the package manager shows some files as "test failed", if you were talking about something different then disregard this method ;)
Title: Re: SMFChess
Post by: feeble on August 31, 2007, 05:10:56 PM
Ok this is my Final Push of changes to Finalize this Mod for v1 release.

So Please, take a look, and if there is anything you need last minute please let me know, as I will probably stop adding things once the language files are done.
Also please keep in mind that
-the concept of "Live Game" will have to wait till later, but its still possible to do it now
-show last move will have to wait till later as well


Most notable changes in this release:
-Recount Wins,Draw,Loses and ELO Rating - Please don't try and use this to often, its not the most efficient of scripts

-Fixed many more bugs with castling, thanks again to t0AsD.
Note: you can only castle now, by clicking on one of the castling images. This was done to alleviate problems in some chess960 setups.

-All 960 of Chess960 board setups are now in, so you should see more variety

-Chess BBC Tag now in place - Please comment of the design
Example can be found here (http://www.leaderless.net/index.php?topic=12.0)

-Notepad added, now you can job down notes between moves

-Alot of small bug fixes


Also Ive done some small experiments to calculate the bandwidth used by SMFChess
Check Update Ticks
Chess Board - 140 bytes per tick
Chat - 220 bytes per tick

When an update Occurs -
ChessBoard - 500 bytes on average
Chat - 1000 bytes on average

So what that means that on the recommend settings of
20min timeout, 10 seconds between Update Ticks
-120 ticks till timeout
-44Kbytes in 20min till timeout occurs
-Roughly couple of hundred Kbytes per game.

Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Note: To manually make table changes. Just uploaded the InstallScript.php from chess.zip into your SMF directory and run it through a browser

Languages: If you do not see your language here, please follow this link (http://www.simplemachines.org/community/index.php?topic=129749.msg827672#msg827672)
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop language errors in your forum log regarding missing languages.
NOTE: If you have installed one of the language packs already, dont worry about uninstalling, the new build will not affect any of the language packs.
German (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_german.zip)
Thai UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_thai_utf-8.zip)
Croatian UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_croatian_utf-8.zip)
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip)
Turkish (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_turkish.zip)
Title: Re: SMFChess
Post by: PLAYBOY on August 31, 2007, 08:49:27 PM
Everything is Perfect. I think its good to go now.

Im cleaning my error log now. If i get any error messages i ll let you know.

Later on, you may wanna add an option to change color of pieces.

Can anybody (including admins) see the persons notes on notepad?

Thanks again. Good job. Keep it up.
Title: Re: SMFChess
Post by: Godsongz on August 31, 2007, 10:42:19 PM
Thanks Feeble, it's working great!  I like the CHESS bbcode tag, it could be really useful for posting chess puzzles and teaching newbie woodpushers.  Great idea.

I noticed another change, where when looking at a game, where the most recent moves are listed, they are hyperlinks now and you can visually step through the last few moves.  Very nice, but mine only seems to be showing the number of the move, and not the move itself..  so it looks like..

3b.
3w.
2b.
2w.
1b.
1w.

instead of

3b. Nb4
3w. Nf3
2b. Na6
2w. d2-d3
1b. c7-c6
1w. h2-h3


Any idea why?  Is this an edit that I missed somewhere or a bug in the latest beta?
Title: Re: SMFChess
Post by: brianjw on September 01, 2007, 10:48:46 AM
OK, so since its almost out that means its almost time for me to download...

I have one question about the bbc. Does it allow you to play chess from the topic the bbc is in?
Title: Re: SMFChess
Post by: Godsongz on September 01, 2007, 01:12:53 PM
Quote from: Godsongz on August 31, 2007, 10:42:19 PMAny idea why?  Is this an edit that I missed somewhere or a bug in the latest beta?

My fault, in the table smf_chess_move I changed the field name `moveInfo` to `moveinfo`, instead of `move_info`.
Title: Re: SMFChess
Post by: feeble on September 01, 2007, 04:51:59 PM
Quote from: PLAYBOY on August 31, 2007, 08:49:27 PM
Can anybody (including admins) see the persons notes on notepad?
No its only available to the player

Quote from: brianjw on September 01, 2007, 10:48:46 AM
OK, so since its almost out that means its almost time for me to download...

I have one question about the bbc. Does it allow you to play chess from the topic the bbc is in?
no its just a table
Title: Re: SMFChess
Post by: brianjw on September 01, 2007, 05:04:56 PM
So when is the v1.0 gonna be released?
Title: Re: SMFChess
Post by: PLAYBOY on September 01, 2007, 11:37:31 PM
Never. Its always gonna be a "Prototype Project" :D :P JK

Anyway whats next now? who am i gonna talk? what favors am i gonna ask? are we done? Is this the end of the road?

I am scared....

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.mccullagh.org%2Fdb9%2F1ds-17%2Fzombie-gnaws-on-imac.jpg&hash=d4a7e151f8f8ffab29d891508962d88cdcbac398)














I SEE DEAD PEOPLE!
Title: Re: SMFChess
Post by: Godsongz on September 02, 2007, 11:35:11 AM
whoa, that's really disturbing
Title: Re: SMFChess
Post by: PLAYBOY on September 06, 2007, 02:57:02 AM
WOW! Nobody Talks anymore :D
Whas wrong with you guys... What happened? I thought we were all friends here :P

Looks like everybody is happy and silent :)

Good Good. I like it.
Title: Re: SMFChess
Post by: flame baiter on September 06, 2007, 08:10:28 AM
Bah, where's the noise?   :-\
Title: Re: SMFChess
Post by: brianjw on September 06, 2007, 06:16:59 PM
Right here. Ahhhihhh
Title: Re: SMFChess
Post by: PLAYBOY on September 06, 2007, 06:20:34 PM
See? Thas my people here! Yeah!
Title: Re: SMFChess
Post by: gmvasco on September 06, 2007, 06:39:22 PM
Hi, this is just to say that I'm ready to start working on the Portuguese translation, so when you get those language files complete, post them please!
Thanks for all the great work feeble!
Title: Re: SMFChess
Post by: feeble on September 06, 2007, 06:45:16 PM
Apologies for the lack of updates.
Been an unusual week as APEC's in town.
So i haven't had much time to work on the mod.

Quote from: gmvasco on September 06, 2007, 06:39:22 PM
Hi, this is just to say that I'm ready to start working on the Portuguese translation, so when you get those language files complete, post them please!

Its almost done, im about 50% of the way through moving the text over to the language files.

Im also looking at a better formula for the ELO rating, as I dont think its working that well, since its difficult to get a rating with this sort of setup.
Title: Re: SMFChess
Post by: auspool on September 13, 2007, 05:49:20 AM
how do you castle in smf chess ???
Title: Re: SMFChess
Post by: feeble on September 13, 2007, 06:03:47 AM
Quote from: auspool on September 13, 2007, 05:49:20 AM
how do you castle in smf chess ???

you can only castle now, by clicking on one of the castling images. This was done to alleviate problems in some chess960 setups.
Title: Re: SMFChess
Post by: auspool on September 13, 2007, 05:31:52 PM
what do you mean only now
do i need a new version ???
my chess says under my avatar " can castle " 
in the details section

daniel d
Title: Re: SMFChess
Post by: feeble on September 13, 2007, 05:57:54 PM
Quote from: auspool on September 13, 2007, 05:31:52 PM
what do you mean only now
do i need a new version ???
my chess says under my avatar " can castle " 
in the details section

daniel d

Umm depends, last build came out on the 01/09
http://www.simplemachines.org/community/index.php?topic=129749.msg1223523#msg1223523

Do you have a screenshot?

Basically, you should see a King or a Queen below your avatar
which signifies if a kingside, or a queenside castle is possible.
Then just click on one of the images, and it should initiate a castling move.
Title: Re: SMFChess
Post by: hvyhitter on September 18, 2007, 09:08:17 AM
Thanks Feeble the latest update went PERFECT..

Wow.. lots of new features.

My people are loving it.
Title: Re: SMFChess
Post by: hvyhitter on September 20, 2007, 09:35:51 AM
Dont know if this was mentioned yet.. in our chess bug summission thread a user moved the rook first for a queen side castle

realized his mistake..

they did a undo move..

now he is trying to do it the right way.. move the king right 2 and it is saying illegal move...

thoughts?

I tried to add the move.. same deal.. illegal move.. :(

Title: Re: SMFChess
Post by: t0AsD on September 20, 2007, 03:23:40 PM
Quote from: Feeble on September 13, 2007, 06:03:47 AM
Quote from: auspool on September 13, 2007, 05:49:20 AM
how do you castle in smf chess ???

you can only castle now, by clicking on one of the castling images.

They are below your nick in the upper right corner.
Title: Re: SMFChess
Post by: feeble on September 21, 2007, 02:24:55 AM
Apologies for the lack of updates, just finished my midsessions so I'll be in full swing again shortly.

Still alot happening, just can't release any builds at present. Just adding a few last strings to the language files, so when thats done I can put out a new and possible final build towardsl 1.0 release.

-Another rehaul of Castling: can't talk to much of this at the moment as it isn't done just yet.
But if I get my way, i'll be able bring back the move king to initiate castling.
If successful, I'm hoping to be able to castle with the king, rook or click on the castling image. This should be ideal.

-Redesign on the chat box: I'm planning to redesign the Chatbox, so you can switch between the log, chat and both on the fly. Requested by H0ll0.

-ELO rating issues: Ive had a few complaints about the ELO system, in that its difficult to get off 1000 initially. So I'm going to re-adjust the system to compensate and the averages should end up hover around 1200 which I think is ideal.

Also another issue is that people want a higher ELO score, but the thing with ELO is that its not really meant to increase, but basically to give a possible outcome between two players.
So I will be adding another point system in based off ELO but will always go up and players will be ranked by this.
This should hopefully be a successful value to rank your forum members.

and Finally
-New pieces:
This is a fair way off, but I've been playing around with Photoshop and working on some web2.0 stylized piece designs. If I get the chance, I'll showcase a few designs, if they are any good, I'll add them to the package.
Hopefully this works out, as then I won't have to worry about any license agreements regarding images.
Title: Re: SMFChess
Post by: hvyhitter on September 21, 2007, 02:42:31 PM
I ask this question out of pure curiosity..  and respect..

Have you looked into the changes that would be needed to port this over to SMF 2.0 Beta. your product is of critical importance to about 25 of my more active users so I will NOT be upgrading to 2.0 Beta until I know the SMFChess mod can move with us.

So just curious.. :D

Thanks again feeble.
Title: Re: SMFChess
Post by: feeble on September 21, 2007, 04:44:20 PM
Quote from: hvyhitter on September 21, 2007, 02:42:31 PM
Have you looked into the changes that would be needed to port this over to SMF 2.0 Beta. your product is of critical importance to about 25 of my more active users so I will NOT be upgrading to 2.0 Beta until I know the SMFChess mod can move with us.

Your right, ill be moving my site over to SMF 2.0 soon enough, so I have been looking to the procedure for converting over.
There is another of things that I need to add and change
-Custom profile fields
-Task Schedule
-few other things

Because of that it might be a while after I release it for 1.1.3 that it will be compatible for 2.0
Title: Re: SMFChess
Post by: hvyhitter on September 27, 2007, 04:05:05 PM
good show.. I am excited about smf 2.0.. but your chess mod i cant live without..
Title: Re: SMFChess
Post by: MinasC on September 29, 2007, 08:53:37 AM
the mod is rocking hard , my congrats again Feeble !!!  ;)

is there a way to put the "stats" of "my page" under "my matches" instead of the side of it ? (i translated the labels and i noticed that "my page" distorts the layout of the whole page to the right)

thnx !
Title: Re: SMFChess
Post by: brianjw on September 29, 2007, 12:15:34 PM
Feeble, when will this module come out with it's first STABLE public release?
Title: Re: SMFChess
Post by: Fred Joseph on October 01, 2007, 11:34:01 AM
French translation just sent Feeble  8)

Congratulations for your mod

Fred (from www.hvyhitter.com forum)
Title: Re: SMFChess
Post by: hvyhitter on October 01, 2007, 11:39:54 AM
lol.. oh noes.. there are noobs afoot.. :)
Title: Re: SMFChess
Post by: Fred Joseph on October 01, 2007, 11:44:23 AM
forget about me you  >:(

;D
Title: Re: SMFChess
Post by: gmvasco on October 02, 2007, 04:20:29 PM
Quote from: Fred Joseph on October 01, 2007, 11:34:01 AM
French translation just sent Feeble  8)

<pretty please>
Feeble, if you have the language files ready, make them available. The only reason I didn't install smfchess on my production site is that it doesn't support my language.</pretty please>
Title: Re: SMFChess
Post by: feeble on October 02, 2007, 06:51:07 PM
...Apologies for the being a little absent, just got back from a Diving Holiday, its taking awhile to catch up on work.

Quote from: gmvasco on October 02, 2007, 04:20:29 PM

Feeble, if you have the language files ready, make them available. The only reason I didn't install smfchess on my production site is that it doesn't support my language.
I'll get those translations done when I get home from work this evening. Apologies again for the delay.

Quote from: brianjw on September 29, 2007, 12:15:34 PM
Feeble, when will this module come out with it's first STABLE public release?
Soon, lol, I've been delayed a bit, but should be back on track by this evening.

Quote from: MinasC on September 29, 2007, 08:53:37 AM
the mod is rocking hard , my congrats again Feeble !!!  ;)

is there a way to put the "stats" of "my page" under "my matches" instead of the side of it ? (i translated the labels and i noticed that "my page" distorts the layout of the whole page to the right)

Not entirely sure what you are referring to, Stats is "Above" My Matches.
If its still like this, ill take a look at your site this evening to see what you mean by this.



Well at least, there hasn't been any bug complaints. Or requested changes since my last post so its not all bad.

Should have a new build out soon enough, which should be pretty much there as things go.
Title: Re: SMFChess
Post by: MinasC on October 03, 2007, 08:05:16 PM
yeah you are right , what i mean is this :

now it's like that :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg267.imageshack.us%2Fimg267%2F5882%2F66112927qb0.jpg&hash=97e2df58278b873e42957975ca1cccfad5c8c51a)

can it be done like that ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg229.imageshack.us%2Fimg229%2F1576%2F94757913au2.jpg&hash=e6d0123892f05872ade36e443208a7f9b4343dc8)

ps. sorry for the greek , i hope you recognize what's what from their positions !
Title: Re: SMFChess
Post by: feeble on October 04, 2007, 05:59:35 AM
Quote from: MinasC on October 03, 2007, 08:05:16 PM
yeah you are right , what i mean is this :

ps. sorry for the greek , i hope you recognize what's what from their positions !

Im still adding to the right bar, so ill see how I go.

If anyone else wants this as well please let me know, if not, Ill make the changes personally for you.


Also on a note, over at SMFHelper(Official forums for eventual support for this mod, lol) a Chess Tournament has been announced.
For more information please follow this link here

http://www.smfhelper.info/forum/index.php?topic=1745.0


As of this post, rules have not been laid out just yet, but should begin shortly. So if you are interested in trying this mod out and also participate in a friendly tournament. Sign up and give it a go.
Title: Re: SMFChess
Post by: MinasC on October 04, 2007, 06:51:11 PM
thnx a lot Feeble , I'll be waiting for the changes !
Title: Re: SMFChess
Post by: 2pac on October 04, 2007, 10:17:55 PM
can i still test out this bad boy?
Title: Re: SMFChess
Post by: brianjw on October 08, 2007, 06:36:20 PM
I have a few questions, comments, and suggestions.

1. On http://www.smfhelper.info, they're going to have a tournament.. Does this mods have a tournament feature?

2. If smfhelper is running the latest version I could see the chess chat needs a bit of work. The chess chat, should just be for chatting like before, but there should be a tab under the chess chat where it says Show All | Show Notepad. You should add a tab like | Move Log | (or something similar to what I am saying)
Edit - I am playing against you on smfhelper. I see where it shows the move in the chat but, it says: brianjw has moved : Nf3 : What is Nf3? You should make it more easy like using the numbers on the sides and tops of chess board.

Brianjw

I am anxious to use this on my forum but my rule is no beta versions so hurry up dammit :P lol just kidding
Title: Re: SMFChess
Post by: Godsongz on October 08, 2007, 10:21:33 PM
Quote from: brianjw on October 08, 2007, 06:36:20 PMI am anxious to use this on my forum but my rule is no beta versions so hurry up dammit :P lol just kidding

Probably a good rule in most cases, but I'd overlook it for this mod if I were you.  My users LOVE it.  Since I installed the beta, I've got 33 completed games and 36 in-progress games, and sheesh, I've only got 72 members on my forum.

BTW:  there ~are~ number of the sides of the board, and letters on the top and bottom.
Title: Re: SMFChess
Post by: brianjw on October 09, 2007, 09:37:14 PM
So I said, "What the heck" and downloaded SMFChess. With a few errors I manually installed those files (mod interference). Anyway, I am using a custom theme...XD Nova. When I go to the admin panel and find where the smfchess menu is, it looks like the first screenshot attached.
When I go to the Chess Page on my website, it looks like the second screenshot attached. The title for the mod doesn't seem to be showing up. Is there something I need to change with my custom theme to make it show?

Brianjw

SMF Doesn't Allow Me To Attach Things Anymore I will just upload them up-
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamerzgarage.com%2Fchess1.jpg&hash=e36721cade18135d282ef174f8cb9a47bb405afb)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamerzgarage.com%2Fchess2.jpg&hash=fc8a88720d0bcb72c94eed915e0cfcce60c38bb7)
Title: Re: SMFChess
Post by: feeble on October 09, 2007, 10:58:32 PM
Apologies for my delayed response.

Quote from: brianjw on October 08, 2007, 06:36:20 PM
1. On http://www.smfhelper.info, they're going to have a tournament.. Does this mods have a tournament feature?
No not yet, Im hoping for the tournament to help answer some questions, and also to see if it would be worth the time to add to the mod.

Quote from: brianjw on October 08, 2007, 06:36:20 PM
2. If smfhelper is running the latest version I could see the chess chat needs a bit of work. The chess chat, should just be for chatting like before, but there should be a tab under the chess chat where it says Show All | Show Notepad. You should add a tab like | Move Log | (or something similar to what I am saying)
It is now. this has been added, pretty much how you have asked for in the next version.

Quote from: brianjw on October 08, 2007, 06:36:20 PM
Edit - I am playing against you on smfhelper. I see where it shows the move in the chat but, it says: brianjw has moved : Nf3 : What is Nf3? You should make it more easy like using the numbers on the sides and tops of chess board.
When I first started the mod, I stored the grid coordinates, and later moved to PGN notation, as you see it now. Reason, was thats its actually much faster to work how the changes in the board.
Nf3 == Knight moved to f3.
more information can be found here under Movetext (http://en.wikipedia.org/wiki/Portable_Game_Notation#Movetext)[Wikipedia]
Would you think at help section, or atleast a note explaining this would help?


Quote from: brianjw on October 09, 2007, 09:37:14 PM
So I said, "What the heck" and downloaded SMFChess. With a few errors I manually installed those files (mod interference). Anyway, I am using a custom theme...XD Nova. When I go to the admin panel and find where the smfchess menu is, it looks like the first screenshot attached.
When I go to the Chess Page on my website, it looks like the second screenshot attached. The title for the mod doesn't seem to be showing up. Is there something I need to change with my custom theme to make it show?

Brianjw

SMF Doesn't Allow Me To Attach Things Anymore I will just upload them up-
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamerzgarage.com%2Fchess1.jpg&hash=e36721cade18135d282ef174f8cb9a47bb405afb)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamerzgarage.com%2Fchess2.jpg&hash=fc8a88720d0bcb72c94eed915e0cfcce60c38bb7)
Apologies for this, looking like some of the language files failed their edits when you installed?
What files failed?

From those images you are missing the text changes in your themes Languages/index.english.php
<file name="$languagedir/index.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
//Begin SMFChess
$txt['SMFChess'] = 'Chess';
$txt['SMFChess_admin'] = 'Chess Admin';
//End SMFChess
]]></add>
</operation>
Title: Re: SMFChess
Post by: 2pac on October 09, 2007, 11:44:42 PM
Quote from: ninerskickass on October 04, 2007, 10:17:55 PM
can i still test out this bad boy?
im guessing thats a big negative :(
Title: Re: SMFChess
Post by: feeble on October 09, 2007, 11:52:55 PM
Quote from: ninerskickass on October 09, 2007, 11:44:42 PM
Quote from: ninerskickass on October 04, 2007, 10:17:55 PM
can i still test out this bad boy?
im guessing thats a big negative :(
my apolgoies  :-[

you can, but since its still in beta you will be required to uninstall.
there are download links in the first post
http://www.simplemachines.org/community/index.php?topic=129749.0
Title: Re: SMFChess
Post by: 2pac on October 10, 2007, 12:02:53 AM
Quote from: Feeble on October 09, 2007, 11:52:55 PM
Quote from: ninerskickass on October 09, 2007, 11:44:42 PM
Quote from: ninerskickass on October 04, 2007, 10:17:55 PM
can i still test out this bad boy?
im guessing thats a big negative :(
my apolgoies  :-[

you can, but since its still in beta you will be required to uninstall.
there are download links in the first post
http://www.simplemachines.org/community/index.php?topic=129749.0

my bad, i guess i missed it

man, i got a skin with image buttons for the menus in my forum. that probably means i would have to make a new set of images for the chess menus or revert to the default ... hmm, i'll probably have to mess around with the template later
Title: Re: SMFChess
Post by: brianjw on October 10, 2007, 01:13:10 PM
Thanks for your help Feeble! It was a custom theme issue, the theme I am using has it's own index.english.php.
I would like tournaments to be very much added to the mod.
How is smf helper doing the tournament then?
Title: Re: SMFChess
Post by: Bigguy on October 10, 2007, 01:22:28 PM
What do you mean how are we doing the tournament. ???
Title: Re: SMFChess
Post by: brianjw on October 10, 2007, 01:37:36 PM
How will you be working the chess tournament? Like if there is no tournament addition to this mod, than how will you be working it?
Title: Re: SMFChess
Post by: Bigguy on October 10, 2007, 01:41:21 PM
We will be doing it mostly by hand I guess. Feeble is going to make a script for part of it though. He will be handling the pairing up of members and such also. So the first game should start sometime today or tonight. :)
Title: Re: SMFChess
Post by: Fred Joseph on October 20, 2007, 05:34:11 PM
@ Feeble, did you get my french translation ? thanks  :)
Title: Re: SMFChess
Post by: jossanaijr on October 20, 2007, 09:02:40 PM
Is this beta?
Title: Re: SMFChess
Post by: gmvasco on October 21, 2007, 02:48:30 PM
jossanaijir, this is still beta, although I have a feeling that it won't be for long.
feeble has been preparing the 1.0 build in the last few weeks, and he is just finishing up some last minute things.
I wouldn't test it in a critical site (even if it were not a beta, that's me: Mr. Cautious), but I feel pretty confident about it.
Title: Re: SMFChess
Post by: Fred Joseph on October 21, 2007, 03:00:18 PM
I must say that even if it's still beta, we haven't had any problems in months with the latest realease !  :)
Title: Re: SMFChess
Post by: jossanaijr on October 21, 2007, 05:09:44 PM
Quote from: gmvasco on October 21, 2007, 02:48:30 PM
jossanaijir, this is still beta, although I have a feeling that it won't be for long.
feeble has been preparing the 1.0 build in the last few weeks, and he is just finishing up some last minute things.
I wouldn't test it in a critical site (even if it were not a beta, that's me: Mr. Cautious), but I feel pretty confident about it.
Quote from: Fred Joseph on October 21, 2007, 03:00:18 PM
I must say that even if it's still beta, we haven't had any problems in months with the latest realease !  :)
Thank you.  I think I will wait 1.0.
Title: Re: SMFChess
Post by: KGIII on October 22, 2007, 05:09:22 PM
I haven't visited this thread in a LONG time but, again, wanted to thank you for your contribution. I can only say how impressed I am with this.
Title: Re: SMFChess
Post by: feeble on October 23, 2007, 10:04:16 AM
Apologies for my delayed response, ive been reading the thread, but haven't had time to sit down and write a complete response till now

Quote from: Fred Joseph on October 20, 2007, 05:34:11 PM
@ Feeble, did you get my french translation ? thanks  :)
I have and I really do again apologies for the delay, ive been putting off making a package for it, as since the next version should be ready soon, a full translation will be required.
If you can't wait? ill get it done, otherwise if you dont mind waiting, you might be better off, as the scoring system has been tweaked...lol

Quote from: gmvasco on October 21, 2007, 02:48:30 PM
jossanaijir, this is still beta, although I have a feeling that it won't be for long.
feeble has been preparing the 1.0 build in the last few weeks, and he is just finishing up some last minute things.
I wouldn't test it in a critical site (even if it were not a beta, that's me: Mr. Cautious), but I feel pretty confident about it.
Thanks for your response on this, its appreciated. its correct in what you say, so thank you.

Quote from: KGIII on October 22, 2007, 05:09:22 PM
I haven't visited this thread in a LONG time but, again, wanted to thank you for your contribution. I can only say how impressed I am with this.
Thanks for the kind words, apologies again for the delayed release. If you have any suggestions, im all ears.
Title: Re: SMFChess
Post by: Fred Joseph on October 23, 2007, 03:54:14 PM
Quote from: Feeble on October 23, 2007, 10:04:16 AM
I have and I really do again apologies for the delay, ive been putting off making a package for it, as since the next version should be ready soon, a full translation will be required.
If you can't wait? ill get it done, otherwise if you dont mind waiting, you might be better off, as the scoring system has been tweaked...lol

Don't worry, I'll wait..
If you want another french translation let me know.. (I can do it in Dutch too)
Title: Re: SMFChess
Post by: MinasC on October 27, 2007, 09:19:22 PM
Quote from: Feeble on October 04, 2007, 05:59:35 AM
Quote from: MinasC on October 03, 2007, 08:05:16 PM
yeah you are right , what i mean is this :

ps. sorry for the greek , i hope you recognize what's what from their positions !

Im still adding to the right bar, so ill see how I go.

If anyone else wants this as well please let me know, if not, Ill make the changes personally for you.

sorry to bother you again Feeble , just want to ask about that , any changes made ?
Title: Re: SMFChess
Post by: rumfa on October 27, 2007, 11:13:28 PM
How do you install chess in other themes other than the default one?
I installed it and it was working great, a really nice thing that chess. But when i switched to my custom theme the chess pieces in control panel weren't showing and the navigation button wasn't available..
Can somebody put a small manual for cusotm installation, or just the file names witch need to be editied...
I copied the images and everything to the custom theme folder but it didn't help..:S.
Title: Re: SMFChess
Post by: feeble on October 28, 2007, 06:38:51 AM
Quote from: MinasC on October 27, 2007, 09:19:22 PM
sorry to bother you again Feeble , just want to ask about that , any changes made ?

Your right mate, thanks for baring with me for the moment.
My last exam for the year is tomorrow, which means I'm hoping to have the next version out in the next couple of days

Quote from: rumfa on October 27, 2007, 11:13:28 PM
How do you install chess in other themes other than the default one?
I installed it and it was working great, a really nice thing that chess. But when i switched to my custom theme the chess pieces in control panel weren't showing and the navigation button wasn't available..
Can somebody put a small manual for custom installation, or just the file names witch need to be editied...
I copied the images and everything to the custom theme folder but it didn't help..:S.
Ive been meaning to write a tut, since the code is final ill get one done soon.
Title: Re: SMFChess
Post by: rumfa on October 28, 2007, 09:55:24 AM
Ok thanks a lot..have your time.  ;)
Title: Re: SMFChess
Post by: chrysostomos on October 28, 2007, 11:19:36 AM
Hi all,

Is castling fixed?  For some reason when we play games of SMFChess, we're unable to castle our pieces....Please advise!

Thanks,
Robert
Title: Re: SMFChess
Post by: AllBucDUp on October 28, 2007, 11:28:02 AM
This Mod is excellent. Thank you for your hard work.
Also, let me know when you start working on Texas Hold'em. ;D
Title: Re: SMFChess
Post by: Godsongz on October 28, 2007, 02:21:31 PM
Quote from: chrysostomos on October 28, 2007, 11:19:36 AMIs castling fixed?

It's not actually broken, but it's also not terribly obvious how to do it either. 
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fcastlingicons.jpg&hash=6d7e8db38fa3380b8df6e43c45ca7e06441bc02a)
See the king and queen icons under the player's names?  Those indicate (in this picture) that both John Michael and David can at this point in the game castle to either side, and THOSE icons control the act of castling, NOT the actual pieces on the chessboard.  By clicking on this icon for the white king, John Michael would castle king-side, likewise by clicking on this icon for the black queen, David would castle queen-side.  After a player has castled, or if no castling opportunity exists, these icons are no longer shown.

Quote from: AllBucDUp on October 28, 2007, 11:28:02 AM
...let me know when you start working on Texas Hold'em. ;D

I would love to see a good implementation of Texas Hold'em for SMF...  but the codebase that feeble's already got a good handle on here would translate itself much better to similar turn-based board games.  The obvious example is checkers/draughts, which I think some of the chess code could even be recycled for.  I'd also love to see Backgammon for SMF.  Turn-based games like those work very well as forum-based games, because the players involved do not need to be online at the same time.  Poker would be able to save your "bankroll" between games, but it wouldn't be much fun unless a number of players were online at the same time.
Title: Re: SMFChess
Post by: Godsongz on October 28, 2007, 03:11:29 PM
Hey feeble...  I found another bug in the [chess][/chess] bbcode...   apparently when the top line on the board starts with blank spaces, for instance...

[chess]5rk1/3b1ppp/8/pq1N4/1p4P1/2PQ1P2/PP6/1K2R3[/chess]

...then rather than drawing the chessboard, the code simply returns the string "No match found under id".  Unless the top left square contains a piece, the [chess] bbcode doesn't work.

When I add a piece to the top left square, in this case a rook...

[chess]r4rk1/3b1ppp/8/pq1N4/1p4P1/2PQ1P2/PP6/1K2R3[/chess]

...then it draws the board just fine.

Also, please remember to fix the side-numbering on the board in the bbcode, I'm planning on doing a series of chess puzzle posts on my site, and I'll be relying on your bbcode to do it.  I'm going to be asking for the answers to be in algebraic notation so the side-numbering needs to be right.

Thanks!
Title: Re: SMFChess
Post by: flame baiter on October 28, 2007, 04:40:43 PM
Craving for 1.0 - thanks for all your hard work on this feeble!
Title: Re: SMFChess
Post by: Godsongz on October 29, 2007, 10:12:24 PM
I found one more minor bug, VERY minor really.  Feeble's chess boards don't print.  The grid of the chessboard drops out completely.  I assume that the chessboard is basically an HTML table, with the cell colors forming the checkerboard pattern.  Therein lies the bug, cell background colors don't print, by design.  I can't imagine how it could be written to work otherwise.

Now, the real question is, does anybody care?  Do any of you ever see yourself printing out chess tables for any reason?
Title: Re: SMFChess
Post by: feeble on October 29, 2007, 11:00:19 PM
Quote from: Godsongz on October 29, 2007, 10:12:24 PM
I found one more minor bug, VERY minor really.  Feeble's chess boards don't print.  The grid of the chessboard drops out completely.  I assume that the chessboard is basically an HTML table, with the cell colors forming the checkerboard pattern.  Therein lies the bug, cell background colors don't print, by design.  I can't imagine how it could be written to work otherwise.

Now, the real question is, does anybody care?  Do any of you ever see yourself printing out chess tables for any reason?

Just took a quick look, and yes the cells aren't coloured as you say and also I found the chess pieces misaligned(off to the right and up a bit)

The cell coloring is actually an option that you need to toggle in your printing options.

Whilst the misalignment of the pieces is a little more tricky, as that is an issue with the drag-drop script.

To things come to mind to fix this
1. having a "Print" button, which opens the board into a new window with the javascript disabled, so you can print is easily

or
(this will have to wait till after release as its a little more extreme)
2. creating a gd script, that will create a jpeg of the chess board.


you can decide with one you want, either one or the other or both, I'm not fussed.


Quote from: rumfa on October 27, 2007, 11:13:28 PM
How do you install chess in other themes other than the default one?
I installed it and it was working great, a really nice thing that chess. But when i switched to my custom theme the chess pieces in control panel weren't showing and the navigation button wasn't available..
Can somebody put a small manual for cusotm installation, or just the file names witch need to be editied...
I copied the images and everything to the custom theme folder but it didn't help..:S.
Tut is made, its very simple
http://www.smfhelper.info/forum/index.php?topic=1849.0
Title: Re: SMFChess
Post by: flame baiter on November 02, 2007, 06:09:51 AM
No update for such a long time? No no no, this thread can't die!!  o.O

Long live SMFChess!   8)
Title: Re: SMFChess
Post by: jossanaijr on November 03, 2007, 02:15:19 PM
I just installed it in my forum and now it is broken...

The message:
Not unique table/alias: 'chess'

opens when I try to enter in my forum.
Any help?

EDIT: http://www.simplemachines.org/community/index.php?topic=203936.0
Title: Re: SMFChess
Post by: jossanaijr on November 03, 2007, 08:44:39 PM
Feeble, it is solved.  I think I will have to wait the public release to play chess...

But also I know what had happened.  Sometime ago I started to install your mod but then I gave up.  Probably the script was not deleted from one or all files.  Today the installation was without any error but when I tried to enter the game the first error was about duplicates.  I fix it by myself deleting the duplicate in php (I cannot remember where it was).  Then when I tried the CHESS button again it took me to that error.

Now I just would like to know where should I look for some chess script in my php files.
Title: Re: SMFChess
Post by: jasonwatkins on November 04, 2007, 08:10:53 AM
don't know if anyone is interested, but i figured out how to integrate this mod into the Bloc's "Blue Skies" theme.

It's a bit of a workaround and could probably be done better, but if you're using this theme, simply enable the "Shop" mod facility, then edit the index.template.php file and find the flag that checks for the mod, and change it to this ..

if (!empty($settings['use_shop']))
echo '<li><a' , $current_action=='chess' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=shop">Chess</a></li>';


That way, it integrates perfectly into the menu and into the css as well.

obviously if you're using the shop then you'll have some problems :D
Title: Re: SMFChess
Post by: jasonwatkins on November 04, 2007, 08:45:22 AM
although having said that, it appears that this doesn't work with 1.1.4 yet

i have a board and pieces but they're all out of alignment and you can't drag and drop anything ..

and the challenge system seems a bit screwed as well

nice mod, but i'll probably come back to it when it works with 1.1.4 ..
Title: Re: SMFChess
Post by: Godsongz on November 04, 2007, 10:14:58 AM
Quote from: jasonwatkins on November 04, 2007, 08:45:22 AM
although having said that, it appears that this doesn't work with 1.1.4 yet

i have a board and pieces but they're all out of alignment and you can't drag and drop anything ..

and the challenge system seems a bit screwed as well

nice mod, but i'll probably come back to it when it works with 1.1.4 ..

It's your install jason.  SMFChess if working fine on 1.1.4 on my site.
Title: Re: SMFChess
Post by: feeble on November 04, 2007, 03:34:21 PM
Quote from: jasonwatkins on November 04, 2007, 08:45:22 AM
although having said that, it appears that this doesn't work with 1.1.4 yet

i have a board and pieces but they're all out of alignment and you can't drag and drop anything ..

and the challenge system seems a bit screwed as well

nice mod, but i'll probably come back to it when it works with 1.1.4 ..

hmmm, apologies again for this issue you are having.

Would you mind sending me you website address so i can take a look?

This mod is known to have issues in some themes, due to the drag drop javascript being misaligned.

Im been looking into a solution for this for awhile, but the best one yet is to check and fix any errors your theme my have. using http://validator.w3.org/ and then check for errors.
Also, this is worthwhile doing for your care and maintenance of your site, as it will help with loading time and also compatibility between browsers.

Also whats the issue with the clallenge screen?
Title: Re: SMFChess
Post by: Smith Online on November 10, 2007, 03:32:38 PM
Hey Feeble hows it going the mod looks great ive been away a while plus had to sort alot of issues on my site but am back and happy to help in anyway if you need the testing forum let me know.  :)

Will let ya know if i find any bugs but so far everyting fine. Looks to me like its ready for release  ;)

Regards
Smith Online
Title: Re: SMFChess
Post by: Smith Online on November 12, 2007, 07:31:31 AM
Hi sounds like other people have had this problem its fine in default theme but in my custom theme everything works fine but chess board colours dont work ?

Anything i can to to fix this?

Regards
Smith Online
Title: Re: SMFChess
Post by: Bigguy on November 12, 2007, 12:01:05 PM
have you gone through all the edits to make sure they are done in your custom theme ??? Particularly if there are any .css edits to be done. ???
Title: Re: SMFChess
Post by: Smith Online on November 12, 2007, 01:17:07 PM
Quotehave you gone through all the edits to make sure they are done in your custom theme  Particularly if there are any .css edits to be done.

Hi Thanks for you reply i have just been double checking but i carnt find anything that needs changing i have used smf package paser to check all edits and the only theme file thats in my custom theme is index.template.php so i have done the edits to that and i copied the folder SMFChess to $themedir the only other thing i can think of is putting the following files in my custom theme directory but i dont think this will work because all mods normally look for the files in the default directory anyway??

ChessAdmin.template.php will be copied to $themedir
Chess.template.php will be copied to $themedir
ChessXml.template.php will be copied to $themedir
ChessChat.template.php will be copied to $themedir
ChessCustom.template.php will be copied to $themedir

Am not sure on any .css edits as none are shown by smf package parser

An ideas any one??

Thanks in advance

Regards
Smith Online
Title: Re: SMFChess
Post by: Bigguy on November 12, 2007, 02:11:02 PM
Did copying all that make a difference. ???
Title: Re: SMFChess
Post by: feeble on November 12, 2007, 03:19:59 PM
Quote from: Smith Online on November 12, 2007, 07:31:31 AM
Hi sounds like other people have had this problem its fine in default theme but in my custom theme everything works fine but chess board colours dont work ?

Anything i can to to fix this?

Regards
Smith Online

This is the first ive heard of Board Colours not working.

Regarding CSS styles, all used in this mod are all standard css styles so that shouldnt be the issue.

The board colours are stored in the $modsettings variable.

Have you tried saving the SMFChess Admin options yet?
Title: Re: SMFChess
Post by: Smith Online on November 12, 2007, 04:00:14 PM
QuoteDid copying all that make a difference.  ???

No dint make a difference  :'(


QuoteThis is the first ive heard of Board Colours not working.
Regarding CSS styles, all used in this mod are all standard css styles so that shouldnt be the issue.


The board colours are stored in the $modsettings variable.

Have you tried saving the SMFChess Admin options yet?

Hi Feeble i have attached photo of the problem i have tried changing settings in admin they all change and work fine including the board colours but the board colours just dont change the board?

Regards
Smith Online


Screen Shot
http://uploadingit.com/view/full/264382_yx2rf

Below is the style.css from my custom theme:-
#MRHeader {
   background-image:  url(images/head_bg.gif);
   margin-top: -15px;
   margin-bottom: 40px;
   background-repeat:repeat-x;
   background-color: #33373d;
   height: 110px;
   width: 100%;
}
/****
   This is what you change to control the width of the entire forum.
****/
#widthControl
{
width: 96%; /** Change to 100% for full fluid **/
}

/* This is the container for the main body of the forums to control width */
#bodyarea
{
   padding: 1ex 0px 2ex 0px;
}
/* Normal, standard links. */
a:link
{
   color: #3f5b7d;
   text-decoration: none;
}
a:visited
{
   color: #3f5b7d;
   text-decoration: none;
}
a:hover
{
   color: #000000;
   text-decoration: underline;
}

/* These are the links in Pages [ 1 ], 2, 3, ... */
a.navPages:link, a.navPages:visited, a.navPages:active
{
   color: #000000;
   text-decoration: none;
}
a.navPages:hover
{
   color: #ff4e00;
   text-decoration: underline;
}

/* This is the news fader text color */
#smfFadeScroller
{
color: #000000;
}

/* Navigation links - for the link tree. */
.nav-box
{
width: 100%;
padding: 4px 0 4px 0;
font-size: 11px;
}
span.nav-tree
{
   margin-top: 5px;
}
.nav-tree a:link, .nav-tree a:visited, .nav-tree a:active
{
   color: #000000;
   text-decoration: underline;
}
.nav-tree a:hover
{
   text-decoration: none;
}

a.nav-tree:link, a.nav-tree:visited, a.nav-tree:active
{
   color: #000000;
   text-decoration: none;
   border: 0;
   padding: 0 4px 0 4px;
   font-size: 11px;
}
a.nav-tree:hover
{
   color: #cc3333;
   text-decoration: underline;
}
.nav a:link, .nav a:visited, .nav a:active
{
   color: #ffffff;
   text-decoration: none;
}
.nav a:hover
{
   color: #ffffff;
   text-decoration: underline;
}

/* This is the copyright links at the bottom of the page */
.copyright-links, .copyright-links a:link, .copyright-links a:visited, .copyright-links a:active
{
   color: #000000;
   text-decoration: none;
}
.copyright-links a:hover
{
   color: #000000;
   text-decoration: underline;
}

/* This is the topic author's name on the message index */
.topic-author a:link, .topic-author a:visited, .topic-author a:active
{
   font-size: 10px;
   font-weight: normal;
   text-decoration: none;
   color: #000000;
}
.topic-author a:hover
{
   text-decoration: underline;
}

/* Tables should show empty cells. */
table
{
   empty-cells: show;
}

/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
   color: #000000;
   font-size: small;
   font-family: tahoma, bold;
}

/* The main body of the entire forum. */
body
{
   background-color: #dce2e5;
   margin: 0px;
   padding: 15px 0 4px 0;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
   color: #000000;
   font-family: tahoma, bold;
}
input, button
{
   font-size: 90%;
}

textarea
{
   font-size: 100%;
   color: #000000;
   font-family: tahoma, bold;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
   font-size: 90%;
   font-weight: normal;
   color: #000000;
   font-family: tahoma, bold;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{

   height: 1px;
   border: 0;
   color: #666666;
   background-color: #666666;
}

/* No image should have a border when linked */
a img{
border: 0;
}

/* This is the main navigation links at the top of the page */
.main-navigation
{
font-size: 11px;
text-align: middle;
vertical-align: middle;
}
.main-navigation a:link, .main-navigation a:visited, .main-navigation a:active
{
color: #ebebeb;
text-decoration: none;
}
.main-navigation a:hover
{
color: #ebebeb;
text-decoration: underline;
}

.main-navigation2
{
font-size: 11px;
}
.main-navigation2 a:link, .main-navigation2 a:visited, .main-navigation2 a:active
{
color: #ebebeb;
text-decoration: none;
}
.main-navigation2 a:hover
{
color: #ebebeb;
text-decoration: underline;
}
/* This is the blank html box for ads or whatever. */
#blank-box
{
   /* Add styles here */
   /* margin: 4px 0 4px 0; /* top right bottom left; hide of no content */
}

/* A quote, perhaps from another post. */
.quote
{
color: #000000;
background-color: #ffffff;
border-top: 0px;
border-left: 4px solid #565962;
border-right: 1px solid #565962;
border-bottom: 1px solid #565962;
font-size: 11px;
margin: 0 auto 1px auto;
padding: 1px;
font-size: x-small;
line-height: 1.4em;
padding-top: 3px;
padding-bottom: 3px;
}
/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #ffffff;
font-family: Arial, "courier new", "times new roman", monospace;
font-size: 11px;
line-height: 1.3em;
/* Put a nice border around it. */
border-top: 0px;
border-left: 4px solid #565962;
border-right: 1px solid #565962;
border-bottom: 1px solid #565962;
margin: 0 auto 1px auto;
padding: 1px;
padding-top: 3px;
padding-bottom: 3px;
/* Don't wrap its contents, and show scrollbars. */
white-space: nowrap;
overflow: auto;
/* Stop after about 24 lines, and just show a scrollbar. */
max-height: 24em;
}
/* The "Quote:" and "Code:" header parts... */
.quoteheader
{
color: #000000;
text-decoration: none;
font-weight: bold;
font-size: 11px;
line-height: 16px;
background-image: url("images/quote_img.gif");
background-repeat: no-repeat;
background-position: top right;
background-color: #c2c2c9;
height: 17px;
padding: 1px;
border-top: 1px solid #565962;
border-left: 4px solid #565962;
border-right: 1px solid #565962;
border-bottom: 0px;
vertical-align: middle;
}
.codeheader
{
color: #000000;
text-decoration: none;
font-weight: bold;
font-size: 11px;
line-height: 16px;
background-image: url("images/code_img.gif");
background-repeat: no-repeat;
background-position: top right;
background-color: #c2c2c9;
height: 17px;
padding: 1px;
border-top: 1px solid #565962;
border-left: 4px solid #565962;
border-right: 1px solid #565962;
border-bottom: 0px;
vertical-align: middle;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
   cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
   color: red;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
   width: 96%;
}

/* Highlighted text - such as search results. */
.highlight
{
   background-color: yellow;
   font-weight: bold;
   color: black;
}

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg7
{
   background: #e4e4e4;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}
.windowbg8
{
   background: #f1f1f1;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}
.windowbg, .windowbg td
{
   background: #e4e4e4;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}
.windowbga, .windowbga td
{
   background: #e4e4e4;
}
.windowbg2, .windowbg2 td
{
   background: #f1f1f1;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}
.windowbg3, .windowbg3 td
{
   color: #000000;
   background-color: #d6d8dd;
}
.windowbgpinned, .windowbgpinned td
{
   color: #000000;
   background-color: #bcbcbc;
}
.windowbg2pinned, .windowbg2pinned td
{
   color: #000000;
   background-color: #eeeeee;
}

label
{
   color: #000000;
}

/* This is the colored bar seperating each post */
.postsep
{
   background-color: #babfc5;
   height: 6px;
}

/* the today container in calendar */
.calendar_today
{
   background-color: #FFFFFF;
   color: #000000;
   font-weight: bold;
}
.titleas
{
   color: black;
   font-style: normal;
   background-color: #ffffff;
   background-image: url(images/catbg2.gif);
   border-bottom: solid 1px #9f9f9f;
   border-top: solid 1px #FFFFFF;
   background-repeat: repeat-x;
   padding-left: 10px;
   padding-right: 10px;
}
/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td, .titlebg2 td
{
   color: black;
   font-style: normal;
   background-color: #ffffff;
   background-image: url(images/coltitle_bg.gif);
   border-bottom: solid 1px #9f9f9f;
   border-top: solid 1px #FFFFFF;
   background-repeat: repeat-x;
   padding-left: 10px;
   padding-right: 10px;
}

.titlebg, .titlebg a:link, .titlebg a:visited
{
   font-weight: bold;
   color: black;
   font-style: normal;
}

.titlebg a:hover
{
   color: #404040;
}
/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited
{
   color: black;
   font-style: normal;
   text-decoration: underline;
}

.titlebg2 a:hover
{
   text-decoration: underline;
}
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/

.catbg, td.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
   background-image: url(images/catbg2.gif);
   background-color: #5a5e61;
   color: #FFFFFF;
   padding-left: 10px;
   padding-right: 10px;
}
.catbg2 , tr.catbg2 td
{
   background-image: url(images/catbg2.gif);
   background-color: #5a5e61;
   color: #FFFFFF;
   padding-left: 10px;
   padding-right: 10px;
}
.catbg, .catbg2, .catbg3
{
   border-bottom: solid 1px #375576;
   background-repeat: repeat-x;
}
.catbg, .catbg2
{
   font-weight: bold;
}
.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited
{
   font-weight: bold;
   font-size: 95%;
   color: #FFFFFF;
   text-decoration: none;
}
.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited
{
   color: #FFFFFF;
   text-decoration: none;
}
.catbg8
{
   background-image: url(images/catbg2.gif);
   background-color: #5a5e61;
   color: #FFFFFF;
}
.catbg8 a:link, .catbg8 a:visited
{
   color: #FFFFFF;
   font-size: 11px
}
.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover
{
   color: #000000;
}
.cat-whiteText
{
   color: #ffffff;
}

/* This is the titles for the columns on the board index */
.column-title
{
text-align: center;
vertical-align: middle;
background: #3f5b7d ;
font-weight: bold;
color: #000000;
font-size: 80%;
border-width: 1px 0 1px 0;
border-style: solid;
border-color: #3c3c3c;
}

/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
  background: #BCBCBC;
   color: #000000;}
.bordercolor2
{
  background: #BCBCBC;
   color: #000000;}
/* This is the border arround the topic posts and quick reply. */
.displayborder
{
   background-color: #000000;
   padding: 0;
}

/* This is used on tables that should just have a border around them. */
.tborder
{
   padding: 0px;
   border: 1px solid #525252;
   background-color: #FFFFFF;
}
.tborder td
{
   color: #000000;
}
.mborder
{
   padding: 0px;
   border: 1px solid #525252;
   background-color: #FFFFFF;
}
.mborder td
{
   color: #000000;
}
/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
   font-size: x-small;
   font-family: tahoma, bold;
}
.middletext
{
   font-size: 90%;
}
.normaltext
{
   font-size: small;
}
.largetext
{
   font-size: large;
}
/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
   width: 100%;
   overflow: auto;
   line-height: 1.3em;
}
/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
   width: 100%;
   overflow: auto;
   padding-bottom: 3px;
   line-height: 1.3em;
}

/* Sometimes there will be an error when you post */
.error{
color: red;
}
/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
   background-position: left bottom;
   color: white;
   text-transform: uppercase;
   vertical-align: middle;

}
.maintab_back, .maintab_active_back
{
   color: white;
   text-decoration: none;
   font-size:  9px;
   vertical-align: middle;
   padding: 6px 2px 10px 2px;
   font-family: tahoma, bold;
}

.maintab_first
{
   /*background-image: url(images/maintab_first.gif);*/
   background-repeat: no-repeat;
   /*width: 10px;*/
}
.maintab_back
{
   /*background-image: url(images/maintab_back.gif);*/
   background-repeat: repeat-x;
}
.maintab_last
{
   /*background-image: url(images/maintab_last.gif);*/
   background-repeat: no-repeat;
   /*width: 8px;*/
}
.maintab_active_first
{
   /*background-image: url(images/maintab_active_first.gif);*/
   background-repeat: no-repeat;
   /*width: 6px;*/
}
.maintab_active_back
{
   /*background-image: url(images/maintab_active_back.gif);*/
   background-repeat: repeat-x;
}
.maintab_active_last
{
   /*background-image: url(images/maintab_active_last.gif);*/
   background-repeat: no-repeat;
   /*width: 8px;*/
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
   color: #000000;
   text-decoration: none;
   font-weight: bold;
   background: #d8dbe3 url(images/tablink_bg.gif) 0 0 repeat-x;
   padding: 5px 8px 5px 8px;
   margin: 4px 0 4px 0;
   border: 1px solid #7f838c;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
   color: #ffffff;
   text-decoration: none;
   background: #000000 url(images/tablink_bg.gif) 0 -24px repeat-x;
   border: 1px solid #000000;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
   background-position: left top;
   color: white;
   text-transform: uppercase;
   vertical-align: middle;

}
.mirrortab_back, .mirrortab_active_back
{
   color: white;
   text-decoration: none;
   font-size: 9px;
   vertical-align: middle;
   padding: 10px 2px 6px 2px;
   font-family: tahoma, bold;
}

.mirrortab_first
{
   /*background-image: url(images/mirrortab_first.gif);*/
   background-repeat: no-repeat;
   width: 10px;
}
.mirrortab_back
{
   /*background-image: url(images/mirrortab_back.gif);*/
   background-repeat: repeat-x;
}
.mirrortab_last
{
   /*background-image: url(images/mirrortab_last.gif);*/
   background-repeat: no-repeat;
   width: 6px;
}
.mirrortab_active_first
{
   /*background-image: url(images/mirrortab_active_first.gif);*/
   background-repeat: no-repeat;
   width: 6px;
}
.mirrortab_active_back
{
   /*background-image: url(images/mirrortab_active_back.gif);*/
   background-repeat: repeat-x;
}
.mirrortab_active_last
{
   /*background-image: url(images/mirrortab_active_last.gif);*/
   background-repeat: no-repeat;
   width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
   color: #000000;
   text-decoration: none;
   font-weight: bold;
   background: #d8dbe3 url(images/tablink_bg.gif) 0 0 repeat-x;
   padding: 5px 8px 5px 8px;
   margin: 4px 0 4px 0;
   border: 1px solid #7f838c;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
   color: #ffffff;
   text-decoration: none;
   background: #000000 url(images/tablink_bg.gif) 0 -24px repeat-x;
   border: 1px solid #000000;
}
/* TP specific classes */
.sitemap{
   margin: 0;
   padding: 0;
   list-style: none;
}
.sitemap_topheader{
   background: #e4e4e4;
   border-bottom: solid 1px #ffffff;
   padding: 4px;
}

.sitemap_header{
   background: #e4e4e4;
   border-bottom: solid 1px #ffffff;
   padding: 4px;
   display: block;
   font-weight: bold;
}

.sitemap_header_active{
   background: #e4e4e4;
   border-bottom: solid 1px #ffffff;
   padding: 4px;
   display: block;
   font-weight: bold;
}

.sitemap_header:hover , .sitemap_header_active:hover{
   background: #f1f1f1;
   border-bottom: solid 1px #ffffff;
   padding: 4px;
   display: block;
   text-decoration: none;
}
ul#articlelist
{
   margin: 0;
   padding: 0.5ex 0;
   list-style: none;
}
ul#catlist
{
   margin: 0;
   padding: 0;
   list-style: none;
   border-top: solid 1px #d0d0d0;
}

ul#articlelist li
{
   margin: 0;
   display: block;
   padding: 0 0 0 3ex;
   background: url(images/divider.gif) no-repeat 5px 3px;
}
ul#catlist li
{
   display: block;
   padding: 0 0 0 3ex;
   margin: 0;
}
.rss_title{
font-weight: bold;
}

.rss_body{
   margin-bottom: 1ex;
}

.rss_image{
   margin: 4px 0 4px 0;
}
/* The AJAX notifier */
#ajax_in_progress
{
   background: #2f2f2f;
   color: white;
   text-align: center;
   font-weight: bold;
   font-size: 18pt;
   padding: 3px;
   width: 100%;
   position: fixed;
   bottom: 0;
   left: 0;
}


Below are the only editable files in my custom theme: -

BoardIndex.template.php
Display.template.php
index.template.php
MessageIndex.template.php
Profile.template.php
Register.template.php
index.php
style.css
Title: Re: SMFChess
Post by: Smith Online on November 12, 2007, 06:13:01 PM
Hi,
sorry for the double posts but i thought it was best to post separately.

I have just found were the problem definitely lies to fix this am just not sure which part is used by smf chess.  :-\

What i have done is copy the style.css from the default theme folder and replaced the one in my custom with the default one i know this would mess my theme up but it was just to see if then the board colours would show and yes they do :). So i am positive that some off the code from the default style.css file is not in the style.css of my custom theme (I have posted my custom theme style.css file in the above post) i just dont know which part is missing.

Thanks in advance

Regards,
Smith Online
Title: Re: SMFChess
Post by: feeble on November 12, 2007, 07:15:07 PM
this is the cause of the issue
.windowbg2, .windowbg2 td
{
   background: #f1f1f1;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}


now im not entirely sure if I can make a change without affecting your theme, but here we go anyways

alter the above to
.windowbg2
{
color: #000000;
background-color: #f1f1f1;
    border-style: solid none none solid;
    border-width: 1px;
    border-color: #FFFFFF;
}


see how that goes and get back to me
Title: Re: SMFChess
Post by: Smith Online on November 13, 2007, 05:49:00 AM
Quotethis is the cause of the issue

Code:
.windowbg2, .windowbg2 td
{
   background: #f1f1f1;
   color: #000000;
   border-style: solid none none solid;
   border-width: 1px;
   border-color: #FFFFFF;
}

now im not entirely sure if I can make a change without affecting your theme, but here we go anyways

alter the above to

Code:
.windowbg2
{
color: #000000;
background-color: #f1f1f1;
    border-style: solid none none solid;
    border-width: 1px;
    border-color: #FFFFFF;
}

see how that goes and get back to me

Yes that fixed it  :) i have not noticed any problem with the theme at all so far but i will let ya know if i find anything.

Thanks feeble  ;)

Regards
Smith Online
Title: Re: SMFChess
Post by: Godsongz on November 13, 2007, 09:15:10 PM
Just out of curiousity...  lets do an SMFChess Roll Call.  I'm wondering how many sites are running Feeble's great chess mod already even though it's still in beta, and how much is it being used on your sites?

My site, the Covenant Coffeehouse (http://crossfire.org/covenant/), has been running it since mid July.  We have 77 finished games and 31 in-progress.  We've got lots of kids playing, but we have players of all ages and skill levels too.

Sound off!  8)
Title: Re: SMFChess
Post by: Bigguy on November 13, 2007, 11:50:05 PM
I have had it since it was made. We have a tournament going on right now. Most of my users play and like it. :)
Title: Re: SMFChess
Post by: Smith Online on November 14, 2007, 06:00:07 AM
Hi,
Was playing a game last night and thought of a great feature that could be added : -

Pieces that have been taken shown under or on the side of chess board


Regards
Smith Online
Title: Re: SMFChess
Post by: Godsongz on November 14, 2007, 08:04:13 AM
Quote from: Smith Online on November 14, 2007, 06:00:07 AMIf ya stuck and you carnt move your king but your not in check you need to able to skip your move

That's called a Stalemate, scores the same as a Draw.  If you can't move any piece and you are not in check, game over.  There is no such thing as a "pass" in Chess.
Title: Re: SMFChess
Post by: Smith Online on November 14, 2007, 01:26:39 PM
QuoteThat's called a Stalemate, scores the same as a Draw.  If you can't move any piece and you are not in check, game over.  There is no such thing as a "pass" in Chess.

yeah that was a bad example i was just thinking if you dint want to move you could pass i have used this before in the uk but its not a feature thats important or needed really i just thought other people may of used this in chess like i have. (sounds like its not used in other countries)

But i think the: -
Pieces that have been taken shown under or on the side of chess board

Would be a great addition to the chess mod what do you guys/gals think

Regards
Smith Online
Title: Re: SMFChess
Post by: flame baiter on November 14, 2007, 01:34:13 PM
Yes Smith, that would be a great addition indeed. If it doesn't clutter up the interface, that is...
Title: Re: SMFChess
Post by: JaGuR123 on November 14, 2007, 02:37:37 PM
Quote from: Smith Online on November 14, 2007, 06:00:07 AM
Pieces that have been taken shown under or on the side of chess board

Yes , i second this feature .... you wouldn't beleive it, i have been meaning to ask for this feature for ages , but alas i keep forgeting  ... Lol

edit: Even if it was just the names and not the actual gifs
Title: Re: SMFChess
Post by: feeble on November 14, 2007, 03:00:13 PM
Quote from: Smith Online on November 14, 2007, 01:26:39 PM
Pieces that have been taken shown under or on the side of chess board

Ill look into it and try and find a good spot.
Title: Re: SMFChess
Post by: Merecraft on November 15, 2007, 08:51:02 AM
This is a fantastic mod, and massively popular on my forums.

One question... what happens to games that get abandoned half way through? For example, I am in the middle of one game, and my opponent has left the forum, never to return. Does the game just sit in limbo forever?
Title: Re: SMFChess
Post by: Smith Online on November 15, 2007, 09:17:26 AM
QuoteIll look into it and try and find a good spot.

Thanks Feeble  ;D


QuoteThis is a fantastic mod, and massively popular on my forums.

One question... what happens to games that get abandoned half way through? For example, I am in the middle of one game, and my opponent has left the forum, never to return. Does the game just sit in limbo forever?

Its up to you the admin you can delete the game or you could declare yourself the winner.  :)

Regards
Smith Online
Title: Re: SMFChess
Post by: Godsongz on November 15, 2007, 10:31:57 AM
It's something that you as an administrator need to establish a policy for.  On my forums, games that have gone stagnant for 30+ days are ended with a win granted to the last person to make a move.  It discourages people from starting games they can't finish.
Title: Re: SMFChess
Post by: Chopper on November 19, 2007, 04:03:59 PM
I get this error when trying to install:

!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "SMFChess":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code installScript.php 
2. Extract Tree /mounted-storage./Themes/default/SMFChess 
3. Extract File ./Sources/Chess.php 
4. Extract File ./Sources/ChessXml.php 
5. Extract File ./Sources/ChessChat.php 
6. Extract File ./Sources/ChessAdmin.php 
7. Extract File ./Sources/ChessFunctions.php 
8. Extract File /mounted-storage./Themes/default/languages/Chess.english.php 
9. Extract File /mounted-storage./Themes/default/ChessAdmin.template.php 
10. Extract File /mounted-storage./Themes/default/Chess.template.php 
11. Extract File /mounted-storage./Themes/default/ChessXml.template.php 
12. Extract File /mounted-storage./Themes/default/ChessChat.template.php 
13. Extract File /mounted-storage./Themes/default/ChessCustom.template.php 
14. Execute Modification ./index.php Test successful
15. Execute Modification ./Sources/Load.php Test successful
16. Execute Modification ./Sources/ManagePermissions.php Test successful
17. Execute Modification ./Sources/Subs.php Test successful
18. Execute Modification /mounted-storage./Themes/default/index.template.php Test failed
19. Execute Modification /mounted-storage./Themes/default/languages/Errors.english.php Test successful
20. Execute Modification /mounted-storage./Themes/default/languages/ManagePermissions.english.php Test successful
21. Execute Modification /mounted-storage./Themes/default/languages/Who.english.php Test successful
22. Execute Modification /mounted-storage./Themes/default/languages/index.english.php Test successful

Can anyone help as im desperate to have this feature on my forum?

Thanks
Title: Re: SMFChess
Post by: brianjw on November 19, 2007, 04:42:50 PM
I see you're getting an error on
Quote
18. Execute Modification /mounted-storage./Themes/default/index.template.php Test failed
I bet it's conflicting with another mod... So manually install that file...
You will need to open up the install.xml file in Chess.zip and manually make the edits in your index.template.php (i believe it's only the menu for the mod anyway)

You can also use the package parser ;)
Title: Re: SMFChess
Post by: sennad on November 22, 2007, 08:22:03 AM
Hello, how soon will this mod be finished (et), and is it safe to use it so far (what is main "contra"), and also when can we start to translate id (I translated admin panel cro version)?

Tnx.
Title: Re: SMFChess
Post by: feeble on November 23, 2007, 03:20:12 AM
Quote from: sennad on November 22, 2007, 08:22:03 AM
Hello, how soon will this mod be finished (et), and is it safe to use it so far (what is main "contra"), and also when can we start to translate id (I translated admin panel cro version)?

Tnx.

I really am sorry for the delays, but please note I am still working on this mod just taking my sweet time.

In its present condition, I would say its safe, but please note that there will be no upgrades untill it is actually released, which means between version you have to either manually upgrade or uninstall old/install new.
In saying this thou there is still bugs which is why it is in beta.

Contra? You might have to explain this better.

There is a couple of translations at the moment, you can see them in the first post, but they uncompleted and mostly to stop any errors that forums in languages in english will receive.

If you need me to explain any of this better, let me know.
Title: Re: SMFChess
Post by: sennad on November 23, 2007, 08:29:59 AM
OK, thnx Feeble.

Dunno. If it means that all scores will be lost with uninstall/install, then I can wait two, or three months, if new version will pop up in that time.

Thanks for mod Feeble, as for translation I translated for this mod croatian version of admin panel , but I am willing to translate whole mod when it is finished, so let me know when.

Title: Re: SMFChess
Post by: feeble on November 23, 2007, 08:05:32 PM
Quote from: sennad on November 23, 2007, 08:29:59 AM
Dunno. If it means that all scores will be lost with uninstall/install, then I can wait two, or three months, if new version will pop up in that time.
If you do install it now, any data will not be lost. Uninstalling will not destroy any table in the mysql database.

Quote from: sennad on November 23, 2007, 08:29:59 AM
Thanks for mod Feeble, as for translation I translated for this mod croatian version of admin panel , but I am willing to translate whole mod when it is finished, so let me know when.
You went into the chessAdmin.template.php and translated it that way?
no worries should break anything, proper translation files are the target for next version.
If you want to translate it then by all means.
Ill be putting up the required files and method of getting the translation done soon enough.
Title: Re: SMFChess
Post by: sennad on November 24, 2007, 12:23:17 PM
:)

QuoteYou went into the chessAdmin.template.php and translated it that way?

My poor written english :). I translated file you send me to (it is on first post of this topic) :), and I will translate all when it is finished and you can explain me then what to translate :).

I will instal mode now, tnx for info about instal/uninstal
Title: Re: SMFChess
Post by: DonaldJ on November 25, 2007, 04:49:10 AM
This mod rocks, maybe you can add checkers next? My members would love to see that. Its basically the same principle.

-Peace.
Title: Re: SMFChess
Post by: Godsongz on November 26, 2007, 12:15:52 PM
Hey feeble!  Happy Anniversary! :)

It was one year ago today that this thread was created and you introduced us all to your fantastic chess mod.  I didn't pick up the trail until this past summer, but hey, that just means I missed a lot of the early bugs right? :)

Anyway, thanks again for all your effort on this project!
Title: Re: SMFChess
Post by: flame baiter on November 28, 2007, 03:18:55 AM
1 year? Wow! Will there be 1.0 any time soon?
Title: Re: SMFChess
Post by: AllMassive on November 28, 2007, 02:21:51 PM
Hi - i installed chess 2 Days ago in smf 1.1.4 / utf-8.
Today i found plenty of Messages like this:
http://forum.com/index.php?action=chessXml;sa=update;sesc;id=19;timestamp=1196273122;xml
Kann das 'main' Template nicht laden.


Seems like its the same as the first entry of this (http://www.simplemachines.org/community/index.php?topic=129749.msg1219382;topicseen#msg1219382) Report.
Title: Re: SMFChess
Post by: feeble on November 30, 2007, 12:22:05 AM
Sorry for the late replies, I just realised Gmail was dumping all the emails from SMF into my spam box.  :'(
Also just built my self a new box, and had to solve some BSOD issues before I could start transfering my files over, all good now thou.

Quote from: sennad on November 24, 2007, 12:23:17 PM
My poor written english :). I translated file you send me to (it is on first post of this topic) :), and I will translate all when it is finished and you can explain me then what to translate :).

I will instal mode now, tnx for info about instal/uninstal
Hey Sennad, I never actually received this email, ill take a look through my spam box, but if you could can you please send it again.

Quote from: Godsongz on November 26, 2007, 12:15:52 PM
Hey feeble!  Happy Anniversary! :)

It was one year ago today that this thread was created and you introduced us all to your fantastic chess mod.  I didn't pick up the trail until this past summer, but hey, that just means I missed a lot of the early bugs right? :)

Anyway, thanks again for all your effort on this project!
Umm lol thanks, I dont think this is a good thing to be honest. then again, I started this project all over again just before your summer so its all good i think.

Quote from: flame baiter on November 28, 2007, 03:18:55 AM
1 year? Wow! Will there be 1.0 any time soon?
Im hoping soon, at the moment im trying to get certified for wreck diving. I know thats got nothing to do with this mod, umm lol im lousy at excuses, soon soon.

I know ive said this before, but I am hoping to get back on the regular releases soon, as I it makes working on this mod much more enjoyable

Quote from: AllMassive on November 28, 2007, 02:21:51 PM
Hi - i installed chess 2 Days ago in smf 1.1.4 / utf-8.
Today i found plenty of Messages like this:
http://forum.com/index.php?action=chessXml;sa=update;sesc;id=19;timestamp=1196273122;xml
Kann das 'main' Template nicht laden.


Seems like its the same as the first entry of this (http://www.simplemachines.org/community/index.php?topic=129749.msg1219382;topicseen#msg1219382) Report.
hmm, is the chess board updating and saving correctly?
It looks like its having issues loading the xml template file.
Title: Re: SMFChess
Post by: feeble on November 30, 2007, 09:46:08 PM
this is probably old, but I came across this today.

Thinking Machine 4 (http://turbulence.org/spotlight/thinking/index.html)
QuoteThinking Machine 4 explores the invisible, elusive nature of thought. Play chess against a transparent intelligence, its evolving thought process visible on the board before you.
The artwork is an artificial intelligence program, ready to play chess with the viewer. If the viewer confronts the program, the computer's thought process is sketched on screen as it plays. A map is created from the traces of literally thousands of possible futures as the program tries to decide its best move. Those traces become a key to the invisible lines of force in the game as well as a window into the spirit of a thinking machine.

I think its actually really cool and I highly recommend just checking it out and playing a game with it.

Im going to chuck the creators an email and see if I can use their chess pieces for the mod, as I really like the pieces that they have used.
Title: Re: SMFChess
Post by: De4thPr00f on November 30, 2007, 11:58:17 PM
I haven't tried this mod yet, but let me ask how it works. I mean, how do you ask for a battle to a buddy? On their profile? Just wondering.
Title: Re: SMFChess
Post by: Chopper on December 01, 2007, 10:20:25 AM
Chess peices showing a red cross? I cant see chess pieces
Title: Re: SMFChess
Post by: falguni1 on December 01, 2007, 10:32:50 AM
I too interested in this mod
Title: Re: SMFChess
Post by: Godsongz on December 01, 2007, 10:50:11 AM
Quote from: Chopper on December 01, 2007, 10:20:25 AM
Chess peices showing a red cross? I cant see chess pieces

Did you copy the pieces directory to $themedir/SMFChess/pieces ?
Title: Re: SMFChess
Post by: Godsongz on December 01, 2007, 10:53:02 AM
Quote from: De4thPr00f on November 30, 2007, 11:58:17 PM
I haven't tried this mod yet, but let me ask how it works. I mean, how do you ask for a battle to a buddy? On their profile? Just wondering.

Built into the mod is a "Challenge" system, where you can either challenge a specific person to a game, or set up a kind of open challenge where you're just advertising that you want a game and anyone can come and start a game against you.
Title: Re: SMFChess
Post by: Chopper on December 01, 2007, 11:12:33 AM
Quote from: Godsongz on December 01, 2007, 10:50:11 AM
Quote from: Chopper on December 01, 2007, 10:20:25 AM
Chess peices showing a red cross? I cant see chess pieces

Did you copy the pieces directory to $themedir/SMFChess/pieces ?

Yes i have done that now, however, instead of the entire board full of red x's its now only the pieces that have a red x. I should have explained this better before, sorry.
Title: Re: SMFChess
Post by: Kays on December 01, 2007, 11:32:42 AM
Right click on the red X, choose properties to see what the path to the images is. Then make sure that the images are in that folder.

$themedir is the path to the theme you are using. Each theme has it's own images folder.
Title: Re: SMFChess
Post by: Godsongz on December 01, 2007, 05:52:21 PM
Quote from: Chopper on December 01, 2007, 11:12:33 AM
Quote from: Godsongz on December 01, 2007, 10:50:11 AM
Quote from: Chopper on December 01, 2007, 10:20:25 AM
Chess peices showing a red cross? I cant see chess pieces

Did you copy the pieces directory to $themedir/SMFChess/pieces ?

Yes i have done that now, however, instead of the entire board full of red x's its now only the pieces that have a red x. I should have explained this better before, sorry.

Ahh, you must have figured it out this afternoon then, because I see pieces on your site now, the "marroquin" style :)
Title: Ynt: SMFChess
Post by: Chopper on December 01, 2007, 06:08:16 PM
Quote from: Godsongz on December 01, 2007, 05:52:21 PM
Quote from: Chopper on December 01, 2007, 11:12:33 AM
Quote from: Godsongz on December 01, 2007, 10:50:11 AM
Quote from: Chopper on December 01, 2007, 10:20:25 AM
Chess peices showing a red cross? I cant see chess pieces
Thanks for your help
Did you copy the pieces directory to $themedir/SMFChess/pieces ?

Yes i have done that now, however, instead of the entire board full of red x's its now only the pieces that have a red x. I should have explained this better before, sorry.

Ahh, you must have figured it out this afternoon then, because I see pieces on your site now, the "marroquin" style :)

Thanks for your help
Title: Re: SMFChess
Post by: AllMassive on December 05, 2007, 05:43:18 AM
Quote from: Feeble on November 30, 2007, 12:22:05 AM


Quote from: AllMassive on November 28, 2007, 02:21:51 PM
Hi - i installed chess 2 Days ago in smf 1.1.4 / utf-8.
Today i found plenty of Messages like this:
http://forum.com/index.php?action=chessXml;sa=update;sesc;id=19;timestamp=1196273122;xml
Kann das 'main' Template nicht laden.


Seems like its the same as the first entry of this (http://www.simplemachines.org/community/index.php?topic=129749.msg1219382;topicseen#msg1219382) Report.
hmm, is the chess board updating and saving correctly?
It looks like its having issues loading the xml template file.
This never happend again after i did the Database-Maintenance.
Title: Re: SMFChess
Post by: feeble on December 05, 2007, 07:15:17 AM
Quote from: AllMassive on December 05, 2007, 05:43:18 AM
This never happend again after i did the Database-Maintenance.

So its working fine now?
Title: Re: SMFChess
Post by: Chopper on December 05, 2007, 03:46:05 PM
How about showing taken pieces?
Title: Re: SMFChess
Post by: brianjw on December 05, 2007, 06:00:47 PM
Quote from: Chopper on December 05, 2007, 03:46:05 PM
How about showing taken pieces?
I like that idea as well. Maybe like normal chess-

The pieces you have taken would be in the bottom right corner (not on board) and the ones that the opponent has taken would be on the top left. Although this would be from the default view of you being on the bottom and the opponent on top.

brianjw
Title: Re: SMFChess
Post by: AllMassive on December 06, 2007, 05:54:13 PM
Quote from: Feeble on December 05, 2007, 07:15:17 AM
Quote from: AllMassive on December 05, 2007, 05:43:18 AM
This never happend again after i did the Database-Maintenance.

So its working fine now?

Yes - no more errors in the Logs.
Two guys complained that they started a match and all the chess pieces were mixed on the board - only the pawns were right - but i couldn't find any errors in the Log nor could replicate it.
Title: Re: SMFChess
Post by: feeble on December 06, 2007, 07:02:14 PM
Quote from: AllMassive on December 06, 2007, 05:54:13 PM
Yes - no more errors in the Logs.
Two guys complained that they started a match and all the chess pieces were mixed on the board - only the pawns were right - but i couldn't find any errors in the Log nor could replicate it.

Good to hear,

thats not an error,

when they created the match, they probably put a tick to enable Chess960
more info on the gametype here
http://en.wikipedia.org/wiki/Chess960
Title: Re: SMFChess
Post by: AllMassive on December 07, 2007, 01:35:24 PM
Ah - ok  ;)
Title: Re: SMFChess
Post by: capabmx on December 07, 2007, 03:42:59 PM
That thinking machine chess game really messes with your mind. It is so trippy lol. I am playing it right now, and if the computer wins I'm going to be angry. I think it was talking smack to me, so I'm gonna jump into the computer and beat it up. Ok, done being wierd, but I wanted to compliment Feeble for making this mod :). It is a great addition to any forum.
Title: Re: SMFChess
Post by: PLAYBOY on December 16, 2007, 11:02:34 PM
Its been almost a year that you have been working on this mod and it is a successful, great mod but we are still waiting for,

- a language file
- an official release
- buttons
- a solution to king-castle problem (i cant make king-castle)

We really need those. Please complete this mod.
Title: Re: SMFChess
Post by: Bigguy on December 17, 2007, 01:24:37 PM
I am sure Feeble is working as hard as he can to get all this out for everyone. Please be patient.
Title: Re: SMFChess
Post by: JaGuR123 on December 17, 2007, 05:11:24 PM
Yeh give the bloke a break , it's not like he is getting any money for doing this .... so ease up on him, he has done a great job and should be thanked  for it ::)
Title: Re: SMFChess
Post by: PLAYBOY on December 17, 2007, 11:26:10 PM
Quote from: JaGuR123 on December 17, 2007, 05:11:24 PM
Yeh give the bloke a break , it's not like he is getting any money for doing this .... so ease up on him, he has done a great job and should be thanked  for it ::)

He has been thanked for it. Especially by me lots of times and yes he has done a wonderful job with this mod. My concern was its been a year and its not even in the Modifications section yet.

Of course we all thank him for his dedication. But we would like to have him spend a little more (just a little more) time on this. :)
Title: Re: SMFChess
Post by: feeble on December 18, 2007, 02:50:55 AM
Quote from: PLAYBOY on December 17, 2007, 11:26:10 PM
He has been thanked for it. Especially by me lots of times and yes he has done a wonderful job with this mod. My concern was its been a year and its not even in the Modifications section yet.

Of course we all thank him for his dedication. But we would like to have him spend a little more (just a little more) time on this. :)

Hey Playboy, I do actually agree with everything you have said, and I feel quite guilty.

I dont have any excuses to give, cause I dont really have any. But I am definitely still work on it.
Quote- a language file
- an official release
- buttons
- a solution to king-castle problem (i cant make king-castle)
Pretty much dead on and all point are the current main priorities.

All I is that I'm nearly there, and will have a new release shortly.
Title: Re: SMFChess
Post by: feeble on December 20, 2007, 09:30:49 AM
Ok, tonight I got around to fixing up the bbc code for the next version.

What new? well its actually fixed now, displays the grid correctly which is a good start, and have a blank square in the first grid is good as well

Also ive added the ability to flip the board, if you prefer to have black below.

on top of this, you can now highlight any square on the board using '!' which will be in the new highlight color option

example
[chess=black]rn!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

[chess]1n!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]


I added in the feature request to change the chat area to either log, chat or both.
This means, ive removed the option in the settings to show log. Reason for this, is because your selection is saved when you switch between.

Also added an experimental preview button in the current matches page.
Basically, when you click on the link, a tooltip is used, and the board is pull using ajax and displayed. Code is similar to that used in the bbc
This should allow quick viewing of the board, if it works well, ill be adding it to several other places.
Should come in handy, once i get around to putting in the tournament

p.s. Ill alter this format as I go along, but I think this might be a good way to stream out updates, just with a quick post of whats been added, similar to a blog.
This way well 1/ you know I'm still working on it   :P 2/ You can suggest/or question these updates/changes
Title: Re: SMFChess
Post by: Chopper on December 20, 2007, 09:52:37 AM
I have installed a new theme (Back-n-Black) and cant get the Chess option to show up. How can i edit the theme? I have used the SMF parser package but the Chess button isnt in the correct place and the chess board isnt showing up correctly. Any ideas?
Title: Re: SMFChess
Post by: feeble on December 21, 2007, 02:21:36 PM
Quote from: Chopper on December 20, 2007, 09:52:37 AM
I have installed a new theme (Back-n-Black) and cant get the Chess option to show up. How can i edit the theme? I have used the SMF parser package but the Chess button isnt in the correct place and the chess board isnt showing up correctly. Any ideas?

For manual theme changes, head here
http://www.leaderless.net/PackageParser/index.php?show=theme

Its possible that the button code is different for blacknblack theme

What do you mean the chess board isnt showing up correctly?
Title: Re: SMFChess
Post by: Chopper on December 21, 2007, 04:55:17 PM
Quote from: Feeble on December 21, 2007, 02:21:36 PM
Quote from: Chopper on December 20, 2007, 09:52:37 AM
I have installed a new theme (Back-n-Black) and cant get the Chess option to show up. How can i edit the theme? I have used the SMF parser package but the Chess button isnt in the correct place and the chess board isnt showing up correctly. Any ideas?

For manual theme changes, head here
http://www.leaderless.net/PackageParser/index.php?show=theme

Its possible that the button code is different for blacknblack theme

What do you mean the chess board isnt showing up correctly?

I have already tried to edit the theme but none of the codes in the link you provided can be found?

By the board i mean teh square colours. I can see the pieces but the board appears to have gone awol
Title: Re: SMFChess
Post by: Chopper on December 21, 2007, 08:31:35 PM
I seem to be getting somewhere now. The only problem i have is the board doesnt show at all?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi136.photobucket.com%2Falbums%2Fq197%2FBobbyplant_2007%2Fchessboard.jpg&hash=0afce0b532b417685f3b0c96e24e8b10a71edf12)
Title: Re: SMFChess
Post by: Bigguy on December 21, 2007, 09:00:27 PM
Have you tried changing the board color with the sliders in the admin panel. Maybe they are set wrong.
Title: Re: SMFChess
Post by: Chopper on December 22, 2007, 06:27:27 AM
I have tried that bigguy to no avail im afraid :(
Title: Re: SMFChess
Post by: Bigguy on December 22, 2007, 11:16:44 AM
Did all the images from the mod upload. I would check that out.
Title: Re: SMFChess
Post by: Chopper on December 22, 2007, 12:06:25 PM
Quote from: Bigguy on December 22, 2007, 11:16:44 AM
Did all the images from the mod upload. I would check that out.

Everything has uploaded ok so im stumped
Title: Re: SMFChess
Post by: Bigguy on December 22, 2007, 12:11:39 PM
Have you tried installing and uninstalling the mod to see if that fixes it.
Title: Re: SMFChess
Post by: Chopper on December 22, 2007, 12:43:21 PM
Quote from: Bigguy on December 22, 2007, 12:11:39 PM
Have you tried installing and uninstalling the mod to see if that fixes it.

Seems like alot of hassle just to get it working on a different theme. Hmmmmmm i think il leave it thanks for your help
Title: Re: SMFChess
Post by: brianjw on December 22, 2007, 01:10:41 PM
What kind of languages are these thing in between the bbc lol

[chess=black]rn!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

[chess]1n!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

There is no way in hell I understand that lol! :)
Title: Re: SMFChess
Post by: Bigguy on December 22, 2007, 03:45:16 PM
Sorry to hear that. Almost any mod that touches the template files you will have to do manual edits for. Does it all work on the default theme. ??? Have you made sure that any template files that the chess mod uploads during install have been moved to the theme you are usings folder.

Quote from: Chopper on December 22, 2007, 12:43:21 PM
Quote from: Bigguy on December 22, 2007, 12:11:39 PM
Have you tried installing and uninstalling the mod to see if that fixes it.

Seems like alot of hassle just to get it working on a different theme. Hmmmmmm i think il leave it thanks for your help
Title: Re: SMFChess
Post by: Chopper on December 22, 2007, 05:07:36 PM
Quote from: Bigguy on December 22, 2007, 03:45:16 PM
Sorry to hear that. Almost any mod that touches the template files you will have to do manual edits for. Does it all work on the default theme. ??? Have you made sure that any template files that the chess mod uploads during install have been moved to the theme you are usings folder.

Quote from: Chopper on December 22, 2007, 12:43:21 PM
Quote from: Bigguy on December 22, 2007, 12:11:39 PM
Have you tried installing and uninstalling the mod to see if that fixes it.

Seems like alot of hassle just to get it working on a different theme. Hmmmmmm i think il leave it thanks for your help
Yeah it works fine on default theres obviously something ive missed. Thanks for your help Bigguy ;D
Title: Re: SMFChess
Post by: Bigguy on December 22, 2007, 05:11:37 PM
Have you made sure that any template files that the chess mod uploads during install have been moved to the theme you are usings folder
Title: Re: SMFChess
Post by: JaGuR123 on December 22, 2007, 06:07:42 PM
Quote from: Chopper on December 21, 2007, 08:31:35 PM
I seem to be getting somewhere now. The only problem i have is the board doesnt show at all?

It's a Theme specific CSS problem , you will have to find the correlating code in the style.css file in the themes folder
Title: Re: SMFChess
Post by: hvyhitter on December 30, 2007, 11:30:57 AM
Has this been upgraded for the beta version of SMF yet? :( It appears not.. I know I know..)

This chess game is so good at my place its preventing me from upgrading STILL.. ehhh...

Title: Re: SMFChess
Post by: Bigguy on December 31, 2007, 03:19:29 AM
Feeble is away at the present moment so we will have to wait for him to return but I must say things are going great with this mod. :)
Title: Re: SMFChess
Post by: Lord Anubis on January 08, 2008, 02:22:00 PM
I made a block code for TinyPortal that incorporates all the SMFChess user functions

Screenshot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftinyadminresources.com%2Fextras%2Fimagehost%2Fscript%2Fuploads%2F4533e2cf05.jpg&hash=66a2cb9f918fdbad213e1a0e894ac2927097a0ce)

Demo:
Live Demo (http://nextsite.org) Check out the right block, and click on chess  ;)

Instructions:

1. Download THIS FILE (http://tinyadminresources.com/chessblock.zip), and unzip the package
2. Upload the folder "chessblock" to the root of your forum
3. Insert the code below into a PHP block
4. Enjoy!


global $scripturl, $context;
echo '

<img src="/chessblock/chess.png"/> <a href="', $scripturl ,'?action=chess">My Chess Stats</a><br />
<img src="/chessblock/challenge.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=challenge">Challenge</a><br />
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=current">Current Matches</a><br />
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=finished">Finished Matches</a><br />
<img src="/chessblock/leader.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=leaderboard">Leaderboard</a><br />
';
Title: Re: SMFChess
Post by: MinasC on January 09, 2008, 12:45:46 PM
wow , great man , thnx a lot !
Title: Re: SMFChess
Post by: Godsongz on January 09, 2008, 02:01:42 PM
Yes Anubis, thanks!  I put it on my TP front page this morning.
Title: Re: SMFChess
Post by: Paracelsus on January 09, 2008, 02:13:03 PM
King-Castle is to press the king-queen icons that come below the avatars of each player.
Title: Re: SMFChess
Post by: Lord Anubis on January 09, 2008, 04:36:34 PM
I thought people would like that block, it definitely will raise the percentage of members who play chess :)

Glad you guys liked it
Title: Re: SMFChess
Post by: feeble on January 10, 2008, 04:43:40 PM
Sorry for my delayed absence. Had a great trip and just took a while to settle back into a rhythm.(Only just started glancing at the tv again)

Quote from: brianjw on December 22, 2007, 01:10:41 PM
What kind of languages are these thing in between the bbc lol

[chess=black]rn!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

[chess]1n!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

There is no way in hell I understand that lol! :)

Basically ! will highlight the next corresponding piece.
Other then that its a basic FEN notation of a chess board
Title: Re: SMFChess
Post by: feeble on January 11, 2008, 05:01:21 PM
Couple of things, first off Im going to release the next version tomorrow.

Reason for this is because im getting desperate for feedback :'(
And I was working alot faster with continuous updates

This will also mean that it will only be available for English forums. I'm sorry to do this, and have been trying to avoid it, but the languages files are not done, as I keep adding additional text everyday at the moment.

So what I'll be trying now, is to release a new version everyweek as I was before. Should help speed things up.


Now onto ELO

I've been working on the new ELO rating system, to help beginner players get off 1000 as well as get it more suited for forums.

I'll try and explain (please feel free to question or ask if it doesn't make any sense or you want something changed)

First off, each ELO rating will be adjusted according to the player and not the game itself, meaning that each player will have his own ELO adjusted according to his current ELO to get to his new ELO rating.

This also brings me to Chess Titles as well(just began playing with this)
Giving you a Title depending on your ELO rating.
Beginner, novice, skilled, intermediate, master, grand master etc.
Note: I have been looking for correct titles, but have been unable to find anything as yet, if you know of any? please let me know
(P.S. Titles and requirements will change)

OK here is my poor attempt at displaying this in a table





TitleElo BetweenKAdditional
Beginner <-> Novice1000 - 120032If win, opp elo +400 : if lose, opp elo -400 : New ELO !< 0
Intermediate <-> Skilled1200 - 140016If win, opp elo +100 : if lose, opp elo -100
Skilled <-> Master1400 - 160016
Grand Master1600 +8


for more information on ELO (Explains K variable etc)
http://en.wikipedia.org/wiki/Elo_rating_system
Title: Re: SMFChess
Post by: Assistance on January 12, 2008, 12:50:21 AM
maybe you could do provisional, to help the new players get started
most if not all current online board games use this feature

and instead of titles, a small image ( colored circle/square )

■-provisional - first 10 games
■-0-1199
■-1200-1499
■-1500-1799
■-1800-2099
■-2100+

small image would allow for forum webmasters to have their own unique distinction for it representation.
Title: Re: SMFChess
Post by: feeble on January 12, 2008, 10:22:44 PM
Quote from: Assistance on January 12, 2008, 12:50:21 AM
maybe you could do provisional, to help the new players get started
most if not all current online board games use this feature
Ill look into this actually, i like it. My only concern with applying provisional to ELO ratings is that, its not actually a score, but a comparative rating to compare two players and give an estimate on who will win between the two.


Quote from: Assistance on January 12, 2008, 12:50:21 AM
and instead of titles, a small image ( colored circle/square )

■-provisional - first 10 games
■-0-1199
■-1200-1499
■-1500-1799
■-1800-2099
■-2100+

small image would allow for forum webmasters to have their own unique distinction for it representation.

I actually like this as well rather then just having titles. Storing the colors and requirements in a table should be simply enough.
Title: Re: SMFChess
Post by: Embrace on January 12, 2008, 11:02:10 PM
Are you not releasing the next version today? :)
Title: Re: SMFChess
Post by: Godsongz on January 13, 2008, 12:07:05 AM
Quote from: Embrace on January 12, 2008, 11:02:10 PM
Are you not releasing the next version today? :)

I'm not sure what time zone feeble lives in, but perhaps his "today" hasn't started yet :)
Title: Re: SMFChess
Post by: Assistance on January 13, 2008, 01:56:04 AM
provisional player would start with (using my chart above) with a rating of 1200
so the ELO would still apply, just not visible

the reason I suggested the provisional is because no one wants to be unranked
so people will get off those 10 games a lot sooner :)



could u also set up (back end) that admins can set up matches between players
Title: Re: SMFChess
Post by: feeble on January 13, 2008, 05:58:42 AM
Quote from: Embrace on January 12, 2008, 11:02:10 PM
Are you not releasing the next version today? :)
Sorry about that, I live in Sydney. Was posting from work(Air Con is broken, also I'm in the mid of summer. Was swimming in my clothes by the time i got home) O:)

Quote from: Assistance on January 13, 2008, 01:56:04 AM
provisional player would start with (using my chart above) with a rating of 1200
so the ELO would still apply, just not visible

the reason I suggested the provisional is because no one wants to be unranked
so people will get off those 10 games a lot sooner :)
I'll begin working on this soon and put it in, wouldn't mind seeing how it goes and if people like it or not.

EDIT: Forgot to mention, regarding the colours for titles.
I'm planning on using css based colouring and framing. I ran across Sanscons (http://somerandomdude.net/srd-projects/sanscons/) earlier today, and the trick is really neat and I love it. So I think I use something in that fashion. This also means I can used images, without worrying if it will clash with someones theme, as they can just change the colour and problem is solved.

Quote from: Assistance on January 13, 2008, 01:56:04 AM
could u also set up (back end) that admins can set up matches between players
Ive been meaning to do this.
Where would you like it, on the challenge screen? or in the admin area?


Without furture delay thou(been enough of that already), New version is up.
Its not that big of an update really
Mostly just contains
-alot of bug fixes
-doubling clicking should be fixed
-Chess960 Castling issues should be fixed(dont hold me to this thou, but im pretty sure)
-Better Castling - brought back castling with moving the castle. so now you have two ways to castle.
--I'm looking into lightbox scripts to make this look better as well, but thats another thing
-Much for advanced chess tag you can see examples here (http://www.leaderless.net/index.php?topic=12.0)
-More personal ELO rating, as describe in the above post.
--I'm really interested in how this turns out, so please recount your Chess Results(Found in Chess Admin Maintenance)
Please let me know how this gets on

-Few other things, but ive forgotten as its been awhile since last update&nbsp;&nbsp; ::)



Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here (http://www.leaderless.net/tp-downloads/chess.zip)
Preview Here (http://www.leaderless.net/index.php?action=chess)

Languages: If you do not see your language here, please follow this link (http://www.simplemachines.org/community/index.php?topic=129749.msg827672#msg827672)
NOTE: LANGUAGE FILES ARE INCOMPLETE AND NOT RECOMMENDED TO BE TRANSLATED AS OF YET
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop your errors in your forum log regarding missing languages.
German (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_german.zip)
Thai UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_thai_utf-8.zip)
Croatian UTF-8 (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_croatian_utf-8.zip)
Portuguese (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_portuguese.zip)
Turkish (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_turkish.zip)
French (http://www.leaderless.net/tp-downloads/SMFChess_translations/SMFChess_L_french.zip)

Note: To manually make table changes. Just uploaded the InstallScript.php from chess.zip into your SMF directory and run it through a browser
Title: Re: SMFChess
Post by: DWillis on January 14, 2008, 06:49:03 PM
Hrm.  When I installed it it installed in the default theme, not the current theme I was using.  Does this mean in order to put it into another theme other than the default I have to manually install it?
Title: Re: SMFChess
Post by: Bigguy on January 14, 2008, 06:55:09 PM
Some manual edits will be required yes.
Title: Re: SMFChess
Post by: Paracelsus on January 15, 2008, 05:33:09 AM
Ok, for someone who has installed other MODs after SMFChess, it turns out to be impossible to uninstall it in a simple way to get the updated version.

Is it possible to install it manually by comparing the files in packages of both versions and making the appropriate changes?
Title: Re: SMFChess
Post by: feeble on January 15, 2008, 06:20:24 AM
Quote from: Paracelsus on January 15, 2008, 05:33:09 AM
Ok, for someone who has installed other MODs after SMFChess, it turns out to be impossible to uninstall it in a simple way to get the updated version.

Is it possible to install it manually by comparing the files in packages of both versions and making the appropriate changes?
Sorry about this,
The only file (outside of actual chess files) that was changed since the last update was Sources/Subs.php

you can view the file edits here
http://www.leaderless.net/PackageParser/index.php

if you have trouble with this chuck me an email to [email protected]
Title: Re: SMFChess
Post by: Paracelsus on January 15, 2008, 09:30:20 AM
Quote from: Feeble on January 15, 2008, 06:20:24 AM
The only file (outside of actual chess files) that was changed since the last update was Sources/Subs.php

you can view the file edits here
http://www.leaderless.net/PackageParser/index.php

Thanks (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.forumscp.com%2FSmileys%2Fphpbb%2FGreat.gif&hash=d512f208f42bbf5df5861bfc71b3c2f5e9fa1c6b)
Title: Re: SMFChess
Post by: Embrace on January 15, 2008, 03:30:12 PM
I am getting a weird glitch... I thought I saw a fix for it before but I might be stupid... :P

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg155.imageshack.us%2Fimg155%2F6471%2F59619875qh3.gif&hash=6edf401fb1be168edbcff20b1041966eebe2db07)

Thanks,
Embrace
Title: Re: SMFChess
Post by: feeble on January 15, 2008, 03:39:54 PM
Quote from: Embrace on January 15, 2008, 03:30:12 PM
I am getting a weird glitch... I thought I saw a fix for it before but I might be stupid... :P

The misalignment is caused by HTML and/or CSS syntax errors

Use W3C-Online-Validator at http://validator.w3.org/ (http://validator.w3.org/)

If you are not sure on how to fix any errors that it find, I would talk to the author of your theme.

If history serves, this has been mostly caused by incorrect syntax used in the themes menu bar.

Small note: even if this might seem like alot of trouble, I highly recommend sorting out any errors that the W3C online validator finds, as it greatly improves compatibility between browsers as well as decreases page loading.
Title: Re: SMFChess
Post by: Assistance on January 15, 2008, 05:58:10 PM
Assistance
could u also set up (back end) that admins can set up matches between players

QuoteIve been meaning to do this.
Where would you like it, on the challenge screen? or in the admin area?
the challenge screen would make it quicker,

I would suggest placing in the same place the admins would set up tournaments
(in progress I hope?)


the CSS for the rank/groups is perfect
Title: Re: SMFChess
Post by: feeble on January 16, 2008, 04:14:55 PM
Quote from: Assistance on January 15, 2008, 05:58:10 PM
QuoteIve been meaning to do this.
Where would you like it, on the challenge screen? or in the admin area?
the challenge screen would make it quicker,
Ok


Quote from: Assistance on January 15, 2008, 05:58:10 PM
I would suggest placing in the same place the admins would set up tournaments
(in progress I hope?)
Umm, its still being thought out.
We just had a trial run tournament, and it ran into a few issues.
The biggest issue is the time, and that it can go for a very long time if enough players sign up.
A different board game is also on the table.
Title: Re: SMFChess
Post by: eXecuT on January 16, 2008, 04:17:29 PM
What's the name of that different game?  Guess ( I forget it...) :P
Title: Re: SMFChess
Post by: feeble on January 17, 2008, 03:19:45 AM
Quote from: eXecuT on January 16, 2008, 04:17:29 PM
What's the name of that different game?  Guess ( I forget it...) :P
Its still in discussion.
I don't rightly know at the moment. But essentially its either a Tournament for SMFChess or a diff board game.
Title: Re: SMFChess
Post by: feeble on January 17, 2008, 09:22:22 AM
Update on the next release:
first off some boring stuff. Tweaked the ELO formula and fixed a few bugs here and there.

Now,
for the last couple of days I've been messing around with Script.aculo.us (http://script.aculo.us/)
Its a really cool framework for, well alot of different things. I recommend checking it out, could make your website pretty flash.
My main interest with Script.aculo.us is its effects (http://wiki.script.aculo.us/scriptaculous/show/CombinationEffectsDemo).

So what I've done is when your opponent moves his chess pieces, it will initiate an effect, so you can visually see the piece change.
I can't decide between Effect.Shake and Effect.Highlight

In saying this thou, I probably wont end up using Script.aculo.us, as Ill be trying to make my own versions and add it to the already wonderful Walterzorn's Dragdrop script, which I've used for everything else. Mostly to try and keep the overhead down, but we shall see how it goes.


Also been working on the foundations for showing captured pieces. Should be implemented soon enough.


Also this week I've also finished a new mod, just waiting for it to be approved right now.
I've had it laying around for a while, but was asked to release it so it didn't take much time.
Title: Re: SMFChess
Post by: nick09 on January 18, 2008, 06:51:07 PM
how about a chat feature within the game?

so we can say "owned"  :P
Title: Re: SMFChess
Post by: Bigguy on January 18, 2008, 06:56:44 PM
There is a chat feature within the game ...or was that taken out. ???
Title: Re: SMFChess
Post by: nick09 on January 18, 2008, 06:58:27 PM
Quote from: Bigguy on January 18, 2008, 06:56:44 PM
There is a chat feature within the game ...or was that taken out. ???

oh if so i did not know. :P
Title: Re: SMFChess
Post by: Assistance on January 21, 2008, 07:02:35 PM
i dunno about the fancy flash
if u do go that route please have an enable/disable feature

personally I would rather have a simple chess setup, then some fancy Chessmaster 2million ; )

I've yet to install the latest version, not getting a clean uninstall (is ok)
I do have a few more idea's, but I'd rather see the tournament section running before I overload ya.

what u have done so far is great

thank you
Title: Re: SMFChess
Post by: Bigguy on January 21, 2008, 11:25:37 PM
You threw me off a bit when you asked me that cause I was sure there was a chat feature in the latest release, lol. There always has been a chat feature.

Quote from: nick09 on January 18, 2008, 06:58:27 PM
Quote from: Bigguy on January 18, 2008, 06:56:44 PM
There is a chat feature within the game ...or was that taken out. ???

oh if so i did not know. :P
Title: Re: SMFChess
Post by: feeble on January 23, 2008, 05:01:19 AM
Quote from: Assistance on January 21, 2008, 07:02:35 PM
i dunno about the fancy flash
if u do go that route please have an enable/disable feature

personally I would rather have a simple chess setup, then some fancy Chessmaster 2million ; )

Sorry for the delayed reply

I do agree with this, you will be able to disable the effects.
It's really not that much, basically just a colour change, a small wiggle or a small pulse.
I have it being tested on a friends site at the moment, and he seems to enjoy the effects.


Update on the last couple of days:
Been working on the challenge page mostly
-Improved the user search, actually looks pretty funky now.
-When you create a quickmatch, it will be listed now below, just so you know it has been created, and not think that you have done something wrong.
-Added a difference in ELO. so you can see a quick comparative skill to your opponent.
-added [C] next to players names on my page and leaderboard(maybe will be added to current and finished as well). This just means that if you want to challenge that player, just click the [C] and it will take you straight to the challenge page.


Also, a small mod I've been working on the side just got approved. More details here (http://www.simplemachines.org/community/index.php?topic=218400.0)
Title: Re: SMFChess
Post by: feeble on January 24, 2008, 05:06:07 AM
Ok uploaded a new version, pretty much the same points are listed yesterday
-Improved the user search, actually looks pretty funky now.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2FsearchUserprev.png&hash=5940eada0f1eed5438b8abfffe46b777a14f4ccf)
Notes: the -95, is the difference between mine and Godsongz ELO. Arrow and Enter Key are useable to select player

-When you create a quickmatch, it will be listed now below, just so you know it has been created, and not think that you have done something wrong.
-Added a difference in ELO. so you can see a quick comparative skill to your opponent.
-added [C] next to players names on my page and leaderboard. This just means that if you want to challenge that player, just click the [C] and it will take you straight to the challenge page.
-Effects Added: Shake, Pulse and Fade Highlight

All Chess Files have been adjusted in this release.

Download link is in the first post (http://www.simplemachines.org/community/index.php?topic=129749.0)


So whats left to do?
Well I'm gradually putting lines through, its mostly just cosmetic changes.
-Show captured pieces (nearly done, just need to write the js)
-add in the manual add game (this will be actually combined with the import)
-few adjustments to the elo recount.
-language files

I am thinking about dropping titles for the moment. If I can get that list done, I can then officially release. Then introduce the titles in a patch would probably be the best way to go with it. See how it goes.

Anyways, any issues with the release let me know.
Title: Re: SMFChess
Post by: JaGuR123 on January 24, 2008, 05:48:41 AM
Love the New Challenge Bling  :D

But one problem with it ..... if you click the dropdown menu of the person you want to challenge it clicks on the Create Quick Match, you may have to drop the "Create QuickMatch" down a little bit more.

Cheers

Scratch that , maybe it didn't ... will further investigate
Title: Re: SMFChess
Post by: PLAYBOY on January 24, 2008, 12:26:50 PM
Please bigger and better language files pleeeeaaasseee....
im begging for it....
dying for it....

Title: Re: SMFChess
Post by: Paracelsus on January 24, 2008, 01:55:17 PM
The Scriptaculous effect turned out very well! ;)

And how did you do to put even the animated gif avatars resized in both length and width AND working as animated in the user search function? :o Because that's not even possible with the default SMF. Great job!
Title: Re: SMFChess
Post by: PLAYBOY on January 24, 2008, 02:28:26 PM
i made a newer version of Turkish Language file... please replace it with the current one

<?php

//SMFChess Language File
//Chess.turkish.php

//Global
$txt['SMFChess_g'] = array(
'seconds' => 'Saniye',
'minutes' => 'Dakika',
'hours' => 'Saat',
'days' => 'Gun',
's' => 'sn',
'm' => 'dk',
'h' => 'sa',
'd' => 'gu',
'search1' => 'Arama',
'search2' => 'Arama Sonuclari',
'search3' => 'Araniyor...'
);

//Admin Settings
$txt['SMFChess_a_s']['t_settings'] = 'Satranc Ayarlari';
$txt['SMFChess_a_s']['t_interval'] = '<b>Yenileme Araligi:</b><div class="smalltext">Belirtilen saniye araliginda bir 

yenilenecektir<br/>(default: 10seconds)</div>'
;
$txt['SMFChess_a_s']['t_timeout'] = '<b>Yenilemenin bitimi:</b><div class="smalltext">Bu kadar dakikadan sonra yenileme sona 

erecektir.<br/>(default: 30 minutes)</div>'
;
$txt['SMFChess_a_s']['t_news'] = '<b>Giris Yazisi:</b><div class="smalltext">"Benim Sayfam" Kisminda ortada yazilacak olan 

yazi</div>'
;
$txt['SMFChess_a_s']['t_menu'] = '<b>Menu cubugu ayari:</b><div class="smalltext">Smf Temana uygun daha farkli menu cubugu 

sec.</div>'
;
$txt['SMFChess_a_s']['v_menu_default'] = 'Default<div class="smalltext">Var sayilan cubuk. SMF default temasina gore 

ayarlanmis olan</div>'
;
$txt['SMFChess_a_s']['v_menu_custom1'] = 'Ozellestirilmis';
$txt['SMFChess_a_s']['v_menu_custom2'] = '[Degistir]';
$txt['SMFChess_a_s']['v_menu_custom3'] = '<div class="smalltext">Ozel cubuk. Gerekli kodlar ChessCustom.template.php. 

icindedir<br/>Bu php dosyasini temaniza ozel cubugu olusturmak icin kullanin</div>'
;
$txt['SMFChess_a_s']['t_boardcolour'] = '<b>Satranc masasinin renkleri:</b><div class="smalltext">Renkleri seciniz</div>';
$txt['SMFChess_a_s']['v_boardcolor_l'] = 'Acik Renk Kareler:';
$txt['SMFChess_a_s']['v_boardcolor_d'] = 'Koyu Renk Kareler:';
$txt['SMFChess_a_s']['v_boardcolor_b'] = 'Cerceve:';
$txt['SMFChess_a_s']['v_boardcolor_t'] = 'Cerceve Yazisi:';
$txt['SMFChess_a_s']['v_boardcolor_h'] = 'Ust Boya:';
$txt['SMFChess_a_s']['t_boardpiece'] = '<b>Satranc taslari:</b><div class="smalltext">Oynamak istediginiz satranc taslari 

bicimi</div>'
;
$txt['SMFChess_a_s']['t_boardsize'] = '<b>Satranc Masasi Boyutu:</b><div class="smalltext">Masanin boyutunu 

belirleyin.<br/>Gorme engelliler icin</div>'
;

$txt['SMFChess_a_s']['t_boardeffects'] = '<b>Satranc masasi efekleri:</b><div class="smalltext">Satranc taslari 

degistigindeki efeklerin ayarlari.</div>'
;
$txt['SMFChess_a_s']['v_boardeffects_0'] = 'Hicbirsey';
$txt['SMFChess_a_s']['v_boardeffects_1'] = 'Ust Boyasi';
$txt['SMFChess_a_s']['v_boardeffects_2'] = 'Calkala';
$txt['SMFChess_a_s']['v_boardeffects_3'] = 'Titret';

$txt['SMFChess_a_s']['t_c_settings'] = 'Satranc Chat Ayarlari';
$txt['SMFChess_a_s']['t_c_enable'] = '<b>Satranctaki Chat Aktif:</b><div class="smalltext">Aktive etmek icin 

isaretleyin.</div>'
;
$txt['SMFChess_a_s']['t_c_interval'] = '<b>Chat yenileme araligi:</b><div class="smalltext">Belli saniyede bir yenileme 

araligi<br/>(default: 10seconds)</div>'
;
$txt['SMFChess_a_s']['t_c_timeout'] = '<b>Yenileme bitimi:</b><div class="smalltext">Bu kadar dakikadan sonra yenileme 

bitecektir.<br/>(default: 30 minutes)</div>'
;
$txt['SMFChess_a_s']['t_c_cansee'] = '<b>Chat i kimlerin gorebilecegi:</b><div class="smalltext">Adminler her zaman 

gorebilirler</div>'
;
$txt['SMFChess_a_s']['v_c_cansee1'] = 'Herkes';
$txt['SMFChess_a_s']['v_c_cansee2'] = 'Ziyaretciler haric herkes';
$txt['SMFChess_a_s']['v_c_cansee3'] = 'Sadece oyuncular';
$txt['SMFChess_a_s']['t_c_canchat'] = '<b>Kimler Chat Yapabilir?:</b><div class="smalltext">Adminler her zaman chat 

yapabilirler.</div>'
;
$txt['SMFChess_a_s']['t_c_movelog'] = '<b>Kayitlarin yerini degistir:</b><div class="smalltext">Chatlerin gorunebilmesi icin 

forum varsayilanini degistir.</div>'
;

//Admin Maintenance
$txt['SMFChess_a_m']['t_maintenance'] = 'Satranc Bakim';
$txt['SMFChess_a_m']['t_repair'] = '<b>Hatalari bul ve duzelt:</b><div class="smalltext">Hatalari bulur ve tamir 

eder.</div>'
;
$txt['SMFChess_a_m']['t_recount'] = '<b>Satranc sonuclarinin tekrar sayimi:</b><div class="smalltext">Tekrar sayim +/0/- ve 

Puanlama</div>'
;
$txt['SMFChess_a_m']['v_recount'] = 'Satranc Sonuclarinin Tekrar Sayimi';
$txt['SMFChess_a_m']['t_clean'] = '<b>Temizlenmis Satranc</b><div class="smalltext">Bu kadar gundur hamle yapilmamis olan 

oyunlari sil.<br/>(varsayilan: 30/90 gun)</div>'
;
$txt['SMFChess_a_m']['v_clean_stagnant1'] = 'Durmus olan oyunlari sil.';
$txt['SMFChess_a_m']['v_clean_stagnant2'] = 'Son hamlenin yapilmis oldugu oyunlari sil.';
$txt['SMFChess_a_m']['v_clean_finished1'] = 'Bitmis oyunlari sil.';
$txt['SMFChess_a_m']['v_clean_finished2'] = 'Sona ermis olan oyunlari sil.';
$txt['SMFChess_a_m']['v_clean_confirm'] = 'Satranci silmek istediginizden eminmisiniz?\n\nBu degisiklik geri dondurulemez!';
$txt['SMFChess_a_m']['t_i_import'] = 'Satranc import';
$txt['SMFChess_a_m']['t_i_search'] = '<b>Uye Ara</b><div class="smalltext">Search for members, Beyaz yada siyah olacagini 

belirleyecek import uyesini ara</div>'
;
$txt['SMFChess_a_m']['t_i_white'] = '<b>Beyazin ismi</b><div class="smalltext">Import edilmis oyunu beyaza ver</div>';
$txt['SMFChess_a_m']['t_i_black'] = '<b>Siyahin ismi</b><div class="smalltext">Import edilmis oyunu siyaha ver</div>';
$txt['SMFChess_a_m']['t_i_pgn'] = '<b>PGN Notation</b><div class="smalltext">PGN Notation data to import</div>';
$txt['SMFChess_a_m']['v_i_pgn'] = 'Import';
$txt['SMFChess_a_m']['t_i_createnew'] = 'Yeni olustur';
$txt['SMFChess_a_m']['t_i_findingusers'] = 'Uyeler araniyor...';

//Admin Maintenance Results
$txt['SMFChess_maint_result_title'] = 'Sonuclar';
$txt['SMFChess_maint_result_fixcurrent'] = 'Devam edenler duzeltildi.';
$txt['SMFChess_maint_result_fixfininished'] = 'Bitmisler duzeltildi.';
$txt['SMFChess_maint_result_fixdraw'] = 'Berabere olanlar duzeltildi.';
$txt['SMFChess_maint_result_fixnull'] = 'Yanitsizlar silindi';
$txt['SMFChess_maint_recount'] = 'Oyunlar tekrar sayildi';
$txt['SMFChess_maint_result_cleanprogress'] = 'Durmuslar silindi';
$txt['SMFChess_maint_result_cleannotstarted'] = 'Baslamamislar silindi';
$txt['SMFChess_maint_result_cleanfinished'] = 'Bitmisler silindi';
$txt['SMFChess_maint_import'] = 'Basariyla import edildi.';
$txt['SMFChess_maint_importfailed'] = 'Import basarisiz.';
$txt['SMFChess_maint_importfailed2'] = '2 uye bulunamadi';



//Main Areas
//Labels
$txt['SMFChess_labels'] = array(
'board' => 'Masa',
'challenge' => '/Oyun Teklifi/',
'mypage' => '  /Benim Bolumum/',
'current' => '  /Suren Karsilasmalar/',
'finished' => 'Bitti',
'leaderboard' => '  /Siralama/',
'settings' => '  /Ayarlar/',
'game' => 'Rakipler',
'status' => 'Durum',
'move' => 'Hamle Sayisi',
'moves' => 'Hamleler',
'turn' => 'Sira',
'created' => 'Baslangic',
'updated' => 'Son Guncellenme',
'winner' => 'Kazanan',
'finished' => ' /Bitmis Karsilasmalar/',
'setdefault' => 'Set Default',
'preview' => 'On Izleme',
'rank' => 'Siralama #',
'name' => 'Isim',
'elo' => 'Puanlama',
'wins' => 'Kazanilanlar',
'draws' => 'Berabere',
'losses' => 'Kaybedilmisler',
'opponent' => 'Rakip',
'moveclock' => 'Saat Hareketi',
'result' => 'Sonuc',
'wdl' => '+/0/-',
'w' => '+',
'd' => '0',
'l' => '-',
'delete' => 'Masayi Sil',
'won' => 'Kazandi',
'vs' => 'ile',
'credits' => 'Yapanlar',
'yours' => 'Senin',
'cUser' => '<span class="smalltext">[Davet Et]</span>'
);

$txt['SMFChess_javascript'] = array(
'delete' => 'Silmek istediginizden eminmisiniz?',
);

$txt['SMFChess_Settings'] = array(
'is_not_guest' => 'Yanlizca Uyelere Ozeldir',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
);

$txt['SMFChess_errors'] = array(
'noranked' => 'Hickimsenin puani yok.',
'is_not_guest' => 'Yanlizca Uyelere Ozeldir.',
'nofinished' => 'Bitmis olan hicbir oyun yok.',
'nocurrent' => 'Hicbir oyun yok.',
'reminder' => 'Hatirlatma Gonderildi.',
'nousers' => 'Kullanici bulunamadi',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
'' => '',
);

$txt['SMFChess_control'] = array(
'moveexpired' => '<b>Rakip taninan zamanda hamlesini yapmadi. <a href="javascript:void(0)" onclick="if(confirm(\'Are 

you Sure?\')){chessCommand(\'clock_accept_win\');}"><u>Buraya tiklarsaniz</u></a> oyunu kazanirsiniz</b>'
,
'undo1' => '%s son hamlesini geri almak istiyor.<a href="javascript:void(0)" 

onclick="chessCommand(\'undo\');"><b><u>Kabul</u></b></a> yada <a href="javascript:void(0)" 

onclick="chessCommand(\'reject\');"><b><u>Ret</u></b></a>'
,
'undo2' => '%s teklifinize daha cevap vermedi.',
'notstarted1' => 'Lutfen oyunun baslamasi icin ilk hamleyi yapiniz',
'notstarted2' => 'Oyun daha baslamadi',
'draw1' => '%s oyunu berabere bitirmeyi teklif ediyor <a href="javascript:void(0)" 

onclick="chessCommand(\'draw\');"><b><u>Kabul</u></b></a> yada <a href="javascript:void(0)" 

onclick="chessCommand(\'reject\');"><b><u>Ret</u></b></a>'
,
'draw2' => '%s teklifinize daha cevap vermedi.',
'resign1' => '%s oyunu size armagan etmek istiyor. <a href="javascript:void(0)" 

onclick="chessCommand(\'resign\');"><b><u>Kabul</u></b></a> yada <a href="javascript:void(0)" 

onclick="chessCommand(\'reject\');"><b><u>Ret</u></b></a>'
,
'resign2' => '%s teklifinize daha cevap vermedi',
'unk' => 'Bilinmiyor.',
'' => '',
'' => '',
'' => '',
'' => '',
);

$txt['SMFChess_status'] = array(
=> 'Baslamadi',
=> 'Islemde',
=> 'Sah',
=> 'Sah-Mat',
=> 'Pat',
=> '*Sah-Mat*',
'UNK' => 'Bilinmiyor'
);

?>



wow. Tha was pain.
can somebody make it for german?
i know there is one already but we need a bigger, better version of this language file in german.
Title: Re: SMFChess
Post by: feeble on January 24, 2008, 03:50:20 PM
Quote from: PLAYBOY on January 24, 2008, 02:28:26 PMi made a newer version of Turkish Language file... please replace it with the current one

wow. Tha was pain. can somebody make it for german? i know there is one already but we need a bigger, better version of this language file in german.
Thank you for doing this. Im going to make it my priority over the next couple of days to finish moving the text over. All thats left really is the User settings, board and challenge pages.

There really isnt a problem with what you translating the above, I actually would like to thank you, but I just want to let you know, that later tonight Ill be splitting the Language file into 3 separate files. one for admin area, xml/chat and chess.

Quote from: Paracelsus on January 24, 2008, 01:55:17 PMT
The Scriptaculous effect turned out very well ;) And how did you do to put even the animated gif avatars resized in both length and width AND working as animated in the user search function? Because that's not even possible with the default SMF. Great job!
Oh ok...its just using a <img> tag, so Im pretty sure animated gifs shouldnt stop working. Thank you for your kind words.
I pretty much am using their example autocompleter straight from their site.

Quote from: JaGuR123 on January 24, 2008, 05:48:41 AMLove the New Challenge Bling
But one problem with it ..... if you click the dropdown menu of the person you want to challenge it clicks on the Create Quick Match, you may have to drop the "Create QuickMatch" down a little bit more.
Cheers

Scratch that , maybe it didn't ... will further investigate
Lol, thats lucky, cause I couldn't replicate the issue. I was wondering what browser you were using at the time?
Also I could just solve the issue straight out, by moving the quickmatch button, above the search user box?
Title: Re: SMFChess
Post by: JaGuR123 on January 24, 2008, 04:50:11 PM
Quote from: Feeble on January 24, 2008, 03:50:20 PM
Quote from: JaGuR123 on January 24, 2008, 05:48:41 AMLove the New Challenge Bling
But one problem with it ..... if you click the dropdown menu of the person you want to challenge it clicks on the Create Quick Match, you may have to drop the "Create QuickMatch" down a little bit more.
Cheers

Scratch that , maybe it didn't ... will further investigate
Lol, thats lucky, cause I couldn't replicate the issue. I was wondering what browser you were using at the time?
Also I could just solve the issue straight out, by moving the quickmatch button, above the search user box?

Not sure what happened , but what i did was challenged somebody, and after looking to see if the challenge had worked and not being able to find a reference to the game any where i noticed there was a quickmatch opponent under the quickmatch and just assumed i clicked the quick match instead of challenging somebody, but as it turned out the challenge did work so now i have two games going ;)

Is it possible to have somewhere a "awaiting challenge" or something maybe.

Also  this part of the PM sent to the challenged formating seems skewed, needs a space in front of the url



The message they sent you was:

vrnrnFollow link to accept my Challengernhttp://www.racehorsetalk.com.au/index.php?action=chess;id=11

Cheers
Title: Re: SMFChess
Post by: JaGuR123 on January 24, 2008, 05:02:29 PM
Quote from: Feeble on January 24, 2008, 03:50:20 PM
Also I could just solve the issue straight out, by moving the quickmatch button, above the search user box?

Maybe a good idea, or even move it to the left and swap it with
"Create Quickmatch
Create a Quickmatch
or Browse below
"

Maybe easier , better
Title: Re: SMFChess
Post by: PLAYBOY on January 24, 2008, 07:18:42 PM
Since you are getting so close to get this mod done, i donno if you can do it but would you think about adding tournament (between members) feature?

I mean something like this picture?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.ehow.com%2Fimages%2FGlobalPhoto%2FArticles%2F2001678%2FSpadesTournamentGrid_Full.jpg&hash=1108ddcabe261211f89dff6559d6d1eb83664409)

I think it would be so cool, and members would love it. Also that would keep spending more time on the site.

And one more little request, is there a way you can make admin to make any kinda move in anybodys match. So an admin can make somebody elses move in the middle of the match :)

Thank you for your efford.
Title: Re: SMFChess
Post by: Smith Online on January 24, 2008, 07:44:58 PM
Hi,
Not Been on for a while but have been working on making the pieces look better and the board look more like a chess board and this is what i have come up with i think its great looking board and suits SMFChess well i have decided to give back to you my work for making a great mod Feeble your welcome to complie this with your mod  :)

ScreenShot   ;)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2Fstylishscreen.jpg&hash=b701aa801e6d97afa93943117066ef7249036d72)

Below is how to get your chess board to look like the screen shot above: -

1. Download the stylish chess piece's Here (http://www.leaderless.net/tp-downloads/stylish.zip)
2. Upload the stylish folder to your "Themes/default/SMFChess/pieces/" Folder
3. Goto chess admin settings the change the settings as follows: -

Light Squares: #CD853F

Dark Squares: #8B4513

Border: #573407

Border Text: #CD853F

Chess Piece: stylish

Board Size: 50

Thats it  :D

I have also updated the SMFChess Images: -
black_pawn_small.gif
delete_pawn.gif
slice_rook.gif
white_pawn_small.gif

They are located in the download to use them just upload and replace the files in "Themes/default/SMFChess/images/" Folder.

Let me know what you think

Regards,
Smith Online
Title: Re: SMFChess
Post by: feeble on January 25, 2008, 03:17:05 PM
Quote from: JaGuR123 on January 24, 2008, 04:50:11 PMIs it possible to have somewhere a "awaiting challenge" or something maybe.
Also  this part of the PM sent to the challenged formating seems skewed, needs a space in front of the url
The message they sent you was:
vrnrnFollow link to accept my Challengernhttp://www.racehorsetalk.com.au/index.php?action=chess;id=11
You mean like "You have 2 Awaiting Challenges" on the challenge page, which links back to my page?

Also thanks for reminding me, I keep forgetting about fixing that.

Quote from: PLAYBOY on January 24, 2008, 07:18:42 PMSince you are getting so close to get this mod done, i donno if you can do it but would you think about adding tournament (between members) feature?
I have been keeping this on the low for a while now, mostly so people wouldn't get the wrong impression and also to try and get the basics finished.(like the language files  ;D)
If you can give me a couple of days, I'll put all my notes and scrapes of paper together, decipher the contents and put together a proposal. Then from there, we can discuss it in length.
My biggest gripe with Online Chess Tournaments is their length, so I'm trying to address this, whilst still keeping it competitive and fun.
This also begs the question, Would you prefer a different game then a Tournament addon?

Quote from: PLAYBOY on January 24, 2008, 07:18:42 PM
And one more little request, is there a way you can make admin to make any kinda move in anybodys match. So an admin can make somebody elses move in the middle of the match
This is already in, under "Add Move" in the Control area.

Quote from: Smith Online on January 24, 2008, 07:44:58 PMHi,
Not Been on for a while but have been working on making the pieces look better and the board look more like a chess board and this is what i have come up with i think its great looking board and suits SMFChess well i have decided to give back to you my work for making a great mod Feeble your welcome to complie this with your mod
It has been a long time Smith, hows things?
Thank you very much for putting this together, it means alot.
I've put a download link in the first post(I'm hosting the file, figured this was ok from your scroll)

If I can get your permission, I want to put this Chess Set into the main package.
Just wondering, what license has been applied to these images?

This also gives me an idea for something. If it works out, I'll let you now what that is. ;)
Title: Re: SMFChess
Post by: PLAYBOY on January 25, 2008, 03:36:15 PM
im not good at php, can somebody tell me how can i change the custom bar thing? i mean where is color? which places i can change? which one is size?

or if you can show me an example (with codes and pix) of your custom bar that may be helpful also.
Title: Re: SMFChess
Post by: Smith Online on January 25, 2008, 05:28:19 PM
QuoteIt has been a long time Smith, hows things?

Am ok mate not bad glad to see the mod is doing well hows yourself?

QuoteThank you very much for putting this together, it means alot.

Glad to help anyway i can  ;)

QuoteI've put a download link in the first post(I'm hosting the file, figured this was ok from your scroll)

Cheers ive updated the post with the download link to your host file

QuoteIf I can get your permission, I want to put this Chess Set into the main package.

Your welcome to add them to the main package

QuoteJust wondering, what license has been applied to these images?

The chess pieces are open source for anyone to use i first found them as part of a chess package and contacted the ower to ask if i could use them myself he said there was no need to ask as there were freely avalible to anyone anyway.  :)


I have found one small bug in SMFChess not sure if your getting this as not reported all it is my admin name does not display the last letter in the watching area dont really bother me but thought i would mention.

I have also thought of one more addtion which i think would make the chess board look even better and i have made part of it. Its chess board tiles maybe in the chess admin section you could add a section select chess board tiles. I think this would really finish this mods looks.


Belows are the tiles i have : -

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Fdark.png&hash=153ab98dd08736dfca623d0594645cde3b444e48) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Flight.png&hash=700c23dd99686fd6a00bfd3ed50c0dcf64329772) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Fgreen.png&hash=2c16f4dc6c906fe32c2ab38a1c356bab64e33018) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Fred.png&hash=b99b4b185fa2804f3232e88bdf4d6529696e1709) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Fyellow.png&hash=69b6acf1777dc1547f93650cfbc672ec9cb2762d)

DOWNLOAD ZIP PACKAGE CHESS TILES HERE (http://www.smithonline.karoo.net/MYFILES/chess/chess%20tiles.zip)

I really think this would make this great mod look great too  :)

One more chess piece set coming soon

Best Regards,
Smith Online
Title: Re: SMFChess
Post by: Assistance on January 25, 2008, 06:22:41 PM
as long as u create the admins can set up 2 players to play, not just the quick match
people can set up tournaments on their own

if u do go ahead with a new game, u will get more people interested
and if the code other then game play is the same, u will have more hands on the mod.



I like the idea of new pieces, new tiles, jiggle move, etc
personally I think they would best fit as an add-on
and not as part of the main package.

SMF has always been about non bloating software
its always nice to have 'everything'
choice should always be part of that nice to have ....
IMO
Title: Re: SMFChess
Post by: Smith Online on January 25, 2008, 06:37:52 PM
QuoteI like the idea of new pieces, new tiles, jiggle move, etc
personally I think they would best fit as an add-on
and not as part of the main package.

SMF has always been about non bloating software
its always nice to have 'everything'
choice should always be part of that nice to have ....
IMO

I undestand what your saying but 5 tile images of 50 x 50 is hardly going to make any difference to loading time but would make a great difference to the look but there could be switched off in admin maybe and then just use the normal html colours instead of tiles.

Regards,
Smith Online
Title: Re: SMFChess
Post by: Assistance on January 25, 2008, 06:56:58 PM
apparently you don't

turning off/on that makes sense, for 1 idea

but that is not the issue of making things bloated
its when u keep adding ....1 more
the shop and arcade have mod packages to add on, for this reason
Title: Re: SMFChess
Post by: Smith Online on January 25, 2008, 07:29:29 PM
Quoteapparently you don't

turning off/on that makes sense, for 1 idea

but that is not the issue of making things bloated
its when u keep adding ....1 more
the shop and arcade have mod packages to add on, for this reason

Bloated to me means loading times being slow due to too much to load (not download size)

Yes if there constantly new one's added all the time maybe then yes you could have a separate chess piece addon download to add additional chess pieces.

But at the moment with the one i have just done and one extra am doing i dont think there would be the need as a chess piece set for SMFChess is only 48.0 KB max.

Regards,
Smith Online
Title: Re: SMFChess
Post by: PLAYBOY on January 26, 2008, 10:41:49 AM
QuoteWould you prefer a different game then a Tournament addon?
Quote

I would prefer a tournament addon.



Title: Re: SMFChess
Post by: Godsongz on January 26, 2008, 05:05:05 PM
I'm planning on doing a tournament on my site, but due to the normal "correspondence chess" nature of SMFChess, there are some things to be considered.  In the chart that Playboy posted on the 24th, there were 4 rounds of play before the tournament was over.  I don't know how long games take for some of the rest of you, but a decent game of SMFChess against a skilled opponent will often take a month to complete.  So, 4 months to complete a tourney?  I don't think so.

I'm considering making my tourney a "live" tournament.  Players who sign up for it have to agree to be online for the duration of the tourney, or at least until they're knocked out.  With timed games of say 30 minutes, a 15 minute break between rounds, we could do a tourney like the one in the chart in 3 hours.  Sounds better than 4 months.  Any thoughts?
Title: Re: SMFChess
Post by: weightman on January 26, 2008, 06:22:08 PM
Fantastic mod. It installed perfectly with just a manual edit to the index.template.php which is custom on my site. But, the "Whos' Watching" feature is not displaying correctly on my site (bottom right of screen), perhaps because my site is wrapped inside a Mambo CMS and is in a fixed template (width)?

Screenshot: http://img176.imageshack.us/img176/820/chesssz9.png

Link: http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39&action=chess;sa=current

Any way to correct it? Thanks very much for the great mod.
Title: Re: SMFChess
Post by: feeble on January 27, 2008, 07:24:10 AM
Sorry for my delayed response, it was Australia day yesterday  :P

Quote from: PLAYBOY on January 25, 2008, 03:36:15 PMim not good at php, can somebody tell me how can i change the custom bar thing? i mean where is color? which places i can change? which one is size? or if you can show me an example (with codes and pix) of your custom bar that may be helpful also.
Either drop me an email (http://mailto:[email protected]) or head over to SMFHelper (http://www.smfhelper.info/forum/index.php) where some talented people can give you help on getting the bar to look nice with your theme

Quote from: Smith OnlineI have found one small bug in SMFChess not sure if your getting this as not reported all it is my admin name does not display the last letter in the watching area dont really bother me but thought i would mention.
Quote from: weightmanFantastic mod. It installed perfectly with just a manual edit to the index.template.php which is custom on my site. But, the "Whos' Watching" feature is not displaying correctly on my site (bottom right of screen), perhaps because my site is wrapped inside a Mambo CMS and is in a fixed template (width)?
These two issues are actually related.
A while back, long names were causing issues with the board. Putting the pieces out of alignment.
So what was done to solve this was to limit the character length of the usernames.

What ill do to fix both of these issues, is that I'll increase the width of the Watching Column and increase the character limit.

To be honest thou, I have been thinking about giving an overhaul to the Chess Board page, but for the moment I stick with a quick solution.


Quote from: Smith Online
I have also thought of one more addtion which i think would make the chess board look even better and i have made part of it. Its chess board tiles maybe in the chess admin section you could add a section select chess board tiles. I think this would really finish this mods looks.
I have been thinking about this for the last couple of days.
I have a few concerns with implementing it at the moment. The main reason is that, its not a main priority at the moment, and I would prefer to focus on other things for the moment.
I would like to revisit this thou at a future date, who knows thou I said no to effects and highlighting when it was first suggested.

Quote from: Smith OnlineOne more chess piece set coming soon
Very nice, cant wait to see what you come up with.

Quote from: GodsongzI'm planning on doing a tournament on my site, but due to the normal "correspondence chess" nature of SMFChess, there are some things to be considered.  In the chart that Playboy posted on the 24th, there were 4 rounds of play before the tournament was over.  I don't know how long games take for some of the rest of you, but a decent game of SMFChess against a skilled opponent will often take a month to complete.  So, 4 months to complete a tourney?  I don't think so.

I'm considering making my tourney a "live" tournament.  Players who sign up for it have to agree to be online for the duration of the tourney, or at least until they're knocked out.  With timed games of say 30 minutes, a 15 minute break between rounds, we could do a tourney like the one in the chart in 3 hours.  Sounds better than 4 months.  Any thoughts?
This is a large concern of mine as well. I would love to know how that folds out.
Title: Re: SMFChess
Post by: Smith Online on January 27, 2008, 07:54:06 AM
Hi,
Another Chess piece set with maching board colours :) this one's better than the last i think.

ScreenShot   ;)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.leaderless.net%2Ftp-downloads%2Fpreview%2FScreenshot_polished.jpg&hash=f04fd0fb043e6a28ec3176ddf95a74204d882153)

Below is how to get your chess board to look like the screen shot above: -

1. Download the Polished chess piece's Here (http://www.leaderless.net/tp-downloads/Chess_Piece_Sets/Polished.zip)
2. Upload the Polished folder to your "Themes/default/SMFChess/pieces/" Folder
3. Goto chess admin settings the change the settings as follows: -

Light Squares: #FFFAF0

Dark Squares: #666666

Border: #222222

Border Text: #FFFAF0

Chess Piece: Polished

Board Size: 50

Thats it  :D

I have also updated the SMFChess Images: -
black_pawn_small.gif
delete_pawn.gif
slice_rook.gif
white_pawn_small.gif

They are located in the download to use them just upload and replace the files in "Themes/default/SMFChess/images/" Folder.

Let me know what you think

Feeble your welcome to add this last set to your main package

Regards,
Smith Online
Title: Re: SMFChess
Post by: Godsongz on January 27, 2008, 09:07:51 AM
Very nice Smith, I like Polished even better than Stylish.  I just set this set and colors as my site's default, with the exception of #666666 for the dark squares.  There's still plenty of contrast between the light and dark squares, but now the dark pieces stand out a lot more.
Title: Re: SMFChess
Post by: weightman on January 27, 2008, 10:47:25 AM
Quote from: feebleWhat ill do to fix both of these issues, is that I'll increase the width of the Watching Column and increase the character limit.

Thats fantastic. Perhaps it would help to just move it above or below the chat window and let it take the full width? I have another suggestion for long term development. It would be nice to display some simple chess stats in the info center, like how many games are active or even have an SSI block so we could display such info on our main site (CMS).

Don't mean to be demanding though, it is a fantastic feature just the way it is. :)

Thanks!
Title: Re: SMFChess
Post by: Smith Online on January 27, 2008, 04:56:37 PM
QuoteVery nice Smith, I like Polished even better than Stylish.  I just set this set and colors as my site's default, with the exception of #666666 for the dark squares.  There's still plenty of contrast between the light and dark squares, but now the dark pieces stand out a lot more.

Thanks  ;)

I agree yes #666666 is better for dark squares i updated the post with your suggestion and new screen shot.

QuoteTo be honest thou, I have been thinking about giving an overhaul to the Chess Board page, but for the moment I stick with a quick solution.

I saw this screenshot of another online chess game that you may recognize i think the layout is good just maybe the users playing at the top rather than bottom & then under chess board you could show pieces taken. What you think??

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smithonline.karoo.net%2FMYFILES%2Fchess%2Fscreenshot79.jpg&hash=76ad026ebfd13225c2f62c9e51adeb862ad9651b)

Best Regards,
Smith Online
Title: Re: SMFChess
Post by: feeble on January 28, 2008, 02:43:51 PM
Quote from: Smith OnlineAnother Chess piece set with maching board colours :) this one's better than the last i think.
That was quick. Once again thanks and added to the first post.

Quote from: weightman
Thats fantastic. Perhaps it would help to just move it above or below the chat window and let it take the full width? I have another suggestion for long term development. It would be nice to display some simple chess stats in the info center, like how many games are active or even have an SSI block so we could display such info on our main site (CMS).
It was initially like this, going across the full weight of the screen.
Im working on a new design, and Ill share it will you soon enough, and you can let me know if its any good.
(P.S - Your more then welcome as well, to put out a design. I'm not very artistic. I'm lousy at stickmen :( )

Yeah I think that would be cool as well.
Should be simple enough. What I'm thinking of the SSI function, is that instead of echo'ing out data, the function just returns stats in an array. And then users can do what they want with it, be it in a tp block or somewhere on their site.
That means I can make up a simple TP block code, if a user requires it. And they can go from there.
Plus it means I don't have to worry about languages  :P

Quote from: Smith OnlineI saw this screenshot of another online chess game that you may recognize i think the layout is good just maybe the users playing at the top rather than bottom & then under chess board you could show pieces taken. What you think??
Some Chess right?
Yeah I like the design, it is simple and elegant.
Let me draw something up, and we can go from there.
Your more then welcome to do the same, just not a straight rip from Some Chess, Jon Link might get a bit annoyed.

Small Update on progress towards next patch:
Been playing around with selecting the chess set in the admin and user settings area.
I've added png file support. Which I much prefer, can't believe I waited this long to add it in.

Also added a scrolling box on the right side of selecting chess sets.
When you select a set, it will display a preview on the chess set, and display the contents of a Info.txt if it finds one.
What this means is that, you can have a small description or information regarding this chess set, who put it together, where it came from, history regarding the pieces etc.
As well as recommendations to use as your chess board colors, to go with the chess pieces.
Making this simple as well, so the users just has to click, and the colors are automatically adjusted.

new colourPicker
Title: Re: SMFChess
Post by: feeble on January 30, 2008, 01:11:36 AM
Ok uploaded a new version.
This will probably be the last big update before release.
-Language files are done.&nbsp; :D There is no super grin, so this will do.
Only thing is that, I can't decide on redoing the ChessAdmin language file. More then likely I won't.
If I left any out, let me know but I think I caught all language snippets.
-New Colourpicker:
*Solved, uploaded a new build with fix for ie
Actually this is a lie. New colourPicker for firefox uers. About 30min ago, I wanted to make sure it was working in IE. To my surprise IE aborted the page as it tried to load. I have a feeling its to do with IE not liking dom transveral within a <form> tag under certain conditions or something. Its weird(I don't like IE so I don't mind all that much) but I'll get it working eventually or find a different one.
Also it seems to slow page loading, so more then likely I'll replace it with something else in another patch.

-Added png file support.
-Added native image size support.(0 in Piece Size in admin area)
Since we are starting to get different Chess Piece sizes I thought this would be a good idea.
-Added Chess Set Information Box
a scrolling box on the right side of selecting chess sets.
When you select a set, it will display a preview on the chess set, and display the contents of a Info.txt if it finds one.
What this means is that, you can have a small description or information regarding this chess set, who put it together, where it came from, history regarding the pieces etc.
As well as recommendations to use as your chess board colours, to go with the chess pieces.
Making this simple as well, so the users just have to click, and the colours are automatically adjusted.

P.S.: I was pretty lazy with the Info.txt files. So I'll fix that up later, or if anyone wants to create a narrative for a chess set they like, I would love to hear it. Possible history, maybe a good moment you had with it. Crushing Victory?

-Fixed PM's
Should be right now, no more \r\n etc.
-Added a 3 new Chess Sets to the main package
Stylish and Polish put together by Smith-online
and
a tribute Chess Set to Thinking Machine (http://www.turbulence.org/spotlight/thinking/chess.html) (Haven't got permission for this yet as I haven't received an email back yet, but I have high hopes)
Also the TM Chess Set is the first to use png image type. So it looks better, and is overall better in every way.
My new fav as well, I think it looks great.
-Added Captured Pieces
Simplistic at best. Basically just works out whats missing, and goes from there
-few other things here and there

Note: Ive amended Sources/Subs.php if you are going to manually update.
Just the create_SMFChess function near the end of file. Had to update to allow for png files type. But I've kept the size at 33px. So its not to large when you put it in a post.

Download link is in the first post (http://www.simplemachines.org/community/index.php?topic=129749.0)


So whats left to do?
-add in the manual add game (this will be actually combined with the import)
-few adjustments to the elo recount.
-Possible board layout change. Haven't decided just yet.
-Tidy the files

Any issues with the release let me know.
Title: Re: SMFChess
Post by: Smith Online on January 30, 2008, 02:21:18 PM
The new update sounds great Carnt wait to try it out ;)

But i carnt install using package manager anyone having same problem below is whats wrong: -

I get this when installing (everything seems fine)

1. Execute Code installScript.php 
2. Extract Tree ./Themes/default/SMFChess 
3. Extract File ./Sources/Chess.php 
4. Extract File ./Sources/ChessXml.php 
5. Extract File ./Sources/ChessChat.php 
6. Extract File ./Sources/ChessAdmin.php 
7. Extract File ./Sources/ChessFunctions.php 
8. Extract File ./Themes/default/languages/Chess.english.php 
9. Extract File ./Themes/default/languages/ChessXml.english.php 
10. Extract File ./Themes/default/languages/ChessAdmin.english.php 
11. Extract File ./Themes/default/ChessAdmin.template.php 
12. Extract File ./Themes/default/Chess.template.php 
13. Extract File ./Themes/default/ChessXml.template.php 
14. Extract File ./Themes/default/ChessChat.template.php 
15. Extract File ./Themes/default/ChessCustom.template.php 
16. Execute Modification ./index.php Test successful
17. Execute Modification ./Sources/Load.php Test successful
18. Execute Modification ./Sources/ManagePermissions.php Test successful
19. Execute Modification ./Sources/Subs.php Test successful
20. Execute Modification ./Themes/default/index.template.php Test successful
21. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
22. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
23. Execute Modification ./Themes/default/languages/Who.english.php Test successful
24. Execute Modification ./Themes/default/languages/index.english.php Test successful

But nothing to do with chess works when you uninstall i get :- (as if nothing installed in the first place?)


1. Execute Modification ./index.php Test failed  
2. Execute Modification ./Sources/Load.php Test failed  
3. Execute Modification ./Sources/ManagePermissions.php Test failed  
4. Execute Modification ./Sources/Subs.php Test failed  
5. Execute Modification ./Themes/default/index.template.php Test failed  
6. Execute Modification ./Themes/default/languages/Errors.english.php Test failed  
7. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test failed  
8. Execute Modification ./Themes/default/languages/Who.english.php Test failed  
9. Execute Modification ./Themes/default/languages/index.english.php Test failed  
10. Delete Tree ./Themes/default/SMFChess 
11. Delete File ./Sources/Chess.php 
12. Delete File ./Sources/ChessXml.php 
13. Delete File ./Sources/ChessChat.php 
14. Delete File ./Sources/ChessAdmin.php 
15. Delete File ./Sources/ChessFunctions.php 
16. Delete File ./Themes/default/languages/Chess.english.php 
17. Delete File ./Themes/default/languages/ChessXml.english.php 
18. Delete File ./Themes/default/languages/ChessAdmin.english.php 
19. Delete File ./Themes/default/ChessAdmin.template.php 
20. Delete File ./Themes/default/Chess.template.php 
21. Delete File ./Themes/default/ChessXml.template.php 
22. Delete File ./Themes/default/ChessChat.template.php 
23. Delete File ./Themes/default/ChessCustom.template.php

But old previous packages worked fine?  :'(

am using smf 1.1.4 but all other packages installed fine on 1.1.4

Regards,
Smith Online
Title: Re: SMFChess
Post by: Godsongz on January 30, 2008, 02:36:01 PM
Quote from: Feeble on January 30, 2008, 01:11:36 AM
Note: Ive amended Sources/Subs.php if you are going to manually update.
Just the create_SMFChess function near the end of file. Had to update to allow for png files type. But I've kept the size at 33px. So its not to large when you put it in a post.

Thanks for this head's up.  I'd love it if you could do this for every release, for those of us who always do manual installs/updates, it's very helpful to know if there are changes to SMF files other than the chess files.

One request, for the captured pieces, could they be sorted into 2 columns for white and black pieces?

Also, I had the following error with the installScript.php

Quote from: installScript.phpDatabase Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE value='F8E1B8'' at line 1
File: /home3/godsongz/crossfire-www/covenant/installScript.php
Line: 90 

I never saw that before.
Title: Re: SMFChess
Post by: Godsongz on January 30, 2008, 04:26:12 PM
Hmm, I think I have another bug here with the latest version.  As always, it's possibly (probably) my installation that is the problem, since I do manual edits.

The issue is, after making a chess move, I have to refresh the page to see the move.  Also, if I end a game as administrator and grant a win to one side or the other, I have to refresh the screen to see that the game has ended.  This started today after installing the latest version.  Later tonight when I have more time I'm going to go over the install again and see if I missed anything, but based on what I'm seeing, does anything immediately come to mind?  Could it have anything to do with the error I saw when running the new installScript.php?
Title: Re: SMFChess
Post by: feeble on January 30, 2008, 06:09:57 PM
Quote from: Smith OnlineThe new update sounds great Carnt wait to try it out ;)

But i carnt install using package manager anyone having same problem below is whats wrong: -

I get this when installing (everything seems fine)
Odd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Quote from: GodsongzThanks for this head's up.  I'd love it if you could do this for every release, for those of us who always do manual installs/updates, it's very helpful to know if there are changes to SMF files other than the chess files.

One request, for the captured pieces, could they be sorted into 2 columns for white and black pieces?
No worries, will do.
Ok sure, ill sort them into 2 columns. I was also thinking of instead of showing every piece, if there is more then 2. just have a 2x in front.

Quote from: GodsongzAlso, I had the following error with the installScript.php
Ignore that. I've uploaded new package to stop anyone else from getting the same.
Basically it was to fix up a color issue that was going to happen with this update.

Quote from: GodsongzThe issue is, after making a chess move, I have to refresh the page to see the move.  Also, if I end a game as administrator and grant a win to one side or the other, I have to refresh the screen to see that the game has ended.  This started today after installing the latest version.  Later tonight when I have more time I'm going to go over the install again and see if I missed anything, but based on what I'm seeing, does anything immediately come to mind?  Could it have anything to do with the error I saw when running the new installScript.php?
Hmm, bit odd. Hows your forums error log?
Also did you also(i should of mentioned this) update the other files as well
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder - SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Reason I ask, is because I can browse the history of any games on your site and I'm not getting any returned errors in my browser. Its like its stalling or something.
Title: Re: SMFChess
Post by: feeble on January 30, 2008, 09:19:20 PM
Small Update - I was going to wait a couple of days but whatever

Chessmaster got released yesterday on Live. I highly recommend checking it out. Its a very nicely done Chess program, the AI is pretty solid as well I hear.
I was taking a look at it yesterday, and its got some pretty cool features that I thought would be good to bring across.

One of those is Gametypes (Variations on the rules) for Chess.
Example:(And this is straight from the "How to Play" in Chessmaster)
-Losing Chess : The Goal in Losing Chess is to lose all your pieces before your opponent does. Capturing is compulsory and there is no check or checkmate. Kings can be taken at any time. Castling is not allowed.

-Dark Chess : is a devious and interesting variant of chess, in which the battlefield is covered by fog of war. All of your opponent's pieces are invisible unless when threatened by one of your own. The goal in Dark Chess is simply to capture the enemy king. There is no check or checkmate, so be sure to keep your king safe since he can be captured at any time.

-Extinction Chess : players in the game have to capture all of their opponent's pieces of any particular type. Losing your King, Queen, both Rooks, Both Bishop, Both Knights or all eight pawns will result in defeat. Check and checkmate do not apply. The King can be captured at any time.

To be honest, I'm mostly interested in Dark Chess and Extinction as it promotes greater defense and turning defense into offense.

Also I thought their board layout is very well done

I just managed to replicate the Dark Chess, and the other two just need to be checked at end of move so it wont be long.
At any rate, I think I just gonna be taking a look at this over the next couple of days.
Title: Re: SMFChess
Post by: weightman on January 30, 2008, 09:54:45 PM
Quote from: feebleWhat I'm thinking of the SSI function, is that instead of echo'ing out data, the function just returns stats in an array. And then users can do what they want with it, be it in a tp block or somewhere on their site. That means I can make up a simple TP block code, if a user requires it. And they can go from there. Plus it means I don't have to worry about languages  :P
Sounds cool. Besides active games, the names of people in active games might be interesting in a ssi module/block. Your mod works very well. I really like the addition of the captured pieces, though I haven't upgraded to the the newest version with the feature yet, and I look forward to seeing your future refinements.

Thanks very much.
Title: Re: SMFChess
Post by: Godsongz on January 30, 2008, 10:35:41 PM
Quote from: Feeble on January 30, 2008, 06:09:57 PM
Hmm, bit odd. Hows your forums error log?
Also did you also(i should of mentioned this) update the other files as well
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder - SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Reason I ask, is because I can browse the history of any games on your site and I'm not getting any returned errors in my browser. Its like its stalling or something.

Yes, I recopied all the files just now and I still have the issue.  After a move is made, say an opening like pawn to e4, the pawn will snap back to it's starting position and never show the move to e4.  If you try to move again it says "Not your turn".  If you refresh, you see the pawn has moved to e4.

Ooo, just found this...  after a move and before a refresh, there is an "Error on page" and if I pull up the details I see this...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrossfire.org%2Fimages%2Fchesserror.jpg&hash=db3000164ee4ad5cf16170e339e9bee64e4ac7f1)

Object required?

I'm going to double-check the edits of the non-chess php files.

EDIT:  thanks to some late-night editing and troubleshooting by feeble, my errors are gone and my users are happy :)  Thanks feeb.
Title: Re: SMFChess
Post by: feeble on January 31, 2008, 12:13:11 AM
Ok if you are having the same as Godsongz, I've just fixed it.
Just get the updated ChessXml.php from the zip and put it in your Sources Folder

The problem was to do with a php5 function, so it should only affect sites that are using php4.

Apologies, but atleast its solved.
Title: Re: SMFChess
Post by: Smith Online on January 31, 2008, 07:19:22 AM
QuoteOdd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Nope no mods in the mean time

I have now managed to install by checking default theme folder and smf chess was still there with files inside so i removed the folder then install and now its installed .

But one more problem its installed and works but i have the old colour picker and no new options e.g the info.txt from pieces or preview of pieces ?.   :'(

If you still want my index.php i will pm if needed

P.s I installed on my other site and everythings fine there must be something to do with last install maybe database info not updated?

Regards,
Smith Online
Title: Re: SMFChess
Post by: JaGuR123 on January 31, 2008, 08:08:34 AM
Quote from: weightman on January 30, 2008, 09:54:45 PM
I really like the addition of the captured pieces, though I haven't upgraded to the the newest version with the feature yet, and I look forward to seeing your future refinements.

Thanks very much.

I don't think he has added this feature yet ...... unless i have missed something, although i do believe it's not far away  :D
Title: Re: SMFChess
Post by: brianjw on January 31, 2008, 06:20:25 PM
Wow those features look nice feeble. :) I can't wait until 1.0 :)

brianjw
Title: Re: SMFChess
Post by: feeble on January 31, 2008, 08:34:26 PM
Quote from: Smith Online on January 31, 2008, 07:19:22 AM
QuoteOdd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Nope no mods in the mean time

I have now managed to install by checking default theme folder and smf chess was still there with files inside so i removed the folder then install and now its installed .

But one more problem its installed and works but i have the old colour picker and no new options e.g the info.txt from pieces or preview of pieces ?.   :'(

If you still want my index.php i will pm if needed

P.s I installed on my other site and everythings fine there must be something to do with last install maybe database info not updated?
Umm lol, pretty odd.
Yeah send me your index or anyone of those failed files to [email protected] and ill take a look


Quote from: Jagur123I don't think he has added this feature yet ...... unless i have missed something, although i do believe it's not far away  :D
Capturing Display has been implemented already ;)

Quote from: brianjwWow those features look nice feeble. :) I can't wait until 1.0 :)
Thanks brianjw, me to.

In saying this, and I do apologies for the short time between the last update.

I've uploaded a new version
-Made a few adjustments to the javascript, hopefully should load a little quicker on slower connections
-Added two Chess variants (moreinfo)
--Dark Chess : is a devious and interesting variant of chess, in which the battlefield is covered by fog of war. All of your opponent's pieces are invisible unless when threatened by one of your own. The goal in Dark Chess is simply to capture the enemy king. There is no check or checkmate, so be sure to keep your king safe since he can be captured at any time.
--Extinction Chess : players in the game have to capture all of their opponent's pieces of any particular type. Losing your King, Queen, both Rooks, Both Bishop, Both Knights or all eight pawns will result in defeat. Check and checkmate do not apply. The King can be captured at any time.

Give them ago and tell me what you think. I'm using strict rules for Dark Chess, so if its to difficult or you think it needs some adjustment, let me know.

I'm looking to add atleast 1 or 2 more. So if you know of a good Chess Variant, that doesn't change the rules to much and compliments/gives strength to Chess let me know.

-Added text to InstallScript.php, so you know whats its doing.
-Updated captured piece Section: now its much more compact and has been separated columns


Also I've decided against redoing the layout for the Chess board.
Mainly cause I'm lazy, but I also want to get this released asap.


Note: Made small adjustments to Sources/Subs.php if you are going to manually update.
Just the create_SMFChess function near the end of file. So you can't view games under Dark Chess and cheat.

Also added a few new text lines to language files Chess and ChessXml

Download link is in the first post

So whats left to do?
-add in the manual add game (this will be actually combined with the import)
-few adjustments to the elo recount.
-Tidy the files

Any issues with the release let me know.
Title: Re: SMFChess
Post by: JaGuR123 on January 31, 2008, 10:07:48 PM
Ok , i need to follow this thread closer , and keep my SMF Chess more upto date  ;)

Great Job Feeble, i really think captured pieces is your best work  :P
Title: Re: SMFChess
Post by: Godsongz on January 31, 2008, 10:55:53 PM
I've hardly had it installed for an hour, but I think you might want to make an adjustment for the next release.  You're going to need to identify when a game is a variant.  I currently could challenge someone to a variant game, and they'd never know until after they've accepted.  Dark Chess should be easy to identify (once people are used to it) when only half the pieces show up on the board, but there's NO way to know you're in an Extinction match, and the rules specific to the variant make a big difference in how you need to play.  It should be identified on the game board itself, and on all the picklists where the game appears.

I love having some variants there though, and I still owe the the rule sheet for another.
Title: Re: SMFChess
Post by: PLAYBOY on February 01, 2008, 12:09:20 PM
There are so many language files, which one am i gonna translate?
Is there anyway you can put all the things in one language file or give me a list of all words so i can translate them.

after that please tell me where am i gonna put which files in my custom theme?
Title: Re: SMFChess
Post by: feeble on February 02, 2008, 04:52:54 PM
Sorry for my delayed response

Godsongz - Ill get this sorted asap. If you can wait couple of days; as I want to make a few other changes.

PLAYBOY - They are done, but I'm still adding to them. If you can give me a about a week I'll work something out, that should make it easy enough.
Title: Re: SMFChess
Post by: lordevil on February 02, 2008, 08:17:39 PM
Hats off to you Feeble, the chess mod is a hit at my site we currently have a chess tourney going on and everyone loves it. Awesome job. Thanks.
  That is one feature everyone wanted was the pieces won to show up  on the side somewhere. Great job.

Do I have to reinstall to the newer version or is there just one folder I need to overwrite to show the pieces taken?
Title: Re: SMFChess
Post by: feeble on February 02, 2008, 10:18:37 PM
Quote from: lordevil on February 02, 2008, 08:17:39 PM
Hats off to you Feeble, the chess mod is a hit at my site we currently have a chess tourney going on and everyone loves it. Awesome job. Thanks.
  That is one feature everyone wanted was the pieces won to show up  on the side somewhere. Great job.

Do I have to reinstall to the newer version or is there just one folder I need to overwrite to show the pieces taken?

Glad you like it, If there is anything else you or your members have been wanting for a while let me know.

Also can you let me know how you tourniment goes? I took a quick look at your site and you have a teamed tourniment?
Also you forum looks really good, so nice work lol.


Its pretty simple to updates if you find that you are unable to uninstall for one reason for another.
Basically just unzip chess.zip, and just copy over, I normally make a few adjustments in each one, so its worth just getting a fresh copy over.
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder (to your default theme directory)- SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Also just upload the Installscript.php to your forum directory, and ran it through a browser. It will let you know whats its changed, then just delete it.

Then just check the manual theme edits
http://www.leaderless.net/PackageParser/index.php?show=theme
NOTE: These changes are pretty much final, the only thing thats really change in a long while is the create_SMFChess function in Subs.php
Title: Re: SMFChess
Post by: lordevil on February 03, 2008, 03:31:46 AM
one question, is there anyway to impliment a timer of 1 minute or 2 minutes, some of these guys bore me into a bad game. I like quick thinking and I attack attack attack but when you wait for 6 minute moves you tend to lose interest..lol If they do not move in the matter of time they lose their turn. I love that Idea. The current is set for 1 to 3 days.

Thanks for the compliment
We took our best 8 and divided them up, took the next best 4 and divided them up and the worst 4. Its a lot of fun, we have to play each team once as an official game. The team with the most wins win.
Title: Re: SMFChess
Post by: lordevil on February 03, 2008, 03:33:29 AM
Oh and since you had to ask..lol
QuoteGlad you like it, If there is anything else you or your members have been wanting for a while let me know
A poker game featuring chips, 5 card draw, 7 card stud something of that nature. I know a lot of people that would pay for that mod.
Title: Re: SMFChess
Post by: PLAYBOY on February 03, 2008, 08:14:51 PM
QuotePLAYBOY - They are done, but I'm still adding to them. If you can give me a about a week I'll work something out, that should make it easy enough.

Sure.
Title: Re: SMFChess
Post by: feeble on February 04, 2008, 07:45:50 AM
Quote from: lordevil on February 03, 2008, 03:31:46 AM
one question, is there anyway to impliment a timer of 1 minute or 2 minutes, some of these guys bore me into a bad game. I like quick thinking and I attack attack attack but when you wait for 6 minute moves you tend to lose interest..lol If they do not move in the matter of time they lose their turn. I love that Idea. The current is set for 1 to 3 days.
I have looked into this.
Due to a few limitations and issues that crop up when the timer gets that short I haven't put it in just yet.
But I won't say it will never happen, just not yet. Sorry.

Quote from: lordevil on February 03, 2008, 03:31:46 AM
Thanks for the compliment
We took our best 8 and divided them up, took the next best 4 and divided them up and the worst 4. Its a lot of fun, we have to play each team once as an official game. The team with the most wins win.
Cool, sounds good, I'll be really interested in how it turns out.

Quote from: lordevil on February 03, 2008, 03:33:29 AM
A poker game featuring chips, 5 card draw, 7 card stud something of that nature. I know a lot of people that would pay for that mod.
Umm, lol. Ill leave the answer for this for some other day.



I've put out a small update, its not required really, judge for yourself.
-Compressed most Javascript files to increase page loading speed.
-Added warning to Dark chess games to inform of crippled information including export, move history and move log.
-Added column "Variant" to challenge, my page, current and finished.
-In "Challenge" PM, have included variant and move clock into pm, so opponent knows what he is accepting.

download link is in first post (http://www.simplemachines.org/community/index.php?topic=129749.0)
Title: Re: SMFChess
Post by: Paracelsus on February 04, 2008, 08:26:10 AM
Quote from: Feeble on January 27, 2008, 07:24:10 AM
Quote from: GodsongzI'm planning on doing a tournament on my site, but due to the normal "correspondence chess" nature of SMFChess, there are some things to be considered.  In the chart that Playboy posted on the 24th, there were 4 rounds of play before the tournament was over.  I don't know how long games take for some of the rest of you, but a decent game of SMFChess against a skilled opponent will often take a month to complete.  So, 4 months to complete a tourney?  I don't think so.

I'm considering making my tourney a "live" tournament.  Players who sign up for it have to agree to be online for the duration of the tourney, or at least until they're knocked out.  With timed games of say 30 minutes, a 15 minute break between rounds, we could do a tourney like the one in the chart in 3 hours.  Sounds better than 4 months.  Any thoughts?
This is a large concern of mine as well. I would love to know how that folds out.

About tournaments, I think things should be done in a different way, a little bit more similar to soccer.

For example, if you created a "cup-like" tournament with 1/8 finals, 1/4 finals and so on, then it would make much more sense if the whole round games would take place at a certain day or days and then the next round another day and so on...
Imagine a tournament with 16 players in 2 weeks - 1/8 finals at Day 1-2, 1/4 finals at Day 5-6, 1/2 finals at Day 9-10 and final at Day 13-14. All the games would have 48h limit... if tied after that limit, it could be created an extra game in the days between to untie and eventually insert untie criteria (like ELO ranking, number of captured pieces, etc)... I think this could be feasible.

Another thing is how to setup a tournament using software that automatically makes the draft and lays the tournament ladder... I really have no idea how to do this and the only thing similar that I've seen working very well was on 'Hattrick's cup management applications, like this one: http://www.databased.at/hattrick/cupmanager (in features there's this example with calendar and everything).

But a tournament feature would be an excellent add-on, I must say.
Title: Re: SMFChess
Post by: Godsongz on February 04, 2008, 12:09:45 PM
I wonder if Chess960 games should be categorized as a variant and put under that menu instead of a checkbox of their own.  I don't ever forsee wanting to combine variants like having a "Dark/960" game.  That would really be nuts.
Title: Re: SMFChess
Post by: feeble on February 05, 2008, 08:01:19 AM
Quote from: Paracelsus on February 04, 2008, 08:26:10 AM
For example, if you created a "cup-like" tournament with 1/8 finals, 1/4 finals and so on, then it would make much more sense if the whole round games would take place at a certain day or days and then the next round another day and so on...
Imagine a tournament with 16 players in 2 weeks - 1/8 finals at Day 1-2, 1/4 finals at Day 5-6, 1/2 finals at Day 9-10 and final at Day 13-14. All the games would have 48h limit... if tied after that limit, it could be created an extra game in the days between to untie and eventually insert untie criteria (like ELO ranking, number of captured pieces, etc)... I think this could be feasible.
Thanks for sharing your idea, and I actually really like it. I definitely look into it.
And I suppose prior, to get to decide on the finalists, all players have to go through a Round Robin tournament (http://en.wikipedia.org/wiki/Round-robin_tournament); split into maybe 5 player groups?

Quote from: Paracelsus on February 04, 2008, 08:26:10 AM
Another thing is how to setup a tournament using software that automatically makes the draft and lays the tournament ladder... I really have no idea how to do this and the only thing similar that I've seen working very well was on 'Hattrick's cup management applications, like this one: http://www.databased.at/hattrick/cupmanager (in features there's this example with calendar and everything).
I have no idea how to make a tournament ladder either lol.
I've been taking a look at Hattricks(if only they would let me download and look at the source files  :'(), but its given me lots of info and ideas on how they created it, so thank you.

Quote from: Godsongz on February 04, 2008, 12:09:45 PMI wonder if Chess960 games should be categorized as a variant and put under that menu instead of a checkbox of their own.  I don't ever forsee wanting to combine variants like having a "Dark/960" game.  That would really be nuts.
Was thinking about this as well. So... done.


Update:
Nearly ready for release. Been ticking off the to-do list today.
By my count, all that's left is to tidy the files and submit to SMF.
So I'm just going to tidy everything up over the next couple of days.
There will be 1 more release, probably on Thursday, and I'll submit on Monday if there are no more suggestions or things to fix up.(I think there might be)
So whats new today:
-Added 1 and 5 minute move timers - wait! what?
-Add manually adding games for admin - This is located in the Maintenance/Import section.
Title: Re: SMFChess
Post by: Bigguy on February 05, 2008, 04:07:59 PM
That's great news feeble. You are real close to a release.....can't wait for a SMF 2.0 version. ;) ....no preasure though, lol.
Title: Re: SMFChess
Post by: Godsongz on February 05, 2008, 04:34:11 PM
Quote from: Bigguy on February 05, 2008, 04:07:59 PM...can't wait for a SMF 2.0 version...

Ah, that must be why you haven't reinstalled it on smfhelper yet.  hehe, I'm glad you waited on the 2.0 upgrade until after the tournament was done! ;)
Title: Re: SMFChess
Post by: Bigguy on February 05, 2008, 04:44:38 PM
I couldn't disrupt the tourney. ;)
Title: Re: SMFChess
Post by: feeble on February 06, 2008, 05:42:48 AM
Ok hopefully the last update as been uploaded

download link is in first post (http://www.simplemachines.org/community/index.php?topic=129749.0)

If there is anything else that you want, please let me know. I'll be submitting in the next few days.
Keeping in mind that I still need to
-Redo Admin Language file
-Tidy/comment the files
-SSI Function (this will be done while the mod is being approved)

What this update adds:
-Added 1 and 5 minute move timers
-Can now manually add games - This is located in the Maintenance/Import section.
-Chat area has been redone. Its not perfect, but it looks a hell of alot better *try typing / in the chat area.
--This has also wiped out all previous chats and possible logs due to missing information, apologies for this
-Fixed alot of small bugs
-Recount can now be limited to just recounting ELO
Title: Re: SMFChess
Post by: Paracelsus on February 06, 2008, 05:54:22 AM
Quote from: Feeble on February 05, 2008, 08:01:19 AM
Thanks for sharing your idea, and I actually really like it. I definitely look into it.
And I suppose prior, to get to decide on the finalists, all players have to go through a Round Robin tournament (http://en.wikipedia.org/wiki/Round-robin_tournament); split into maybe 5 player groups?

Round Robin tournament is an option, sort of championship-like, but I was thinking more in the possibility of creating a tournament and players would simply apply to the remaining places and be accepted as long as there were places left... then close it to submissions once full and then just start the tournament.

By the way, keep up the great job... ;)
Title: Re: SMFChess
Post by: Godsongz on February 06, 2008, 09:46:50 AM
I think you may have introduced some new bugs. 
1.  It seems that even with "No Timer" selected, both players must be online to start a game. 
2.  Also, if player "A" issues a challenge to player "B", the game shows up twice on player "B"'s My Page.

I really like the "Remind" tag you added to prod someone into playing a move, but it brings up another question.  I am now seeing on my "My Page" several games that I issued challenges for, some of them several months old, that were never accepted by the challengee.  Is there a way to remove these games if it's obvious that the challengee is never going to respond?  Otherwise, they sit on my My Page now forever.

Edit:  I found a way to get rid of them, by declaring a win to one side or the other so the game would show up under "Finished", then deleting the game, then doing a recount so ELO's wouldn't be affected.  That's fine for my unanswered challenges, but those without Admin privs won't be able to do all that.  Maybe there should be a way to cancel a challenge?
Title: Re: SMFChess
Post by: feeble on February 06, 2008, 04:56:57 PM
Thanks Godsongz

Quote from: Godsongz on February 06, 2008, 09:46:50 AM
1.  It seems that even with "No Timer" selected, both players must be online to start a game. 
fixed
Quote from: Godsongz on February 06, 2008, 09:46:50 AM
2.  Also, if player "A" issues a challenge to player "B", the game shows up twice on player "B"'s My Page.
fixed

Quote from: Godsongz on February 06, 2008, 09:46:50 AM
I really like the "Remind" tag you added to prod someone into playing a move, but it brings up another question.  I am now seeing on my "My Page" several games that I issued challenges for, some of them several months old, that were never accepted by the challengee.  Is there a way to remove these games if it's obvious that the challengee is never going to respond?  Otherwise, they sit on my My Page now forever.

Maybe there should be a way to cancel a challenge?
Added, will appear after 1 week if there is no response
I'll add the specified length for remind and cancel in the admin area over the next couple of days

download link is in first post (http://www.simplemachines.org/community/index.php?topic=129749.0)
Files Updated:
Sources/Chess.php
Sources/ChessXml.php
Sources/ChessChat.php
Language/Chess.english.php

Quote from: ParacelsusRound Robin tournament is an option, sort of championship-like, but I was thinking more in the possibility of creating a tournament and players would simply apply to the remaining places and be accepted as long as there were places left... then close it to submissions once full and then just start the tournament.
I see what you mean and I do like this idea.
Title: Re: SMFChess
Post by: Chopper on February 06, 2008, 04:59:59 PM
Hi, a bit off topic but how can i get the Chess button to appear correctly on a different theme?

Thanks
Title: Re: SMFChess
Post by: feeble on February 06, 2008, 05:07:59 PM
Quote from: Chopper on February 06, 2008, 04:59:59 PM
Hi, a bit off topic but how can i get the Chess button to appear correctly on a different theme?

Thanks

Well it does differ between theme

http://www.leaderless.net/PackageParser/index.php?show=theme
contains the changes for the default theme,

just need to find where the other Buttons are located and then just copy the method used there of putting in the buttons( for instance the calender button)

if you have problems with this send me an email ([email protected])
Title: Re: SMFChess
Post by: Chopper on February 06, 2008, 05:30:20 PM
Hi thanks for the reply. When i try to edit the theme the following code isnt found :

<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Therefore i dont know where to add the rest of the code
Title: Re: SMFChess
Post by: weightman on February 06, 2008, 06:38:16 PM
Just installed the latest update. Now on "My Page" it lists challenges I sent. Very Cool!

I clicked on one game (member name in list) that the person responded with a no thanks in a PM to me and it opened up the game which of course was never started. I choose "Delete Game" and it asked if I am sure. I said yes, and nothing seemed to happen except for that prompt disappearing. I exited that game and then went back to "My Page" and that game IS gone. But, it generated the following error in the forum error log:

http://weightliftingexchange.com/smf/index.php?option=com_smf&amp;amp;Itemid=39&amp;amp;action=chessXml;sa=update;sesc;id=6;timestamp=0;xml
Unable to load the 'main' template.

Thanks

Title: Re: SMFChess
Post by: brianjw on February 06, 2008, 09:42:26 PM
bigguy, did you happen to save backups so when it is time to install SMFChess again we can return to our games (like me and you ;) and me and feeble which he is kicking my a**)

Those game types sound interesting. I plan on installing it all when the initial release comes out... ;)
Title: Re: SMFChess
Post by: Bigguy on February 06, 2008, 10:13:11 PM
It should all be there when I re-install it.
Title: Re: SMFChess
Post by: Assistance on February 07, 2008, 02:16:53 AM
Quote from: Chopper on February 06, 2008, 05:30:20 PM
Hi thanks for the reply. When i try to edit the theme the following code isnt found :

<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Therefore i dont know where to add the rest of the code

depends on the theme

try searching for

function template_menu()
or
$txt[119] (thats the word help)

depending on the theme, depends on the code you will paste around that area
Title: Re: SMFChess
Post by: Chopper on February 07, 2008, 02:41:37 PM
Quote from: Assistance on February 07, 2008, 02:16:53 AM
Quote from: Chopper on February 06, 2008, 05:30:20 PM
Hi thanks for the reply. When i try to edit the theme the following code isnt found :

<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Therefore i dont know where to add the rest of the code

depends on the theme

try searching for

function template_menu()
or
$txt[119] (thats the word help)

depending on the theme, depends on the code you will paste around that area


That didnt work. I had a solitary "Chess" button stranded as far over to the right as is possible and the other buttons have changed to text? They sit at the top left descending from Home to Logout?
Title: Re: SMFChess
Post by: Godsongz on February 08, 2008, 12:32:14 AM
Extinction chess bug?  Look at http://crossfire.org/covenant/index.php?action=chess;id=265 and you'll see that black is in check but that shouldn't matter in this game, right?  Black at this point should be able to take white's one remaining knight and trigger checkmate in this Extinction match.  It is considered an illegal move in SMFChess and black is forced to move his king.
Title: Re: SMFChess
Post by: feeble on February 08, 2008, 10:24:02 PM
Quote from: Godsongz on February 08, 2008, 12:32:14 AM
Extinction chess bug?  Look at http://crossfire.org/covenant/index.php?action=chess;id=265 and you'll see that black is in check but that shouldn't matter in this game, right?  Black at this point should be able to take white's one remaining knight and trigger checkmate in this Extinction match.  It is considered an illegal move in SMFChess and black is forced to move his king.
Sorry about this oversight, ill fix this up shortly


Quote from: weightmanI clicked on one game (member name in list) that the person responded with a no thanks in a PM to me and it opened up the game which of course was never started. I choose "Delete Game" and it asked if I am sure. I said yes, and nothing seemed to happen except for that prompt disappearing. I exited that game and then went back to "My Page" and that game IS gone. But, it generated the following error in the forum error log:
I fixed this up, shoudn't give any more errors
and delete game link will move you to the current page.
Title: Re: SMFChess
Post by: Gargoyle on February 08, 2008, 11:47:33 PM
I tried to reg at your site Feeble... The "register" button didn't work for some reason..

Just an FYI
Title: Re: SMFChess
Post by: weightman on February 09, 2008, 07:05:18 PM
QuoteSorry about this oversight, ill fix this up shortly... I fixed this up, shoudn't give any more errors and delete game link will move you to the current page.

Feeble, thanks for all your work. I really enjoy your mod a whole lot.
Title: Re: SMFChess
Post by: feeble on February 10, 2008, 05:21:11 AM
Uploaded a new version

-Fixed a bug with extinction chess pointed out by Godsongz. Now the King Piece is just like normal everyday piece
-Fixed a list of bugs associated with deleting a board while viewing it with the help of weightman
-Fixed several bugs in regards to Importing a PGN
-Redid the Admin Language file

download link is in first post (http://www.simplemachines.org/community/index.php?topic=129749.0)
All files Chess files have been updated, and InstallScript.php will need to be ran once if you are manually updating(or just save your Admin settings atleast once)


I've also ran into a small problem.
I don't have a preview site at the moment, so if anyone is interested in letting me link to their site to showcase SMFChess, let me know. I just need guests to be able to view the chess boards.

Also just received an email from the Martin, who was one of the creators behind Thinking Machine (http://www.turbulence.org/spotlight/thinking/index.html), basically just to let me know that I am able to use the Thinking Machine Images in the mod. Thats lucky I guess lol.
Title: Re: SMFChess
Post by: Godsongz on February 10, 2008, 08:59:09 AM
Quote from: feeble on February 10, 2008, 05:21:11 AMI don't have a preview site at the moment, so if anyone is interested in letting me link to their site to showcase SMFChess, let me know. I just need guests to be able to view the chess boards.

I'd be happy to help. I just granted the "Access to Chess" permission to guests.
Title: Re: SMFChess
Post by: Neorics on February 10, 2008, 09:19:31 AM
is this a stable release already or there are some bugs?
how is the server load for this mod?
in what form is the game running (flash, java, ajax etc)?
is this mod secured and hack protected?
Title: Re: SMFChess
Post by: weightman on February 10, 2008, 11:50:29 AM
QuoteI don't have a preview site at the moment, so if anyone is interested in letting me link to their site to showcase SMFChess, let me know. I just need guests to be able to view the chess boards.

Feeble, feel free to use my site though its a small community and we only have had a few games so far: Forum link (http://weightliftingexchange.com/index.php?option=com_smf&Itemid=39)

I was wondering if maybe since this mod already edits index.template.php if you could add a stat or two from chess in the info center- around the "Who's Online" list maybe...like "Who's Playing Chess" with a list of members in active games, or a number of active matches stat maybe....obviously wouldn't want to much there unless admin could select which if any of them appeared. I know you are also planning on adding SSI when/after submitted and thats totally awesome. I wasn't sure if this was something that would be part of that plan.

This mod is completely awesome! Thanks again!
Title: Re: SMFChess
Post by: feeble on February 11, 2008, 03:27:37 AM
Quote from: Neroricsis this a stable release already or there are some bugs?
how is the server load for this mod?
in what form is the game running (flash, java, ajax etc)?
is this mod secured and hack protected?
-Its stable, there might be a few bugs in the logic, but for the most part its sound
-No idea on server load, shouldn't be to much but I guess that would also depend on the server. I measured the amount of bandwidith used in an average game. it wasn't much. I think it was upmost about 40kb per game.
-drag and drop javascript and ajax
-Should be


Weightman and Godsongz
-Thanks for this, ill update the preview link in to first post to point to your sites

Quote from: weightmanI was wondering if maybe since this mod already edits index.template.php if you could add a stat or two from chess in the info center- around the "Who's Online" list maybe...like "Who's Playing Chess" with a list of members in active games, or a number of active matches stat maybe....obviously wouldn't want to much there unless admin could select which if any of them appeared. I know you are also planning on adding SSI when/after submitted and thats totally awesome. I wasn't sure if this was something that would be part of that plan.
Its a good idea, but I would prefer to keep the template changes down to a minimum for the main package.
This might have to come in an expansion or something.

I know this is a little bit quick, it doesn't add anything other then now the files are tidy now.
And I fixed up the bbc code a little bit.
Which means I've updated languages/index.english.php, which was annoying but had to be done

download link is in first post


This also means that this version is the one I'll be submitting to SMF, unless anything needs to be changed or added.
I'll be submitting in 3 days give or take that amount.

So if you want anything else added in, please let me know.
Title: Re: SMFChess
Post by: mrzcn on February 11, 2008, 07:07:40 AM
how can i install it manually ?
thanx
Title: Re: SMFChess
Post by: Bigguy on February 11, 2008, 01:24:16 PM
Why would you need to. ???

Quote from: mrzcn on February 11, 2008, 07:07:40 AM
how can i install it manually ?
thanx
Title: Re: SMFChess
Post by: weightman on February 11, 2008, 01:46:15 PM
I have to install the index.template.php file manually each time there is an upgrade since mine is modified. What I do is simply backup the index.template.php file, then uninstall and delete the old version of chess in the package manager. Then I upload and install the new version via the package manager and then simply overwrite the index.template.php file with the one I backed up. The first time, I did have to manually edit that file and I always use the package parsers for that stuff as its just makes the edits a little easier on the eyes:

My fav: http://www.smfhacks.com/packageparser/package.php
2nd choic: http://modparser.dev.dansoftaustralia.net/index.php

Title: Re: SMFChess
Post by: Lord Anubis on February 13, 2008, 10:31:16 PM
Been tweaking around again and came up with this

Screenshot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftinyadminresources.com%2Fextras%2Fimagehost%2Fscript%2Fuploads%2F7b5c61f2a9.jpg&hash=a5f09cfa75ff7cfa00a5966dcf7a3493bd1966ea) (http://tinyadminresources.com/extras/imagehost/script/uploads/7b5c61f2a9.jpg)
CLICK PIC FOR LARGER VIEW


Instructions:

1. Download THIS FILE (http://tinyadminresources.com/chessblock.zip), and unzip the package
2. Upload the folder "chessblock" to the root of your forum
3. Insert the code below into a PHP block (CENTER)
Recommendations:
* Put it for custom action chess so it isn't shown throughout your forum
* Don't show title/frame
4. Enjoy!


global $scripturl, $context;
echo '
<img src="/chessblock/chess.png"/> <a href="', $scripturl ,'?action=chess"><font size="2">My Chess Stats</font></a> |
<img src="/chessblock/challenge.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=challenge"><font size="2">Challenge</font></a> |
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=current"><font size="2">Current Matches</font></a> |
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=finished"><font size="2">Finished Matches</font></a> |
<img src="/chessblock/leader.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=leaderboard"><font size="2">Leaderboard</font></a>
';


Or what I did was used the code below in the ChessCustom.template.php

Screenshot:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ftinyadminresources.com%2Fextras%2Fimagehost%2Fscript%2Fuploads%2F830d7c61e3.jpg&hash=1979e6374ec093a32006b2d5661f8c0efc463286) (http://tinyadminresources.com/extras/imagehost/script/uploads/830d7c61e3.jpg)
CLICK PIC FOR LARGER VIEW

Code:
<?php

//SMFChess CustomBar Template File
//ChessCustom.template.php
//
//General Use is to copy this into your Custom themes
//then edit this file
//that way you can have the bar fit to each of your sites themes


function template_SMFChessBar_custom()
{
global $txt$context$modSettings$scripturl$settings;

echo 
'
<center>
<img src="/chessblock/chess.png"/> <a href="'
$scripturl ,'?action=chess"><font size="2">My Chess Stats</font></a> | 
<img src="/chessblock/challenge.png"/> <a href="'
$scripturl ,'?action=chess;u='$context['user']['id'] ,';sa=challenge"><font size="2">Challenge</font></a> | 
<img src="/chessblock/matches.png"/> <a href="'
$scripturl ,'?action=chess;u='$context['user']['id'] ,';sa=current"><font size="2">Current Matches</font></a> | 
<img src="/chessblock/matches.png"/> <a href="'
$scripturl ,'?action=chess;u='$context['user']['id'] ,';sa=finished"><font size="2">Finished Matches</font></a> | 
<img src="/chessblock/leader.png"/> <a href="'
$scripturl ,'?action=chess;u='$context['user']['id'] ,';sa=leaderboard"><font size="2">Leaderboard</font></a>
</center>
'
.$context['page_index'];

}
?>

Title: Re: SMFChess
Post by: Assistance on February 14, 2008, 03:35:14 AM
Create Quickmatch

when i click the button to send it

i get Can only create one per day
which is fine, but it doesn't create it


is there a copy paste for the [chess]bbcode?
Title: Re: SMFChess
Post by: feeble on February 14, 2008, 04:40:23 AM
Lord Anubis - Nice work again, thanks alot for doing this. Looks really good.

Quote from: Assistance on February 14, 2008, 03:35:14 AM
which is fine, but it doesn't create it
*EDIT: I took a look at the code, and found the an error in the logic.
Fixed this up, ill bring out a new version soon which contains this fix.

Do you think you need more control with this day.
So you can set say X amount of quickmatches that can be created per day?
or is that just overkill?

Quote from: Assistance on February 14, 2008, 03:35:14 AM
is there a copy paste for the [chess]bbcode?
What do you mean by this? If you could just expand on what you are after or inquiring
Title: Re: SMFChess
Post by: Assistance on February 14, 2008, 08:26:12 AM
ty for the EDIT*



more control is always better.....
small forums need more single member quick matches
larger forums could do with the 1 per day...


really could use the administrator to assign matches for 2 players
with this option tournaments could be rolling


the [chess] bbcode to show the board
where do you find the text to put in?
idea: have a small box with generating code to show (after each move)
Title: Re: SMFChess
Post by: weightman on February 14, 2008, 10:34:51 AM
Lord Anubis,

Thats really cool. Any chance you could tell me how to make it work as a Mambo block or can you point me in the right direction to do so? My forum is bridged with Mambo....

Thanks very much.
Title: Re: SMFChess
Post by: Lord Anubis on February 14, 2008, 10:45:31 AM
No sorry I don't have any ideas on Mambo, but you could just change the ChessCustom.template.php
Title: Re: SMFChess
Post by: weightman on February 14, 2008, 05:08:23 PM
Lord Anubis, thank you very much. Maybe I am misunderstanding what you have made here. I thought this was a block for TinyPortal or as an action in the custom action mod. Is this accurate? What will including the code in ChessCustomtemplate.php do? Change the look of the chess page(s) on the forum?

Thanks very much.
Title: Re: SMFChess
Post by: Lord Anubis on February 14, 2008, 05:33:10 PM
No the ChessCustomtemplate.php comes in the SMFChess package

But this will change the buttons on the chess area, instead of being tabs using your current theme it makes them into images (well sort of lol)

Hope this makes sense
Title: Re: SMFChess
Post by: weightman on February 14, 2008, 09:12:25 PM
Lord Anubis, yea I understand. Thanks a lot.
Title: Re: SMFChess
Post by: Gargoyle on February 15, 2008, 09:36:34 AM
Feeble I downloaded and installed this game on the 10th or so. I see an update on the 11th you posted. What do I need to do to my install to get it up to date with your latest release ?

Thanks so much for this fantastic addition! It is very nice!
Title: Re: SMFChess
Post by: Paracelsus on February 15, 2008, 10:24:47 AM
Quote from: Gargoyle on February 15, 2008, 09:36:34 AM<br />Feeble I downloaded and installed this game on the 10th or so. I see an update on the 11th you posted. What do I need to do to my install to get it up to date with your latest release ?<br /><br />Thanks so much for this fantastic addition! It is very nice!<br />

Do like this:
- Install WinMerge;
- Open it and put side by side your 2 chess directory versions (unpack them first to its own dir, of course)
- Check which files are identical and which are not or that don't exist in the previous version.
- Open the unidentical files one by one and WinMerge will compare them instantly showing exactly what is different. Have a Notepad++ or some PHP editor with you and edit the lines that need to be added, erased, moved, etc in the previous version file and upload them if you don't edit directly from server (if you upload them, do it to the right directory!... templates usually go to theme directories and non-templates go to sources directory).
- If installscript.php is different, upload the new one to the forum root and execute it (just put that url on the browser http....../installscript.php.
- EDIT: Forgot this, if the install xml is different you have to compare both and see which files you have to change (files that are usually already part of SMF core)
- The end ;).
Title: Re: SMFChess
Post by: weightman on February 15, 2008, 11:00:13 AM
Feeble, I found a bug/change needed. If you have the "Allow SMF Chess to send you move and challenge updates" unchecked, then you won't receive requests for undos or draws. It might be good to have the option for move updates separate from the other notifications. I turned off the move updates because they are so frequent that they get extremely annoying....

Thanks
Title: Re: SMFChess
Post by: feeble on February 15, 2008, 01:18:38 PM
Quote from: Gargoyle on February 15, 2008, 09:36:34 AM
Feeble I downloaded and installed this game on the 10th or so. I see an update on the 11th you posted. What do I need to do to my install to get it up to date with your latest release ?

Thanks so much for this fantastic addition! It is very nice!

Umm, you can do what Paracelsus recommends, which is pretty effective.
Actually I've been looking for that program, just forgot what it was called

or you could simply uninstall the old version. then reupload the new version.

or
just unzip chess.zip, and upload manually the Chess source, language and template files.
and good list of where each files goes is here
http://www.leaderless.net/PackageParser/


Quote from: weightmanFeeble, I found a bug/change needed. If you have the "Allow SMF Chess to send you move and challenge updates" unchecked, then you won't receive requests for undos or draws. It might be good to have the option for move updates separate from the other notifications. I turned off the move updates because they are so frequent that they get extremely annoying....

Thanks
I suppose, but if you are playing without the need of move updates, then would you really require undo and draw notification?
Possibly a resign notification would be suitable thou.
Title: Re: SMFChess
Post by: Gargoyle on February 15, 2008, 01:40:12 PM
Thanks everyone!
Title: Re: SMFChess
Post by: Gargoyle on February 16, 2008, 09:43:20 AM
Okay one last thing...

Any ideas or input in the way of calling the leaderboard info into display.template.php

I'd like to display a small graphic under the avatar of the current "chess champion".

Thanks for any help!
Title: Re: SMFChess
Post by: weightman on February 16, 2008, 11:39:19 AM
QuoteI suppose, but if you are playing without the need of move updates, then would you really require undo and draw notification?
Possibly a resign notification would be suitable thou.
Feeble, unless I am missing something, if you have notifications off then the undo, draw, and resign requests buttons are nearly useless since your opponent doesn't know if you have used them, doesn't know if you have requested them.

Thanks
Title: Re: SMFChess
Post by: Godsongz on February 16, 2008, 10:46:03 PM
Quote from: Lord Anubis on February 13, 2008, 10:31:16 PM
Been tweaking around again and came up with this

Hey Anubis,  I liked this tweak of yours, very attractive with the mini-icons.  I used it on my site for a couple of days until tonight when one of my users complained that he could no longer look up old games.  I wondered what he was talking about until I realized that with your tweak in place, using the ChessCustom.template.php, I no longer had page numbers.  I could only see the latest 20 games in current or finished, and I have nearly 200 finished games on my site now.  How would I be able to use your tweak in a ChessCustom.template.php, and still have my page numbers?
Title: Re: SMFChess
Post by: feeble on February 16, 2008, 11:13:43 PM
Uploaded a new version

-Added Join and Create Quickmatch options in the admin area.
-Fixed several bugs with creating quickmatches. Thank you to Assistance for finding this
--Distinction between days is now by server time rather then a full 24hrs
-Fixed several template issues in ie.
-You will get notified by pm always on everything other then a move. requested by weightman.
--This is on trial, but should be right

download link is in first post (http://www.simplemachines.org/community/index.php?topic=129749.0)
All files Chess files have been updated, and InstallScript.php will need to be ran once if you are manually updating(or just save your Admin settings atleast once)

Quote from: Assistancereally could use the administrator to assign matches for 2 players
with this option tournaments could be rolling
This can already be done in the Admin area under Maintenance->Import

Quote from: Assistancethe [chess] bbcode to show the board
where do you find the text to put in?
idea: have a small box with generating code to show (after each move)
I've been thinking about this for the last couple of days.
Ill get back to you as I'm looking into placement or maybe in a tooltip or something.
Title: Re: SMFChess
Post by: weightman on February 16, 2008, 11:36:38 PM
Feeble, thanks very much for adding that. I got new errors on uninstalling the old package I was hoping you could tell me how to deal with:

1.     Execute Modification     ./index.php     Test failed

This code is not in my index.php file:
'.xml' => array('News.php', 'ShowXmlFeed'),

9.     Execute Modification     ./Themes/default/languages/index.english.php     Test failed

This one is weird because when I look in the file, the code the install is trying to install ?> is there at the end of the file so I don't know why its failing the test.

Thanks very much again for all the help and great mod.
Title: Re: SMFChess
Post by: feeble on February 16, 2008, 11:39:50 PM
Quote from: Godsongz on February 16, 2008, 10:46:03 PM
Quote from: Lord Anubis on February 13, 2008, 10:31:16 PM
Been tweaking around again and came up with this

Hey Anubis,  I liked this tweak of yours, very attractive with the mini-icons.  I used it on my site for a couple of days until tonight when one of my users complained that he could no longer look up old games.  I wondered what he was talking about until I realized that with your tweak in place, using the ChessCustom.template.php, I no longer had page numbers.  I could only see the latest 20 games in current or finished, and I have nearly 200 finished games on my site now.  How would I be able to use your tweak in a ChessCustom.template.php, and still have my page numbers?
Quote from: weightman on February 16, 2008, 11:36:38 PM
Feeble, thanks very much for adding that. I got new errors on uninstalling the old package I was hoping you could tell me how to deal with:

1.     Execute Modification     ./index.php     Test failed

This code is not in my index.php file:
'.xml' => array('News.php', 'ShowXmlFeed'),

9.     Execute Modification     ./Themes/default/languages/index.english.php     Test failed

This one is weird because when I look in the file, the code the install is trying to install ?> is there at the end of the file so I don't know why its failing the test.

Thanks very much again for all the help and great mod.

On uninstalling you say?

send me those to files to my email address
[email protected]


QuoteHey Anubis,  I liked this tweak of yours, very attractive with the mini-icons.  I used it on my site for a couple of days until tonight when one of my users complained that he could no longer look up old games.  I wondered what he was talking about until I realized that with your tweak in place, using the ChessCustom.template.php, I no longer had page numbers.  I could only see the latest 20 games in current or finished, and I have nearly 200 finished games on my site now.  How would I be able to use your tweak in a ChessCustom.template.php, and still have my page numbers?
find
</center>
';


replace with
</center>
'.$context['page_index'];

Title: Re: SMFChess
Post by: weightman on February 17, 2008, 12:24:05 AM
QuoteFeeble, I got the uninstall and install straightened out. I had installed another mod. But, I adjusted a couple settings in the chess admin, ran chess maintenance, clicked through the user chess tabs, and checked the error log and found these:

8: Undefined index: SMFChess_cquicklimit
File: /home/xxxxxx/public_html/smf/Themes/default/ChessAdmin.template.php
Line: 235
   
8: Undefined index: SMFChess_cjoinlimit
File: /home/xxxxxx/public_html/smf/Themes/default/ChessAdmin.template.php
Line: 228

I ran installScript.php and tested it all out and all seems fine now.

Thanks very much
Title: Re: SMFChess
Post by: weightman on February 17, 2008, 12:41:24 AM
Quote-You will get notified by pm always on everything other then a move. requested by weightman.--This is on trial, but should be right

I appreciate this a lot, but ideally the undo, draw, and resign requests would all happen totally inside the game board tab without having to go to a PM. Don't mean to ask for too much though- just an idea.

Thanks a lot.
Title: Re: SMFChess
Post by: Dragooon on February 17, 2008, 01:41:49 AM
Hey Might sound a bit stupid, but this thing got a chess engine right? Like it checks which move is legal or not. I didn't looked much onto it but it sounds very interesting.
Title: Re: SMFChess
Post by: Godsongz on February 17, 2008, 09:44:26 AM
Quote from: feeble on February 16, 2008, 11:39:50 PMfind
</center>
';


replace with
</center>
'.$context['page_index'];



Yep, that does it.  Thanks!
Title: Re: SMFChess
Post by: Gargoyle on February 17, 2008, 10:49:07 AM
Quote from: feeble on February 16, 2008, 11:13:43 PM

All files Chess files have been updated, and InstallScript.php will need to be ran once if you are manually updating(or just save your Admin settings atleast once)


Just so I am clear... I can manually update all the chess files then go to my admin settings and save them and I am done correct ?

Or are there code changes that need to be made?
Title: Re: SMFChess
Post by: Assistance on February 17, 2008, 08:28:14 PM
Quote from: feeble on February 16, 2008, 11:13:43 PM
Uploaded a new version


Quote from: Assistancethe [chess] bbcode to show the board
where do you find the text to put in?
idea: have a small box with generating code to show (after each move)
I've been thinking about this for the last couple of days.
Ill get back to you as I'm looking into placement or maybe in a tooltip or something.

updates are always good, ty

tool tip would be useless to copy paste into the forum

how about:
a small link on the right side of game with a pop up to copy paste the bbcode of the current board layout.



@Gargoyle
your first question is yes



tip for other SMFChess users
when ever I install a new package, I uninstall SMFChess first as it is still beta and constantly getting better with updates.  Then I install my other package then SMFChess to make sure I have no issues install/uninstall, and don't have to use FTP and manually install.
Title: Re: SMFChess
Post by: feeble on February 19, 2008, 07:32:04 AM
Sorry for being quiet over the last couple of days, been pretty busy.

I submitted SMFChess a couple of days ago, so if all goes well, im expecting it to be approved in a couple of weeks.

Quote from: gargoyleJust so I am clear... I can manually update all the chess files then go to my admin settings and save them and I am done correct ?
Pretty much correct, you shouldnt have to change any files, just upload and replace the Chess source and template files.

Quote from: dragooonHey Might sound a bit stupid, but this thing got a chess engine right? Like it checks which move is legal or not. I didn't looked much onto it but it sounds very interesting.
Gday Dragooon, Not really a chess engine, just a legal move checker.

Quote from: weightmanI appreciate this a lot, but ideally the undo, draw, and resign requests would all happen totally inside the game board tab without having to go to a PM. Don't mean to ask for too much though- just an idea.
I'm really confused of what you are trying to say sorry. When you are viewing the board, [undo, draw, and resign] requests are displayed both under the chess board and in the log.

Quote from: gargoyleAny ideas or input in the way of calling the leaderboard info into display.template.php

I'd like to display a small graphic under the avatar of the current "chess champion".
I can't tell you how to do this at the moment, as I just want to get the mod approved before I start helping with this sort of thing.
What I'm thinking thou, is setting something up, so that you can get help with this sort of thing or find the code to do this.
Title: Re: SMFChess
Post by: Dragooon on February 19, 2008, 07:35:07 AM
Yeah thats what I meant, so it checks weather the move's legal or not, cool. Might give it a try later.

Title: Re: SMFChess
Post by: weightman on February 19, 2008, 11:03:34 AM
QuoteI'm really confused of what you are trying to say sorry. When you are viewing the board, [undo, draw, and resign] requests are displayed both under the chess board and in the log.
Sorry, I misunderstood how you set it up. It seems to be working great now. Thanks very much.
Title: Re: SMFChess
Post by: Gargoyle on February 19, 2008, 09:43:36 PM
Thanks Feeble... ;D
Title: Re: SMFChess
Post by: weightman on February 20, 2008, 08:15:21 PM
Looks like I found a small bug. The move clock, if set to 3 days, seems to stop counting when it gets to 2 days and 23 minutes, with the seconds even going up and down without ever changing the hours and minutes. I haven't tested the clock using the other settings. Sorry to report it right after your submitted the mod. :(
Title: Re: SMFChess
Post by: Stumpy on February 22, 2008, 02:34:16 PM
Is there a glitch with castling at times?  I've been able to do it in games, but I've had a few people tell me that they're getting "illegal move" when they try.

I had one person call me when he wanted to do the move and there was no reason that he shouldn't have been able to do it.  I checked the logs - he'd never been in check, the rook had never moved, and he wasn't castling out of, into, or through check.

I tried to do the move myself (as an admin) and also got "illegal move."

This is a fantastic mod and my users love it - just need to know what would be causing the glitch.
Title: Re: SMFChess
Post by: feeble on February 22, 2008, 03:09:26 PM
Quote from: weightman on February 20, 2008, 08:15:21 PM
Looks like I found a small bug. The move clock, if set to 3 days, seems to stop counting when it gets to 2 days and 23 minutes, with the seconds even going up and down without ever changing the hours and minutes. I haven't tested the clock using the other settings. Sorry to report it right after your submitted the mod. :(

Quote from: Stumpy on February 22, 2008, 02:34:16 PM
Is there a glitch with castling at times?  I've been able to do it in games, but I've had a few people tell me that they're getting "illegal move" when they try.

I had one person call me when he wanted to do the move and there was no reason that he shouldn't have been able to do it.  I checked the logs - he'd never been in check, the rook had never moved, and he wasn't castling out of, into, or through check.

I tried to do the move myself (as an admin) and also got "illegal move."

Sorry about this, ill take a look at these over the week.
The clock timer sounds bug sounds a little weird, and I think there might be a few glitches still left in castling. You wouldn't be able to give me direct links to those bugs games, so I can try and replicate the issue?

Also been working on the SSI function
so the data I've been thinking it should gather is
-Who's online and currently playing
-Random/Most Recent Game

Anything else?
Title: Re: SMFChess
Post by: Bigguy on February 22, 2008, 03:50:31 PM
Maybe top 5 players. ???
Title: Re: SMFChess
Post by: Stumpy on February 22, 2008, 03:52:48 PM
Quote from: feeble on February 22, 2008, 03:09:26 PM<br />
Quote from: weightman on February 20, 2008, 08:15:21 PM<br />Looks like I found a small bug. The move clock, if set to 3 days, seems to stop counting when it gets to 2 days and 23 minutes, with the seconds even going up and down without ever changing the hours and minutes. I haven't tested the clock using the other settings. Sorry to report it right after your submitted the mod.<img src="http://www.simplemachines.org/community/Smileys/simple/sad.gif" border="0" alt="" title="" onresizestart="return false;" id="smiley_1_sad.gif" style="padding-left: 6px;" /><br />
<br /><br />
Quote from: Stumpy on February 22, 2008, 02:34:16 PM<br />Is there a glitch with castling at times?  I've been able to do it in games, but I've had a few people tell me that they're getting "illegal move" when they try.<br /><br />I had one person call me when he wanted to do the move and there was no reason that he shouldn't have been able to do it.  I checked the logs - he'd never been in check, the rook had never moved, and he wasn't castling out of, into, or through check.<br /><br />I tried to do the move myself (as an admin) and also got "illegal move."<br />
<br /><br />Sorry about this, ill take a look at these over the week.<br />The clock timer sounds bug sounds a little weird, and I think there might be a few glitches still left in castling. You wouldn't be able to give me direct links to those bugs games, so I can try and replicate the issue?<br /><br />Also been working on the SSI function<br />so the data I've been thinking it should gather is<br />-Who's online and currently playing<br />-Random/Most Recent Game<br /><br />Anything else?<br />



The game where I was called is here (http://uffp2.com/tpsmf/index.php?action=chess;id=11), and the non-castle in question (;)) happened after the 23b move.  White was unable to castle and went with r-c1 instead.  Login as Test, pwd is Test.  Thanks!
Title: Re: SMFChess
Post by: weightman on February 22, 2008, 03:57:02 PM
QuoteThe clock timer sounds bug sounds a little weird, and I think there might be a few glitches still left in castling. You wouldn't be able to give me direct links to those bugs games, so I can try and replicate the issue?
Sorry, but the game is over. Your efforts are again very much appreciated. On SSI, I think currently playing is the main thing, top five players mentioned by Bigguy sounds cool, and maybe number of active matches?

Cheers
Title: Re: SMFChess
Post by: flame baiter on February 23, 2008, 04:02:36 AM
Feature request: It would be cool for people not involved in the game to be able to leave comments. Maybe you could extend "Show: All  Both  Chat  Log" with "Comments" or something and give outsiders a possibility to leave comments about a game right on the chess board page...

Good or bad idea? What do you think?
Title: Re: SMFChess
Post by: Chipfryer on February 24, 2008, 01:39:08 PM
Thanks so much for creating this Mod. A couple of us enjoy having a game online and this will help greatly. thanks again.
Title: Re: SMFChess
Post by: weightman on February 24, 2008, 02:04:12 PM
QuoteFeature request: It would be cool for people not involved in the game to be able to leave comments. Maybe you could extend "Show: All  Both  Chat  Log" with "Comments" or something and give outsiders a possibility to leave comments about a game right on the chess board page...

Good or bad idea? What do you think?
I haven't tried it, but doesn't the mod already do that? I thought it could be enabled in the chess admin panel with "Set who can chat" and "Set who can see chat"? I prefer only the players being able to chat....
Title: Re: SMFChess
Post by: mrzcn on February 24, 2008, 03:47:41 PM
im waiting for checkers and backgammon :D
thank you so much for smf chess
Title: Re: SMFChess
Post by: hvyhitter on February 24, 2008, 04:06:28 PM
are we talking about a version for 2.0 any time soon?
Title: Re: SMFChess
Post by: Assistance on February 24, 2008, 10:40:14 PM
Quote-Much for advanced chess tag you can see examples here (http://www.leaderless.net/index.php?topic=12.0)

anyone wanna explain the bbcode?
Title: Re: SMFChess
Post by: feeble on February 25, 2008, 05:10:46 AM
Sorry about the delayed reponse, the Grand Final(A-league, football) was on yesterday.

Quote from: Bigguy on February 22, 2008, 03:50:31 PM
Maybe top 5 players. ???
Sounds good

Quote from: Stumpy on February 22, 2008, 03:52:48 PMThe game where I was called is here (http://uffp2.com/tpsmf/index.php?action=chess;id=11), and the non-castle in question (;)) happened after the 23b move.  White was unable to castle and went with r-c1 instead.  Login as Test, pwd is Test.  Thanks!
Ok cool, just give me a couple of days to take a look at it, and I should be able to work out a solution

Quote from: weightman on February 22, 2008, 03:57:02 PM
and maybe number of active matches?
Ok, and some random stats to go along with it as well?

Quote from: flame baiter on February 23, 2008, 04:02:36 AM
Feature request: It would be cool for people not involved in the game to be able to leave comments. Maybe you could extend "Show: All  Both  Chat  Log" with "Comments" or something and give outsiders a possibility to leave comments about a game right on the chess board page...

Good or bad idea? What do you think?
As weightman already said, are you just looking to allow users to chat in the board game along with the players? if so, this is already option in the admin area. Its pretty basic at the moment, are you after something more advanced? or something different?

Quote from: Chipfryer on February 24, 2008, 01:39:08 PM
Thanks so much for creating this Mod. A couple of us enjoy having a game online and this will help greatly. thanks again.
Quote from: mrzcn on February 24, 2008, 03:47:41 PM
thank you so much for smf chess
Gday, no worries glad you guys like the mod. If there is anything you think that its missing or having issues, let me know.

Quote from: hvyhitter on February 24, 2008, 04:06:28 PM
are we talking about a version for 2.0 any time soon?
Heya, hvyhitter, long time mate, hows things? We are sorta, the mod is currently in the process of getting approved, once that is done I'll bring out a version for SMF 2, I require it as well, so it should take long after the mod is approved.

Quote from: Assistance on February 24, 2008, 10:40:14 PM
Quote-Much for advanced chess tag you can see examples here (http://www.leaderless.net/index.php?topic=12.0)

anyone wanna explain the bbcode?
Apologies for this, the site I was using to show examples, kinda doesn't have the mod installed at the moment. What do you need explained?
Title: Re: SMFChess
Post by: Stumpy on February 25, 2008, 07:48:01 AM
What do the BBC tags do and how are they used?
Title: Re: SMFChess
Post by: Godsongz on February 25, 2008, 10:09:03 AM
Quote from: Stumpy on February 25, 2008, 07:48:01 AM
What do the BBC tags do and how are they used?

See this post (http://crossfire.org/covenant/index.php?topic=538.msg3205#msg3205) for a good use of the chess BBC.
Title: Re: SMFChess
Post by: hvyhitter on February 25, 2008, 10:39:02 PM
Thanks feeble.. stop by anytime the door is always open
Title: Re: SMFChess
Post by: sennad on February 27, 2008, 04:38:20 AM
Hello, is this mod submitted and whan it is going to be approved?

When can we translate it?
Title: Re: SMFChess
Post by: feeble on February 27, 2008, 05:08:36 AM
Quote from: sennad on February 27, 2008, 04:38:20 AM
Hello, is this mod submitted and whan it is going to be approved?

When can we translate it?

Its currently in the process on being approved.

And if you can just wait a bit longer, I really do apologise, but I'm just making some last minute adjustments and adding 1 more chess variation.
Title: Re: SMFChess
Post by: H on August 02, 2008, 07:22:17 AM
Please post all further questions here (http://www.simplemachines.org/community/index.php?topic=225742.0) as this is now a mod :)