I have never used J's Projects.
I want to make an existing application in a folder named tgsj, into a
project in jqt.

My first idea was to look in the jwiki Guides for projects and landed here,
http://www.jsoftware.com/jwiki/Guides/Folders%20and%20Projects

which seemed to lead me here,
http://www.jsoftware.com/jwiki/Subversion

which seemed to lead me here,
http://www.jsoftware.com/jwiki/Subversion/User%20Guide

That got me so scared I decided to post this message.
But before sending it I went back to the jqt menu for Project|New and  left
checked build, run, and init, and clicked Create after entering the folder
named j64-803-user/projects/tgsj as ~Projects/tgsj in the Folder: field.

That seems to have worked nicely, but ...

server:~ brian$ cd /Users/brian/j64-803-user/projects/tgsj
server:tgsj brian$ ls -l
total 144
-rw-r--r--   1 brian  staff   1746 Sep 29  2009 README
-rw-r--r--   1 brian  staff      0 Mar  8 14:57 build.ijs
-rw-r--r--   1 brian  staff      0 Mar  8 14:57 init.ijs
-rw-r--r--   1 brian  staff      0 Mar  8 14:57 run.ijs
-rw-r--r--   1 brian  staff    100 Mar  8 14:57 tgsj.jproj
-rw-r--r--   1 brian  staff   4352 Nov 11  2012 tgsjbasic.ijs
-rw-r--r--   1 brian  staff   4794 Nov 11  2012 tgsjbasic2.ijs
-rw-r--r--   1 brian  staff    721 Sep 20  2009 tgsjcommands.ijs
-rw-r--r--   1 brian  staff   4325 Sep 20  2009 tgsjhelp.ijs
-rw-r--r--   1 brian  staff  34134 Nov 11  2012 tgsjutil.ijs
server:tgsj brian$

Now that I have that directory, I could use some help on using or not using
the build, run, and init files in the following circumstances. So I would
either like to be directed to an easy example of a Project that uses build,
run, and init files, or some tips on how to use them in my case, which I
try to explain below.

A typical use of tgsj as it is now. is to load tgsjbasic.ijs or
 tgsjbasic2.ijs and then entering (tgsj_run '') for the former  or
(tgsj_run 2 or 3 or some integer) for the latter. Both scripts
 tgsjbasic.ijs and  tgsjbasic2.ijs begin as follows.

Path=. '~user/'
path=. Path&,

NB. create a single turtle

require jpath path 'tgsjutil.ijs'
require jpath path 'tgsjhelp.ijs'
coinsert 'bmsturtle3'
coclass 'bmsturtle3'

NB. main graphics initialization     ***************

TURTLE_SIZE=: 0.05         NB. turtle body size
TURTLE_SHAPE=: 1 2 0.5     NB. turtle elliptical rescale
TURTLE_HEAD_RELATIVE=: 0.3 NB. head size relative to body

OPENGL=: 0 : 0
pc opengl;pn tgsj;
menupop "&Help";
menu tips "&Tips" "" "" "";
menu movement "&Movement" "" "" "";
menusep ;
menu about "&About" "" "" "";
menupopz;
xywh 0 0 200 150;cc g isigraph opengl rightmove bottommove;
pas 0 0;
rem form end;
)

​(Btw, notice that isigraph is used above. Is that still used with J8?)

Thanks,​

-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to