Sunday 16 October 2011

Localising: Update 2.51


Version 2.5 hasn't even hit the Asset Store yet and I've already tackled a few bugs that I have discovered over the last day. So I decided that we need to push out a version 2.51 update to correct these bugs.

Bug Fixes:

  • The way it was set up for texture and audio loading via Unity's Resources it used the PathToResources property which means it would work fine when using the LocalResources sub-class however if you used any of the others it would break. Now it is hard-coded to use a specific resources folder. This folder is created by default when setting up the audio or texture folders (check Unity's Console for location).
  • An error was found in the way it clears the list of translations. This was called when reloading files in a new language, it actually deleted the list of files to load. Fixed it by adding a new method ClearCurrentFiles() that clears the file list and removing the call to clear it from the previous ClearLists().
  • isLoaded() is now simply isLoaded

Additions:

  • Added a new debug mode through a #define LOCAL_DEBUG added at the top of Local.cs. This will print to the console every encountered missing identity, audio file or texture only once. If you build a StandAlone it will print these to a file in the data folder called Identities.txt, this will allow you to send a debug version of your game to your testers and have them send the file if it is created, to see what you are missing. Disabled by default.
  • Small edits to the internal documentation.

We hope this update will be a welcome update. Will update when 2.51 becomes available.

Regards,
Garth (Lead)

No comments:

Post a Comment