Jump to content


Photo

Unicode source conversion tool


  • Please log in to reply
2 replies to this topic

#1 Medo42

Medo42

    GMC Member

  • GMC Member
  • 219 posts

Posted 15 August 2011 - 09:50 PM

Hi everyone.

As you might know, GM 8.1.132 interprets all strings as unicode now (UTF-8, to be more precise,) while older versions used the system's locale-dependend default encoding. This can cause problems for people who used non-ascii characters in their games.

To help converting old sources into the new format, I have created a tool to perform this conversion automatically. It assumes that the input file is encoded with the system default encoding, like old Game Maker versions did, and will convert it to UTF-8 encoding. All you need to do is drag and drop the old source on the gmuniconv.exe, and it will create a new, converted .gm81 source file.

Of course, you should not try to convert a source file that is already in UTF-8 format. Any file that is saved with Game Maker 8.1.132 or newer is in UTF-8 format, even if they still contain weird characters. Converting them with this tool will only turn the weird characters into other weird characters, so don't do this.

GmUniconv hasn't been extensively tested yet and may very well contain serious bugs. Reading GM source versions of Game Maker 7 and below hasn't been tested at all. Keep this in mind and test the output carefully.

Action libraries are not supported, so if you use action libraries, the result will not work as expected. Additionally, the modification timestamp stored with resources and some other data in Game Maker source files is not retained but are replaced with the current time. This timestamp is used by Game Maker's merge function to decide which version of a resource to keep when combining two source files into one, so if you rely on this feature, use this tool with extra care.

Download: http://www.ganggarri...municonv_v2.zip
License is GPLv3, the source is included in the .jar file.

Edited by Medo42, 15 August 2011 - 10:00 PM.

  • 0

#2 henrycoleman

henrycoleman

    GMC Member

  • New Member
  • 1 posts

Posted 17 August 2011 - 10:46 AM

I have used GM 8.1.132 before, thanks for the information right there.. :thumbsup:
  • 0

#3 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16794 posts
  • Version:GM:Studio

Posted 17 August 2011 - 11:46 AM

Interesting and useful tool, but not apt for this forum so I'm moving it to the utilities section.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users