Text to .CHT?

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

The .cht files themselves.
emcee
Rookie
Posts: 17
Joined: Sun Oct 23, 2005 11:09 pm

Post by emcee »

Aerdan wrote:The .cht files themselves.

Really? Which ones?
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

I haven't gone through all of 'em, but at least one of the Actraiser .cht'sre busted.

It's because they were made at a time when ZSNES didn't properly save .cht's. It does now, of course, but..
emcee
Rookie
Posts: 17
Joined: Sun Oct 23, 2005 11:09 pm

Post by emcee »

Aerdan wrote:I haven't gone through all of 'em, but at least one of the Actraiser .cht'sre busted.
I just tried, that actraiser cht. Its one of those 18 byte based files. The first version I wrote didn't support them (I didn't know they existed), but I fix it so it does, so that cht file loads up fine. When you save it it will convert to 28 byte.
Aerdan wrote:It's because they were made at a time when ZSNES didn't properly save .cht's. It does now, of course, but..
Ah, ok, that explains it.
emcee
Rookie
Posts: 17
Joined: Sun Oct 23, 2005 11:09 pm

Post by emcee »

jhguitarfreak wrote:well i've been testing it on various games
which include FF3, Super Mario World, And Mortal Kombat
and i gotta say this is a nifty little program you got here.
the only pet peeve i have about it is it won't let me right click to paste in the boxes. so i basicall had my left hand sitting over the CTRL key while switching back and forth from text files and webpages while adding cheats.
but this is really cool, now i don't have to have a big printout of cheats to type in with every game i get.
Good point. Unfortuately, the perl/tk entry widget doesn't have its own cut and paste context menu. However this should help. Put this at the very beginning of the code:

Code: Select all

use WIN32::Clipboard;
Then find the line like this:

Code: Select all

$dlist->bind('<1>'=>sub{$dlist->focus();&rdcht($dlist->get('anchor'));});
And right after it put this:

Code: Select all

$mw->bind('<3>'=>sub{eval{($mw->focusCurrent)->configure('-text'=>Win32::Clipboard->Get());}});
Now when you right click in a entry box it should put whatever is on the clipboard in that box.
jhguitarfreak
New Member
Posts: 9
Joined: Tue Oct 25, 2005 11:52 am

Post by jhguitarfreak »

emcee wrote:
jhguitarfreak wrote:well i've been testing it on various games
which include FF3, Super Mario World, And Mortal Kombat
and i gotta say this is a nifty little program you got here.
the only pet peeve i have about it is it won't let me right click to paste in the boxes. so i basicall had my left hand sitting over the CTRL key while switching back and forth from text files and webpages while adding cheats.
but this is really cool, now i don't have to have a big printout of cheats to type in with every game i get.
Good point. Unfortuately, the perl/tk entry widget doesn't have its own cut and paste context menu. However this should help. Put this at the very beginning of the code:

Code: Select all

use WIN32::Clipboard;
Then find the line like this:

Code: Select all

$dlist->bind('<1>'=>sub{$dlist->focus();&rdcht($dlist->get('anchor'));});
And right after it put this:

Code: Select all

$mw->bind('<3>'=>sub{eval{($mw->focusCurrent)->configure('-text'=>Win32::Clipboard->Get());}});
Now when you right click in a entry box it should put whatever is on the clipboard in that box.
cool, i'll get right on that


.:: EDIT ::.
Thats a pretty cool trick
Post Reply