SMFChess

Started by feeble, November 26, 2006, 07:36:17 PM

Previous topic - Next topic

Smith Online

The new update sounds great Carnt wait to try it out ;)

But i carnt install using package manager anyone having same problem below is whats wrong: -

I get this when installing (everything seems fine)

1. Execute Code installScript.php 
2. Extract Tree ./Themes/default/SMFChess 
3. Extract File ./Sources/Chess.php 
4. Extract File ./Sources/ChessXml.php 
5. Extract File ./Sources/ChessChat.php 
6. Extract File ./Sources/ChessAdmin.php 
7. Extract File ./Sources/ChessFunctions.php 
8. Extract File ./Themes/default/languages/Chess.english.php 
9. Extract File ./Themes/default/languages/ChessXml.english.php 
10. Extract File ./Themes/default/languages/ChessAdmin.english.php 
11. Extract File ./Themes/default/ChessAdmin.template.php 
12. Extract File ./Themes/default/Chess.template.php 
13. Extract File ./Themes/default/ChessXml.template.php 
14. Extract File ./Themes/default/ChessChat.template.php 
15. Extract File ./Themes/default/ChessCustom.template.php 
16. Execute Modification ./index.php Test successful
17. Execute Modification ./Sources/Load.php Test successful
18. Execute Modification ./Sources/ManagePermissions.php Test successful
19. Execute Modification ./Sources/Subs.php Test successful
20. Execute Modification ./Themes/default/index.template.php Test successful
21. Execute Modification ./Themes/default/languages/Errors.english.php Test successful
22. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test successful
23. Execute Modification ./Themes/default/languages/Who.english.php Test successful
24. Execute Modification ./Themes/default/languages/index.english.php Test successful

But nothing to do with chess works when you uninstall i get :- (as if nothing installed in the first place?)


1. Execute Modification ./index.php Test failed
2. Execute Modification ./Sources/Load.php Test failed
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Sources/Subs.php Test failed
5. Execute Modification ./Themes/default/index.template.php Test failed
6. Execute Modification ./Themes/default/languages/Errors.english.php Test failed
7. Execute Modification ./Themes/default/languages/ManagePermissions.english.php Test failed
8. Execute Modification ./Themes/default/languages/Who.english.php Test failed
9. Execute Modification ./Themes/default/languages/index.english.php Test failed
10. Delete Tree ./Themes/default/SMFChess 
11. Delete File ./Sources/Chess.php 
12. Delete File ./Sources/ChessXml.php 
13. Delete File ./Sources/ChessChat.php 
14. Delete File ./Sources/ChessAdmin.php 
15. Delete File ./Sources/ChessFunctions.php 
16. Delete File ./Themes/default/languages/Chess.english.php 
17. Delete File ./Themes/default/languages/ChessXml.english.php 
18. Delete File ./Themes/default/languages/ChessAdmin.english.php 
19. Delete File ./Themes/default/ChessAdmin.template.php 
20. Delete File ./Themes/default/Chess.template.php 
21. Delete File ./Themes/default/ChessXml.template.php 
22. Delete File ./Themes/default/ChessChat.template.php 
23. Delete File ./Themes/default/ChessCustom.template.php

But old previous packages worked fine?  :'(

am using smf 1.1.4 but all other packages installed fine on 1.1.4

Regards,
Smith Online


Godsongz

Quote from: Feeble on January 30, 2008, 01:11:36 AM
Note: Ive amended Sources/Subs.php if you are going to manually update.
Just the create_SMFChess function near the end of file. Had to update to allow for png files type. But I've kept the size at 33px. So its not to large when you put it in a post.

Thanks for this head's up.  I'd love it if you could do this for every release, for those of us who always do manual installs/updates, it's very helpful to know if there are changes to SMF files other than the chess files.

One request, for the captured pieces, could they be sorted into 2 columns for white and black pieces?

Also, I had the following error with the installScript.php

Quote from: installScript.phpDatabase Error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON DUPLICATE KEY UPDATE value='F8E1B8'' at line 1
File: /home3/godsongz/crossfire-www/covenant/installScript.php
Line: 90 

I never saw that before.

Godsongz

