How can I do this???

An ICS Emulator for YAHOO Chess

How can I do this???

Postby DeepThought » 11 Dec 2007 11:37

How can I remove the kibitz that says: "Welcome (name), programs only", When a person enters my room? I'm using the polygot method. And the rybka.ini is not working too.
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby dene » 11 Dec 2007 12:26

DeepThought wrote:How can I remove the kibitz that says: "Welcome (name), programs only", When a person enters my room?


You need to edit this script here:

sub rop_tableentry { # 6a
my $who=sreadutf($_[0]);
my $table=unpack('C',shift());
exists($handles{$who}) or return;
defined($tables[$table]) or return;
push(@{$handles{$who}->[2]},$table);
push(@{$tables[$table]->[5]},$who);
if (lc($who) eq lc($me)) {
iprint "You are now observing game $table.\n";
prompt;
defined($primary) or $primary=$table;
} else {
top_ack $table,"Game $table: $who ($handles{$who}->[1]) is now observing.";
if (lc($tables[$table]->[6]->[0]) eq lc($me)) {
my $t=$tables[$primary];
my $message="Welcome $who, programs only at this table.";
nprinttop($t,0x43,packutf($message));
}
}
}
User avatar
dene
Co-Admin
Co-Admin
 
Posts: 384
Joined: 04 Oct 2007 07:46
Location: United Kingdom

Re: How can I do this???

Postby DeepThought » 11 Dec 2007 12:30

Okay, thanks. I'm using the botijon edition (no acvtiveperl). Is it okay, if I just edited it with notepad?
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby chesslover89 » 11 Dec 2007 12:31

nprinttop($t,0x43,packutf($message));

Remove that line ....or comment it
chesslover89
Banned User
Banned User
 
Posts: 62
Joined: 02 Oct 2007 21:21
Location: India

Re: How can I do this???

Postby DeepThought » 11 Dec 2007 12:35

Thanks!
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby tue_mouche » 11 Dec 2007 20:28

can i edit this script in my ics too!!
thank you very much! tue_mouche.
User avatar
tue_mouche
Advanced Member
Advanced Member
 
Posts: 151
Joined: 12 Oct 2007 15:02

Re: How can I do this???

Postby DeepThought » 13 Dec 2007 11:22

I am using YaY.exe (EXE), how can I edit it? Note: YaY.exe works alone, and doesn't need files like yay.pl
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby dene » 13 Dec 2007 11:34

DeepThought wrote:I am using YaY.exe (EXE), how can I edit it? Note: YaY.exe works alone, and doesn't need files like yay.pl



Use the YaY PL instead of the YaY.exe if you want to edit the welcome message etc.
User avatar
dene
Co-Admin
Co-Admin
 
Posts: 384
Joined: 04 Oct 2007 07:46
Location: United Kingdom

Re: How can I do this???

Postby DeepThought » 13 Dec 2007 11:49

I edited the pl file, but I don't have an activeperl. Is there no way to change that with the exe file?
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby tue_mouche » 13 Dec 2007 18:34

let's see the question from the beginning mt_ mode!!
i have the new version of yay ie without active perl!I would like to remove the welcome message sent automatickly by yay when an opponent take sit to play!
question:is there any formula to send throught ics so that the welcome message doesn't appear any more!!
tank you very much. tue mouche.
User avatar
tue_mouche
Advanced Member
Advanced Member
 
Posts: 151
Joined: 12 Oct 2007 15:02

Re: How can I do this???

Postby matematiko » 13 Dec 2007 21:40

Chris Howie created YtoICS( the father of YaY and STUCI) without knowing that someday somebody will figure out how to use chess engines to play for them in Yahoo Chess. Then what was the purpose of YtoICS? Well, for starters, if you access Yahoo Chess using YtoICS and winboard( or xboard in *nix) you are able to save games in PGN format, change the size of the board, kibitzing and shout messages have different colors, etc, etc.

But let's be real, probably Chris was the only one at that time using YtoICS without engines (maybe crafty ocassionaly). The rest of us were using YtoICS with an engine all the time. With this in mind, when YtoICS was modified and renamed to YaY, the auto-kibitz message "Welcome (name), programs only" was added to warn human players.

So, why you people want to remove that auto-kibitz message? YtoICS and its forks are free software and can be modify anyway you want as long as the modification complies with the GNU license, but not warning a human player that you are using an engine is called "cheating" in my book.

Best regards,
Using engines to cheat:
- It is not ethical,
- It is useless, nothing is gained (how can one be proud of a score earn with dishonesty?)
- You will be baned, sooner or later,
- It gives us (the true chess engine players) a bad reputation.
User avatar
matematiko
Co-Admin
Co-Admin
 
Posts: 1278
Joined: 17 Oct 2007 13:32
Location: Texas USA

Re: How can I do this???

Postby tue_mouche » 14 Dec 2007 00:38

but many of guys using yay out of this site have no welcome message when playing!! how do you explaine that matematiko!! in my book , they must be the big masters!

that makes me think to your motto!!
with my consideration.
User avatar
tue_mouche
Advanced Member
Advanced Member
 
Posts: 151
Joined: 12 Oct 2007 15:02

Re: How can I do this???

Postby DeepThought » 14 Dec 2007 11:06

Well, is there any way to convert the .pl file to .exe? Like the botijon edition? So, when I edited the perl script, and turn it into exe, I wouldn't need Activeperl anymore. Anyone?
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby DeepThought » 14 Dec 2007 11:24

P.S.

If I use perl2exe, will it be the same? Like in the perl file?
I don't know half of you, half as well as I should like, and I like less than half of you, half as well as you deserve. Confused? Good. Sign of normality.
User avatar
DeepThought
Advanced Member
Advanced Member
 
Posts: 122
Joined: 05 Dec 2007 12:41
Location: Citizen of Earth

Re: How can I do this???

Postby tue_mouche » 16 Dec 2007 14:11

hi matematiko!

you just gave me a good lesson on moral chess! i'm still wating for formula that could delete the welcome message in yay new version! please do!
thank you very much; tue_mouche.

User avatar
tue_mouche
Advanced Member
Advanced Member
 
Posts: 151
Joined: 12 Oct 2007 15:02

Next

Return to YaY

Who is online

Users browsing this forum: No registered users and 0 guests