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

    Description resource not found? [SOLVED]

    SDK Help
    0
    2
    217
    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 27/06/2014 at 15:43, xxxxxxxx wrote:

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

      ---------
      Hi all,
      I'm porting one of my older plugins to R14 and up. It compiles fine, but when I start c4d and create an instance of my object plugin, I get this message:

      "Unable to open file
      [PATH_TO_C4D_ON_MY_SYSTEM]\resource\res\description[NAME_OF_MY_DESCRIPTION_RESOURCE_FILE].res"

      What's weird to me here is the path where 4d appears to look for the file. In the the RegisterObjectPlugin function, I give only the name of the decscription resource file, but no path. Why does c4d look for the file in this folder, instead of the res file of my plugin that i would expect? Any ideas?

      Thanks
      /Filip

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

        On 18/11/2014 at 12:14, xxxxxxxx wrote:

        BTW, I found the solution to this: for some reason I had the deleted the call to "resource.Init()" in the PluginMessage in the main file. Doh.

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