Hmm, I think I have another bug here with the latest version.  As always, it's possibly (probably) my installation that is the problem, since I do manual edits.

The issue is, after making a chess move, I have to refresh the page to see the move.  Also, if I end a game as administrator and grant a win to one side or the other, I have to refresh the screen to see that the game has ended.  This started today after installing the latest version.  Later tonight when I have more time I'm going to go over the install again and see if I missed anything, but based on what I'm seeing, does anything immediately come to mind?  Could it have anything to do with the error I saw when running the new installScript.php?

feeble

Quote from: Smith OnlineThe new update sounds great Carnt wait to try it out ;)

But i carnt install using package manager anyone having same problem below is whats wrong: -

I get this when installing (everything seems fine)
Odd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Quote from: GodsongzThanks for this head's up.  I'd love it if you could do this for every release, for those of us who always do manual installs/updates, it's very helpful to know if there are changes to SMF files other than the chess files.

One request, for the captured pieces, could they be sorted into 2 columns for white and black pieces?
No worries, will do.
Ok sure, ill sort them into 2 columns. I was also thinking of instead of showing every piece, if there is more then 2. just have a 2x in front.

Quote from: GodsongzAlso, I had the following error with the installScript.php
Ignore that. I've uploaded new package to stop anyone else from getting the same.
Basically it was to fix up a color issue that was going to happen with this update.

Quote from: GodsongzThe issue is, after making a chess move, I have to refresh the page to see the move.  Also, if I end a game as administrator and grant a win to one side or the other, I have to refresh the screen to see that the game has ended.  This started today after installing the latest version.  Later tonight when I have more time I'm going to go over the install again and see if I missed anything, but based on what I'm seeing, does anything immediately come to mind?  Could it have anything to do with the error I saw when running the new installScript.php?
Hmm, bit odd. Hows your forums error log?
Also did you also(i should of mentioned this) update the other files as well
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder - SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Reason I ask, is because I can browse the history of any games on your site and I'm not getting any returned errors in my browser. Its like its stalling or something.

feeble

Small Update - I was going to wait a couple of days but whatever

Chessmaster got released yesterday on Live. I highly recommend checking it out. Its a very nicely done Chess program, the AI is pretty solid as well I hear.
I was taking a look at it yesterday, and its got some pretty cool features that I thought would be good to bring across.

One of those is Gametypes (Variations on the rules) for Chess.
Example:(And this is straight from the "How to Play" in Chessmaster)
-Losing Chess : The Goal in Losing Chess is to lose all your pieces before your opponent does. Capturing is compulsory and there is no check or checkmate. Kings can be taken at any time. Castling is not allowed.

-Dark Chess : is a devious and interesting variant of chess, in which the battlefield is covered by fog of war. All of your opponent's pieces are invisible unless when threatened by one of your own. The goal in Dark Chess is simply to capture the enemy king. There is no check or checkmate, so be sure to keep your king safe since he can be captured at any time.

-Extinction Chess : players in the game have to capture all of their opponent's pieces of any particular type. Losing your King, Queen, both Rooks, Both Bishop, Both Knights or all eight pawns will result in defeat. Check and checkmate do not apply. The King can be captured at any time.

To be honest, I'm mostly interested in Dark Chess and Extinction as it promotes greater defense and turning defense into offense.

Also I thought their board layout is very well done

I just managed to replicate the Dark Chess, and the other two just need to be checked at end of move so it wont be long.
At any rate, I think I just gonna be taking a look at this over the next couple of days.

weightman

Quote from: feebleWhat I'm thinking of the SSI function, is that instead of echo'ing out data, the function just returns stats in an array. And then users can do what they want with it, be it in a tp block or somewhere on their site. That means I can make up a simple TP block code, if a user requires it. And they can go from there. Plus it means I don't have to worry about languages  :P
Sounds cool. Besides active games, the names of people in active games might be interesting in a ssi module/block. Your mod works very well. I really like the addition of the captured pieces, though I haven't upgraded to the the newest version with the feature yet, and I look forward to seeing your future refinements.

Thanks very much.

Godsongz

