vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Chess (https://vborg.vbsupport.ru/showthread.php?t=153638)

Carnage 07-27-2007 10:00 PM

Chess
 
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
  1. Backup your Database
  2. Upload images into your images directory.
  3. new for v1.0b Upload Chess.php to your main forum directory.
  4. Turn your board off.
  5. Create a new forum, browse to it and make a note of its forum id.
  6. Disable Html, bb code,smilies,[img] code and post icons in this new forum
  7. Import the chess product
  8. 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.
  9. (Optional) Create a link forum to point to the chess faq which explains how to play.
  10. Turn your board back on
  11. Click installed.

Upgrade from < 1.0b
  1. Backup your Database
  2. Upload Chess.php to your main forum directory.
  3. Import the chess product (allow overwrite must be set to yes)
  4. Check the new settings are set to your liking.

Upgrade from 1.0b
  1. 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:

Quote:

Code:

(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)(f2,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,wR)(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

Quote:

Originally Posted by Carnage- (Post 1303942)
odd... it extracts fine for me... what are you using to extract it?

WinRAR

3mr3 07-28-2007 03:32 PM

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

Quote:

Originally Posted by Carnage- (Post 1303951)
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

Quote:

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

Quote:

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?

HDT 07-29-2007 03:05 AM

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

Quote:

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.

Quote:

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

Quote:

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

Quote:

Originally Posted by Carnage- (Post 1304510)

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

Quote:

waiting for the ajax, then mod of the month
i'd better start reading up on vbulltings ajax implmentation then :p

Quote:

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

Quote:

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.


All times are GMT. The time now is 06:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01452 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete