Those using Level Director and Physics Editor

Hi All,

To those who may not have known this yet.

I just thought I’d share this rather important finding.   To those of you who are using Level Director and are importing your physics bodies from Physics Editor, please note:  NEVER use underscore (_) or hyphen (-) characters in your asset filenames  (eg. crate-01.png,  crate_01.png) .  

I have searched high and low to solve the mystery of Level Director unable to find matches when importing physics from PE.  After hours of experimenting, I came to the conclusion that those characters are the culprit.  LD and PE will match assets based on asset names and will skip the “.PNG”,  “_png” part of the names.  If you happen to have either of those characters, LD will not match the physics body.  

To Retrofit Productions, this link should include this as a warning. 

http://www.retrofitproductions.com/level-director/tutorial-using-texturepacker-and-physicseditor/

I cannot find any documentation that mentions this.  Perhaps it could be addressed in future LD update?    :slight_smile:

Thanks,

Santi

I recall there being problem when using hyphens and underscores but I’ll have to take another look to remind myself why…

Hello! You are in fact correct, if you have an image you can never use spaces and or _ or - they just screw with the code… I personally use names like “crate011.png” and such as that.

I recall there being problem when using hyphens and underscores but I’ll have to take another look to remind myself why…

Hello! You are in fact correct, if you have an image you can never use spaces and or _ or - they just screw with the code… I personally use names like “crate011.png” and such as that.