Re: ClassField and Chart

2012-03-10 Thread Alexander Burger
Hi Konrad, The code is still crashing and it has something to do with how I'm using the class field. OK, I found two more errors: 1. The chart's put function should not set the class field to 'This' (list This (: nm) (diestr (: level)) (: notes)) but to the object's type (i.e. th list

Re: ClassField and Chart

2012-03-10 Thread Konrad Zielinski
Thanks Alex, its working. Its been quite a learning experience. regs Konrad On Sat, Mar 10, 2012 at 7:20 PM, Alexander Burger a...@software-lab.de wrote: Hi Konrad, The code is still crashing and it has something to do with how I'm using the class field. OK, I found two more errors:

Re: ClassField and Chart

2012-03-08 Thread Konrad Zielinski
Hi Alex, I don't actually understand the choMaster function or why I would actually need one? the model I have is: (class +Monster ...) (rel gear (+List +Joint) whos (+Item)) (class +Monster ...) (rel whos (+Joint) gear (+Monster)) And I'm trying to add the list of Gear objects onto the

Re: ClassField and Chart

2012-03-08 Thread Alexander Burger
Hi Konrad, I don't actually understand the choMaster function or why I would actually need one? I my experience, I often needed a 'choX' function for each class. If not, where should new objects be taken from to insert them into other objects? The only case would be if all data were

Re: ClassField and Chart

2012-03-08 Thread Alexander Burger
Hi Konrad, so here is the code I have so far: As I don't have the setup to test it here, let me guess (gui '(+Set +E/R +Chart) '((L) (filter bool L)) '(gear : home obj) 5 '((Itm) (with Itm)

Re: ClassField and Chart

2012-03-07 Thread Alexander Burger
Hi Konrad, I have a few questions regarding the class Field. 1) can I use it in a chart and if so what should I set the first Yes. A '+ClassField' refers to an object's class, so it makes sense in a chart holding a list of objects. argument to I know this should be the object that I want

Re: ClassField and Chart

2012-03-07 Thread Alexander Burger
On Thu, Mar 08, 2012 at 08:24:02AM +0100, Alexander Burger wrote: (gui '(+E/R +Chart) '(children : home obj) 5 '((This) (list NIL This (: nm))) car ) (table NIL NIL '(NIL (NIL Class) (NIL Name)) (do 6 (row NIL (gui 1 '(+ChoButton)