Author Topic: Chess Game  (Read 6901 times)

0 Members and 1 Guest are viewing this topic.

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Chess Game
« on: 18 January, 2009, 07:51:16 »
Actually i found a chess script in the archived forum can anyone convert it to new api or make a similar game script so ass to add a new game in the list so that users can enjoy playing it.
the link for the script
http://forum.ptokax.org/index.php?topic=1807.0
Actually m still not aware of how the members post a perfect link to the desired location so please excuse me for the mistake.
It would be great if anyone can provide with their help.
Thanks in advance.

PtokaX forum

Chess Game
« on: 18 January, 2009, 07:51:16 »

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #1 on: 19 January, 2009, 09:05:57 »
Is there anyone who can help me with this game script.

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #2 on: 19 January, 2009, 12:45:06 »
I can't even download it...
And i can't create one, since i do not play chess...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #3 on: 19 January, 2009, 15:22:24 »
I have the .rar file of this game can anyone help in uploading it into this forum.
I am unaware about how to upload files.

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: Chess Game
« Reply #4 on: 19 January, 2009, 16:06:29 »
When you write a post, click on + Additional Options... under where you write and select Choose with Attach

Offline HyperT3nsion

  • Junior Member
  • **
  • Posts: 18
  • Karma: +0/-1
  • Hyper T3nsion...! Magician!
    • Dirty South Crew Website
Re: Chess Game
« Reply #5 on: 19 January, 2009, 17:54:30 »
hehe...
i also couldn't download
it...
but i want to try it...
must be good
http://www.dscmz.co.cc <--- My Website

Ptokax Rules...

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #6 on: 20 January, 2009, 11:07:44 »
Thanks a lot crazy guy and thanks a lot American Idiot for uploading the file.
Please can some look into the script and convert it for new API.
Thanks in advance.

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #7 on: 22 January, 2009, 04:19:08 »
Anyone there who can help out making this script for new api.

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #8 on: 22 January, 2009, 09:15:24 »
Anyone there who can help out making this script for new api.

Take it easy...
I'm thinking about doing it... but i'm a busy little boy...
So it will take time.
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #9 on: 22 January, 2009, 09:51:56 »
thanks a lot madman will be waiting eagerly for your reply.

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #10 on: 26 January, 2009, 18:22:47 »
V.012 attached to my post.
I only converted it, I have no idea if it works.
Atlest it did not fail on start.

Changelog can be found in rar.

Let me know about any bugs.
Do not ask for features.
The TODO list in the changelog is not mine, it's chill, and will there for not be done if/untill chill works on this script again
« Last Edit: 31 January, 2009, 00:10:29 by Madman »
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #11 on: 31 January, 2009, 00:10:09 »
now cmds works, and game shows proper version.
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline WhiteKnuckles

  • Junior Member
  • **
  • Posts: 14
  • Karma: +3/-3
Re: Chess Game
« Reply #12 on: 08 February, 2009, 01:04:26 »
I tried it out and it did not matter which command you gave, it always gave the help in return.  Consequently could not start a game.
I am running Ptoka 0.4.1.1

now cmds works, and game shows proper version.

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: Chess Game
« Reply #13 on: 08 February, 2009, 02:29:39 »
File: RasChess.V.013.lua
Function ToArrival

On quick count the string.sub is off, so let's remove it by changing
Code: [Select]
local pmmsg = string.sub(data,(18+string.len(RasChess.botname)+2*string.len(curUser.sNick)),(string.len(data)-1))
local _,_,word1 = string.find(string.lower(pmmsg),"^%p(%S+)")

to
Code: [Select]
local _,_,word1 = data:find("%b<>%s%p(%S+)|")

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #14 on: 08 February, 2009, 12:12:55 »
That would stop the chatting...
I never bother to check those lines... will fix something that works...
Even tho, i got the cmds to work before, they don't now :/

*Edit*
But i'm to tierd and hungover to fix this now apperently...
« Last Edit: 08 February, 2009, 12:23:16 by Madman »
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #15 on: 08 February, 2009, 16:49:52 »
Feeling better now =)

Uploaded V.014

Code: [Select]
V.014 : 08.02.09
 - Hopefullt fixed cmds, works for me again
 - Changed ToArrivals parsing

i managed to invite/quit/chat and set font
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #16 on: 10 February, 2009, 19:05:53 »
uhm...
miss by me or users...
it's useing prefixes now. so it's not invite USER it's !invite USER
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #17 on: 14 February, 2009, 07:47:57 »
Another bug fix edition...

Hopefully this should be the last...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #18 on: 15 February, 2009, 17:56:19 »
another version with bugfixes...
Code: [Select]
V.016 : 15.02.09
 - Removed in no way relevent test code
 - Fixed missing endpipe in RC
 - Fixed so all profiles get RC
 - Fixed missing prefix in help and rc
 - All above reported by Hungarista
 - Escaped spaces and $, whined by CrazyGuy
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline WhiteKnuckles

  • Junior Member
  • **
  • Posts: 14
  • Karma: +3/-3
Re: Chess Game
« Reply #19 on: 19 February, 2009, 12:43:31 »
Still does not seem to be right.
I can't invite another player.  The script gives an error on line 118 regarding a null value.

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #20 on: 20 February, 2009, 06:27:41 »
Code: [Select]
V.017 : 20.02.09
 - Fixed pmmsg nil error, reported by sevral users
 - Added check for inviteing yourself

Yes, i finnaly fixed the pmmsg nil error. Atlest i belive so. It was just something i realized yesterday.
Hungarista's uses [HUN]Hungarista in the hub we are in, so maybe he does at other places.
So i tried the script with a prefix, and then i got the nil error.

And WhiteKnuckles next time, don't just say it gives a nil error, paste the error msg.
This time you where lucky, there was only one thing that could go nil on line 118, and the fact it's allready been reported properly.
« Last Edit: 20 February, 2009, 06:29:45 by Madman »
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline WhiteKnuckles

  • Junior Member
  • **
  • Posts: 14
  • Karma: +3/-3
Re: Chess Game
« Reply #21 on: 20 February, 2009, 15:12:52 »
Thanks for the conversion of this script Madman.  I have just tried v0.17 and no longer get the error described before but now when I try to invite anyone I get the following message:
FAILED to invite: <user>, Reasons: User is not online, User is playing a game, You are playing a game, or it's your name.

None of those reasons are true.
I used the right click on the username then "Play Chess with User" option when I came up with this problem.


//Edit by CrazyGuy: removed quote (waste of space)
« Last Edit: 20 February, 2009, 22:31:54 by CrazyGuy »

Offline Madman

  • Scripter
  • Emperor
  • ******
  • Posts: 1 316
  • Karma: +75/-1
Re: Chess Game
« Reply #22 on: 20 February, 2009, 22:28:04 »
Code: [Select]
V.018 : 20.02.09
 - Fixed check for inviteing yourself
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Offline ?StIfFLEr??

  • Triple Ace
  • **
  • Posts: 241
  • Karma: +17/-63
Re: Chess Game
« Reply #23 on: 24 February, 2009, 14:54:25 »
thanks a lot madman .
sorry for late reply was out for a while.
Thanks a lot once again.

PtokaX forum

Re: Chess Game
« Reply #23 on: 24 February, 2009, 14:54:25 »