Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    cinema4d_cpp_sdk-maste plugins can't be registered

    SDK Help
    0
    5
    456
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 17/11/2015 at 07:22, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I have downloaded from here : https://github.com/PluginCafe/cinema4d_cpp_sdk
      the latest cinema4d SDK.

      But when i build and run it in Debug mode, the register calls of the plugins fail.

      This is the very first call that fails:

      return RegisterShaderPlugin(1001161, GeLoadString(IDS_SDKGRADIENT), 0, SDKGradientClass::Alloc, "Xsdkgradient", 0);
      

      The register inside that fails as well:

      return GeRegisterPlugin(PLUGINTYPE_SHADER, id, str, &np, sizeof(np));
      

      What can possibly causes the problem?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 17/11/2015 at 07:54, xxxxxxxx wrote:

        Did you copy the folder inside the Cinema 4D installation plug-in folder ? Is the simplest way to link everything to API for cinema 4D.

        And compil & run from the Cinema4D install folder / Plugin / cinema 4D cpp sdk master /

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 17/11/2015 at 14:05, xxxxxxxx wrote:

          Yes.
          It is built without errors and it runs. 
          I set break point to the very first register call, which returns 0.

          Thank you.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 18/11/2015 at 01:34, xxxxxxxx wrote:

            This could be caused by multiples things : Are your sure about your version of Visual Studio ? I have Express 2013 for Windows Desktop and it's ok.

            Maybe it a problem of permission of the folder. Cause you place the cinema4D_cpp_sdk-master folder inside a system protected folder.

            Did you update Cinema 4D to latest version ? 17.032

            Did you see that (http://www.microbion.co.uk/graphics/c4d/create_plugins1a.htm) it helped me to start.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 18/11/2015 at 01:52, xxxxxxxx wrote:

              Hi,

              the examples in our GitHub repository are more or less the same as the examples delivered with the SDK (cinema4dsdk). We use the GitHub repository to update the examples more frequently than it is possible with the actual SDK examples.
              So, maybe you already have the cinema4dsdk examples built. Then the examples from GitHub will fail to register due to identical Plugin IDs. Watch the console for errors. Simply delete the .cdl64/.dylib from the cinema4dsdk folder, to test it.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post