User Tag List

Results 1 to 4 of 4

Thread: DarkEdif out of memory when I change extension property

  1. #1
    Clicker 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)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    246
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Exclamation DarkEdif out of memory when I change extension property

    Hi,

    I'm writing a new onesignal extension for android, and I'm using the DarkEdif SDK.

    I compiled the mfx and when i go to the extension properties in Fusion i see one of the propertys with a bizar value.

    Here is my def in DarkExt.json :
    "Properties": [
    {
    "Title": "appId",
    "Info": "OneSignal app id",
    "Type": "Editbox String",
    "DefaultState": ""
    },
    {
    "Title": "vibrate",
    "Info": "Vibrate when a message is received",
    "Type": "Checkbox",
    "DefaultState": true
    },
    {
    "Title": "sound",
    "Info": "Sound when a message is received",
    "Type": "Checkbox",
    "DefaultState": true
    }
    ]


    So the Appid property should be empty in Fusion. But when i open fusion i have this value in the property's editbox : � s\DarkEDIF.ini

    When i set a value or an empty string an error is raised by Fusion saying : Property error - Out of memory attempting to rewrite properties!

    I can't find what is the reason of this bug .

    @Phi can you help please ?

    I'm on VS2019 but i didn't upgrade the project to 2019.

    Thanks,
    Haoujey

  2. #2
    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)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    2,074
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Arrow

    Quote Originally Posted by haoujey View Post
    Hi,

    I'm writing a new onesignal extension for android, and I'm using the DarkEdif SDK.

    I compiled the mfx and when i go to the extension properties in Fusion i see one of the propertys with a bizar value.

    Here is my def in DarkExt.json :
    "Properties": [
    {
    "Title": "appId",
    "Info": "OneSignal app id",
    "Type": "Editbox String",
    "DefaultState": ""
    },
    {
    "Title": "vibrate",
    "Info": "Vibrate when a message is received",
    "Type": "Checkbox",
    "DefaultState": true
    },
    {
    "Title": "sound",
    "Info": "Sound when a message is received",
    "Type": "Checkbox",
    "DefaultState": true
    }
    ]


    So the Appid property should be empty in Fusion. But when i open fusion i have this value in the property's editbox : �s\DarkEDIF.ini

    When i set a value or an empty string an error is raised by Fusion saying : Property error - Out of memory attempting to rewrite properties!

    I can't find what is the reason of this bug .

    @Phi can you help please ?

    I'm on VS2019 but i didn't upgrade the project to 2019.

    Thanks,
    Haoujey
    Hey @haoujey ,
    Faster support is reached by contacting me on Clickteam Discord. Honestly, it's lucky I saw this.

    Recently, I just overhauled the entire repository with DarkEdif SDK. There's lots of things made simpler.
    Copy the new DarkEdif Template, and then move your files back in, only these:
    DarkExt.json, Actions.cpp, Conditions.cpp, Expressions.cpp, Extension.h, Extension.cpp.

    All other files should be taken from the Template. If you edited the Common.h file, then re-add your edits.

    You'll also need the Windows XP targeting pack for Visual Studio 2017/2019.
    1) crack open the Visual Studio Installer (should be searchable in your Start Menu)
    2) press Modify
    3) use search on top to find Windows XP, and check it:



    Also, even this latest version of DarkEdif (date 23/11/2019) doesn't yet have the smart properties upgrade, so try not to modify your properties often. Any change to properties will result in the properties stored in MFAs for your object becoming invalid, so you'll get bizarre behaviour, such as crashes, random garbage text, etc.
    The buffer for the properties isn't auto-resized with your JSON changes for objects already in the MFA - although it is the correct size for new objects - so for existing objects in the MFAs, you're basically have to re-add your object into the frame, replace the events of the old with the freshly created one, then delete the old one, in order to avoid the MFA being unstable.
    Fortunately, you can just replace all your events for that object in bulk by right-clicking the object in top of event editor and using "Replace by another object".

    The smart properties upgrade will be coming soon, and will be backwards-compatible with dumber properties. It'll resize with JSON changes, and won't break any MFAs, so that manual re-creation process won't be needed.

  3. #3
    Clicker 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)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)SWF Export Module (Steam)Firefly 3D Module (Steam)

    Join Date
    Feb 2017
    Posts
    398
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    @haoujey you could also try this service https://enhance.co/ , i never used one signal there but im sure it works with fusion to send online messages to your app.

  4. #4
    Clicker 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)

    Join Date
    May 2017
    Location
    Nantes
    Posts
    246
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi, @Phi thanks for your answer. I have joined the discord chanel, see you there !
    @Manuel , thanks for the info. The idea is nice but this kind of solutions are too dangerous, we can't know what they will realy inject (and i don't speek only about bugs...), and they can change the prices at any time and create a big problem for developpers (i remember google places price change, and the pain in the ass i had :/) ) .

Similar Threads

  1. DarkEDIF - Taking suggestions
    By Phi in forum Extension Development
    Replies: 62
    Last Post: 31st May 2014, 08:43 AM
  2. Odd Issue with DarkEDIF/WIN-EDIF and external libraries
    By DracisLooby in forum Extension Development
    Replies: 26
    Last Post: 29th November 2013, 04:37 PM
  3. DarkEdif
    By kraminator in forum Extension Development
    Replies: 7
    Last Post: 17th October 2012, 02:07 AM
  4. Memory Object Extension
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th December 2009, 05:30 PM
  5. surface property extension would be cool.
    By Adam in forum Extension Development
    Replies: 3
    Last Post: 1st March 2007, 07:40 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
  •