Ok, just realized that this it's a bit complicated to make a test mod. The IRAI ship_weapons file is property of TDW and I don't want to step on anyones toes.
If you are having difficulties getting the game to start, try just replacing the two words:
Ship:CanFireCannons() to Plane
:CanFireCannons()
and
Ship:FireCannons() to Plane
:FireCannons()
So just change the two words, don't touch anything else. Also when I save the .aix file, I have the ANSI coding on in the notepad options. And have IRAI_0_0_30_ByTheDarkWraith installed. If this works, then you can add the other scripts as well.
Later if/when everything is going well, I'll ask TDW for a permission to make a IRAI compatable mod. Have to go now, I'll get back to this later!
EDIT:
If you got the scripts working, here is link to test mission:
http://www.gamefront.com/files/21248...t_Periscope.7z
Unpack and enable with JSGME. Load the "Shoot_at_Periscope" mission, raise your persicope fully, and be prepared to emergency dive!