[DEV] Chess Game

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
mr.boo
Registered User
Posts: 70
Joined: Mon Apr 10, 2006 4:21 am
Location: Indonesia

Post by mr.boo »

paul999 wrote: When there will be a new version released? I want it to use on a forum, but there are to much bugs in this version :).

Wait, in this weekend, i'll try to release it... :)
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28619
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Post by Paul »

Okay thank you :)
.SlimDog.
Registered User
Posts: 29
Joined: Tue Jan 10, 2006 11:22 pm

Post by .SlimDog. »

Realy amazing mod. Now I'm testing it in my forums, everything looks fine for now, but I found 2 anoyng things:

1. It would be cool, if you could get a notice, when it's your turn..
2. It could save move autimaticaly, without pushing button save, because we know the rules - if you done move, you can't change it, but there you can, eg. do move (without saving) and push new topic button...

And you could do one optional thing:

When someone joins to the game, topic title could change to playercreated vs playerjoined :)

Good luck with this mod, it's realy cool.

(Sorry for my bad English)

Edit: I hope, when you release next version there will be instructions how to update from previous...

~SlimDog
Last edited by .SlimDog. on Tue May 02, 2006 4:39 am, edited 1 time in total.
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Post by Peter77sx »

Have you thought about developing other board games... like Checkers?
.SlimDog.
Registered User
Posts: 29
Joined: Tue Jan 10, 2006 11:22 pm

Post by .SlimDog. »

