View Full Version : Major Additions - Chess
Carnage
07-27-2007, 10:00 PM
Chess for vbulletin.
This mod turns an existing forum into a forum for playing chess in. Members can then play games against each other as easilly as posting a new post in a regular forum.
NB: the beta version of this dosn't enforce the rules of chess so illegal moves are possible - this does have the advantage of allowing handicap matches and variations on standard chess rules.
beta
This mod is a beta mod, this means that i have all the functions working on my board however there may be unforseen problems and conflicts on different vb setups. I'm 95% confidant that there are no major isseus left in the core code, the only issues that may arrise are from the new ajax features. If this is a problem for you, you can disable the ajax features in the admin cp.
Demo
A live demo can be seen here: http://www.giveupalready.com/forumdisplay.php?f=349 (running v1.0.1 till i've time to upgrade it)
Screenshots
Screen shot shows new UI
Version History
1.1b (beta): current version
- improved user interface (if you've changed the chess template you will need to revert/apply the changes manually)
- back/forward buttons for local moves (unsaved. Full backward/forward movement will be added in a later version)
- highlight for currently selected square.
1.0.1b (beta):
- fixed a couple of misisng TABLE_PREFIX's
- fixed table spacing issue
1.0b (beta):
- forced quick reply to be enabled.
- added reset board link + javascript to reset the board without reloading.
- ajax posting of moves.
- board updates itself every 10 secs via ajax.
- added option to flip layout of board.
0.2b (beta):
- added some javascript to update piece replacments instantly.
- templates are now fully phrased.
0.1b (beta):
- added faq entries to product file
- (hopefully) improved compatablity with vbseo
- modified instal instructions to avoid potential javascript problems.
- changed version numbering scheme.
beta:
- re-exported product file to contain all the settings fields.
alpha:
- changed image paths to allow for customised images.
Known Issues
- Table sizes are inconsistant
- If min post length is greater than 7 moves wont post without a comment.
Compatability
This mod was written on vb 3.6.0 and has been tested on 3.6.7 compatablity with other versions is unknown. Reported working on 3.6.8
Instalation
Backup your Database
Upload images into your images directory.
new for v1.0b Upload Chess.php to your main forum directory.
Turn your board off.
Create a new forum, browse to it and make a note of its forum id.
Disable Html, bb code,smilies,[img] code and post icons in this new forum
Import the chess product
In the vbulletin settings change the forumid to the new forum you created. You can also change the piece colour to better match your forums style.
(Optional) Create a link forum to point to the chess faq which explains how to play.
Turn your board back on
Click installed.
Upgrade from < 1.0b
Backup your Database
Upload Chess.php to your main forum directory.
Import the chess product (allow overwrite must be set to yes)
Check the new settings are set to your liking.
Upgrade from 1.0b
Import the chess product (allow overwrite must be set to yes)
Support
As all of my boards have been upgraded to vbulletin 4, I am no longer actively maintaining any of my vb3.x mods. Free support for all of my 3.x mods is being removed from the 31st of March 2010 after this date, I will only be offering paid support for 3.x mods; downloading and usage of the mods will remain free but unsupported.
For support of 3.x mods, please pm me as I won't be checking the threads very often.
Liscense
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
You may modify this software to suit your own purposes but may only distribute said modifications within this thread and with my approval.
Credits
Images were modified from icon files downloaded from http://www.enpassant.dk/chess/grafeng.htm
Checkers
Untill i get arround to coding and releasing a checkers game you can play checkers using this mod using the following instructions provided by one of my forum members:
(b8,b8)(d8,d8)(f8,f8)(h8,h8)(a7,a7)(c7,c7)(e7,e7)( g7,g7)(a1,a1)(c1,c1)(e1,e1)(g1,g1)(b2,b2)(d2,d2)(f 2,f2)(h2,h2)(c8,bR)(e8,bR)(g8,bR)(b7,bR)(d7,bR)(f7 ,bR)(h7,bR)(a6,bR)(c6,bR)(e6,bR)(g6,bR)(b1,wR)(d1, wR)(f1,wR)(a2,wR)(c2,wR)(e2,wR)(g2,wR)(b3,wR)(d3,w R)(f3,wR)(h3,wR)
Just copy the code when you are making the first post. Simple as that.
Notes:
1. When you jump a piece, you must also double-click on the piece that you jump to get rid of it. If you write out the code manually, just write the code twice. [ex: (f4,f4)]
2. To get a king piece, use the same code as you would to promote a pawn.
[ex: (a1,bK)]
3. If you double jump, please put in the full syntax and not just the finishing move. This will help your opponent see all the jumps that you made.
Custom Images
You can add image sets by uploading a gfx for each piece identified by its initial into a new directory within the /images/chess/ directory and then changing the image settings in the admincp.
If anyone has any custom image sets that they can legally distribute pm me a link and i'll link to them in this post.
Feature requests
- Leader board
- Other games (checkers, monopoly,risk, go)
ThePimp
07-28-2007, 03:27 PM
There seems to be an issue with your zip file. Please check & reupload.
! C:\......CHESS\chess.zip: Unknown method in product-chess(2).xml
! C:\......CHESS\chess.zip: No files to extract
alessai
07-28-2007, 03:29 PM
coool
Carnage
07-28-2007, 03:30 PM
odd... it extracts fine for me... what are you using to extract it?
ok, i uploaded a version which is just stored and not compressed. That should help avoid any errors.
ThePimp
07-28-2007, 03:32 PM
odd... it extracts fine for me... what are you using to extract it?
WinRAR
You can extract files with WinZip
Carnage
07-28-2007, 03:35 PM
well, i compressed it using 7zip if the new file dosn't work correctly i'll try something different to zip with.
ThePimp
07-28-2007, 03:35 PM
well, i compressed it using 7zip if the new file dosn't work correctly i'll try something different to zip with.
Can you post the direct .xml file? That's all that didn't extract. The images came out fine.
DonMecca
07-28-2007, 03:39 PM
Nice Mod!
Antivirus
07-28-2007, 03:40 PM
interesting, going to have to check this out!
Antivirus
07-28-2007, 03:41 PM
demo forum is down :(
Zaiaku
07-28-2007, 03:43 PM
Looks great. Too bad I dont have enough people on my forums that know how to play chess.
Carnage
07-28-2007, 03:52 PM
antivirus: you must have hit it in the 3 mins it was down while i was making a change to one of my other mods :p
ok i've uploaded the product file seperatly as well now
ThePimp
07-28-2007, 03:55 PM
Thanks!
EnIgMa1234
07-28-2007, 03:57 PM
great mod!!! very original
thedvs
07-28-2007, 04:22 PM
I can't find the options after the import
soletrader
07-28-2007, 04:27 PM
i dont see any settings in vbulletin options. where is this located?
Carnage
07-28-2007, 04:32 PM
there should be an aditional settings group named 'chess' at the bottom of your settings.
For some reason the settings weren't exported in the product file. They are there this time.
yaoren
07-28-2007, 05:18 PM
Keeping an eye on this one... very interesting.
Thanks :)
**Downloaded**
eurofunny
07-28-2007, 07:42 PM
This Forums-Game is very nice :-) Is there a way to move the
figures in the next or later Update with ajax?? thx
Atwal
07-28-2007, 08:10 PM
can u make monopoly?
ogameclub
07-28-2007, 09:26 PM
Good work!
If Minimum Characters Per Post is big, moves don't work.
Carnage
07-28-2007, 09:26 PM
Ajax is one of the things i will be wanting to add before it comes out of beta.
As for monopoly... thats a different style of game but should be in theory possible to do in a similar way, next on my list thou is draughts/checkers. After that i've had a couple of requests for Go and risk. There are 100's of possibilities just a matter of having the time to code them i guess :p
If Minimum Characters Per Post is big, moves don't work.
hmmm... i've got min chars set at 2 (smods were complaingin they couldn't post 'no' as a mod vote) i'll look into a fix for that in the next release.
skariko
07-28-2007, 11:43 PM
Genius.
I love it!
ps: it goes on VB 3.6.8
pps: in my board the javascript for the quick edit doesn't go. It's not a javascript problem 'cause in your board it does. Do you have any ideas?
http://www.czeta.it/forum/showthread.php?t=13827
abdulla1
07-29-2007, 12:46 AM
Great! will be installed so soon :)
Carnage
07-29-2007, 01:39 AM
pps: in my board the javascript for the quick edit doesn't go. It's not a javascript problem 'cause in your board it does. Do you have any ideas?
http://www.czeta.it/forum/showthread.php?t=13827
are you refering to the quick reply ajax post? If so i'm gunna assume this is caused by a change made in 3.6.8 i'll look into it further in the morning.
Mastar
07-29-2007, 02:04 AM
I guess mine don't work because of Vbseo! Anyone have Vbseo and got this hack here working?
Great Mods.
By the way how to make all replies and thread on this chess forum not counting on stats?
Why quick reply button not showing on chess forum?
Mastar
07-29-2007, 03:17 AM
My forumid is 105 but VbSeo converts it to forums/chess.html
Roxie
07-29-2007, 03:19 AM
Does it allow anyone to post moves? Or just the first two players?
projectego
07-29-2007, 07:48 AM
Sounds awesome! I'm definitely installing this! :)
Hornstar
07-29-2007, 10:51 AM
very interesting, I look forward to seeing how this progresses! nice work.
Carnage
07-29-2007, 10:53 AM
By the way how to make all replies and thread on this chess forum not counting on stats?
turn off the post count in the chess forum.
My forumid is 105 but VbSeo converts it to forums/chess.html
i'd suggest trying to set that as the forumid instead However i've a feeling that wont work
i'll have to look into compatability with vbseo
Does it allow anyone to post moves? Or just the first two players?
only the first two posters, alternativly theres a command (see faq) that allows the first player in the thread to specify who can post moves
abdulla1
07-29-2007, 12:39 PM
waiting for the ajax, then mod of the month ;)
jasculs
07-29-2007, 12:40 PM
would you happen to have a template for a fixed width style...I was trying to mess around with it but I keep messing it up.
Mastar
07-29-2007, 12:43 PM
i'd suggest trying to set that as the forumid instead However i've a feeling that wont work
i'll have to look into compatability with vbseo
I tried that already and after the setting is saved it just reverts back to forumid 0.
jasculs
07-29-2007, 12:44 PM
Nevermind...I figured it out.
Tulsa
07-29-2007, 12:53 PM
Can this take moves back? Since illegal moves can be made, someones going to do it and it would be nice to be able to fix it rather than have to start over.
jasculs
07-29-2007, 01:05 PM
Is there an estimated time for the Checkers mod? :-)
Carnage
07-29-2007, 01:28 PM
waiting for the ajax, then mod of the month
i'd better start reading up on vbulltings ajax implmentation then :p
Can this take moves back? Since illegal moves can be made, someones going to do it and it would be nice to be able to fix it rather than have to start over.
you can take moves back by making the reverse move. (a4,d5) can be reversed with (d5,a4) you can also replace pieces with the control pannel
Is there an estimated time for the Checkers mod? :-)
There isn't but it is the first game i'm going to do after this one - not sure if i should prioritise making more games or improving this one thou.
EnIgMa1234
07-29-2007, 01:43 PM
When you double click a piece it disappears :(
Carnage
07-29-2007, 01:58 PM
When you double click a piece it disappears
thats intentional, it allows you to play handicap matches and start a piece down
EnIgMa1234
07-29-2007, 02:00 PM
oh i get it :p
Tulsa
07-29-2007, 02:16 PM
Can you point me in the direction of this control panel?
Busterking
07-29-2007, 02:28 PM
you can also replace pieces with the control pannel
And where is this control panel that you are talking about?
BTW, great mod! :up:
Carnage
07-29-2007, 02:39 PM
Can you point me in the direction of this control panel?
I was refering to the 12 piece pictures on the left side - clicking a square and then clicking one of the images puts that piece on that square.
Deepdog009
07-29-2007, 02:47 PM
Great Job,,, keep the ball rolling...
Requesting please add member ranking system...:cool:
Cybertims
07-29-2007, 02:59 PM
A few things, the Java move doesnt work for me either...It will only work when I type in the co-ordinates.
The FAQ doesnt seem to install itself...
What control panel are you referring to?
Cheers and nice job.
Carnage
07-29-2007, 03:57 PM
hmmm... anyone else missing the faq?
As for the javascript problems i think i've got a fix for that now.
Disabling html, bbcode [img] code smilies and post icons in the chess forum seems to solve the problem.
Tulsa
07-29-2007, 04:28 PM
Put me in the missing faq group.
jasculs
07-29-2007, 04:33 PM
I also am missing the faq
solong2
07-29-2007, 04:40 PM
ajax will better
Carnage
07-29-2007, 04:51 PM
ok, i've uploaded an update it contains the faq entries and a fix (i hope) for the vbseo issue you should now be able to enter forum/chess.html as a forumid
Greek76
07-29-2007, 04:55 PM
This looks like a great mod. Good work!
inciarco
07-29-2007, 06:04 PM
I recommend checking this Thread, to Disable (if you want to) Duplicate Posts Control on the Forums. You'll need that for the Forum Not to Stop you from Moving when you made a Wrong Move (Example when you try to Move when is not your turn and you decide to Move Again before the 5 Minutes Double Posting Forum Control)!! ;)
How do I disable the "duplicate post" function?
https://vborg.vbsupport.ru/showthread.php?t=106733
Great Hack Carnage-!! :up:
I hope You Relesa the Checkers Game Soon!! :p
My Best Regards To You!! ;)
:)
Mastar
07-29-2007, 07:24 PM
Well I've installed the new version, it now holds the chess.html setting but when the chess forum in the site is clicked on it acts like a regular forum and not shows the game.
Also I don't see the FAQ.
Tulsa
07-29-2007, 07:30 PM
ok, i've uploaded an update it contains the faq entries and a fix (i hope) for the vbseo issue you should now be able to enter forum/chess.html as a forumid
FAQ - Is there now. Thanks. :up:
Mastar
07-29-2007, 09:40 PM
Works now thanks!
Arrogant-One
07-29-2007, 10:33 PM
Works now thanks!
Can you choose a different set for the pieces? Something that looks a bit like this -
http://chesschat.org/showthread.php?t=918
johnrizz
07-29-2007, 11:28 PM
What a pisser. works fine in 3.6.8 great job!!
Carnage
07-29-2007, 11:56 PM
Can you choose a different set for the pieces? Something that looks a bit like this
If you want to make customised images add a graphic for each of the pieces named by their initial into a new directory inside the /image/chess/ folder and change the relative admincp options.
Also for all of you that are keen on an ajax'd version, using a modified version of the quick reply ajax code i've got it partially working.
My board is also now running 0.2b Changes so far are just to the javascript that powers the replacment of pieces changes are now made to the board as pieces are replaced. Expect a release tommorow sometime once i've had time to change the templates to use phrases properly.
Mastar
07-30-2007, 01:27 AM
If you want to make customised images add a graphic for each of the pieces named by their initial into a new directory inside the /image/chess/ folder and change the relative admincp options.
Also for all of you that are keen on an ajax'd version, using a modified version of the quick reply ajax code i've got it partially working.
My board is also now running 0.2b Changes so far are just to the javascript that powers the replacment of pieces changes are now made to the board as pieces are replaced. Expect a release tommorow sometime once i've had time to change the templates to use phrases properly.
Can't wait.
inciarco
07-30-2007, 02:06 AM
It'd be Great that the Board refresh it self every X Seconds in Future Versions!! :up:
It'd be also Great to have the Option to Enable/Disable the Hack in the Control Panel Settings for the Hack and not have to Turn it all Off!! :up:
I hope this Ideas can be Useful Carnage-!! ;)
My Best Regards To You!! ;)
:)
Terrasoft
07-30-2007, 05:57 AM
This is indeed very original, havent gotten to test it out yet. Waitin for ajax, but Im gonna click install and nominate for MOTM.
benjaminbih
07-30-2007, 08:41 AM
Very nice mod!
can you make the game "Do not get angry" (http://en.wikipedia.org/wiki/Mensch_%C3%A4rgere_dich_nicht) ?
Its a nice game :D
eurofunny
07-30-2007, 09:22 AM
Scrabble is a nice Game too, to play with Multiplayer
Carnage
07-30-2007, 10:16 AM
It'd be Great that the Board refresh it self every X Seconds in Future Versions!!
That'll be what the ajax does, althou i'm probably only going to have it do that for the two players that are acctually playing.
It'd be also Great to have the Option to Enable/Disable the Hack in the Control Panel Settings for the Hack and not have to Turn it all Off!!
disabling the product is a better way of doing it as it'll save resourses by not loading and evaling useless code.
oh and 0.2b is released.
inciarco
07-30-2007, 12:39 PM
That'll be what the ajax does, althou i'm probably only going to have it do that for the two players that are acctually playing.
oh and 0.2b is released.
Great Carnage-!! :up:
I Hope You Implement that Improvement Soon!! :p
My Best Regards To You!! ;)
:)
Mastar
07-30-2007, 01:12 PM
How do we get the chess board to setup correctly? Meaning the Queens suppose to be on their colour, White Queen on White Square/Black Queen on Black Square, the board needs a 180 degree rotation. You could probable make it so the creator gets the Whites closest to them and the second player gets the Blacks further way.
I've edited your hack to swap the White and Black peaces around.
Carnage
07-30-2007, 01:50 PM
the board is correct and it isn't correct - it depends on the colouring of your alt1 and alt2 colours. If alt2 is darker than alt1 the board will appear wrong...
on my board if you use the rp skin the board is correct select a different one for example the rouen skin and it appears wrong.
Maybe i could correct this by allowing the admin to switch the options for alt1 and alt2 but as i've demonstrated, this is skin specific.
Mastar
07-30-2007, 02:06 PM
the board is correct and it isn't correct - it depends on the colouring of your alt1 and alt2 colours. If alt2 is darker than alt1 the board will appear wrong...
on my board if you use the rp skin the board is correct select a different one for example the rouen skin and it appears wrong.
Maybe i could correct this by allowing the admin to switch the options for alt1 and alt2 but as i've demonstrated, this is skin specific.
Yeah forgot that boards can use different color peaces. Sorry!
Yes I think it would be a good option for admins to select.
Can't wait for the Ajax version! Good Hack!
Roxie
07-30-2007, 04:40 PM
Game allows illegal moves. :(
Tulsa
07-30-2007, 04:42 PM
Think of it as a board game, which it is. You can make illegal moves there as well but it doesn't stop you from playing. The moves made are logged, so it's easy enough to see if someone has cheated.
Roxie
07-30-2007, 04:54 PM
Yes, but once something is done illegally (by accident) there is no way to move back on your turn is there? You have to wait until the next turn?
Cybertims
07-30-2007, 05:40 PM
Is the board setup the same for both players? meaning is black always at the bottom? it appears to be for me....
Carnage
07-30-2007, 09:24 PM
yeah black is always at the bottom, there have been suggestions to change this but its not a priority since you could always use the admincp options to flip the colours. (set black to white and white to black)
As for the illegal moves, yes it does allow for them if your opponant makes an illegal move you can take it back in your turn by making the reverse of their move eg they moved a knight (a4,a5) you can reverse it by doing (a5,a4)
Cybertims
07-31-2007, 07:37 AM
How does each player know what colour they are? Does the first player always get a specific colour?
Could each player see their colour at the bottom of their board or is that not possible?
Chers for a great MOD.
ruger
07-31-2007, 07:38 AM
Running 3.6.7 and uploaded all....looked great til I posted the first game and it wouldnt move any pawns...yet....I was able to set up the demo page just like the author!
abdulla1
07-31-2007, 11:46 AM
cant wait for the ajax,
and if possible special tournement room and rating. :)
zethon
07-31-2007, 02:41 PM
A few notes:
In Chess notation, the ranks (or rows) are numbered starting at the bottom and increase in number as they go up. You might want to conform to this standard as most seasoned Chess players will find your system backwards.
Secondly, it would be nice if posts in a game thread that were NOT moves would look like regular old posts. There's no sense in logging things that aren't actual moves.
Otherwise, I like the hack!
wastemytime
07-31-2007, 09:09 PM
Thanks for your Mod! I have one Question: Is it possible to have different Colors for Posts or Usernames for a better viewing?
Sweet jesus this is awesome. Marking as installed and waiting for beta to end!
RichieBoy67
08-01-2007, 06:29 PM
That is awesome! The best mod I have seen in a while... I had to nominate you mate!! Great mod!! Finally something interactive between members!!
Code Monkey
08-01-2007, 07:36 PM
Great idea but too bad it doesn't work with vBSEO.
Carnage
08-01-2007, 08:55 PM
The issues with vbseo should now have been fixed. If there are any new ones gimme a link to the forum and instructions on how to replicate the bug so i can attempt to fix it.
Oh and for anyone interested, i've got some of the ajax functionallity working on my board, should hopefully have it all done and ready to release in the next day or so.
MDK-Indy
08-01-2007, 09:11 PM
Sal?,
i dont have the Quick Reply Button...
Can klick the images and it Type the klick in the Quick Reply Box, but it cant send because the Quick Reply Button is missing.
I have vB 3.6.7.
Sorry for my bad englich :rolleyes:
greeting Indy
What about to have an Popup window or similar, where players can choose by clicking the desired move inside the window? After clicking the notation (move) will be taken immediately. So all you need to do is to click on the Reply button and the movement of the piece has been taken.
Doesn't need a popup window, you can do that now in the main chess window !?
Carnage
08-02-2007, 05:11 PM
yeah you can use the board to make moves as is. I'm also testing out ajax functionality to allow moves to be made without reloading the page.
zethon
08-02-2007, 05:43 PM
Are you going to reverse the way you number the rows in order to conform to normal chess standards? A few users on my board are complaining because it's confusing as hell for regular chess players.
Carnage
08-02-2007, 05:47 PM
i'll add an option to reverse the ordering.
NuclioN
08-02-2007, 07:24 PM
Great game for VB carnage. :) When ajax is working it's perfect.
Carnage
08-02-2007, 07:42 PM
Ok i've uploaded the latest version product file + a new php file thats needed to provide ajax support.
NuclioN
08-02-2007, 07:50 PM
Get this java error message: 'null is empty or not an object' (???)
skariko
08-02-2007, 07:57 PM
Ok i've uploaded the latest version product file + a new php file thats needed to provide ajax support.
Fantastic!
I'm trying it.
But there's some bug, two pawns have disappeared without any valid cause!
bashy
08-02-2007, 08:58 PM
Fantastic!
I'm trying it.
But there's some bug, two pawns have disappeared without any valid cause!
Perhaps they got "board" (no pun intended) ya know how long these games can last, perhaps they went for a browse around ya forum, "Check" (no pun intended there either pmsl) ya Whos Online, also, they might be a bit tired as its now "Knight" time (no pun intended there :D) and gone bed, ya never know "Mate" oh dear, theres another pun pmsl.....
Carnage
08-02-2007, 09:59 PM
Fantastic!
I'm trying it.
But there's some bug, two pawns have disappeared without any valid cause!
are they still gone when you reload the page?
Get this java error message: 'null is empty or not an object' (???)
do you get it with the ajax functions disabled?
Code Monkey
08-03-2007, 01:33 AM
I fixed the problem I was having and PM'd you the solution.
Are you planing on any rule sets for piece movement?
You might also move the javascript to a file to save b/w and page loading times.
inciarco
08-03-2007, 01:48 AM
Great Improvements Carnage-!! :up:
I'm receiving a Page Error (that's what the Status Bar says) when one of the Players Move; the AJAX Function doesn't work to Refresh the Board after the Movement!!
You can see it at http://inciarco.com/foros/showthread.php?t=1596 (Chess) and at http://inciarco.com/foros/showthread.php?t=1597 (Checkers).
If you wish you can Register and Test it with a Game.
I don't know if perhaps one of the Hacks I've installed that use AJAX like MGC Chatbox, could be related with the Page Error (on the AJAX Code) of the Chess Board!! ;)
I hope this Bug Report Help You to Improve your Great Hack!! ;)
My Best Regards To You!! :up:
:)
inciarco
08-03-2007, 01:53 AM
I almost Forgot another thing Carnage-!! :p
I noticed that the Name of the Person who is Next to Move Isn`t Updated after the Move of the other Player in none of the Windows of Both Players!! ;)
My Best Regads!! :up:
:)
DieselMinded
08-03-2007, 02:36 AM
Does anyone on these 7 pages have a site in english that this mod is on so i can see it ? even the demo site is down
DM
cherylferraro
08-03-2007, 06:00 AM
The issues with vbseo should now have been fixed. If there are any new ones gimme a link to the forum and instructions on how to replicate the bug so i can attempt to fix it.My forum uses vbseo: http://www.browncafe.com/forum/
The forum id url is rewritten as http://www.browncafe.com/forum/chess/ and I can't seem to find the any way to enter the forum id into the chess admin panel. The game won't work at all :(
Please help...
Tulsa
08-03-2007, 10:42 AM
When you don't have a piece on a particular column, the column collapses. The rows seem to stay intact when no pieces are on a particular row. Is there anyway to maintain the columns so they won't collapse?
Does anyone on these 7 pages have a site in english that this mod is on so i can see it ? even the demo site is down
DM
Working fine on my place .. click here (http://www.techguyscafe.com/forums/showthread.php?t=9038)
Code Monkey
08-03-2007, 01:01 PM
My forum uses vbseo: http://www.browncafe.com/forum/
The forum id url is rewritten as http://www.browncafe.com/forum/chess/ and I can't seem to find the any way to enter the forum id into the chess admin panel. The game won't work at all :(
Please help...
It most likely has nothing to do with vBSEO. At least it didn't for me. I PM'd him the fix but I guess he doesn't come around often.
DieselMinded
08-03-2007, 01:16 PM
Working fine on my place .. click here (http://www.techguyscafe.com/forums/showthread.php?t=9038)
To view this thread or threads in this forum your post count must be 1 or greater.
You currently have 0 posts.
Fearlessninja
08-03-2007, 03:48 PM
Looking forward to the official version that enforces the rules! Keep up the good work.
MDK-Indy
08-03-2007, 06:41 PM
Big thanks for the very fast Bugfixing :up:
greeting Indy
Carnage
08-03-2007, 07:04 PM
Does anyone on these 7 pages have a site in english that this mod is on so i can see it ? even the demo site is down
DM
demo site is down cause we've been moving servers.
My forum uses vbseo: http://www.browncafe.com/forum/
The forum id url is rewritten as http://www.browncafe.com/forum/chess/ and I can't seem to find the any way to enter the forum id into the chess admin panel. The game won't work at all :(
Please help...
you can get the link from the admin cp. I believe that vbseo dosn't change the forum ids in there when you are listing your forums. It wont work if you put 'chess' into the box btw.
When you don't have a piece on a particular column, the column collapses. The rows seem to stay intact when no pieces are on a particular row. Is there anyway to maintain the columns so they won't collapse?
This is one of the known issues. For some reason browsers seem to ignore the width="40px" on the cols...
Looking forward to the official version that enforces the rules! Keep up the good work.
I dont think i'm going to write a version that enforces the rules, its deffinatly not a priority. However i'm not going to rule it out.
The next thing i want to do once the ajax is working is get something to step moves back and forward to allow revieing games and also add some sort of support for timed games.
zethon
08-03-2007, 07:05 PM
Hrmph, there's no option to label the rows correctly. :(
But I'm excited about teh Ajax functionality! Testing it now!
To view this thread or threads in this forum your post count must be 1 or greater.
You currently have 0 posts.
Whoops sorry, try it again now ;) Chess Forum (http://www.techguyscafe.com/forums/forumdisplay.php?f=338)
DieselMinded
08-03-2007, 10:31 PM
Cool Deal Thanks Any Issues?
Carnage
08-04-2007, 12:06 AM
Hrmph, there's no option to label the rows correctly. :(
But I'm excited about teh Ajax functionality! Testing it now!
there is, at least there should be http://www.giveupalready.com/showthread.php?p=973289#post973289 white are at the bottom as requested... this is an option in the admin cp now.
Tulsa
08-04-2007, 12:50 AM
Carnage- Give this a try for the spacing.
<td width="33%">
<center>
<table id="chessboard" width="100%" border="1px">
<tr>
<td> </td>
<td class="alt1" align="center" width="12.5%">a</td>
<td class="alt1" align="center" width="12.5%">b</td>
<td class="alt1" align="center" width="12.5%">c</td>
<td class="alt1" align="center" width="12.5%">d</td>
<td class="alt1" align="center" width="12.5%">e</td>
<td class="alt1" align="center" width="12.5%">f</td>
<td class="alt1" align="center" width="12.5%">g</td>
<td class="alt1" align="center" width="12.5%">h</td>
</tr>
$output
</table>
ramchip
08-04-2007, 11:02 AM
My forum has a fixed width of 1000px but the forum with the chess games seems to be full width. Is there a way to restrict the chess forum to 1000px?
Thanks this is a great mod.
Tulsa
08-07-2007, 06:03 PM
Originally Posted by Tulsa https://vborg.vbsupport.ru/external/2011/11/11.gif (https://vborg.vbsupport.ru/showthread.php?p=1308851#post1308851)
When you don't have a piece on a particular column, the column collapses. The rows seem to stay intact when no pieces are on a particular row. Is there anyway to maintain the columns so they won't collapse?This is one of the known issues. For some reason browsers seem to ignore the width="40px" on the cols...For anyone who's experiencing the collapsing columns this change works for me. In the chess template there's a table width of 33% but the table make-up is fixed width values. Changing these to percent values will give you 100% of the 33% table size and then 1/8 widths for the columns.
Replace this:
<table id="chessboard" width="320px" border="1px">
<tr>
<td> </td>
<td class="alt1" width="40px">a</td>
<td class="alt1" width="40px">b</td>
<td class="alt1" width="40px">c</td>
<td class="alt1" width="40px">d</td>
<td class="alt1" width="40px">e</td>
<td class="alt1" width="40px">f</td>
<td class="alt1" width="40px">g</td>
<td class="alt1" width="40px">h</td>
With this:
<table id="chessboard" width="100%" border="1px">
<tr>
<td> </td>
<td class="alt1" align="center" width="12.5%">a</td>
<td class="alt1" align="center" width="12.5%">b</td>
<td class="alt1" align="center" width="12.5%">c</td>
<td class="alt1" align="center" width="12.5%">d</td>
<td class="alt1" align="center" width="12.5%">e</td>
<td class="alt1" align="center" width="12.5%">f</td>
<td class="alt1" align="center" width="12.5%">g</td>
<td class="alt1" align="center" width="12.5%">h</td>This will also center the letters for a little better display.
rungok
08-07-2007, 07:53 PM
The reset Board Routine produces a "Unknown runtime error". I'm getting the error after a move (quick reply) and when i click "Reset". Ajax is on and running on 3.6.5.
rungok
08-07-2007, 07:55 PM
I am also getting this "null is null or not an object" sometimes.
dethfire
08-08-2007, 02:13 PM
this looks really great, can't wait for a stable release!
Carnage
08-08-2007, 08:28 PM
The reset Board Routine produces a "Unknown runtime error". I'm getting the error after a move (quick reply) and when i click "Reset". Ajax is on and running on 3.6.5.
I am also getting this "null is null or not an object" sometimes.
Do you get it with ajax turned off? what browser are you viewing it it? do you have any other mods that add javascript to your pages?
@everyone else:
i'm planning a new release asap however have been busy this week moving my forums to a new server (and managing to loose 2 months worth of posts while doing it...) so its behind the schedual i had wanted for it.
Arrogant-One
08-12-2007, 11:25 AM
The next thing i want to do once the ajax is working is get something to step moves back and forward to allow revieing games and also add some sort of support for timed games.
I would have thought that creating a pgn chess viewer, or moding this plug in, would be next on the agenda. pgn is short for portable game notation. It is the record of games that are already played. For instance,
1.) e4 e5
2.) Qf3 a6
3.) Bc4 b6
4.) Qxf7 checkmate
If one would type the following into a pgn chess viewer, it would create the game and you could run through the moves.
AO
Deepdog009
08-12-2007, 02:16 PM
Carnage if its not asking 2 much, please think about a ranking system 2 show who's the Grandmasters, masters and lower rankings by usergroup...
Keep the ball rolling and U gotts my vote:up:
rungok
08-12-2007, 08:46 PM
Do you get it with ajax turned off? what browser are you viewing it it? do you have any other mods that add javascript to your pages?
@everyone else:
i'm planning a new release asap however have been busy this week moving my forums to a new server (and managing to loose 2 months worth of posts while doing it...) so its behind the schedual i had wanted for it.
Yes, I'm getting the same with Ajax turned off. Yes, I have several mods that have their own javascript at the top. Browser is IE.
aranthorn
08-13-2007, 03:04 AM
Excellent. Installed :)
Carnage
08-13-2007, 07:31 PM
i've been playing arround and have managed to replicate the reset board bug; working on a solution.
For now, i'm going to release a minor update with a few misc bug fixes
dethfire
08-13-2007, 08:25 PM
If I post a move using click method, I see the change, but when I click post reply, the move is erased visually, but shows up in the text area. Also as a spectator, it will put coordinate moves in my quick reply.
also can posts be appended into the same post? Some games have 10s of pages of posts.
Carnage
08-13-2007, 09:18 PM
If I post a move using click method, I see the change, but when I click post reply, the move is erased visually, but shows up in the text area. Also as a spectator, it will put coordinate moves in my quick reply.
The board is reset while the move is sent to the server, once the move has been saved into the db it should come up in the chatbox and be remade on the board via ajax.
also can posts be appended into the same post? Some games have 10s of pages of posts.
its a good idea to turn off post count in the forum you use for the chess mod.
dethfire
08-14-2007, 03:15 PM
any way to exclude chess games from "new posts" functions? Also when another user enters a game by moving a piece it doesn't update the forum view thread title. It changes the thread title in the thread, but if you goto the forum view the thread title is still for example "Dethfire vs "
btw, can you include version checking in the product page?
aranthorn
08-18-2007, 04:37 PM
I have a couple really nit-picky users complained about white/black, flipped board, etc. Because this mod uses style CSS definitions of alt1 and alt2 for the board (which I think was the right way to go in coding it, btw) some users of mine complained that the Queen's not on her color. She is, but my some of styles are defined with light and dark tones reversed from vB's default. So here's what I did:
I added this bit into every style's "Additional CSS Definitions" area in style manger
/** START Chess Board **/
.chess1 {
background-color : #FFFFFF;
}
.chess2 {
background-color : #000000;
}
/** END Chess Board **/
The I changed the plugin "showthread_complete" for the product "chess" to this:
if($forumid == $vbulletin->options['chess_forumid'])
{
$empty = array('a'=>'','b'=>'','c'=>'','d'=>'','e'=>'','f'=>'','g'=>'','h'=>'');
$board = array(1=>array('a'=>'wR','b'=>'wN','c'=>'wB','d'=>'wQ','e'=>'wK',f=>'wB','g'=>'wN','h'=>'wR'),
2=>array('a'=>'wP','b'=>'wP','c'=>'wP','d'=>'wP','e'=>'wP','f'=>'wP','g'=>'wP','h'=>'wP'),
3=>$empty,
4=>$empty,
5=>$empty,
6=>$empty,
7=>array('a'=>'bP','b'=>'bP','c'=>'bP','d'=>'bP','e'=>'bP','f'=>'bP','g'=>'bP',h=>'bP'),
8=>array('a'=>'bR','b'=>'bN','c'=>'bB','d'=>'bQ','e'=>'bK','f'=>'bB','g'=>'bN','h'=>'bR'));
if(preg_match_all("#player\(1,([^)]+)\)#",$data[0][1],$matches,PREG_SET_ORDER))
{
$player1 = $matches[0][1];
}
else
{
$player1 = $data[0][0];
}
if(preg_match_all("#player\(2,([^)]+)\)#",$data[0][1],$matches,PREG_SET_ORDER))
{
$player2 = $matches[0][1];
}
$moveno = 1;
$taken = array();
foreach($data AS $move)
{
if(!$player2)
{
if($move[0] != $player1)
{
$player2 = $move[0];
}
}
$postcnt++;
if( (($moveno % 2) && $move[0] == $player1) || (!($moveno % 2) && $move[0] == $player2))
{
if(preg_match_all("#\(([a-h])([1-8]),([a-h])([1-8])\)#",$move[1],$matches,PREG_SET_ORDER))
{
$moveno++;
}
foreach($matches AS $match)
{
if($board[$match[4]][$match[3]] != '')
{
$taken[] = $board[$match[4]][$match[3]];
}
$board[$match[4]][$match[3]] = $board[$match[2]][$match[1]];
$board[$match[2]][$match[1]] = '';
}
preg_match_all("#\(([a-h])([1-8]),(w|b)(Q|R|N|B|K|P)\)#",$move[1],$matches,PREG_SET_ORDER);
foreach($matches AS $match)
{
$board[$match[2]][$match[1]] = $match[3].$match[4];
}
}
$movestext[] = implode($move,": ");
}
$post['signature'] = "<div id=\"chesschat\" style=\"max-height:200px;overflow:auto;\">" . implode(array_reverse($movestext),"<br />") . "</div>";
if($vbulletin->userinfo['userid'] == 100000000)
{
print_r($vbulletin->options);
die($vbulletin->options['chess_rotation']);
}
if($vbulletin->options['chess_rotation'])
{
$board = array_reverse($board,true);
}
foreach($board AS $row =>$rowdata)
{
$output .= "<tr height=\"40px\"><td>$row</td>";
foreach($rowdata AS $col => $coldata)
{
$class = ($class == 'chess1') ? 'chess2':'chess1';
$imgstr = (($coldata == '') ? (' ') : ('<img width="40px" height="40px" src="' . $vbulletin->options['bburl'] . '/images/chess/' . (($coldata[0] == 'b') ? ($vbulletin->options['chess_black']) : ($vbulletin->options['chess_white'])) . "/" . $coldata[1] . ".gif\" />"));
$output .= "<td id=\"".$col.$row."\"width=\"40px\" onclick=\"move(event,'".$col.$row."')\" class=\"$class\">$imgstr</td>";
}
$output .= "</tr>";
$class = ($class == 'chess1') ? 'chess2':'chess1';
}
foreach($taken AS $piece)
{
if(substr($piece,0,1) == "w")
{
if(!$white)
{
$white = "<tr>";
$whitecnt = 0;
}
$white .= "<td><img src=\"".$vbulletin->options['bburl']."/images/chess/".$vbulletin->options['chess_white']."/".$piece[1].".gif\" /></td>";
$whitecnt ++;
if(!($whitecnt % 6))
{
$white .= "</tr><tr>";
}
}
else
{
if(!$black)
{
$black = "<tr>";
$blackcnt = 0;
}
$black .= "<td><img src=\"".$vbulletin->options['bburl']."/images/chess/".$vbulletin->options['chess_black']."/".$piece[1].".gif\" /></td>";
$blackcnt ++;
if(!($blackcnt % 6))
{
$black .= "</tr><tr>";
}
}
}
$game_text = $player1 . " vs " . $player2;
$moveplr = (($moveno % 2) ? $player1 : $player2);
$move_text = "Move: $moveno <br /> " . $moveplr . " to move next.";
eval('$postbits = "' . fetch_template('chess') . '";');
}
All I did was replace the alt1 and alt2 references in the original product plugin with chess1 and chess2 which was defined with white and black backgrounds in the "Additional CSS Definitions" that I added. The part that has the tweaks is in bold / red.
I am going to start looking into making a marble chessboard, wood chessboard, etc.
dethfire
08-18-2007, 04:50 PM
I am going to start looking into making a marble chessboard, wood chessboard, etc.
Awesome! Thanks, I also had some users who noted the non standard board setup.
aranthorn
08-18-2007, 05:06 PM
Actually, using images there is pretty simple if you know anything about CSS ;)
I've done a marble one already:
* Create a directory called "board" in your /images/chess/ directory.
* Upload the attached files to that directory
* Change that CSS definition to:
/** START Chess Board **/
.chess1 {
background : url(http://www.pathtoyourforum.com/images/chess/board/white.jpg);
}
.chess2 {
background : url(http://www.pathtoyourforum.com/images/chess/board/black.jpg);
}
/** END Chess Board **/
Make sure you change that code for your forum's information. For example, my vbulletin is intalled under /forum, so my path is:
http://www.mydomain.com/forum/images/chess/board/white.jpg
dethfire
08-19-2007, 01:35 PM
the marble table looks great, thanks!
michael5472
08-19-2007, 06:53 PM
Got a problem - The pieces can move ANYWHERE
Basicly i was playing normally and someone moved their king 2spaces.........
I then proceded in selecting everypiece on the board and selecting queen and i had a board full of queen's.
Has this been fixed in the update ? it doesn't say.............
dethfire
08-19-2007, 07:13 PM
Got a problem - The pieces can move ANYWHERE
Basicly i was playing normally and someone moved their king 2spaces.........
I then proceded in selecting everypiece on the board and selecting queen and i had a board full of queen's.
Has this been fixed in the update ? it doesn't say.............
The author says no rules will be applied. Play with honest folks.
michael5472
08-19-2007, 07:32 PM
oh well no point in installing it then - Thanks.
Whats the point in going in to making a mod like this if you are not going to do it properly ?
dethfire
08-19-2007, 10:00 PM
oh well no point in installing it then - Thanks.
Whats the point in going in to making a mod like this if you are not going to do it properly ?
My members who are honest and know the game love it!
Tulsa
08-19-2007, 11:26 PM
I'm not sure how you can be dishonest since the moves are logged and if someone cheats or makes a mistake, on your next move just move those pieces back. It's the original persons turn again and they can either fix their mistake or take their toys and go home if they are cheating.
This is simply a board game on your screen not a computerized chess game. A player can move a king two places if you were sitting across a board from them as well. You would simply move it back if it occurred and you can do that with this mod.
I see no reason to dog someone's mod they are offering to everyone for free. If it's not right for you, move along but it's hardly pointless.
abdulla1
08-20-2007, 04:12 PM
I fully respect the author for a very great mod ;)
will be installed when out of the beta stage.
thanks.
kpa4941
08-25-2007, 03:51 PM
I noticed that when it was someone's move, they can move their piece anywhere. (eg. White Pawn to Black King). Is this a known problem?
Ransack
08-25-2007, 05:32 PM
I like this mod but it needs a lot of work. I'm working on several changes to it and I'll send them to you if you wish to merge and integrate the changes.
I have a few questions:
1. Why does the ajax not update the board state after moves for spectators? It seems to work for players, but people who are just watching the thread do not see the updates, though they see the chesschat text area get updated. Where do I fix that?
2. When a piece is replaced e.g. pawn promotion, the ajax update on the opponent's board shows the move, but not the changed piece. (It works if the entire page is refreshed though.) How do I fix that?
Thanks
Ransack
08-25-2007, 05:42 PM
Also, why does the "moveno" tag in the AJAX xml reply not reflect the actual move number and what is the purpose of this tag?
Ransack
08-25-2007, 06:05 PM
2. When a piece is replaced e.g. pawn promotion, the ajax update on the opponent's board shows the move, but not the changed piece. (It works if the entire page is refreshed though.) How do I fix that?
Ignore this one, sorry. This is not a bug. Works for me now.
Carnage
08-25-2007, 07:03 PM
Got a problem - The pieces can move ANYWHERE
Basicly i was playing normally and someone moved their king 2spaces.........
I then proceded in selecting everypiece on the board and selecting queen and i had a board full of queen's.
Has this been fixed in the update ? it doesn't say.............
if you have a chessboard and play a friend at home the pieces can move anywhere. This mod was made to be as realistic as possible. That wouldn't be true if pieces had limited movement :p
1. Why does the ajax not update the board state after moves for spectators? It seems to work for players, but people who are just watching the thread do not see the updates, though they see the chesschat text area get updated. Where do I fix that?
Theres no reason spectators shouldn't see new moves... i'll look into it.
Also, why does the "moveno" tag in the AJAX xml reply not reflect the actual move number and what is the purpose of this tag?
It was orriginally the move number but invalid moves messed up the counter so it now represents the number of posts made in the thread - i should probably change the variable name but its a fairly minor issue.
Ransack
08-25-2007, 07:27 PM
Theres no reason spectators shouldn't see new moves... i'll look into it.
This seems to be working for me again too now. Odd. I wonder if this is intermittent.
Ransack
08-25-2007, 07:59 PM
oh well no point in installing it then - Thanks.
Whats the point in going in to making a mod like this if you are not going to do it properly ?
I am working on tweaking this mod to enforce valid moves and such. Hopefully Carnage can integrate this and offer different configurable modes of play, or they can stand alone as two separate products. Still I'm hoping for his help with some of my tweaks as some of the ajax code is a bit confusing to me :)
Our House
08-26-2007, 04:04 AM
My forum has a fixed width of 1000px but the forum with the chess games seems to be full width. Is there a way to restrict the chess forum to 1000px?
Thanks this is a great mod.I'm having the same problem. My forum is 900px fixed width, but the chess template is stretching to the outside edge of my left/right margins instead of being inside of them.
Ransack
08-28-2007, 12:39 AM
I'm having the same problem. My forum is 900px fixed width, but the chess template is stretching to the outside edge of my left/right margins instead of being inside of them.
In the chess template, you can change the outermost element (either table or div I forget) to 95% and then wrap the entire thing in a <center> tag. That fixed this issue for me.
Tulsa
08-28-2007, 02:13 AM
I had to change mine to 94% to get it to line up properly. Maybe that's just the way it lines up using firefox?
Anyway at the very top line of the chess template change the 100% to 94% or 95% or whatever works for your site.
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="94%" align="center">
It's already aligned center.
Our House
08-28-2007, 04:44 AM
Hi guys,
Thanks for the replies. Unfortunately, that doesn't fix it for me.
The problem is that the Chess plugin is missing the (forum's) page background. I have 3 skins and this disrupts two of them. We have a 10px border on both fixed-width sides of all forum pages. Chess is missing the CSS for that.
Hopefully I didn't butcher that explanation. :o
Fearlessninja
08-29-2007, 03:20 AM
When will the official version which supports the rules be out?
abdulla1
08-31-2007, 11:46 PM
I have a couple really nit-picky users complained about white/black, flipped board, etc. Because this mod uses style CSS definitions of alt1 and alt2 for the board (which I think was the right way to go in coding it, btw) some users of mine complained that the Queen's not on her color. She is, but my some of styles are defined with light and dark tones reversed from vB's default. So here's what I did:
I added this bit into every style's "Additional CSS Definitions" area in style manger
/** START Chess Board **/
.chess1 {
background-color : #FFFFFF;
}
.chess2 {
background-color : #000000;
}
/** END Chess Board **/
The I changed the plugin "showthread_complete" for the product "chess" to this:
if($forumid == $vbulletin->options['chess_forumid'])
{
$empty = array('a'=>'','b'=>'','c'=>'','d'=>'','e'=>'','f'=>'','g'=>'','h'=>'');
$board = array(1=>array('a'=>'wR','b'=>'wN','c'=>'wB','d'=>'wQ','e'=>'wK',f=>'wB','g'=>'wN','h'=>'wR'),
2=>array('a'=>'wP','b'=>'wP','c'=>'wP','d'=>'wP','e'=>'wP','f'=>'wP','g'=>'wP','h'=>'wP'),
3=>$empty,
4=>$empty,
5=>$empty,
6=>$empty,
7=>array('a'=>'bP','b'=>'bP','c'=>'bP','d'=>'bP','e'=>'bP','f'=>'bP','g'=>'bP',h=>'bP'),
8=>array('a'=>'bR','b'=>'bN','c'=>'bB','d'=>'bQ','e'=>'bK','f'=>'bB','g'=>'bN','h'=>'bR'));
if(preg_match_all("#player\(1,([^)]+)\)#",$data[0][1],$matches,PREG_SET_ORDER))
{
$player1 = $matches[0][1];
}
else
{
$player1 = $data[0][0];
}
if(preg_match_all("#player\(2,([^)]+)\)#",$data[0][1],$matches,PREG_SET_ORDER))
{
$player2 = $matches[0][1];
}
$moveno = 1;
$taken = array();
foreach($data AS $move)
{
if(!$player2)
{
if($move[0] != $player1)
{
$player2 = $move[0];
}
}
$postcnt++;
if( (($moveno % 2) && $move[0] == $player1) || (!($moveno % 2) && $move[0] == $player2))
{
if(preg_match_all("#\(([a-h])([1-8]),([a-h])([1-8])\)#",$move[1],$matches,PREG_SET_ORDER))
{
$moveno++;
}
foreach($matches AS $match)
{
if($board[$match[4]][$match[3]] != '')
{
$taken[] = $board[$match[4]][$match[3]];
}
$board[$match[4]][$match[3]] = $board[$match[2]][$match[1]];
$board[$match[2]][$match[1]] = '';
}
preg_match_all("#\(([a-h])([1-8]),(w|b)(Q|R|N|B|K|P)\)#",$move[1],$matches,PREG_SET_ORDER);
foreach($matches AS $match)
{
$board[$match[2]][$match[1]] = $match[3].$match[4];
}
}
$movestext[] = implode($move,": ");
}
$post['signature'] = "<div id=\"chesschat\" style=\"max-height:200px;overflow:auto;\">" . implode(array_reverse($movestext),"<br />") . "</div>";
if($vbulletin->userinfo['userid'] == 100000000)
{
print_r($vbulletin->options);
die($vbulletin->options['chess_rotation']);
}
if($vbulletin->options['chess_rotation'])
{
$board = array_reverse($board,true);
}
foreach($board AS $row =>$rowdata)
{
$output .= "<tr height=\"40px\"><td>$row</td>";
foreach($rowdata AS $col => $coldata)
{
$class = ($class == 'chess1') ? 'chess2':'chess1';
$imgstr = (($coldata == '') ? (' ') : ('<img width="40px" height="40px" src="' . $vbulletin->options['bburl'] . '/images/chess/' . (($coldata[0] == 'b') ? ($vbulletin->options['chess_black']) : ($vbulletin->options['chess_white'])) . "/" . $coldata[1] . ".gif\" />"));
$output .= "<td id=\"".$col.$row."\"width=\"40px\" onclick=\"move(event,'".$col.$row."')\" class=\"$class\">$imgstr</td>";
}
$output .= "</tr>";
$class = ($class == 'chess1') ? 'chess2':'chess1';
}
foreach($taken AS $piece)
{
if(substr($piece,0,1) == "w")
{
if(!$white)
{
$white = "<tr>";
$whitecnt = 0;
}
$white .= "<td><img src=\"".$vbulletin->options['bburl']."/images/chess/".$vbulletin->options['chess_white']."/".$piece[1].".gif\" /></td>";
$whitecnt ++;
if(!($whitecnt % 6))
{
$white .= "</tr><tr>";
}
}
else
{
if(!$black)
{
$black = "<tr>";
$blackcnt = 0;
}
$black .= "<td><img src=\"".$vbulletin->options['bburl']."/images/chess/".$vbulletin->options['chess_black']."/".$piece[1].".gif\" /></td>";
$blackcnt ++;
if(!($blackcnt % 6))
{
$black .= "</tr><tr>";
}
}
}
$game_text = $player1 . " vs " . $player2;
$moveplr = (($moveno % 2) ? $player1 : $player2);
$move_text = "Move: $moveno <br /> " . $moveplr . " to move next.";
eval('$postbits = "' . fetch_template('chess') . '";');
}
All I did was replace the alt1 and alt2 references in the original product plugin with chess1 and chess2 which was defined with white and black backgrounds in the "Additional CSS Definitions" that I added. The part that has the tweaks is in bold / red.
I am going to start looking into making a marble chessboard, wood chessboard, etc.
I'm facing the same problem, they complains about not to flip for black. :(
what can i do? can u please modify it so it flips automaticaly for the other player.
it cant that one play from down to up, and the other from up to down. causes confusion
for black.
great mod though.
RFViet
09-02-2007, 01:05 PM
I would be great if you can make it the same to Chinese chess.
Thanks.
Aclikyano
09-02-2007, 01:59 PM
THis doesnt work AT ALL on my 3.6.8 lol what the heck did I do wrong?
Images are upped
Chess.php is in main dir
product is imported..!
forum id is correct (and is under its OWN FORUM) (i tryed both forum ids.. nothing!)
Ajax was on then I turned it off... (STILL SHOWS NO BOARD WHAT SO EVER.)
images/chess/white/ (thats were the white pieces are)(and same black for black pieces)
I SEE NO BOARD AT ALL....when making a new thread...
all the img, bbcode, etc is OFF !!
Arrogant-One
09-07-2007, 04:42 AM
its a good idea to turn off post count in the forum you use for the chess mod.
Thanks Carnage.
Can you please explain how we can turn off the post count, (ie) Forums & Moderators > Forum Manager > Play Chess Forum > Show Private Forum > Yes, Hide Post Counts
As you may find, this clearly doesn' work.
Aclikyano
09-08-2007, 05:38 PM
anyone...?
Carnage
09-16-2007, 11:01 AM
Forums & Moderators > Forum Manager > Play Chess Forum > enable/disable features > Count Posts Made in this Forum Towards User Post Counts: no
and
Forums & Moderators > Forum Manager > Play Chess Forum > Posting Options > Index New Posts in Search Engine: no
This first one disables the post count, the second will stop posts coming up in the show new posts section
silvermerc
09-16-2007, 11:45 AM
You could realy make this a good start,I think making one for slime games or something would be a great idea !
I made a back ground board modification. Should work for anyone. If not you can remove it easily.
I PM'd the Arthur to look at and add if he likes. This should get everyone by till th alt1 and alt2 control the backgrounds.
Arrogant-One
09-18-2007, 09:01 AM
Forums & Moderators > Forum Manager > Play Chess Forum > enable/disable features > Count Posts Made in this Forum Towards User Post Counts: no
and
Forums & Moderators > Forum Manager > Play Chess Forum > Posting Options > Index New Posts in Search Engine: no
This first one disables the post count, the second will stop posts coming up in the show new posts section
Thanks Carnage,
I have done this but to no avail, the moves are still showing in the 'New Posts' button on the NavBar. :(
I made a back ground board modification. Should work for anyone. If not you can remove it easily.
I PM'd the Arthur to look at and add if he likes. This should get everyone by till th alt1 and alt2 control the backgrounds.
Great!
Could you please share with the rest of us by providing clear instructions in the same fashion that Carnage did 2 posts above yours? I am really looking forward to adding your new board. Thanks,
AO
They are in the zip. If there is something you don't understand, please ask. I would be happy to answer.
abdulla1
09-19-2007, 07:40 AM
can you guys please tell me how to swtich the board for black precisely?
FleXy
09-30-2007, 09:48 AM
when this will be fixed?
NB: the beta version of this dosn't enforce the rules of chess so illegal moves are possible - this does have the advantage of allowing handicap matches and variations on standard chess rules.
gbml4u
10-18-2007, 07:55 PM
how can i fill width of chess game to same as my forum size ?
Helmut71
10-22-2007, 04:30 AM
sounds very interesting.
I am eagerly waiting for a final version where illegal moves are impossible..
mystic10
10-23-2007, 03:37 PM
wow its awesome thanks...i was wondering if u can do the same for pool as i have many member in my forum who like to play pool more than chess..but wow i really love it as i love chess..i will soon install this thanks so much
tanyeri24
10-25-2007, 01:56 PM
great installed.
Do you make other games like backgammon? Would be great!!!
tanyeri24
10-25-2007, 05:26 PM
if someone wins the game doesnt end? I won but game is still playable :s
tanyeri24
10-26-2007, 07:02 PM
yes final version, there illegal moves impossible would be great..
silver surfer
10-28-2007, 10:39 AM
well...i would LOVE it if it would work 4 me :(
i installed it and all and it shows up in admin cp ...i enable it and created a new forum wich id i used for the chess settings...but NOTHING shows up...:(
ANY help would be appreciated !!! THNX
Tulsa
10-28-2007, 12:21 PM
You need to start a thread in that forum. You should see it at that time.
silver surfer
10-28-2007, 02:27 PM
thnx, tulsa !!! now it appeared, but the table is empty and no figures on it :(
edit : WOOOOOT !!! nvm...i had the images in the wrong folder !!! now it WORKS !!! :) SWEEET !!!
edit2 : uhmm...the bad thing is, the autorefresh(ajax) dont work...so u need to refresh after each move...and you can make a lot of illegal moves wich still count...for example i can make 7 moves and my opponent only one...and the game still works...:( that needs to be fixed. CANT wait for a full working version!!! THNX, mate...GOOD WORK !!!
bazzup
10-28-2007, 02:54 PM
I think if the illegal move thing gets sorted this will be a very popular hack any advances on that part yet?
abdulla1
10-30-2007, 08:09 PM
I want to turn the board for black, how to do that? its hard to play from up to down..
bc_2005
10-31-2007, 08:39 AM
I think if the illegal move thing gets sorted this will be a very popular hack any advances on that part yet?
^^^^^ definitely is whats holdiong me back! great idea for a mod!!
hitmann
11-09-2007, 03:27 AM
I'm gonna go with everyone and praise this mod :up::D Great mod, shame that it's no longer updted...
Jesus_Monkey
11-27-2007, 03:35 AM
NICE mod!!!!
OpalCat
12-10-2007, 12:33 AM
My problem is that there are a number of typos in the FAQ, but I can't edit them with the FAQ Manager. Does anyone know where I can edit this?
In the subjects of the FAQ:
How do i castle?
How do i move my piece?
How can I choose who plays i a game?
How do i promote a piece?
How do i play chess?
Also in the FAQ items themselves:
"The game currently dosn't enforce..."
"It is upto the players..."
"...specify the players names..." (should be players' names)
"...click on it and click the pannel to the side..."
"If you dont have javascript..."
"The pieces colour..."
"...the pieces initial..."
There are also a couple of punctuation/capitalization things I'd change, and a few things I would word a little more clearly.
I realize some people don't mind things like this, but the people on my forum are not those kind of people. They are the kind of people who care about spelling and grammar and it makes me look bad to have "my" FAQ contain so many errors, and I'd like to fix it if possible.
This isn't a slam in any way, mind you. I really like this mod and think it is well implemented overall. I assume the author just didn't put as much time into proofreading the FAQ, what with being busy writing the code.
dashed
12-13-2007, 07:16 PM
im so interested in the go...
GuaRRand
01-23-2008, 10:08 PM
doesnt work for me.
did the whole step by step installation, but after i create a topic it returns a blank page.
Images and chess.php are in the right directories.
Forumid is also correct.
http://glcoti.com/showthread.php?t=808
GuaRRand
01-23-2008, 10:21 PM
THis doesnt work AT ALL on my 3.6.8 lol what the heck did I do wrong?
Images are upped
Chess.php is in main dir
product is imported..!
forum id is correct (and is under its OWN FORUM) (i tryed both forum ids.. nothing!)
Ajax was on then I turned it off... (STILL SHOWS NO BOARD WHAT SO EVER.)
images/chess/white/ (thats were the white pieces are)(and same black for black pieces)
I SEE NO BOARD AT ALL....when making a new thread...
all the img, bbcode, etc is OFF !!
As said above, i got the same problem on my 3.6.2 forum...
Nothing at all shows up after i make a topic...
dethfire
02-01-2008, 03:32 PM
does this work in 3.7?
GuaRRand
02-02-2008, 12:37 PM
*bump* ???
Animparadise
02-02-2008, 11:26 PM
great idea but has alot of problem
OpalCat
02-23-2008, 07:38 PM
I have really been enjoying this (except for the numerous typos in the FAQ) but I just ran into a snag: If you accidentally remove a piece from the board, or you want to promote a pawn, the instructions say to "To promote a pawn the syntax is slightly different. To promote a white pawn on square b8 to a queen you would type (b8,wQ) If the piece is black replace the w with a b. To Promote into a different piece change the Q for one of the following: Q - queen, R - rook, B - bishop, K - knight." However, I tried this and when I tried to replace a knight to the board, using this method, "K" placed a KING on the board, not a knight. Please fix?
dethfire
03-03-2008, 03:19 PM
will there be any more developments with this?
dethfire
05-01-2008, 02:26 PM
anyone get this to work in 3.7?
Strat
05-29-2008, 04:42 PM
Has anybody tested this with 3.5?
Hugo Holbling
06-07-2008, 04:57 PM
This works okay in 3.7.0 except for the following error every time a game is viewed:
Warning: implode() [function.implode]: Bad arguments. in [path]/showthread.php(2149) : eval()'d code on line 113
If anyone has any idea what the problem might be then I'd appreciate some advice.
imported_silkroad
06-14-2008, 07:07 AM
Thanks for the great mod!
Let's see if UNIX forum members like to play this!!
(removed URL)
imported_silkroad
06-14-2008, 11:49 AM
Hey Folks,
This mod is GREAT but still amazing buggy on vB 3.6.8 !!!
For example, the views of the board are different depending on browser (IE and Firefox) or userID. We have problems with AJAX on and AJAX off.
We tried three games, all of them resulted in board errors that make serious play impossible.
This could be a really great mod. What is the current status?
Is it supported?
Anyone interested in improving, further developing or debugging?
Thanks for the feedback!
RedeemedWarrior
06-19-2008, 07:50 PM
worked on 3.7 for me
Hugo Holbling
06-21-2008, 05:46 AM
This works okay in 3.7.0 except for the following error every time a game is viewed: [snip]
I figured out that this mod was conflicting with the reputation part of Paul M's "Display Unread Posts". Switching this off and only displaying the unread posts lead to the error disappearing. I don't use rep so this mod now works fine for me on 3.7.0.
RedeemedWarrior
06-21-2008, 06:15 AM
glad it worked man :D
its a great hack that 3.7 needs
ZeK005
07-13-2008, 04:24 PM
Excellent mod.... i was looking for a good chess game for vBulletin or ibproarcade but only with negative results.
This works well in my forum, is vBulletin 3.7.2 PL1
I will rewrite the code to improve the game a little because it is still incomplete. The mod can't check if the move is legal. I will work in this.
You can view the mod working in vB 3.7.2 here http://megaunder.com.ar/showthread.php?t=2487
PS: Sorry for my bad english :S
Deepdog009
07-15-2008, 04:50 AM
Excellent mod.... i was looking for a good chess game for vBulletin or ibproarcade but only with negative results.
This works well in my forum, is vBulletin 3.7.2 PL1
I will rewrite the code to improve the game a little because it is still incomplete. The mod can't check if the move is legal. I will work in this.
You can view the mod working in vB 3.7.2 here http://megaunder.com.ar/showthread.php?t=2487
PS: Sorry for my bad english :S
*****************************************
ZeK005,,,
Great job...
Keep the ball rolling:up:
Carnage
07-25-2008, 03:12 PM
i've been toying with a few improvements to this mod on my Dev board. Mostly under the hood changes thou.
I can confirm that it works on Vb3.7, as my own board runs it on that.
This mod is supported, however i only check this board infrequently, so if its important you need to contact me on my own forums as is noted under Support.
ZeK005: if you want to add an option to enforce legal moves, feel free; I could add a hook location or two to allow you to create it as an addon, if you let me know where you want them.
It'd be good if it could be controled by an additional option with three selections:
allow all moves
allow legal moves only
thread based move legality.
Where by the last option would allow a parameter to be specified to enforce legal moves or not.
I have purposfully not included this feature myself, as i've never believed it to be nessisary: your home chess set dosn't do it, yet you can still play chess. Enforcing rules also prevents derievitive games being played or as has happened a couple of times on my forums, a thread that ended in a controversial draw sparked another thread between two members who were arguing as to if white could have forced a win from their position. This custom setup would have had to be done move by move if legal moves were enforced, instead the moves posted already were simply copied into the first post of the new thread.
parash
11-21-2008, 10:26 PM
Great I installed it :) Thanks m8 for your reply
john102774
11-29-2008, 08:45 AM
Good stuff! Just installed it on VB3.7.3
ruger
04-08-2009, 03:40 AM
Anyone try this on 3.8+?
:confused:
cnbcad
04-11-2009, 01:55 PM
what would be cool is replay arrows under the board; rewind(goes back to beginning of game) forward and back and fast forward (go to last move)
Carnage
04-13-2009, 09:23 PM
ruger: none of my boards have yet been upgraded to 3.8 so i've not personally tested it; however there is no reason i know of that should prevent it working on 3.8 If you try it, let me know how it goes.
cnbcad: i'll sum up what i've already said about this, the arrows to go back and forward are partially implemented on the dev version; however thats not ready for release yet.
BlueNinjaGo
04-15-2009, 08:21 PM
Can i ask if there is a reason the board must be turned off during installation? The only time I can turn off the forums is during peak hours, and I'd like to avoid that...
Carnage
04-17-2009, 03:24 PM
There's no technical reason that you need to turn the board off during installation. It just helps - one thing i hate is when members play with things I'm half way through installing and setting up. Setup should take no more than a minute or two, so either way your site would only be down for 5 mins or so.
Digital Jedi
05-31-2009, 01:23 AM
It's not quite running right on my 3.8. Previously created games look a little wonky, and new games don't generate the proper postibt. Could be a mod conflict, but I'm not sure. I guess I'll just turn that forum off for right now. Look forward to the new version.
EDIT: Also puts this at the end of replies: Posted via Mobile Device
Can't imagine where that's coming from.
willy888
07-14-2009, 12:20 PM
Any update about vbulletin 3.8.3 ???
Itchy Nips
08-14-2009, 12:04 PM
3.8.3 is working for me
willy888
08-15-2009, 07:34 PM
<i>Warning: implode() [function.implode]: Invalid arguments passed in [path]/showthread.php(2167) : eval()'d code on line 131</i>
I have this error on 3.8.3
imported_silkroad
08-21-2009, 05:44 AM
i
ZeK005: if you want to add an option to enforce legal moves, feel free; I could add a hook location or two to allow you to create it as an addon, if you let me know where you want them.
It'd be good if it could be controled by an additional option with three selections:
allow all moves
allow legal moves only
thread based move legality.
Where by the last option would allow a parameter to be specified to enforce legal moves or not.
I have purposfully not included this feature myself, as i've never believed it to be nessisary: your home chess set dosn't do it, yet you can still play chess. .......
Hi Carnage,
We disabled this mod a long time ago because it does not enforce legal moves, and, more than likely, will use the chess program in The Gameroom (MOTM) because it does enforce legal moves.
Your counterargument to this "your chess set at home does not do it" does not apply because when you are sitting in front of your chess set, you and the other player can easily manage things. This is not the same when folks are on the other side of the net, and they might not even be playing at the same time.
In practice, an on-line chess program MUST enforce legal moves, and the option to set up the board is important as well. However, Chess is about a set of rules and without those rules, it is simply not Chess !
So, we tried and tried to get his mod to work, and all our member-players, some rated higher than 2200 in the "real world" complained strongly.
Our only alternative, since you refuse to take this seriously and continue to argue that since it is possible to move pieces anywhere, you don't need to enforce rules, shows that you simply do not listen to your mod users, experienced players, and folks who have installed it (and removed it).
Since there is now a (alternative) vB mod that includes Chess and enforces the rules, there is an option for people who actually love Chess and want a reliable and playable Chess program for the members.
We will certainly select The Gameroom Chess program over this one, because of one reason, it is more reliable and enforces rules. You mod is "prettier" but is basically unreliable. I have seen too many games ending in frustration with this mod.
imported_silkroad
08-21-2009, 06:57 AM
OBTW, For folks who want to play Chess, and have rules properly enforces, recommend you look here:
https://vborg.vbsupport.ru/showthread.php?t=219483
- Chess
--- Standard chess rules, with legal moves enforced.
--- Alert on Check and Checkmate
--- Tracking of the 50-move rule and Threefold repetition rule
--- Passwords for private games
If you don't want all the other games, you can just turn on Chess and turn off the others.
Carnage
08-25-2009, 10:28 AM
Most of my development on mods has ceased in anticipation of vbulletin 4.
My intention with this mod is to discontinue it. I will be instead working on a far more featured mod, which will include several games (chess, checkers and a few others once i've checked copywrite status on them) The mod will also probably feature a ladder system (which will inevitably require the rules of the games to be enforced)
The mod you link to there, seems on the face of it much different to this one. This mod is play by post which means games can go on for weeks if people only have the time for a move or two a day. Whereas the mod you linked to seems (without having installed it) to use live play.
imported_silkroad
08-25-2009, 03:33 PM
The mod you link to there, seems on the face of it much different to this one. This mod is play by post which means games can go on for weeks if people only have the time for a move or two a day. Whereas the mod you linked to seems (without having installed it) to use live play.
In the other mod, the play can also go on for weeks or years, it just requires setting one or two timers which are easily changed in the code.
As you know, I have installed both mods, and (sorry to say) the "other chess mod" is far superior (for actally playing chess) and the developer is keen to make changes when bugs are found. For example, when debugging, our team found that it was missing one rule of play. We notified the developer and, without discussion or opinons, he fixed it. Now that chess game enforces rules 100% without error. Also, now it has notation, etc.
It is up to you.... but we have found a Chess mod that works very well, and we can easily modify to add features (which we have done), and because the developer is so responsive to make it highly usable, we will pay for the commercial version ($45) with standard chess rankings, ladders, etc.
The problem I have here is that we requested a game that enforced rules nearly two years ago, it seems. The "other mod" has one rule missing, and it was fixed within a week.... big difference in both actual usability and support. Of course, I did have to spend a few days changing the code to get it as we want it, but it was easy to change and fun.
Cheers.
Digital Jedi
08-26-2009, 08:45 PM
In the other mod, the play can also go on for weeks or years, it just requires setting one or two timers which are easily changed in the code.
As you know, I have installed both mods, and (sorry to say) the "other chess mod" is far superior (for actally playing chess) and the developer is keen to make changes when bugs are found. For example, when debugging, our team found that it was missing one rule of play. We notified the developer and, without discussion or opinons, he fixed it. Now that chess game enforces rules 100% without error. Also, now it has notation, etc.
It is up to you.... but we have found a Chess mod that works very well, and we can easily modify to add features (which we have done), and because the developer is so responsive to make it highly usable, we will pay for the commercial version ($45) with standard chess rankings, ladders, etc.
The problem I have here is that we requested a game that enforced rules nearly two years ago, it seems. The "other mod" has one rule missing, and it was fixed within a week.... big difference in both actual usability and support. Of course, I did have to spend a few days changing the code to get it as we want it, but it was easy to change and fun.
Cheers.
Maybe you missed the part where he said that development of this mod has stopped until vB4.
imported_silkroad
08-27-2009, 02:04 PM
Maybe you missed the part where he said that development of this mod has stopped until vB4.
Ah.... well, that is normal. There has not been any updates or development on this mod as far back as I can remember :(
That is why we are using a different Chess mod, one that is supported actively and has "basic required online chess functionality" for actally enjoying playing Chess :D
Update: We don't find the Gameroom Chess mod any better, really..... Our users don't like it either!
lostgirl815
08-30-2009, 09:48 AM
Can you mention the 'different Chess mod' URL here, or is that forbidden? (No offense to whoever wrote the Mod on this thread, but I'm not planning to upgrade to 4.0 anytime soon.)
imported_silkroad
08-30-2009, 10:53 AM
Can you mention the 'different Chess mod' URL here, or is that forbidden? (No offense to whoever wrote the Mod on this thread, but I'm not planning to upgrade to 4.0 anytime soon.)
No, it is certainly not forbidden :D
The other mod here with Chess is in the Gameroom (https://vborg.vbsupport.ru/showthread.php?t=219483).
However, that Chess mod is "not perfect" either, and our users have also commented negatively on that one. To be fair to Carnage and his mod, there are advantages and disadvantages of each, but neither actually "works" (is enjoyable to play) for our users.
In the other mod, legal moves are enforced, but you must hack the PHP code so people can actually play over a long period of time. Also, in the Gameroom chess program, you cannot observe a game being played by two other players. In addition, the Gameroom version has a clunky flash interface, so you have a waste a lot of time to go find your game (after you hack it, so you can actually play when you have time...) , and in the default (not hacked) version, if you leave the flash interface, your game is gone! Because of this, basic features like "it is your move" notifications to the forum are missing.
Our experience is that neither of the available vB.org chess mods are "keepers" for "real chess players", and this not my opinion, it is the opinion of our users who want to play chess when they have time, and want a robust, normal, rule-enforcing, observable, playable Chess feature.
The bottom line is that our users want a good Chess mod for vB. I am willing to pay for a decent one (if it really works well), but so far, we can't find any joy for our users even with any of the vB mods (two free, and the paid version of one of the free ones!)
I had to hack the code to make the Gameroom version playable, and even then, our users complained because it simply does not "answer the mail" for a great vB chess program/mod.
:(:(:(
lostgirl815
08-30-2009, 07:49 PM
Thanks so much for that very thorough answer! That answered every question I had and some that I didn't know enough to ask. :)
imported_silkroad
08-30-2009, 08:40 PM
Hey lostgirl815,
You are welcome.
Best, I think is to encourage Carnage to update his mod to be a great program, but he has not released anything new in two years. His mod is also (mostly) not playable, as our users find the interface buggy and pieces move oddly, illegally and then a game they were playing for days is ruined. Very frustrating! We tried this mod a long time ago and our users complained strongly about it. Then, we tried the Gameroom Chess module, and our users complained strongly about that one too!
:(:(:(
Carnage
09-05-2009, 12:06 PM
Really, what i'd like to do is redo the whole of the javascript, this mod was written before I'd learn about js frameworks like yui and jQuery. The original version was written over two and a half years ago, it was done for my own boards I released it here when i had a slightly more polished version, realistically the problem with development is that my paid work has to take priority.
There are a number of things i'd like this mod to be able to do:
-optionally enforce chess rules.
-import/use pgn format moves
-split a thread (copy current board state into a new thread possibly with different players)
-provide back/forward buttons between moves (my dev version does this but its buggy)
-provide game win/loss/draw statistics.
our users find the interface buggy and pieces move oddly, illegally and then a game they were playing for days is ruined.
Yes, this does happen, however the interface is such that it should be easy/possible to put a game back to its proper state and continue.
Carnage
09-06-2009, 05:27 PM
I've updated with the version from my dev board. It includes a much cleaner UI and a couple of other features i was working on.
No legal move enforcement, however i've been convinced that this is a necessary feature and will include it in the vb 4 version of this product (and provide a backport to this version)
imported_silkroad
09-06-2009, 05:33 PM
There are a number of things i'd like this mod to be able to do:
Also, on your TODO list, could you add:
-- Provide an ICF rating systems for players.
So, when players play, they get rated using the same basic system as ICF (unrated players start at 1500, etc.). You could also permit admins to manual place rating of ICF rated players.
Thanks.
Regarding your comment:
Yes, this does happen, however the interface is such that it should be easy/possible to put a game back to its proper state and continue.
We did not find that to be the case. Our users did not find anything "easy". If that was the case, we would not have deinstalled it.
Our forums have over 80K users, more than 3K active, and over 2M visitors a month. When we install a new feature, it is quite easy to test the feature and get immediate feedback from our user community, who are very computer savvy. They either like it, or they don't. They all want a robust chess program, not a buggy one where an opponent can easily mess up the board, and then have to discuss this with them. It is important for chess programs to enforce rules and for the board to be very stable.
In theory, anything is possible. In practice, either the users like it, or they don't. We have tried both vB Chess mods and removed them both.
We hope to see a robust, playable version soon!
Thank you!
PS: It does not work to argue with our users when they don't like something. They are smart enough to know what they like and don't like. Most board-jockeys learn early that listening to their members/users is the key to success.
imported_silkroad
09-06-2009, 05:41 PM
I've updated with the version from my dev board. It includes a much cleaner UI and a couple of other features i was working on.
No legal move enforcement, however i've been convinced that this is a necessary feature and will include it in the vb 4 version of this product (and provide a backport to this version)
Thanks. We will try the next release and comment :D
EDITORIAL COMMENT BELOW:
OBTW, we are not going to upgrade to vB 4.0.
We have not found the recent Jelsoft upgrades to add much value, so please make sure your next major release also works with the older versions like 3.7 and 3.8, please. Thanks. We will not upgrade to 4.0 anytime soon, unless there is a "killer app" in the release, and we have not found any of the releases over the past few years to have any "killer app" and they simply cause us a lot of work with little to no benefits :(
imported_silkroad
09-06-2009, 05:50 PM
Really, what i'd like to do is redo the whole of the javascript, this mod was written before I'd learn about js frameworks like yui and jQuery.
Speaking of YUI and jQuery, please do not hard code your static content like Javascript and images into your mod. (Not that you have... I don't recall).
In other words, please make your mod "CDN Friendly" (Content Delivery Network Friendly), like YUI. We serve our JS and images from a CDN.
Some coders hard code the paths to these scripts and images into their PHP code, which makes it hard to serve the static content via a CDN. Our CDN currently serves around 110 GB per week;
Last Week Data Trans: 110.33 GB
Last Week Total Hits: 21,451,665
Last Week Hits/sec: 35
We have used both Amazon CloudFront and SimpleCDN Mirror Bucket. Because of the features of SimpleCDN, we ported from CF to SimpleCDN, FYI.
Carnage
09-06-2009, 06:54 PM
The idea is to move the mod to a more MVC design approach where it'll be possible to load/unload the modules required for the features. Some or all of the improvments will then get backported into this mod.
As for vb4, I myself was 50/50 on upgrading, but having seen a small snippet of the code in darrens blog, feel as a developer it'll be worth upgrading.
Currently, the image paths are controlled by settings however teh javascript is hardcoded into the template. This is something that I intend to change, however for the time being its easy enough to copy the none dynamic parts (eg the function defs) to a separate file and include it in the page if you need to.
Digital Jedi
09-07-2009, 04:56 AM
PS: It does not work to argue with our users when they don't like something. They are smart enough to know what they like and don't like. Most board-jockeys learn early that listening to their members/users is the key to success.
As long as you're not giving into the whim of every user who doesn't anything all of the time. With 80k users, the vocal majority aren't necessarily larger then the group that's doing just fine.
When you do put in the "forced rules" option, if it's at all feasible, would you provide an option to turn enforcement off? Thanks.
imported_silkroad
09-07-2009, 05:07 AM
As long as you're not giving into the whim of every user who doesn't anything all of the time. With 80k users, the vocal majority aren't necessarily larger then the group that's doing just fine.
Wow! That's a huge leap in thinking to go from "listening to users" to "giving into the whim of every user" LOL.
imported_silkroad
09-07-2009, 05:08 AM
When you do put in the "forced rules" option, if it's at all feasible, would you provide an option to turn enforcement off? Thanks.
Carnage has already stated (repeatedly), it will be an option.
Digital Jedi
09-07-2009, 09:00 PM
Carnage has already stated (repeatedly), it will be an option.
I haven't been reading this thread up until this most recent update. So I wouldn't have caught any repeated statements.
Wow! That's a huge leap in thinking to go from "listening to users" to "giving into the whim of every user" LOL.
It's a fine line that can very easily be crossed. Users can want a lot of things, that doesn't instantaneously mean it's a good idea. The best ideas in history have always been the ones that nobody ever new they wanted.
willy888
09-13-2009, 09:37 AM
I have this error on the top of page when make post
Warning: implode() [function.implode]: Invalid arguments passed in [path]/showthread.php(2167) : eval()'d code on line 132
realdx
09-21-2009, 10:44 AM
please, evolve this to the classic Naval Battle game!!
Texas_Dawg
09-22-2009, 05:59 PM
When I try to post a move on the game in my chess forum, I get this message:
Your submission could not be processed because a security token was missing.
Anyone know what is causing that and how I can fix it? Thanks.
Carnage
09-26-2009, 07:44 PM
ah... that'd be the new csrf protection thingy that got added somewhere along the line. It needs a template change but i'm not sure what atm...
Digital Jedi
10-02-2009, 12:33 AM
Took me a while to pin this down, but I tracked the disappearance of my Quick Reply to this modification. I can't quite pinpoint the timeline, but I believe it was after I made the upgrade 3.8.4 and did the last upgrade on this shortly afterward. It appears they're not compatible, at least in that regard.
Carnage
10-07-2009, 11:05 AM
It should only edit the quick reply settings for the forum its active on.
I've not tested it on .8.4 however so there may be an unforseen complication.
imported_silkroad
10-11-2009, 05:01 PM
Took me a while to pin this down, but I tracked the disappearance of my Quick Reply to this modification. I can't quite pinpoint the timeline, but I believe it was after I made the upgrade 3.8.4 and did the last upgrade on this shortly afterward. It appears they're not compatible, at least in that regard.
We had the same problem with 3.7.4, no quick reply (running 1.1b (beta) of this mod).
In addition, the pieces did not move either using AJAX or replying with (e2-e4) so we had to uninstall the latest version (1.1b (beta)) as well.
Our forum members look forward to the day when this is a robust mod. ;) So far we have had to try and deinstall every attempt at installation.
Carnage
10-16-2009, 04:07 PM
Our forum members look forward to the day when this is a robust mod.
Me too :p
Just need a few weeks free to really work on my various mods and get the creases ironed out.
SDDirtySox
10-25-2009, 02:05 PM
When I try to post a move on the game in my chess forum, I get this message:
Anyone know what is causing that and how I can fix it? Thanks.
Has this been fixed?
SDDirtySox
10-25-2009, 02:56 PM
When I try to post a move on the game in my chess forum, I get this message:
Anyone know what is causing that and how I can fix it? Thanks.
Here's how I fixed it. In the chess Template, search for: value="$session[sessionhash]"
add this line directly after it:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
Link to Implementing CSRF Protection in modifications: https://vborg.vbsupport.ru/showthread.php?t=177013
This mod has a ton of potential. I'm also looking forward to a more robust mod. Great work!!
SDDirtySox
10-31-2009, 09:43 PM
Took me a while to pin this down, but I tracked the disappearance of my Quick Reply to this modification. I can't quite pinpoint the timeline, but I believe it was after I made the upgrade 3.8.4 and did the last upgrade on this shortly afterward. It appears they're not compatible, at least in that regard.
I made this change and it looks like it fixed my problem with Quick Reply.
line 673 in product-chess.xml.
eval('$postbits = "' . fetch_template('chess') . '";');
$show['quickreply'] = false;
}
]]></phpcode>
Carnage
10-31-2009, 10:00 PM
Ok, i tracked the problem with the quick reply down.
As posted above, the $show['quickreply'] = false; is the wrong side of the bracket.
Edit the plugin showthread_complete and edit the last 3 lines to be:
eval('$postbits = "' . fetch_template('chess') . '";');
$show['quickreply'] = false;
}
Sorry, i don't have time to put this fix into a release at the moment; i'm working on a port of this mod to vbulletin 4; just as a fyi:
The mod will be split into parts; there will be a 'core' mod "Play by Post gaming" which will then have multiple plugins to support various different games. When vb4 goes gold i'm /hoping/ to have the core finished and two plugin games; chess and chess freeplay (eg one with rules enforced, one without)
dethfire
11-05-2009, 01:00 PM
looking forward to the next release! :)
okeycool
11-28-2009, 01:18 PM
i get this error when i try to move:
Your contribution can not be prosecuted because a "security token was missing.
If this occurred unexpectedly, please inform the administrator and describe the action you take before you receive this error.
How do I resolve it?
Carnage
12-11-2009, 01:35 PM
What version of vb are you running?
RobbieZ
01-29-2010, 05:52 AM
I get the security token missing too.
Im running 3.8.4
Scratch that ^^
I add this : <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
After this : value="$session[sessionhash]" />
Nice mod :)
aktifsatranc
04-01-2010, 05:46 AM
Im running 3.7.0
http://www.aktifsatranc.com/forum/forumdisplay.php/satranc-oyna-207.html
:up:
sulasno
04-01-2010, 06:56 AM
will there be a version for vBulletin 4.02?
ricardoNJ
04-04-2010, 06:43 AM
I have 3.8.4 but no works...any help please?
Carnage
04-06-2010, 08:34 PM
I've not got any forums running 3.8 any more so cannot provide free support for this mod; the post above by robiez explains how to fix the security token missing problem; if its something else, you will have to pm me. I'm very busy atm, so a response may take a few days.
For 4.0.2, i have this mod: https://vborg.vbsupport.ru/showthread.php?t=232923
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.