[tw] Re: TypeError in MachineGun

2012-01-04 Thread PMario
Hi twgrp, Since it was working. Can you tell us, what you have done in between? did a short check: console.log('config.act', config.act) if (story.getTiddler(config.act)) { ... config.act is undefined. So may be some initialisation is missing. The code is very near the top of the labeled script.

[tw] Re: TypeError in MachineGun

2012-01-04 Thread twgrp
Thanks so much for answering Mario! I made the demo as clean as possible to avoid involving my convoluted mGSD because because it has deteriorated over the years [1]. So I can't really say "what I've done over the years". I think the MachineGun is, or at least should be, independent of the mGSD-s

[tw] Re: TypeError in MachineGun

2012-01-04 Thread PMario
The whole thing seems to be a bit fragile, because if tiddler MindSet and Reward are not there, it may also fail. But anyway ... Short info, why it fails: if (story.getTiddler(config.act)) { story.getTiddler() expects a valid tiddler. config.act is undefined, so the system throws an error messag

[tw] Re: TypeError in MachineGun

2012-01-04 Thread twgrp
MARIO YOU ARE MY HERO! Can I humbly ask, how did you find this? Just by looking at it or via some debugging tool or something? Thank you :-) On Jan 5, 12:44 am, PMario wrote: > The whole thing seems to be a bit fragile, because if tiddler MindSet > and Reward are not there, it may also fai

[tw] Re: TypeError in MachineGun

2012-01-05 Thread PMario
On Jan 5, 1:50 am, twgrp wrote: > MARIO YOU ARE MY HERO! > > Can I humbly ask, how did you find this? Just by looking at it or via > some debugging tool or something? FireFox and FireBug are good friends :) mGSD tiddlers are editable, even if serverd from the web. So I just opened your tiddler an