User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18

Thread: Unicode Programming Help Visual C and Objective C :)

  1. #11
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Which SDK are you using?

    In your EDITDATA structure, you ar storing pointers. These pointers will be written to a file (the MFA, the EXE, etc.) and the memory they pointed to will be long gone. You have to actually store the data in the structure, not just point to it.

    You can either have a fixed-length character array (which I suggest not doing), or you can ask MMF2 to dynamically resize the editdata to suit the length of the data you need to store in it (which there is an example of in SetpropValue).

    In my fork of EDIF, I've streamlined the process and made it much easier to deal with:
    https://github.com/LB--/windows-edif...e/EditData.hpp
    https://github.com/LB--/windows-edif...Properties.cpp
    The commented out examples show you what you have to do to properly set it up. Like I said, it's like writing to a memory mapped file.
    Working as fast as I can on Fusion 3

  2. #12
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    This really needs to be dealt with in MMF3. The current way is ridiculous by today's standards - if we could just read/write to editdata in a stream fashion it would be so much sweeter (of course someone could write a wrapper for the current one, but meh!)...

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUnicode Add-on
    Tim's Avatar
    Join Date
    Apr 2007
    Location
    NSW - Australia
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LB I'm using EDIF.
    Would it be easier if you could make a simple dummy extension (preferably in EDIF :P ) that demonstrates using properties, serializing them, deserializing them, etc because I can't get it to work no matter how much I try :/

    And while I agree completely with you Looki, I honestly think someone should just make a nicer SDK with those features (maybe released with MMF3 that supports compiling for MMF2 -> 3?). Just ideas though as I would have no idea how to create a nicer SDK :P

    Tim

  4. #14
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Looki View Post
    This really needs to be dealt with in MMF3. The current way is ridiculous by today's standards - if we could just read/write to editdata in a stream fashion it would be so much sweeter (of course someone could write a wrapper for the current one, but meh!)...
    I've been planning on doing that with EDIF, but I haven't had time. It's definitely on my list of things to do, though - I've already researched how to implement a C++ stream, now I just need to figure out how to make it interact with the MMF2 SDK.
    Quote Originally Posted by Crazy_Ivan View Post
    LB I'm using EDIF.
    Would it be easier if you could make a simple dummy extension (preferably in EDIF :P ) that demonstrates using properties, serializing them, deserializing them, etc because I can't get it to work no matter how much I try :/
    Did you look at those links I posted at all? All you have to do is remove the comments and you have a working example.
    Quote Originally Posted by Crazy_Ivan View Post
    And while I agree completely with you Looki, I honestly think someone should just make a nicer SDK with those features (maybe released with MMF3 that supports compiling for MMF2 -> 3?). Just ideas though as I would have no idea how to create a nicer SDK :P
    EDIF is a nicer SDK, and I'm continually making it nicer
    Working as fast as I can on Fusion 3

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUnicode Add-on
    Tim's Avatar
    Join Date
    Apr 2007
    Location
    NSW - Australia
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry I didn't actually try the examples in your fork, I was at work when I posted that message, I will attempt to use them in the morning and post back (2:30am atm haha :P )
    And I agree completely that EDIF is a nicer SDK :P but making it auto handle edit time properties (serializing etc...) would be amazing

  6. #16
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Haha, I think automatic is pushing it quite a bit too far - not even Java's serialization can do that very well. I will be making it easier soon, though.

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleUnicode Add-on
    Tim's Avatar
    Join Date
    Apr 2007
    Location
    NSW - Australia
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow I only just downloaded your updated EDIF, I must of had a really old version of EDIF as mine is nothing like your current one :P

  8. #18
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The EDIF global files are all mostly the same (except for some bug fixes), but the template project has had an extreme makeover. The wiki is updated for the changes in my fork. I'm still going, too - trying to make extension development even easier and more fun by abstracting things even more.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. error: statically allocated instance of Objective-C class 'BoidType" at build
    By MTCMusic in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 27th February 2013, 12:03 PM
  2. Does the iOS Exporter support unicode without the MMF unicode-addon?
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 17th November 2012, 06:30 AM
  3. visual problem
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th December 2010, 08:16 AM
  4. Visual Effects
    By camelman in forum File Archive
    Replies: 4
    Last Post: 22nd November 2008, 09:27 AM
  5. Visual novel
    By Link in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th March 2008, 05:00 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
  •