AGI Predictive Input script

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
User avatar
noize
Posts: 126
Joined: Mon Oct 31, 2005 3:08 pm

AGI Predictive Input script

Post by noize »

For anyone who wants the predictive input to work under ScummVM.

Windows Guide to predictive input for AGI Games:

1. Download Perl:
http://www.activestate.com/Products/ActivePerl/

2. Download perl scipts:
http://svn.sourceforge.net/viewvc/*chec ... rds-tok.pl
&
http://svn.sourceforge.net/viewvc/*chec ... ed-dict.pl

3. Make a batch file (ie. PRED.BAT) containing the following strings:

@for /R agi %%i in (words.tok) do @extract-words-tok.pl %%i >%%~pi\predi.txt
@for /R agi %%i in (predi.txt) do @construct-pred-dict.pl %%i >%%~pi\pred.txt
@for /R agi %%i in (predi.txt) do @del %%i
@for /R agi %%i in (pred.txt) do @if %%~zi EQU 0 del %%i

4. Put the batch file and the two perl scripts into the same directory as where your agi games are assembled.

Make sure all your agi games are in a directory called "AGI", and the AGI directory containing your agi games each in their own directory.

5. Run "PRED.BAT"

6. Enjoy predictive input.
Post Reply