Bug Issue: Setting actor attribute from another actor is coming up null (Android).


Pages: 1

Raiyumi

  • Subscriber - Stencyl Studio
  • *
June 12, 2020, 10:31:05 am
latest nightly build 10553

To reproduce on android:

- Create 2 behaviors.
- Create actor attribute in 1 behavior.
- In the 2nd behavior using 'for each actor of type' or 'for each actor of group', get actor attribute and set it to 'self'.
- The actor attribute will come up in null.

This doesn't happen in previous versions of stencyl I've used and I haven't tested iOS yet.

Here's an example .stencyl: https://www.dropbox.com/s/hk6hudgutk0wph7/ActorAndroidTest.stencyl?dl=0
« Last Edit: June 12, 2020, 01:41:53 pm by Raiyumi »


Issue updated by Justin - June 12, 2020, 11:08:12 pm
  • Tags added: 4.0.3


New attachment added by Raiyumi - June 14, 2020, 09:49:13 am


Justin

  • Master Stencyler
  • *
June 14, 2020, 04:55:48 pm
I'll try to resolve this as soon as possible, but it may need a little time. For now, here's a previous version of the changed file. Just replace the file at "[Stencyl install]/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/BehaviorManager.hx" with this one and it should work again.
« Last Edit: June 14, 2020, 04:56:09 pm by Justin »


Luyren

  • Master Stencyler
  • *
June 16, 2020, 10:25:46 am
Adding up to this: it's happening on Windows as well, flash is ok. The logs get a warning of "attribute doesn't exist for behavior" even though it does in fact exist, for both getter and setter. In my case, I'm setting values immediately after creating an actor, and setting attributes for it via a global custom block. Only seetting the "actor" attribute presents an issue. b10556


Justin

  • Master Stencyler
  • *
June 29, 2020, 10:25:49 pm
Fixed in b10562.
  • Tags added: regression
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved


Justin

  • Master Stencyler
  • *
June 29, 2020, 10:27:54 pm
The provided sample game still doesn't work, but that's because of a timing issue. Placing the "set _ActorAttribute to self" block into a "do after" block fixes it.


Luyren

  • Master Stencyler
  • *
June 30, 2020, 07:30:40 pm
I can confirm that on Windows this is fixed.


Pages: 1

Details

  • Reported
    June 12, 2020, 10:31:05 am
  • Updated
    June 30, 2020, 07:30:40 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Engine

Tags


Attachments

* ActorAndroidTest.stencyl (310.51 kB - downloaded 23 times.)