#546
Quote from: Feeble on January 30, 2008, 06:09:57 PM
Hmm, bit odd. Hows your forums error log?
Also did you also(i should of mentioned this) update the other files as well
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder - SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Reason I ask, is because I can browse the history of any games on your site and I'm not getting any returned errors in my browser. Its like its stalling or something.

Yes, I recopied all the files just now and I still have the issue.  After a move is made, say an opening like pawn to e4, the pawn will snap back to it's starting position and never show the move to e4.  If you try to move again it says "Not your turn".  If you refresh, you see the pawn has moved to e4.

Ooo, just found this...  after a move and before a refresh, there is an "Error on page" and if I pull up the details I see this...



Object required?

I'm going to double-check the edits of the non-chess php files.

EDIT:  thanks to some late-night editing and troubleshooting by feeble, my errors are gone and my users are happy :)  Thanks feeb.

feeble

Ok if you are having the same as Godsongz, I've just fixed it.
Just get the updated ChessXml.php from the zip and put it in your Sources Folder

The problem was to do with a php5 function, so it should only affect sites that are using php4.

Apologies, but atleast its solved.

Smith Online

#548
QuoteOdd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Nope no mods in the mean time

I have now managed to install by checking default theme folder and smf chess was still there with files inside so i removed the folder then install and now its installed .

But one more problem its installed and works but i have the old colour picker and no new options e.g the info.txt from pieces or preview of pieces ?.   :'(

If you still want my index.php i will pm if needed

P.s I installed on my other site and everythings fine there must be something to do with last install maybe database info not updated?

Regards,
Smith Online


JaGuR123

Quote from: weightman on January 30, 2008, 09:54:45 PM
I really like the addition of the captured pieces, though I haven't upgraded to the the newest version with the feature yet, and I look forward to seeing your future refinements.

Thanks very much.

I don't think he has added this feature yet ...... unless i have missed something, although i do believe it's not far away  :D

brianjw

Wow those features look nice feeble. :) I can't wait until 1.0 :)

brianjw

feeble

Quote from: Smith Online on January 31, 2008, 07:19:22 AM
QuoteOdd, have you installed any mods inbetween? but that doesn't seems like a logical explanation.
can you send me your index.php please

Nope no mods in the mean time

I have now managed to install by checking default theme folder and smf chess was still there with files inside so i removed the folder then install and now its installed .

But one more problem its installed and works but i have the old colour picker and no new options e.g the info.txt from pieces or preview of pieces ?.   :'(

If you still want my index.php i will pm if needed

P.s I installed on my other site and everythings fine there must be something to do with last install maybe database info not updated?
Umm lol, pretty odd.
Yeah send me your index or anyone of those failed files to [email protected] and ill take a look


Quote from: Jagur123I don't think he has added this feature yet ...... unless i have missed something, although i do believe it's not far away  :D
Capturing Display has been implemented already ;)

Quote from: brianjwWow those features look nice feeble. :) I can't wait until 1.0 :)
Thanks brianjw, me to.

In saying this, and I do apologies for the short time between the last update.

I've uploaded a new version
-Made a few adjustments to the javascript, hopefully should load a little quicker on slower connections
-Added two Chess variants (moreinfo)
--Dark Chess : is a devious and interesting variant of chess, in which the battlefield is covered by fog of war. All of your opponent's pieces are invisible unless when threatened by one of your own. The goal in Dark Chess is simply to capture the enemy king. There is no check or checkmate, so be sure to keep your king safe since he can be captured at any time.
--Extinction Chess : players in the game have to capture all of their opponent's pieces of any particular type. Losing your King, Queen, both Rooks, Both Bishop, Both Knights or all eight pawns will result in defeat. Check and checkmate do not apply. The King can be captured at any time.

Give them ago and tell me what you think. I'm using strict rules for Dark Chess, so if its to difficult or you think it needs some adjustment, let me know.

I'm looking to add atleast 1 or 2 more. So if you know of a good Chess Variant, that doesn't change the rules to much and compliments/gives strength to Chess let me know.

-Added text to InstallScript.php, so you know whats its doing.
-Updated captured piece Section: now its much more compact and has been separated columns


Also I've decided against redoing the layout for the Chess board.
Mainly cause I'm lazy, but I also want to get this released asap.


