setup


1. Unzip all files to a directory of your webserver, if possible /morf1 in the root of your webserver (example: http://www.yourdomain.com/morf1).

2. If you put the files in http://www.yourdomain.com/morf1, paste the following html where you want Pata to appear:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="200" id="pata_morf1">
<param name="allowScriptAccess" value="sameDomain" /> <param name="salign" value="top" />
<param name="movie" value="http://www.yourdomain.com/morf1/pata_morf1.swf" />
<param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" />
<embed src="http://www.yourdomain.com/morf1/pata_morf1.swf" bgcolor="#ffffff" width="200" height="200" name="pata_morf1" salign="top" quality="high" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Replace www.yourdomain.com with your web address.

If you put the files in another directory of your webserver, paste this:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="200" height="200" id="pata_morf1">
<param name="allowScriptAccess" value="sameDomain" /> <param name="salign" value="top" />
<param name="movie" value="http://www.yourdomain.com/path_to_directory/pata_morf1.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="flashvars" value="dir=http://www.yourdomain.com/path_to_directory" /> <embed src="http://www.yourdomain.com/path_to_directory/pata_morf1.swf" bgcolor="#ffffff" width="200" height="200" name="pata_morf1" salign="top" flashvars="dir=http://www.yourdomain.com/path_to_directory" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Replace http://www.yourdomain.com/path_to_directory with the full url to the directory which contains the files. Note there is no trailing slash (example: http://www.yourdomain.com/bots/pata).


3. You can change the char through the parameter characterFile in pata.ini. Be careful not to leave any whitespace within parameter definitions and to include every one between &-signs. Deactivate your browser's cache before viewing the changes you made.

4. If you bought a char, you can change the link attached to the avatar and the text displayed in the preloader through the parameters companyName, link and targ in pata.ini.

5. You can use a free audio recorder like Audacity to record Morf1's voice. Save as WAV.

6. In order to generate the lip sync files, you can use the CSLU Toolkit. Start Baldi Sync and import your WAV file. Put the text to align with in the appropriate space, click on Align and do File -> Save Sob (save under any name). Then do File -> Show Console (appears in a new window). Copy (Ctrl-C) the phoneme data into a .lab file.

Example console output (copy the block highlighted in yellow into example.lab).

7. Put all your .lab files in a separate directory on your webserver. In the same directory, create a new file named convert.php and paste this code in it. Run convert.php in order to convert all .lab files in the directory into .txt files. Edit manually if necessary.

8. You can use SWF Tools to convert your WAV files into SWF files. The appropriate command is:

wav2swf -r 15 -b 64 -s 44100 -o example.swf example.wav

If you use another tool, make sure to set frame rate to 15fps and play to automatical and looping.

9. Replace Morf1's existing .swf and .txt files with the ones you generated in points 5 trough 8. Don't forget to edit pata.ini if you gave them different names.

10. You can make Morf1's behaviour simpler or more complex by editing pata_morf1.fla (Flash MX 2004 to open, but requires in its current form exporting to Flash 7).