Here some feature request (maybe you'll like it :)):
You could do that mod calculate wins/loses and add stats to user profiles.
.SlimDog.
Registered User
Posts: 29
Joined: Tue Jan 10, 2006 11:22 pm

Post by .SlimDog. »

Sorry for duble post, but i found a bug...

Code: Select all

White
a2-a3
h2-h3
b2-b3
Nb1-c3
Nc3xb5
e2-e3
e3-e4
h3-h4
f2-f3
d2-d3
a3-a4
c2-c3
Qd1xd3
Bc1-e3
b3-b4
c3xb4
a4xb5
Ke1-e2
Ke2xe1
e4xd5
Qd3-c3
f3-f4
Ke1-e2
Ke2-d2
f4xe5
Qc3xc7

Black
b7-b6
g7-g6
b6-b5
e7-e5
a7-a5
g6-g5
Nb8-a6
g5xh4
Bc8-b7
Bb7-c6
Na6-b4
Nb4xd3+
d7-d5
Ng8-f6
a5xb4
Bc6xb5
Ra8xa1+
Ra1-e1+
Qd8-a8
Qa8xd5
Qd5-a2
Qa2-b1+
Qb1xf1+
Qf1xb5
Bf8xb4
Bb4xd2
After sach, mat mine king was removed and I still could do the move... :/
Govnor
Registered User
Posts: 259
Joined: Mon Jan 16, 2006 12:42 am
Contact:

Post by Govnor »

Just what I've been looking for!! well almost, I can't play chess so I was after card games & draughts Still gonna keep an eye on this.

Games are a great way to keep your users comming back.
Image
User avatar
mr.boo
Registered User
Posts: 70
Joined: Mon Apr 10, 2006 4:21 am
Location: Indonesia

Post by mr.boo »

.SlimDog. : Already fixed on my previous post

Remove confirmation page after post any moves :
mr.boo wrote: Open /chess/chess_posting.php
Find this line :

Code: Select all

684: $template->assign_vars(array(
685: 		'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">')
686: );
687: $message =  $lang['Chess_played'].'<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . '">', '</a>');
688: message_die(GENERAL_MESSAGE, $message);
and remarks it all, confirmation page will disappear...

Fix for change chess sets & chess boards not works :
mr.boo wrote: Open posting.php
Find :

Code: Select all

			$chess_set_name = ( !$board_config['chess_override_user_set'] && ...
			$chess_board_name = ( !$board_config['chess_override_user_set'] && ...
			// CHESS_MOD END
(I cut the codes, 'coz its too long...)
Delete "!" operand before $board_config[', and the codes will be :

Code: Select all

			$chess_set_name = ( $board_config['chess_override_user_set'] && ...
			$chess_board_name = ( $board_config['chess_override_user_set'] && ...
			// CHESS_MOD END
On my old codes, I used '0' value in 'chess_override_user_set' means as user can set their own chess set & board.
Latter I change it, but forgot to change the code :P, sorry...

Fix for king can be take by opponent :
mr.boo wrote: replace /chess/includes/chess_posting.php with this :
chess_posting.php.zip

Fix for pawn promotion not works in FireFox :
mr.boo wrote: Open : /chess/templates/subSilver/chess_viewtopic_body.tpl

Find :

Code: Select all

<input type='text' name='notation' id='notation' size='8' maxlength='6' onkeyup='type_notation()' class='post'>
Replace :

Code: Select all

<input type='text' name='notation' id='notation' size='10' maxlength='8' onkeyup='type_notation()' class='post'>
I forgot to changed maxlength value, while notation for pawn promotion length is 8! :mrgreen:
.SlimDog.
Registered User
Posts: 29
Joined: Tue Jan 10, 2006 11:22 pm

Post by .SlimDog. »

Cool thanks, I think you should update general zip with fixed files.
User avatar
Blubibulga
Registered User
Posts: 20
Joined: Fri May 09, 2003 11:44 am
Location: France

Post by Blubibulga »

I agree whit .SlimDog. :P
Blub ... BlUb !!!
dan369
Registered User
Posts: 167
Joined: Mon Jul 05, 2004 11:03 am

Post by dan369 »

Please finnish this hack cause its great! Im sure it will be used a lot.
sputum
Registered User
Posts: 27
Joined: Tue Oct 21, 2003 3:08 pm

Post by sputum »

Is there an actual download?
.SlimDog.
Registered User
Posts: 29
Joined: Tue Jan 10, 2006 11:22 pm

Post by .SlimDog. »

Found a bug, move list:

Code: Select all

White
a2-a4
h2-h4
Ra1-a3
Ra3-e3
Re3-e5
Re5xa5
Ra5xf5
h4-h5
Rh1xh5
Ng1-h3
b2-b4
Bc1-b2
Rh5xh7
Qd1xc1
Nh3-g5
Ng5-f7
Rh7xf7
Nb1-a3
g2-g4
Bf1-h3
Na3-b1
Ke1-d1
Nb1-c3
d2xc3
Kd1-d2
Qc1xh1
Kd2xe2
Qh1-h8
Ke2-e1
Ke1-f1
Kf1-g1
Kg1-h2
Kh2xg2
Qh8-h7+
Kg2-h2
Qh7-h3+
Qh3-g3+
Qg3-g2
f2-f4
Kh2-g1
Qg2-g5
Qg5-f5
Kg1-f2
Rd1xc1
Rc1-d1
Kf2-e1

black
f7-f5
Nb8-c6
Nc6-a5
g7-g6
Bf8-g7
Ng8-f6
g6xf5
Nf6xh5
a7-a5
Rh8-f8
a5xb4
Bg7xb2
Bb2-c1
c7-c5
Qd8-b6
Rf8xf7
Ke8xf7
Ra8xa4
f5xg4
g4xh3
h3-h2
h2-h1
b4xc3
Qb6-a6
d7-d5
Qa6xe2+
Bc8-f5
Bf5-g4+
Ra4-e4+
Bg4-h3+
Re4-e1+
Bh3-g2
c5-c4
Kf7-f6
Kf6-e6
Ke6-d6
Kd6-c6
Re1-e6
Re6-h6+
Rh6-f6
Rf6-e6
Re6-e1+
Re1-c1
Kc6-d6
b7-b5
A white tower apeared from nowhere... It had been removed before, but it strangely apeared... :/ It apeared in d1

EDIT: And one more think... When there are a lot of moves, chess board table transforms or smt, looks not well... Maybe moves could be in inline frame ; combinated with java scripts or smt. like that. Or it could display only limit number moves and if there is more moves that limit, it could display a link to all moves popup...
User avatar
mr.boo
Registered User
Posts: 70
Joined: Mon Apr 10, 2006 4:21 am
Location: Indonesia

Post by mr.boo »

Blubibulga wrote: I agree whit .SlimDog. :P
All bugs fix will includes on next release...
dan369 wrote: Please finnish this hack cause its great! Im sure it will be used a lot.
I still "fights" with this script...
sputum wrote: Is there an actual download?
Download link at first post didn't works?
.SlimDog. wrote: ...A white tower apeared from nowhere... It had been removed before, but it strangely apeared... :/ It apeared in d1...
Bug : rock appeared from nowhere (chess castle check bug) :(
Fix : open /chess/includes/chess_posting.php

Find :

Code: Select all

if ( $notation == 'e1c' || $notation == 'e1g' || $notation == 'e8c' || $notation == 'e8g' )
Replace with :

Code: Select all

if ( (($notation == 'e1c' || $notation == 'e1g') && $chess_piece == 'WK') || (($notation == 'e8c' || $notation == 'e8g' ) && $chess_piece == 'BK') )
.SlimDog., I want to ask about your move list, black pawn moved h2-h1, is that true? Without promotion symbol?
Because that should be recorded as one of this :
h2-h1(Q) (pawn promote as Queen) or
h2-h1(B) (pawn promote as Bishop) or
h2-h1(N) (pawn promote as Knight) or
h2-h1(R) (pawn promote as Rock)

Javascript for pawn promotion not works on yours?
.SlimDog. wrote: EDIT: And one more think... When there are a lot of moves, chess board table transforms or smt, looks not well... Maybe moves could be in inline frame ; combinated with java scripts or smt. like that. Or it could display only limit number moves and if there is more moves that limit, it could display a link to all moves popup...
Next release, OK? ;)
sputum
Registered User
Posts: 27
Joined: Tue Oct 21, 2003 3:08 pm

Post by sputum »

I saw the Downloadlinks, but: are these the actual versions (with some bugfixes!)
Post Reply

Return to “[2.0.x] MODs in Development”