Note: Made small adjustments to Sources/Subs.php if you are going to manually update.
Just the create_SMFChess function near the end of file. So you can't view games under Dark Chess and cheat.

Also added a few new text lines to language files Chess and ChessXml

Download link is in the first post

So whats left to do?
-add in the manual add game (this will be actually combined with the import)
-few adjustments to the elo recount.
-Tidy the files

Any issues with the release let me know.

JaGuR123

Ok , i need to follow this thread closer , and keep my SMF Chess more upto date  ;)

Great Job Feeble, i really think captured pieces is your best work  :P

Godsongz

#553
I've hardly had it installed for an hour, but I think you might want to make an adjustment for the next release.  You're going to need to identify when a game is a variant.  I currently could challenge someone to a variant game, and they'd never know until after they've accepted.  Dark Chess should be easy to identify (once people are used to it) when only half the pieces show up on the board, but there's NO way to know you're in an Extinction match, and the rules specific to the variant make a big difference in how you need to play.  It should be identified on the game board itself, and on all the picklists where the game appears.

I love having some variants there though, and I still owe the the rule sheet for another.

PLAYBOY

There are so many language files, which one am i gonna translate?
Is there anyway you can put all the things in one language file or give me a list of all words so i can translate them.

after that please tell me where am i gonna put which files in my custom theme?

feeble

Sorry for my delayed response

Godsongz - Ill get this sorted asap. If you can wait couple of days; as I want to make a few other changes.

PLAYBOY - They are done, but I'm still adding to them. If you can give me a about a week I'll work something out, that should make it easy enough.

lordevil

Hats off to you Feeble, the chess mod is a hit at my site we currently have a chess tourney going on and everyone loves it. Awesome job. Thanks.
  That is one feature everyone wanted was the pieces won to show up  on the side somewhere. Great job.

Do I have to reinstall to the newer version or is there just one folder I need to overwrite to show the pieces taken?

feeble

Quote from: lordevil on February 02, 2008, 08:17:39 PM
Hats off to you Feeble, the chess mod is a hit at my site we currently have a chess tourney going on and everyone loves it. Awesome job. Thanks.
  That is one feature everyone wanted was the pieces won to show up  on the side somewhere. Great job.

Do I have to reinstall to the newer version or is there just one folder I need to overwrite to show the pieces taken?

Glad you like it, If there is anything else you or your members have been wanting for a while let me know.

Also can you let me know how you tourniment goes? I took a quick look at your site and you have a teamed tourniment?
Also you forum looks really good, so nice work lol.


Its pretty simple to updates if you find that you are unable to uninstall for one reason for another.
Basically just unzip chess.zip, and just copy over, I normally make a few adjustments in each one, so its worth just getting a fresh copy over.
Sources - Chess.php, ChessAdmin.php, ChessXml.php, ChessChat.php, ChessFunctions.php
Themes - Chess.template.php, ChessAdmintemplate..php, ChessXml.template.php, ChessChat.template.php
Folder (to your default theme directory)- SMFChess
Languages - Chess.english.php, ChessAdmin.english.php, ChessXml.english.php

Also just upload the Installscript.php to your forum directory, and ran it through a browser. It will let you know whats its changed, then just delete it.

Then just check the manual theme edits
http://www.leaderless.net/PackageParser/index.php?show=theme
NOTE: These changes are pretty much final, the only thing thats really change in a long while is the create_SMFChess function in Subs.php

lordevil

#558
one question, is there anyway to impliment a timer of 1 minute or 2 minutes, some of these guys bore me into a bad game. I like quick thinking and I attack attack attack but when you wait for 6 minute moves you tend to lose interest..lol If they do not move in the matter of time they lose their turn. I love that Idea. The current is set for 1 to 3 days.

Thanks for the compliment
We took our best 8 and divided them up, took the next best 4 and divided them up and the worst 4. Its a lot of fun, we have to play each team once as an official game. The team with the most wins win.

lordevil

Oh and since you had to ask..lol
QuoteGlad you like it, If there is anything else you or your members have been wanting for a while let me know
A poker game featuring chips, 5 card draw, 7 card stud something of that nature. I know a lot of people that would pay for that mod.

Advertisement: