User Tag List

Results 1 to 3 of 3

Thread: Multilanguage extension without Unicode

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,822
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Question Multilanguage extension without Unicode

    Heyo,
    How do I get a non-Unicode extension to produce properties have title/info in Unicode format, but expects non-Unicode results?

    At the moment, I have an extension whereby the A/C/E menus translate properly, but the rest doesn't. The properties remain unreadable.




    Desligar ligação quando desempossado. PODE INTERFERIR COM DEFINIÇÕES GLOBAIS. Por defeito, desliga a ligação se todos os Bluewings empossados forem destruidos.

    The source text (an embedded JSON) is UTF-8. Since A/C/E and properties come from the same location, it perturbs me that they're treated differently.

    I can't switch the extension to Unicode, as this extension's functionality depends on not using Unicode. Namely, this is Lacewing server, and the Lacewing protocol uses non-unicode text, so I don't want to have to downgrade all the text-based parameters via call to WideCharToMultiByte() in every event.

    I'd also like this extension to remain Fusion 2.0 compatible.

    Any suggestions?

    Cheers,
    ~Phi
    Attached thumbnails Attached thumbnails Click image for larger version. 

Name:	ShareX_2017-07-17_16-36-34.png‎ 
Views:	221 
Size:	15.0 KB 
ID:	23459  

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,092
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    The text in your json file is UTF8.

    Non-Unicode extensions send text using the current user language to Fusion, not UTF8.

    If you look at the source code of EDIF, it converts ACE's from CP_UTF8 to CP_ACP in ConvertString & ConvertAndCopyString.

    Probably it doesn't do it for properties.

    Not sure where are stored your properties, just make sure their text is in multi-byte format and uses the character set you need, not UTF8 (or if you want you can also manually build the property array in GetProperties and convert your UTF8 strings to CP_ACP like EDIF does in ConvertString).

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,822
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Alrighty, I modified the DarkEDIF SDK to run the converts. It's a bit iffy, since it internally calls the GET_STRING_SPACE_EX function and not freed later, but since the properties are re-used, and not ever used in edittime/runtime, that shouldn't matter much.

    That code is live in Bluewing Server b6, fwiw.

Similar Threads

  1. I need updated get.mfx Unicode extension
    By leightonw87 in forum Fusion 2.5
    Replies: 10
    Last Post: 13th May 2016, 11:12 PM
  2. Unicode Crashes with LOS Extension
    By iamjot in forum Unicode Export Module Version 2.0
    Replies: 4
    Last Post: 24th May 2012, 08:14 AM
  3. Multilanguage Procedure
    By virtualrom in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 7th September 2011, 11:55 AM
  4. a Unicode extension for MMF2 Dev HWA?
    By ionside in forum Extension Development
    Replies: 3
    Last Post: 9th December 2010, 10:09 PM
  5. Problem translating extension to UNICODE
    By Fernando in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd December 2010, 11:35 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
  •