Ofelia icon indicating copy to clipboard operation
Ofelia copied to clipboard

Problem with class creation

Open bazilmuzik opened this issue 1 year ago • 2 comments

Hello ! Windows user here ! I run the latest ofelia version on the latest (I think) Pd version, and trying to implement the exemples from ofBook, I discovered some strange behaviour regarding class creation... Without going into too much details, the easiest way to reproduce the problem is to go to ofelia help file, in the "simple_class" subpatch. If you change something in the $0-character module, like e.g. renaming it to $0-test, and then changing m = require("$0-character") to m = require("$0-test")
it doesn't work anymore. More precisely, it doesn't recognise the new() method and say its value is nil. When I was trying to implement the bouncing ball example from ofBook (which requires calss creation), I encountered this problem (also other strange things, but maybe they're linked)... Any idea what causes that ?

bazilmuzik avatar Sep 22 '22 21:09 bazilmuzik

Hi, "$0-test" is already used in the "pd-define" example. Changing to "$0-test1" works for me under OSX.

60-hz avatar Sep 23 '22 07:09 60-hz

Hm, true, "$0-test1" works... Well, may I ask you to check the script I made where I try to reproduce the bouncing ball example from ofBook ? I probably messed something up with closing if, elseif, and othe statement in the big [ofelia f] at left... I already tried many different things, but even when I get no error messages from [ofelia f] (which in its current state waits for an end of expression but I can't figure out what it should be), the patch still doesn't work... Ball_example.zip

bazilmuzik avatar Sep 27 '22 13:09 bazilmuzik