Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with class creation #77

Open
bazilmuzik opened this issue Sep 22, 2022 · 2 comments
Open

Problem with class creation #77

bazilmuzik opened this issue Sep 22, 2022 · 2 comments

Comments

@bazilmuzik
Copy link

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 ?

@60-hz
Copy link

60-hz commented Sep 23, 2022

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

@bazilmuzik
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants