Physion

  • Increase font size
  • Default font size
  • Decrease font size
Welcome, Guest
Username Password: Remember me

onStart/onStop will stay forever
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: onStart/onStop will stay forever

onStart/onStop will stay forever 5 years, 2 months ago #131

  • Lynxx
  • OFFLINE
  • Gold Boarder
  • Java/C#-Developer
  • Posts: 212
How to reproduce:
Start new Scene, create obj "item4"

in Console do:
item4.onStart = function() { item4.Text = "STARTED!"; }
world.started.connect(item4.onStart)


Start scene, Text will appear.

Remove item4, load an other scene or start a new scene again.

create obj "item4"
Start scene, and Text will still appear.

Only closing Physion removes the function-call.

(doing "world.started.disconnect(item4.onStart)" before closing the begin-scene will remove the call)

P.S: Imho it would be best if the onStart/onStop could be set in the properties too.
Infinity is vast, especially near end.
bye, Lynxx

Re: onStart/onStop will stay forever 5 years, 2 months ago #139

  • Dimitris
  • OFFLINE
  • Administrator
  • Posts: 218
That's interesting... I'll take a look

P.S: Imho it would be best if the onStart/onStop could be set in the properties too.
Yes this will be done in Version 1.01

Re: onStart/onStop will stay forever 5 years, 1 month ago #296

  • Dimitris
  • OFFLINE
  • Administrator
  • Posts: 218
Hey Lynxx,

Could you please check if this bug you spotted (onStart/onStop will stay forever) still persists in version 1.01?

Thanks

Re: onStart/onStop will stay forever 5 years, 1 month ago #300

  • Lynxx
  • OFFLINE
  • Gold Boarder
  • Java/C#-Developer
  • Posts: 212
Indeed the above sample still works in V1.01 !
Infinity is vast, especially near end.
bye, Lynxx

Re: onStart/onStop will stay forever 4 years, 11 months ago #542

Old post, but just found something like this, too!! Was driving me nuts!
Had some coding in an 'OnUpdate' event, which was working. I changed some things
in the coding, which (at the time unknown to me), was incorrect, so it would not have
worked then. But the OLD (last correct WORKING script for that event was still running
in the background!? Could only see that my new coding was not working, by saving,
closing &re-starting Physion, & re-loading. I would have thought that, working or not,
when clicking 'OK' in the event script-editor would at least remove the old coding.
Have a good weekend! Sunny here, in South Australia.
1x1 square diag = root-2. Cube diag = root-3. Beautiful !

Re: onStart/onStop will stay forever 4 years, 11 months ago #543

Old post, but just found something like this, too!! Was driving me nuts!
Had some coding in an 'OnUpdate' event, which was working. I changed some things
in the coding, which (at the time unknown to me), was incorrect, so it would not have
worked then. But the OLD (last correct WORKING script for that event was still running
in the background!? Could only see that my new coding was not working, by saving,
closing &re-starting Physion, & re-loading. I would have thought that, working or not,
when clicking 'OK' in the event script-editor would at least remove the old coding.
Have a good weekend! Sunny here, in South Australia.
1x1 square diag = root-2. Cube diag = root-3. Beautiful !
  • Page:
  • 1
  • 2
Time to create page: 0.14 seconds