User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Warning for rsdk users

  1. #1
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Warning for rsdk users

    Extensions created in rsdk do not work with the newest versions of cf to fix it u need to add some lines in code


    in file edittime.cpp and fucntion int WINAPI DLLExport CreateObject(mv _far *mV, fpLevObj loPtr, LPEDATA edPtr) you need to add:
    edPtr->swidth = 32;
    edPtr->sheight = 32;

    in file data.h in struct tagEDATA_V1 add:


    short swidth;
    short sheight;
    By default, they are commented out

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    ????

    Don't do that! This will change the size of the EDITDATA structure and will break compatibility of your extensions.

    You do NOT need to do this AT ALL.

    PS: why did you need to do this?

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    If it's just a size issue in the frame editor and your extension is displayed as a simple 32x32 icon in the frame editor, just do this in GetObjectRect:

    rc->right = rc->left + 32;
    rc->bottom = rc->top + 32;

  4. #4
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Like that:
    Code:
    void WINAPI DLLExport GetObjectRect(mv _far *mV, RECT FAR *rc, fpLevObj loPtr, LPEDATA edPtr)
    {
    #ifndef RUN_ONLY
        rc->right = rc->left + 32;
        rc->bottom = rc->top + 32;    
    #endif
        return;
    }
    I did that before and this doesn't work... You can check how it works with your fix and without my fix

    Now extension is unable to add into the project but it is possible to open an old project with this extension
    Attached files Attached files

  5. #5
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    I've compiled your source code, the object appears in the list and I can insert it in a new application. No problem.

    What version of VC do you use to build the extension?

  7. #7
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    PS: also in the project settings C/C++ / Code Generation, set Runtime Library to "Multi-threaded" (not "Multi-threaded DLL"), I see your .mfx requires the MSVC90 runtime library.

  8. #8
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    VC 2017 and VC 2008. Still the same issue I can put the object into the project only when I add:

    Code:
    edPtr->swidth = 32;
    edPtr->sheight = 32;
    Strange issue...

  9. #9
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It's also not my code it is default rSdk template... It worked before but not now...

  10. #10
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,084
    Mentioned
    123 Post(s)
    Tagged
    2 Thread(s)
    Works here anyway... yes, weird.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [BUG] rSDK - VC 2005
    By DanielRehn in forum Extension Development
    Replies: 3
    Last Post: 7th August 2008, 05:25 AM
  2. Warning for those who use rSDK and Visual C++05/08
    By Cocodrilo in forum Extension Development
    Replies: 8
    Last Post: 24th July 2008, 01:47 PM
  3. rSDK
    By James in forum Extension Development
    Replies: 20
    Last Post: 23rd March 2008, 03:17 PM
  4. rSDK new build
    By DanielRehn in forum Extension Development
    Replies: 5
    Last Post: 25th September 2007, 03:24 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
  •