Author Topic: Text resource spelling/grammar checker  (Read 5005 times)

0 Members and 1 Guest are viewing this topic.

Offline gumby

Text resource spelling/grammar checker
« on: September 28, 2010, 08:45:26 PM »
This tool is moving along nicely.  I've successfully dumped out all the text resources from the resource.001 file & put them in a plain-text file.  I also strip out all the text resources from binary file so I can append them back into the end of the file once they are 'corrected'.  I've also found a 3rd party spell checker that is then kicked off against the text file - it works beautifully. 

I'm currently working on re-creating the resource.map file based on the resulting 'spelling/grammar corrected' resource.001, which consists of all the resources & their absolute position within resource.xxx files.  Didn't see this part coming, but I now can get *all* the resources out, not just the text ones - maybe more opportunity for tool development down the road.

Then all that's left is to incorporate a grammar checker (I've found one that looks promising) and we are good to go.  Hopefully will have this completed within the next 2 weeks.


In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: Text resource spelling/grammar checker
« Reply #1 on: September 29, 2010, 04:39:11 AM »
This is intriguing, even though in the past there have been a few resource dumpers. It would be nice to have a utility that could dump any and all resources to allow editing and reassemble the resource file again, complete with corrected map file.
KQII Remake Pic

Offline gumby

Re: Text resource spelling/grammar checker
« Reply #2 on: October 16, 2010, 05:57:19 PM »
Okay, I'm done with this.  It is fully functional with respect to developing games, but falls short with manipulating Sierra's games because many of their resources are compressed with LZW encoding.  I'll probably come back to this tool & add decompression functionality at some point, but in my mind I've met my requirements.

I've tested it with several different games (Conquests of Camelot, Space Quest 3, and I actually started with Cloudee's remake of Black Cauldron).  The games seem to work fine after reincorporating the manipulated files into their respective games, but I'd would appreciate some quick testing!!

It's written in Perl & I compiled it into an executable as well.  Note that running the .exe it will take a considerable time to actually start up (because it contains the entire Perl interpreter & needs to be extracted into temporary files - from what I understand).  I would recommend installing Perl & running it that way for optimal results.

A final word: please check the included source file for a full writeup of how to use it.

Cloudee:  if you don't mind, please download the file & mirror it here (Collector as well, if you don't mind).

http://www.mediafire.com/?4c1247oc568o141
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: Text resource spelling/grammar checker
« Reply #3 on: October 17, 2010, 03:17:38 AM »
OK, I have downloaded it. I'm a little busy right now, but If I don't get around to uploading to SHP in the next few days, give me a reminder.
KQII Remake Pic

Offline Cloudee1

Re: Text resource spelling/grammar checker
« Reply #4 on: October 18, 2010, 05:45:04 PM »
Ok, it can now be downloaded here at http://sciprogramming.com/download/SCITextDumper.zip

If I can ever stop playing with sci crap, I still plan to rework the tools page and I'll add them to that too. But for now...
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline gumby

Re: Text resource spelling/grammar checker
« Reply #5 on: October 20, 2010, 10:28:07 AM »
Thanks Cloudee.  Collector, had a chance to put it up yet on SHP?
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: Text resource spelling/grammar checker
« Reply #6 on: October 20, 2010, 03:41:44 PM »
Because of the ongoing SQL errors, SHP is being moved to another server. I'll try to get it up after the move.
KQII Remake Pic


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.04 seconds with 21 queries.