User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 22

Thread: XML to Array Converter with Special Character Support

  1. #1
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post XML to Array Converter with Special Character Support

    Hey guys!

    I'm currently using a data sheet in XML format for dialogue in my game and I am trying to convert it to array to load it into MMF2. Right now I'm using a converter I've found made by Sketchy which is simple and effective, but it has problems with special characters and turns them into weird symbols. Is anyone out there who knows another way to convert XML into an array so special characters stay how they are and my text blitter object can read them?

    Much appreciated

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    If by "special characters" you mean unicode, then I believe you're out of luck - you'd need to buy the unicode plugin (£30). Even then, I have no idea whether third party extensions like the Text Blitter extension would fully support unicode, or only those already built-in to MMF2.
    I actually made that XML-Converter (Sketchy is just the name I use on TDC), but I don't own the unicode plugin, and I'm pretty sure I've lost the .mfa source file - so there's no possibility of me adding unicode support.

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh hello
    I mean standard ASCII characters like ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïð, which are supported by the text blitter object (I can copy&paste them into the standard text box and at least most of them show up correctly). But when I convert my XML sheet from Excel that have those characters into an array and load that into the text blitter, they turn into weird other symbols in the game. Even in the array itself the characters are scrambled, so there must be a convert problem or something.

    Example when I type ü into an excel sheet in xml format and convert it, in the array there is ü at it's place.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instinct tells me that "XML sheet from Excel" sounds like it might be rife with potential problems... can you upload the XML file? Does it appear correct when you open it as plain text?

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    It's definitely not a problem with Excel. I'm fairly sure the problem is caused by the EasyXML extension. Unfortunately, trying to parse a .xml file without that extension would be a massive pain (there's no way I'd attempt it).
    You'll probably have to use .csv files instead or create your own data editor.

  6. #6
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @DavidN: When I open the xml with notepad it has the correct characters inside, so it must be the conversion that causes this problem.

    @MuddyMole: Could you please look around a bit if you can find the mfa of the converter? If I see it right the EasyXML extension is from 2006. Is Vortex2 still an active member of the community? Maybe I can contact him and ask if he can make an update for EasyXML that supports all ASCII characters. Would that solve the problem?

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Blue66. If MuddyMole can not find the mfa, I still have it.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    @Nivram: Have you been browsing my skydrive account?

    These are the only versions I can find:
    https://skydrive.live.com/self.aspx/...a&sc=documents
    https://skydrive.live.com/self.aspx/...a&sc=documents

    Not sure which is the newest, but they're both pretty old and probably have a heap of bugs that weren't fixed until later.
    The only newer versions I have are on a hard-drive that's currently sitting on my desk - and I don't have a PC to put it in.
    You might want to make a very simple example with the EasyXML extension, just to check that is the problem.

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    @Nivram: Have you been browsing my skydrive account?
    Now you know I would never do such a deceptive dastardly act as that. LOL

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I don't really mind - just surprised you bothered. I keep meaning to fix up all my examples, and make a website for them (a bit like yours, but with articles explaining the events in each file).

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Is RC4 going to support binary data (array)?
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 8
    Last Post: 29th January 2013, 08:59 AM
  2. XML Spreadsheet -> MMF2 Array Converter
    By MuddyMole in forum File Archive
    Replies: 26
    Last Post: 21st August 2012, 05:18 PM
  3. SWF converter trouble
    By Spikeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 7th July 2011, 12:39 PM
  4. Character Image: Load Character Images from Folder
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th May 2011, 06:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •