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
    • Recent
    • Tags
    • Users
    • Login

    Pesky 'Symbol not found' error

    Scheduled Pinned Locked Moved PYTHON Development
    6 Posts 0 Posters 536 Views
    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 Offline
      Helper
      last edited by

      On 03/06/2013 at 15:34, xxxxxxxx wrote:

      I know that this question has pretty much been hashed out before here, but I haven't been able to come up with a solution.  When I start my plugin I always get this error: 
      Symbol 'Omyplugin' not found.  path/omyplugin.res Line 3.
      Here is the .res file:

      CONTAINER Omyplugin
      {
      	NAME Omyplugin;
      	INCLUDE Obase;
        
      	GROUP ID_OBJECTPROPERTIES
      	{
      		FILENAME TXT_FILE {}
      		LONG BRIGHTNESS{ CUSTOMGUI LONGSLIDER; MIN 0; MAX 300; STEP 1; }
      	}
      }
        
      
      

      I recall reading before that if I delete my symbols cache file that it would fix the problem but I have been unable to find this file on my Mac.  I tried making a copy of my plugin and renaming all titles from the .res, .str, .h, and .pyp files, but still came up with the same error.  Anyone have any suggestions, or at least a pointer to a posting that should fix my problem?

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

        On 04/06/2013 at 01:54, xxxxxxxx wrote:

        Hi visualride,

        if the message comes from the resource parser, it has nothing to do with the symbolcache. You must
        have a symbol called "Omyplugin" at least defined in the string resource if you use it as a parameter
        for the "NAME" command. I suggest you even add it to the c4d_symbols.h file as well (with you actual
        plugin id).

        c4d_symbols.h

        enum {
            Omyplugin = 1012042, // Your plugin id.
            MYPLUGINNAME_TXT_FILE = 1000,
            MYPLUGINNAME_BRIGHTNESS = 1001,
        }
        

        Omyplugin.str

        STRINGTABLE Omyplugin {
            Omyplugin "My Plugin";
            // ...
        }
        

        Read here why you should name your IDs differently.

        -Niklas

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

          On 04/06/2013 at 08:42, xxxxxxxx wrote:

          Thanks for your detailed reply and example Niklas.  A quick look shows me that this should be what I need. I've become too swamped with 3d work at the moment to be able to dive back into the code, but will later this week.

          Thanks again,
          -David

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

            On 04/06/2013 at 09:19, xxxxxxxx wrote:

            Ah Ha!  Thanks Niklas, adding the title identifier (Omyplugin "My Plugin";) to my string table worked!

            Now all I have to do is completely rewrite my code into pretty, well defined def modules, and I'm done.

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

              On 05/06/2013 at 02:05, xxxxxxxx wrote:

              ... and add a prefix to your symbols. 🙂

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

                On 05/06/2013 at 06:08, xxxxxxxx wrote:

                By the way, I did read your discussion on id's and see the logic in following these guidelines.
                -MyName_David 🙂

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