first beta
ras chess v.003 (http://www.blue-lagoon.dk/dl_engine//redirect.php?dlid=109&PHPSESSID=e2ad51392aa8ec55b469fab872d5b10b)
It's nice Chilla, maybe you put this for the users to see command in bot description something like that
RasChessinfo = "$MyINFO $ALL "..sBotName.." type +start to play $"
:)
(http://www.danasoft.com/sig-dut.jpg)
yepp, there is still more to do, thanks...
but dunno, the grafix actually suck.
great bot, but how do I start it... I tried the command
I spotted in bot but It don't work... do a help.
I suck at this.... :-D LOL
hmm... well, it should work, like this
type in a Pm to the bot,
invite
then you should see a field and your other user if online as well, to now move the figs you need to type
start - end e.g A1 - B1
what are all the comands to the chess game exp. loging in and logout and to move the peaces am still very new to all of this.. and i have users that like to play chess...thank you for your time.....
1. Added Kings special move to func: doCheckPosessions()
2. Added Pawns special move to func: Moves.Pawn()
3. Added changing Pawn to Queen when reaching other side to func: moveFigure()
4. Added setting of King and Castles if already moved to func: doCheckPosessions()
to come:
- Game commands, as quit, and so on.
- Chat.
- Checking for Check, and Check Mate.
- Hoping to find better ways to draw the board, would be cool if you can give some suggestions.
commands till now.
PM to the bot
invite nick
move figure.
e.g. B1 - C1 moves pawn one down.
Ras Chess V.004 (http://www.blue-lagoon.dk/dl_engine//files/RasChess.V.004.rar)
Error message by just doing: invite kex(user)
Syntax error: attempt to index field `KingMove' (a nil value)
stack traceback:
1: function `CreateChessGame' at line 158 [file `C:\PtokaX\scripts\chess.v.004.lua']
2: function `StartGame' at line 84 [file `C:\PtokaX\scripts\chess.v.004.lua']
3: function <38:file `C:\PtokaX\scripts\chess.v.004.lua'> at line 41
4: function `DataArrival' at line 24 [file `C:\PtokaX\scripts\chess.v.004.lua']
hi what are the commands for the game to make it run...
i am new at this sorry for being a bug
hi what are the commands for the game to make it run...
i am new at this sorry for being a bug
thanks nightlitch.. bug fixed...
well still very beta, but will become better till V.010, and still no checking if someone has won, only if someone is in check.
Ras Chess V.007 (http://www.blue-lagoon.dk/dl_engine//files/RasChess.V.007.rar)
commands are PM to the bot,
invite
g8 bot but is there a way to make the table better it is very wonky, do i need to play it in a different font or somit?
thanx kizz :)
yepp best fonts are
-- Courier
-- Courier New
-- Fixedsys
-- Lucida Console
-- MS Mincho
-- OCR A Extended
-- SimSun
-- TeleText
-- TeleTextDH
-- Terminal
-- WST
and maybe some more dunno.
:P :P :P
its done,
First Chess Bot on the DC network for Ptokax Hubs, since Ptokax has the best functions for LUA. :)
Just to show how easy it is to create a full functional chess bot with LUA.
Checks for CORRECT MOVE.
Checks for CHECK.
Checks for CHECKMATE.
Allows chatting while playing.
Also sends $UserCommand for dc++, when you connect.
LUA is just great.
Ras Chess V.008 (http://www.blue-lagoon.dk/dl_engine//files/RasChess.V.008.rar)
how do i make the pices move around the board ty:P
heya :)
well simple type
start - end
e.g.
A2 - C1
moves horse from A2 - C1 you'll get it...
and if you use dc++ then check the users menue (right klick) and got to -RasChess- and then on Display Help
wow
i never tought that it was possible to build a chess bot
but chilla did it :-)
great work chilla
hehe, thx :) wasn't too hard after all, good that I first made tic tac toe and connectX, learned quite a lot from them.
hi guys, would love to use this script, but chilla's site seems to be down. Could anyone post it here?
thx and cheers
try this one
chess on cannaforum (http://board.univ-angers.fr/thread.php?threadid=1807&boardid=12&styleid=1&sid=4b90054ce0d2655ef14be048a6169ec1)
that's the bugger :D. plop was faster but thanx a lot anyway. Awesome script btw.
cheers
1st off all..
I love the script .. !!
but i have ran into a problem i thnk ..
hope i am the only one .. but here i go .. (ascii ripped)
[12:42] invite tropic
[12:42] <-Chessy->
WHITE beginns. Type "quit" to abort the game.
[12:42] <-Chessy->
uwverlosser moves Pawn from E2 to E4.
[12:44] doorbell...
[12:44] <-Chessy->
tropic moves Pawn from G7 to G5.
[12:44] lol
[12:50] you here bro
[12:50] ?
[13:25] <-Chessy->
uwverlosser moves Pawn from D2 to D3.
[13:25] .. back ;0)
[13:26] ok
[13:27] lol
[13:27] <-Chessy->
tropic moves Bishop from F8 to G7.
[13:28] <-Chessy->
uwverlosser moves Bishop from C1 to G5.
Bishop beats Pawn
etc. etc. etc.
------------- Many many moves later... -------------------
---------------------------------- the problem ---------------------------------
[15:01] <-Chessy->
tropic moves Pawn from B3 to B2 .[------COLOR=green] here the ascii still shows pawn in D2 and no queen in D1[/COLOR] [/COLOR] ...but then
[15:03] <-Chessy->
uwverlosser moves Queen from B8 to F8 .
UwVerlosser sets tropic to CHECK. ----- here it goes wrong ... the ascii still shows the pawn in D2 (where it is supposed to be) but also a Queen in D1.. ?
[15:04] you get a queen (without to move your pawn ??) ..
[15:04] & the pawn don't dissapear ..
[15:04] i know lol
[15:04] lol
[15:04] .. try move it in next turn .. lol
[15:05] i see
[15:05] ?
[15:05] <-Chessy->
tropic moves King from F7 to E6.
tropic sets uwverlosser to CHECK.
[15:05] <-Chessy->
uwverlosser moves King from D3 to E2.
[15:05] ok
[15:06] or move another piece to that field .. (d2) ..
[15:06] i have to know what happens ..
[15:06] ?
[15:06] it dont move
[15:06] good sign :0)
[15:06] ?
[15:06] i hope it only forgets to "erase" the ascii
[15:07] i move queen ok see what happenes
[15:07] can you move a piece on to that spot ?
[15:07] no
[15:07] grrrrrr !!!
[15:07] i try move queen maby pawn go by by
[15:07] that's what i ask ..
[15:08] can you move the queen on to that field if not, Can you move the Queen at all ?
[15:08] try.. b1 - b2
[15:09] is possible ?
[15:09] no
[15:10] <-Chessy->
tropic moves Queen from B1 to E4 .
tropic sets uwverlosser to CHECK. --- strange because the pawn never moved to B1..
[15:10] duh
[15:10] sure ..
[15:10] but is a problem ..
[15:11] now i try to move pawn
[15:11] the b2 stay's "possesed " and your pawns is still there .. so... oh.. oh.. ..
[15:12] move maby now it will move
[15:12] nope ..
[15:12] i have read the script, if i understand well if it does not do it now it won't do it..(it should erase the piece and give free the possesion of the field)
[15:14] <-Chessy->
uwverlosser moves King from E2 to D2. -- now here black automaticly gets a second Queen .. (from the same Pawn wich is still there ...)
[15:15] now i have 2 queens kool
[15:15] lol
[15:15] ... you see .. very kool .. but a bit of a error .. lol
[15:16] <-Chessy->
tropic moves Queen from B1 to C1.
tropic sets uwverlosser to CHECK. -- so that proves that the 2nd Queen was really there (and still the pawn never moved) ..., + here it is actually checkmate ... not check .. :0(
[15:16] is crazy 2 queens jajajajaja
[15:17] .. make three .. ;0)
[15:17] lol
[15:17] is crazy all come out queens lol
[15:17] 3 against one lets see how cheak mate goes
[15:17] move king
[15:17] it is just.. i can't move the king anywhere ..
[15:18] cheak mate
[15:19] is cheack mate
[15:19] cant move the king
[15:19] why dont game stop?
[15:20] strange ..
[15:20] buggy script ..
[15:20] lol
[15:20] or at least not totally finished ..
[15:20] will ask help on it ..
[15:20] ok well game is over is vcoming good i like
[15:20] is fun
[15:20] your a super Uw
[15:21] type quit..
[15:21] is a plesure to play aginst you
[15:21] =)
[15:21] quit
[15:21] <-Chessy-> tropic has quit the game.
---------------------& the ptokax debug message ----------
Syntax error: attempt to compare number with nil
stack traceback:
1: function <849:file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua'> at line 888
2: function `doCheckCheck' at line 814 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
3: function `doCheckPosessions' at line 632 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
4: function `doCheckCheckMate' at line 758 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
5: function `doCheckPosessions' at line 647 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
6: function `ParseData' at line 247 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
7: function `DataArrival' at line 40 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
----------------------------------------------------------------
hope this is clear enough ..
GREAT SCRIPT i really do love it .. :0)
we really where having big fun thankx .. .. :D
p.s. is possible to get a choice of piece when a pawn reaches opposite side (even if only the Horse)?
keep up the good spirit :)
well UwV? thx for the info, but this script is quite complex, so I guess there will still be some errors in it, including that one.
Versions befor this one I had a game where figures just disappeared randomly, well it took me some time to find the error, but I had to see what the script does on each move, till I finally found it, so I guess I won't be able to solve this problem, but you may be lucky when the next release is finished, cause I know about the error, its the checkforcheckmate function when ones king has dissappeared, or something like that, I will add the option of choosing a figure when reached the other side, plus some other stuff, in next release.
cya.
yep ..
the checkforcheckmate is a old one .. i remember it .. i've been trying to play since... chess.v.003.lua
I just thought that that pawn not even having to move and the new queen (able to move without the pawn ever moving and so keeps on gettin new queens) was new ...
can't wait for the next version ,,,
now the sport is to actualy finish a game of chess
.. ;0)
(i understand.. it is a complicated script .. i have no comments, only respect for your efforts in this one )
download link
raschess v 010 (http://www.bbfree.com/cannaforum/index.php?act=Attach&type=post&id=1005)
this is whats new
V.010 :
- Game is now really local as 'curgame'.thx to RabidWombat for helping me, how to properly create a copy of an table.
- optimised function 'doCheckPossesions',
hirarchy:
'doCheckPosessions'
'doCheckGame'
and from there check for possible game states.
- Chaged function Move figs to move mutiple moves.
- Added showing of wrong moves.
- Added back function to undo last move.
- Added option to pick a figure when pawn reaches other side, on move type From - To Figure, e.g. H2 - H1 Bishop
thanks
great :0)
will try right away .. :P
QuoteOriginally posted by yepyepyep4711
that's the bugger :D. plop was faster but thanx a lot anyway. Awesome script btw.
cheers
hi
[03:39] <-RasChess->
[ UwV ] - WHITE
[ chessirechat ] - BLACK
[03:39] <-RasChess-> WHITE beginns. Type "quit" to abort the game.
[03:40] e2 - e4
[03:40] <-RasChess-> uwv moves Pawn from E2 to E4.
[03:40] game on .. ;0)
[03:40] ok
[03:41] lucky the 'DrawBoard' function wasn't changed .. so i could use my edited one :0) [03:42] <-RasChess->
chessirechat moves Pawn from E7 to E5.
[03:43] here we go!!!!
[03:43] g1 - f3[03:43] <-RasChess->
uwv moves Horse from G1 to F3.
[03:45] <-RasChess->
chessirechat moves Horse from G8 to F6.
[03:45] <-RasChess->
uwv moves Pawn from D2 to D4.
[03:47] <-RasChess->
chessirechat moves Pawn from E5 to D4.
Pawn beats Pawn
[03:48] <-RasChess->
uwv moves Queen from D1 to D4.
Queen beats Pawn
[03:49] back
[03:49] ;0)
[03:49] had to try once .. ;0)
[03:50] d1 - d4[03:50] <-RasChess->
uwv moves Queen from D1 to D4.
Queen beats Pawn
[03:50] <-RasChess->
chessirechat moves Pawn from D7 to D6.
[03:51] <-RasChess->
uwv moves Bishop from F1 to B5.
UwV sets chessirechat to CHECKMATE.
[03:51] ;0)
[03:51] not really huh ?
[03:53] c8 - d6
[03:53] no checkmate dude
[03:53] this is ur load chess
[03:53] right ..
[03:53] is not checkmate ..
[03:54] e8 - e7 is possible 2
[03:54] the pieaces r loaded like dice of casinos in las vegas
[03:54] hehe
[03:54] try move ..
[03:55] my turn?
[03:55] yes ..
[03:55] all along ..
[03:55] i move the biship
[03:55] nope ..
[03:56] didn't move yet ..
[03:56] c8 - d7
[03:56] damn ..
[03:56] sorry men i move d6
[03:56] oops!
[03:56] the script really think is checkmate .. bummer .. :0(
[03:57] hehehe i ur load chess
[03:57] uw always wins
[03:57] hehe
[03:57] impossible to move?
[03:58] the game is over! Quote lucky the 'DrawBoard' function wasn't changed .. so i could use my edited one :0)
i have done a little editing in that function and changed the pieces in the figs tables to suit my hubusers .. it now lines out perfectly in microsoft sans serif size 8 ... will post if anyone wants em .. ?(
fixed it,
<-RasChess->
test1 moves Bishop from F1 to B5.
test1 sets chillo to CHECK.
it was a mistake, and sure post your version of drawboard, I'll add it, as option, depneding what font people use, I like to work with these text style, they just come in more handy when drawing boards and stuff like that.
V 010 (http://www.bbfree.com/cannaforum/index.php?act=Attach&type=post&id=1006)
Quoteand sure post your version of drawboard,
[SIZE=1]
-------------------------------------
-- Draw Board (edited by UwVerlosser)
-------------------------------------
function DrawBoard(table,nick1,nick2)
local line5 = strrep(" ",5)
local ChessBoard = "\r\n\t\t\t\t\t[ "..nick1.." ] - WHITE\r\n\r\n\t"..strrep(" ",5).. "'"
for i = 1,8 do
ChessBoard = ChessBoard..strrep(" ",10)..drawt[i]..strrep(" ",10).. "'"
end
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",7)..strrep("_",91)
for i = 1,8,2 do
--Draw Begining with Black
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
for _ = 1,8 do
ChessBoard = ChessBoard..strrep("?",11)..strchar(166)
end
ChessBoard = ChessBoard..strchar(166)
for i2 = 1,4 do
if (i2 == 2) then
ChessBoard = ChessBoard.."\r\n\t"..i..strrep(" ",4)..strchar(166)..strchar(166)
else
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
end
for i3 = 1,8,2 do
ChessBoard = ChessBoard.."?? "..GetFigsString(table[i..i3].ftype,i2,"B").." ??"..strchar(166).." "..GetFigsString(table[i..(i3+1)].ftype,i2,"W").." "..strchar(166)
end
ChessBoard = ChessBoard..strchar(166)
if (i2 == 2) then
ChessBoard = ChessBoard..strrep(" ",5)..i
end
end
--Draw Begining with White
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
for _ = 1,8 do
ChessBoard = ChessBoard..strrep("?",11)..strchar(166)
end
ChessBoard = ChessBoard..strchar(166)
for i2 = 1,4 do
if (i2 == 2) then
ChessBoard = ChessBoard.."\r\n\t"..(i+1)..strrep(" ",4)..strchar(166)..strchar(166)
else
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
end
for i3 = 1,8,2 do
ChessBoard = ChessBoard.." "..GetFigsString(table[(i+1)..i3].ftype,i2,"W").." "..strchar(166).."?? "..GetFigsString(table[(i+1)..(i3+1)].ftype,i2,"B").." ??"..strchar(166)
end
ChessBoard = ChessBoard..strchar(166)
if (i2 == 2) then
ChessBoard = ChessBoard..strrep(" ",5)..(i+1)
end
end
end
ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
for _ = 1,8 do
ChessBoard = ChessBoard..strrep("?",11)..strchar(166)
end
ChessBoard = ChessBoard..strchar(166).."\r\n\t"..strrep(" ",7)..strrep("?",91)
ChessBoard = ChessBoard.."\r\n\r\n\t"..strrep(" ",5).. "'"
for i = 1,8 do
ChessBoard = ChessBoard..strrep(" ",10)..drawt[i]..strrep(" ",10).. "'"
end
ChessBoard = ChessBoard.."\r\n\r\n\t\t\t\t\t[ "..nick2.." ] - BLACK\r\n"
return(ChessBoard)
end
function GetFigsString(fig,num,cfield)
if (fig[2] == "W") then
return WhiteFigs[fig[1]][num]
elseif (fig[2] == "B") then
return BlackFigs[fig[1]][num]
end
if (cfield == "W") then
return (" ")
elseif (cfield == "B") then
return ("??????")
end
end
drawt = {
[1] = "H",
[2] = "G",
[3] = "F",
[4] = "E",
[5] = "D",
[6] = "C",
[7] = "B",
[8] = "A",
}
--------------------------------------[/SIZE]
and then there is the "figs table to go with that ..
( RasChessFigs.txt )
[SIZE=1]--Figs by UwV to go with the draw function. (for dark background & light font)
--Size of Figs :7x4
--Table With White Figs
WhiteFigs = {}
WhiteFigs.Pawn = {}
WhiteFigs.Pawn[1] = " _._ "
WhiteFigs.Pawn[2] = " (-'')' "
WhiteFigs.Pawn[3] = " ?/?\\ "
WhiteFigs.Pawn[4] = " (???) "
WhiteFigs.Castle = {}
WhiteFigs.Castle[1] = " X?X?X"
WhiteFigs.Castle[2] = " ???'?? "
WhiteFigs.Castle[3] = " ??'??? "
WhiteFigs.Castle[4] = " ???'??? "
WhiteFigs.Horse = {}
WhiteFigs.Horse[1] = " __.,,..,"
WhiteFigs.Horse[2] = " (_ ? )"
WhiteFigs.Horse[3] = " _/??I''"
WhiteFigs.Horse[4] = "/? H ?\\"
WhiteFigs.Bishop = {}
WhiteFigs.Bishop[1] = " _?'?_ "
WhiteFigs.Bishop[2] = " \\?'?/ "
WhiteFigs.Bishop[3] = " (?) "
WhiteFigs.Bishop[4] = " (???) "
WhiteFigs.Queen = {}
WhiteFigs.Queen[1] = " /iiii\\ "
WhiteFigs.Queen[2] = " (?) "
WhiteFigs.Queen[3] = " /Q?\\ "
WhiteFigs.Queen[4] = "/??'??\\"
WhiteFigs.King = {}
WhiteFigs.King[1] = " _/'\\_ "
WhiteFigs.King[2] = " \\?'?/ "
WhiteFigs.King[3] = " ('K?) "
WhiteFigs.King[4] = " (????) "
--Table With Black Figs
BlackFigs = {}
BlackFigs.Pawn = {}
BlackFigs.Pawn[1] = " .__. "
BlackFigs.Pawn[2] = " '(''-) "
BlackFigs.Pawn[3] = " / \\? "
BlackFigs.Pawn[4] = " (___) "
BlackFigs.Castle = {}
BlackFigs.Castle[1] = " X?X?X"
BlackFigs.Castle[2] = " ? ' ? "
BlackFigs.Castle[3] = " ? ' ? "
BlackFigs.Castle[4] = " ?__?__? "
BlackFigs.Horse = {}
BlackFigs.Horse[1] = " .,,..,__ "
BlackFigs.Horse[2] = "/// ?_)"
BlackFigs.Horse[3] = " I ''\\_ "
BlackFigs.Horse[4] = " / H \\"
BlackFigs.Bishop = {}
BlackFigs.Bishop[1] = " _?'?_ "
BlackFigs.Bishop[2] = " \\_'_/ "
BlackFigs.Bishop[3] = " (_) "
BlackFigs.Bishop[4] = " (___) "
BlackFigs.Queen = {}
BlackFigs.Queen[1] = " /iiii\\ "
BlackFigs.Queen[2] = " ( ) "
BlackFigs.Queen[3] = " / Q \\ "
BlackFigs.Queen[4] = "/__'__\\"
BlackFigs.King = {}
BlackFigs.King[1] = " _/'\\_ "
BlackFigs.King[2] = " \\'' ''/ "
BlackFigs.King[3] = " (''K'') "
BlackFigs.King[4] = " (____) "
[/SIZE]
hoping to be of more creative use for a change ..
after all my bug & error-reporting .. ;0)
yeah thx, will add it,
and thx for the errors also, helps me a lot to get on with this script.
UwV? I added your font,
simple type when playing a game
font SansSerif
to switch to SansSerif font
and type
font
to switch back
RasChess V 011 (http://www.uknnet.com/lua/attachment.php?attachmentid=27&sid=6633d43449257f475bea21df109ae8f7)
great .. :0)
..but yet again... another request
could we maybe get the saved games not to be deleted after loading ? .. but to have to be manualy deleted and or over written ? ..
we lost a good game because we didn't think quiting would matter since we just saved 1 move before ..
so i checked .. and after loading a game .. no more saved game in the folder .. .. :0(
a command to delete saves would be usefull actually .. ;0)
H!!!
good script
thx, there is still some more to come, when I got some time, and UwV?'s requests also.
chilla...first of all i must tell you...excellent bot !!
am i doing something wrong......either user can put the other in check : (....they are legal moves.
any ideas ?
keep up the good work ... hopefully you are back on-line soon ...
sacapusse ..
if ...
Quoteam i doing something wrong......either user can put the other in check : (....they are legal moves.
either player can put the other check with a legal move .. that is good ain't it ?? ..
guess you mean Neither player ? ... ;0)
and maybe like tell posistion of the pieces if you want an answer .. would really help to re-create the specific situation and try sort that out .. (whenever chill is back)
thx UwV...i noticed after i posted ...lol
Yeah that's what i meant...neither player can put the other in check.
It's in any situation ..but here's an example..
My queen (in D1) has a clear path to A4...which would put the opponent in check, because his pawn is moved from D7 -D6. BUT the bot won't let me do it.
It will move it to B3 or any where else that's legal, but it won't let me put the other in check : (
So we kept playing and after a few moves, my opponent couldn't put me in check neither. (can't remember the specifics of that one)
So that's my situation, if any one can help, i'd appreciate it : )
well.....i have some problens whith the commands....
the help comand dont work......right....i can use the right click..........
when i type the comand to move without a movement... i think one little help like these will be interesting:
*** Syntax error: no nick specified. (Usage: !getinfo ) No parameter given.
so when some one type the incomplete command....it appear =]
I am writing a version of this bot for bcdc, what is better I think, then the hub's cpu is not used and files and stuff are saved local.
So I hope I can bring the new version out soon, with
some more help.
although me i run my bcdc on the same pc as my hub .. yes i think it could be better indeed..
let me know when it is there for testing :0)
good to know you also think of it that way, I am working on it, but till now I only see a board, and can't do anything else, so I still need some time, but I hope first version for you to test will be out sooon :).
First step is finished,
got still some stuff to do, and maybe someone can help me in fetching outgoing data to the hub in a PM,
till now I did it a other way, but maybe someone knows,
check it out :)
RAsChess for BCDC (http://lua.uknnet.com/attachment.php?attachmentid=60&sid=5bca10d83249c2632a529ffacb649ffe)
Install:
add this line into startup.lua
dofile( "scripts/RasChess.BCDC.V.001.lua" )
install the package into the scripts folder.
start BCDC, connect to a hub and type /chess help
type
/chess invite
to invite a person
ALL IN MAIN
sorry for late response ...
due to some other running bcdc scripts (i guess)
this one won't do anything for me really... and i can't do without em .. ;0)
so not testing here .. srry.. :(
I cannot get this chessscript working properly in DcDm ,,
It starts and the board shows in a PM but thats it ,,
No moves working ,, maybe my fault :]
hi UwV,
well thats bad to hear, but no problem, will fix the problem,
all your other scripts work fine when running at the same time? and they also take commands through MainChat?
And Beer,
I haven't tested the script with DcDm, do you want to give me the downloadlink for DcDm?
Otherwise, in BCDC to make a move you need to type in "MAINCHAT" something like
/chess
Move
e.g. (if playing with me)
/chess chill A2 - A3
QuoteOriginally posted by chill
hi UwV,
well thats bad to hear, but no problem, will fix the problem,
all your other scripts work fine when running at the same time? and they also take commands through MainChat?
And Beer,
I haven't tested the script with DcDm, do you want to give me the downloadlink for DcDm?
Otherwise, in BCDC to make a move you need to type in "MAINCHAT" something like
/chess Move
e.g. (if playing with me)
/chess chill A2 - A3
Yes,, i know the commands for your script :>
I also got disconnected when i use the rightclick to start a game..
The link to DcDm --> http://www.ukdnb.dsl.pipex.com/dcpluspluskcdm/
upgraded to v3
( and got a m8to install the in his dcdm aswell )
nice very, very, nice ..
but can't seem to play as "third party" user ..
i mean seems like only the client running the script can invite people to play ? ..
or am i messing up here ?..
p.s. running the script on DCDM++
great UvW that you got it running,
and yepp only the one who has the script installed may invite someone, this is because who should know if someone is running this script.
I tried with DCDM++ and couldn't get it to work in any ways, didn't think the clients where so different,
well it works when restarting the script but it won't when you normal start the client.
well I'll check it out. Any bugs so far, or suggestions so far?
thoughts:
... i think ican make my onjoin.lua .. sayi something like ..
Hi rasschesbcdc enabled ? ...
list of commands
(now it sends a hi this is the releasebot)
i could set my client to have it as description ...
or just have a "sidescript" sending a pm from my hub ..
All the users will know there is chess .. ;0)
also possble to send a timed message to main ... with the mytimer.lua ..
(mentioned .lua are standard packed with dcdm by now and easy enough to edit to suit my needs or anybody's..
suggestions ?
make all able to invite :0)
question:
the bottom thingy under the chessboard,.. shows both my nick and the invited nick's .. (supposed to ?)
example ..
[14:07:40] <-=Holly-Book=-> Hi there ! Welcome to the hub :)
------------------------------------------------------------------------------------------------------------------------------------------
This is the "Chess"-bot
Available commands for all users are
+rls - Shows you the latest releases.
!read typE Will show all releases of that ''typE'' only.
(possible ''typE's'' : DSN, music, psy/goa, chill, techno, lounge, electro,
musicvid, new, and tool
e.g.: !read DSN (will show you all the "DSN specials")
------------------------------------------------------------------------------------------------------------------------------------------
P.S.
i made no changes to your script .. but in my case it seems to work fine on startup .. but not after restart :rolleyes: .. (dcdm++)
yepp sounds good to me,
I only thaught that maybe someone could, like send
thousends of invitations with different nicks, then your client would go down like nothing, but I guess it
would be rather uncommon.
But I won't send a message, you may if you want but I hate automatic messages.
But to edit the description tag. To be able to play chess sounds cool.
And yes your nick should consist of your nick and the opponets nick, so you can play more than one game at a time, but maybe I will find a different solution.
hmm... why don't you just send a message that people should ask for a game if they want to play?
But it would be possible to make a command to get invited, for sure.
Shall I do that? <-- Very lazzy ;)
sure .. make a get invited by nick option ..
but actually i mean i would like
for any user to play against any user
i mean .. just like the old bot ..
but then running on a client ..
a chess server script, yepp why not,
I will check it out, and if it is possible I'd go for it, sounds interessting for sure,
but it was much easier to code as a script for Ptokax,
but I'll try first and then let you know, good idea :=)
lool ..
and i was thinking this was the idear from the start .. ;0)
just found first bug ..
it looks like the games get saved ..
well there are files created..
however these files contain no data at all ..
checked after trying to load a game .. :0(
hmm.. I will check it worked here with saving and loading.
Just check too weird, it works here without any problems,
and with you nothing is written, :( shit, shit, shit.
But the idea was different, it was to create a client side script, for people who like chess to play chess in any hub and with anybody they like.
A chess server will also run in any hub, but the one running the client won't be able to play, well I haven't tested yet totally, but one can't send oneself a PM till now, so I don't know, if its worth it.
no es facil, :(
Quoteno es facil, :(
hmm in that case ..
I will have no problems to go back to the hubscript ..
but will you keep developing on that ?...
for the last version i have still has some problems with the moves .. (legal ones not possible for no reason, and without any error-output)
so i hope that those can be fixed ..
the "chessserver" is just because i have a dcdm client doing all kinds of automated tasks, running scripts etc. (in three hubs)
while i use another one to do the manual things and chat ..
so instead of to run the chessbot three times .. i could run one in a client connecting to all three..
we don't allow bcdc-based client in the hubs (for non op's).. so chess would be vs. op's only .. :0(
But I do LOVE THIS SCRIPT !!!
well... I think I will do this.
Try to create a Chessbot, that only handles the chess,
in that way I could make so to say 2 different front ends.
One for the Client, and one for the Server.
Yepp I think that sounds possible, but I am now quite
sure that when running server oneself can't play,
but in your case its only a script client anyways or?
And please tell me witch moves weren't possible, so I can improve the script at least in this way.
hehe, just the thing I said I did already,
I'd say good coding only had to edit it a bit and
now it runs already :). And one can also play
if one sits on the Client/Chess Server but its sorta funny.
check this thread UwV
http://board.univ-angers.fr/thread.php?threadid=2922&boardid=24&styleid=1&sid=bb300d84fbbf2b6ae522050d8a6550f8&page=1#1
only one time happened after v.010 .. but i have not got hte details anymore .. somethign simular to sacupusse's (page pack in this topic) ..
ps
great .. again :0))