Maniphest T31122

Properties cant have Spaces in names when using interval as a evaluation. Or else it'll fail to activate actuator.
Closed, Resolved

Assigned To
None
Authored By
Auuman Anubis (auuman_anubis)
Apr 27 2012, 2:38 PM
Tags
  • Game Engine
  • Game Logic
Subscribers
Auuman Anubis (auuman_anubis)
Brecht Van Lommel (brecht)
Mitchell Stokes (moguri)

Description

Category: Logic

If a property contains spaces in it's name, then the connected actuator won't activate.

I have to rename the property by removing spaces from its name, then I update all the logic bricks to match the new name. And then it works just fine.
But once I rename it again (adding spaces back in) then update the logic bricks to the new name, it stops working.

This only happens with the Property sensor that uses "interval" as a evaluation. All the rest of the evaluation types can use all properties (no matter what the name is)

The Blend file explains in more detail, and contains different layers that show a comparison.

Thanks

Event Timeline

Auuman Anubis (auuman_anubis) edited a custom field.Apr 27 2012, 2:38 PM
Auuman Anubis (auuman_anubis) attached 1 file(s): F18173: Properties_cant_have_Spaces_in_names_when_using_interval.blend.

whoops, uploaded the wrong blend

"Properties cant have Spaces in names when using interval 2.blend" is the correct blend file that shows the issue

Brecht Van Lommel (brecht) added a comment.May 3 2012, 12:49 PM

Confirmed. The code here is quite silly, it generates an expression string and then evaluates it, but doesn't seem to prevent spaces (or +, - and other operators) from messing things up.

Brecht Van Lommel (brecht) added a comment.May 3 2012, 12:49 PM

Moved from Blender 2.6 Bug Tracker to Game Engine

Mitchell Stokes (moguri) added a comment.Jul 5 2012, 10:36 PM

This should now be fixed as of r48662. Let me know if you still have problems. In the mean time, I'm going to close this report as "Fixed."

Mitchell Stokes (moguri) changed the task status from Unknown Status to Resolved.Jul 5 2012, 10:36 PM