Henry Rich wrote: > My app needs the platimg addon. So I specified the platimg files > as source files (there are tow of them), and built. But this > gives an error on load, because one of the files contains > > require '~addons\...' > > to bring in the other. This require is passed through to the > output file, where it fails if loaded onto a machine that > doesn't have the addon. > > I had similar trouble with requires to my own files, which > I cured by removing the require and listing the files as sources > in the Project Manager. I assume this is how I'm expected > to operate. > > But is there any way to tell PM not to produce require statements, > but to include the code always?
PM does not parse source scripts to try to handle load and require. However, a standalone script starts with load and require set to ] , so if you include all required scripts in the source, then it should run correctly. If you don't want to build a standalone script, then use a post-build script to fix the target, and remove or comment out any require statements. See also the thread: http://www.jsoftware.com/pipermail/programming/2006-December/004389.html . ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
