If you intend to develop a project for both platforms, make a serious effort to test regularly on both from an early stage, and do all final collation and polishing for each version on its target machine.
Other tripwires:
Quicktime can only be played directToStage in Windows [see section 8]
Director for Mac doesn't (can't?) support AVI-format digital video.
Sound playback differs between platforms. Particularly, sounds on the PC may play with noticeable delays on the PC compared to the Mac. There's a note about this in the DfW Read Me somewhere.
DfW seems to be somewhat more stringent about sloppy Lingo constructs such as
arithmetic operations between incompatible types or voids. (I can't at
present provide a concrete example of this, since it's some months since I
was shown the effect and I don't currently have a Windows machine to try it
out on, but my recollection is that an operation like
where y = 1 and z is uninitialized (void) caused problems. This may also have
been with a pre-4.0.4 version, so I may be needlessly scaremongering, but
it's always worth being careful about such things!)
set x = y + z
2 pixel dropout on bitmapped images (?)
There are still two problems. One, mentioned above, is that this may introduce a noticeable delay in your sound playback, so it may not run in sync with the visuals (or rather, you'll have to resync it for each platform). I *think* this is caused by MacroMix, but I don't know for sure.
The second problem is that there's still really only the one sound channel, and while Director has it no-one else can. In particular, QuickTime for Windows can't have it, which means that either your QuickTime movie can play its soundtrack, or your Director movie can, but not both at the same time. (I feel certain there must be a workaround for this, but if so nobody's told me.)
Also, note that the number of sound channels for which Director allocates buffers depends on the settings in your DIRECTOR.INI (or PROJNAME.INI) file. I think this specifies 4 sound channels by default (though again, I don't have a copy to hand), but this can be increased up to 8. So, if you want to use more than 4 channels, make sure to edit your INI file accordingly.
However, there are some PowerMac-specific problems. In particular, the memory management seems a bit flaky. Using the "Purge" button in the About Director window is at best very slow, at worst calamitous. If you have MacsBug installed, you'll find that opening a MIAW causes a PowerPC unmapped memory exception -- the OS happens to be smart enough to let Director get away with this, but it's still a bug. In general the program hangs a *lot* more often than on either a 68K Mac or a PC.
On the other hand, it is *very* fast, and the problems don't seem quite so prevalent in PowerMac or Fat projectors.
on getDriveOrVol
-- save off the old item delimiter so we can use our own
set oldDelimit = the itemDelimiter
set the itemDelimiter = ":"
-- get what we want
put item 1 of the pathName into driveOrVol
-- restore the old item delimiter so everyone else can keep using it
set the itemDelimiter = oldDelimit
return driveOrVol
end getDriveLetter
Hybrid/ISO-9660. Most CD-burner software includes this option. This type of CD allows you to have your regular Mac-named (34 character) projector along with your nice custom icon, but it also works like an ISO-9660 format under Windows, so you can stick your windows projectors on the cd as well in the ugly 8 character format that PC people know and love. Technically it achieves this by writing the Mac HFS information in the first 17 blocks, and since the ISO-9660 specification is such that it ignores the first 17 blocks on the PC side, you are effectively fooling the computer so that when this CD is put into a Mac CD-drive, it is seen as an HFS volume, and when it is stuck in a PC, it appears to be a standard ISO-9660 volume.
Gotchas: ISO-9660 restricts you to the standard alphabet (upper case only) and the numbers 0-9 The only special characters you can use are the "_" (underline) character and the "." (period) to seperate the file extension (e.g. MY_PRJCT.DIR or SOUND.WAV). Things not acceptable include (&, #,$,*,-, etc.) What this means is that you must be very careful to name your Mac files so that they are 8 characters dot 3, in ALL CAPS. Anything else is ignored by the ISO format, so if you accidently leave any files with any small letters, or nonstandard characters, when Director goes to access that file, it won't find it. Once again, when you're running on the Mac, all will work fine, as it sees the CD as a typical Mac HFS volume. It's only on the PC side where you will have problems if you don't follow the above directions very carefully.
When creating the CD in this manner, since the Director files are binary-compatible, all you have to do is check them out under Windows first (not necessarily a simple task!) and simply compile 2 projectors linked to the files; one for the Mac and one for the PC. (Hint: Create a tiny opening file that points to your first "real" first file of your program; maybe something like: go to movie "START.DIR" or something, and compile this ONLY into your projector, then you can simply stick the projector on a floppy each time you need to modify it, and you don't have to hassle with moving a big file across the network every time. We've found this makes minor modifications easier in our tests. Plus your projector is relatively "independent" of the rest of your files so you don't need to rebuild it unless it becomes corrupted or something.
Maricopa Center for Learning and Instruction (MCLI)
The Internet Connection at MCLI is
Alan Levine --}
Comments to
levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/director/faq/faq17.html