Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    since i am not able to compile things for r20 on my computer here is the source...

    Cinema 4D SDK
    3
    13
    3.1k
    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.
    • E
      ello @a_block
      last edited by ello

      @a_block ok, i managed to compile the sdk, now i added my old plugins and am facing a bunch of errors (837) and warnings (9747) which i guess is not that bad, since it seems to be more general stuff.

      1 Reply Last reply Reply Quote 0
      • E
        ello
        last edited by a_block

        i stumble across quite some things that have been removed. but that is the only thing stated. nothing tells me what replaced it. for example:

        struct DescriptionCommand
        {
          DescID id;  // Removed
        };
        

        I had this code in my plugin:

        	if (type == MSG_DESCRIPTION_COMMAND) {
        		DescriptionCommand* data = reinterpret_cast<DescriptionCommand*>(t_data);
        		if (data)
        		{
        			if (data->id == LOAD_PRESET) 
        			{
        				MessageDialog("Preset loaded."_s);
        			}
        			if (data->id == SAVE_PRESET) 
        			{
        				Filename library_dir = GeGetC4DPath(C4D_PATH_LIBRARY_USER);
        				Filename preset_dir = library_dir + Filename("arKos") + Filename("presets")+Filename("p1.c4d");
        				if (savePreset(op, preset_dir)) MessageDialog("Preset saved."_s);
        				else MessageDialog("Saving failed."_s);
        			}
        		}
        	}
        

        one thing that is really mean, why could i multiply a vector with a matrix in the past (and it worked) and now i need to exchange a few hundred lines that the matrix stands before the vector? this is something i cannot understand (to me it is just a unnecessary change which gives absolutely no benefit)

        Edit a_block: Added code tags.

        1 Reply Last reply Reply Quote 0
        • a_blockA
          a_block
          last edited by a_block

          Hi ello,

          I'm glad you made some progress and your mood seems to have improved a bit.

          In R20 (and actually it's a must for all new stuff being introduced by developers) many "anonymous" enums have been changed into named enums, leading to a change in how these symbols are reference.
          In your case it is SHADERINFO::BUMP_SUPPORT, so now the enum is named SHADERINFO and the contained symbols got shortened to the unique part.
          The background of this change is explained here: API Transition - Enumerations.

          I'd like to suggest to open new threads for specific questions, to keep the forum tidy and the thread's content more related to the actual subject.

          Edit: This wrote this before I saw your additional post. I'll get back to this additional post soon.

          Cheers,
          Andreas

          E 1 Reply Last reply Reply Quote 1
          • E
            ello @a_block
            last edited by

            @a_block thank you for your time. i am indeed having a hard time adopting to all those changes 🙂

            1 Reply Last reply Reply Quote 0
            • a_blockA
              a_block
              last edited by

              Hi ello,

              DescID has not been removed, I'm not sure yet, why you are having issues using it. We'll get back to you tomorrow on this.

              Regarding Matrix and Vector multiplication, this was a change introduced with Cinema 4D R15. See List Of Name Changes in R15 API - Matrix Math. The reason is, that in mathematics there is nothing like a Vector multiplied from left to a Matrix. At least to my knowledge, I'm not an expert here (pretty sure a professor in mathematics will pop up here now, telling me I'm wrong).

              Please consider using the mark down and using code tags. I have added them to your previous post.

              Cheers,
              Andreas

              1 Reply Last reply Reply Quote 1
              • E
                ello
                last edited by

                thank you... it is my first visit to the new plugin cafe, thus i need to learn how to tag my entries

                1 Reply Last reply Reply Quote 0
                • E
                  ello
                  last edited by ello

                  maybe someone can point me towards how i debug with visual studio 2017?
                  because i get lot's of crashes 🙂 what else to expect

                  ok, found this: [URL-REMOVED]

                  edit: visual studio now throws this at me

                  application_Intel_64bit.pdb not loaded

                  the only search result leads me here: https://developers.maxon.net/forum/topic/8139 but i dont understand how the information i find there helps me


                  [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mp5gosu @ello
                    last edited by

                    @ello said in since i am not able to compile things for r20 on my computer here is the source...:

                    maybe someone can point me towards how i debug with visual studio 2017?
                    because i get lot's of crashes 🙂 what else to expect

                    ok, found this: [URL-REMOVED]

                    edit: visual studio now throws this at me

                    application_Intel_64bit.pdb not loaded

                    the only search result leads me here: https://developers.maxon.net/forum/topic/8139 but i dont understand how the information i find there helps me

                    Simply continue the execution twice. Those are 2 breakpoints that are triggered by Cinema 4D. Note that VS 2017 is not officially supported- maybe that's the cause. Those breakpoints are still risen, even if all breakpoints (and exceptions) are disabled.

                    Maybe someone is able to help us out here?


                    [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

                    1 Reply Last reply Reply Quote 0
                    • a_blockA
                      a_block
                      last edited by

                      Hello ello

                      DescID id;  // Removed
                      

                      As I said in my previous post DescID has not been removed. I think, it may rather be a problem with a lacking include. Can please check if you do a #include <lib_description.h>?

                      edit: visual studio now throws this at me
                      application_Intel_64bit.pdb not loaded

                      This is just a warning and perfectly normal. We do not provide a .pdb (program database) file for the application itself. These files contain debug information for Visual Studio and would allow inspection of the application we don't want to happen in public.
                      It is also not related to the startup of Cinema 4D being interrupted twice. We are currently investigating the actual reason for these interruptions and hope to get them fixed with one of the next release. Sorry, for the inconvenience caused.

                      Cheers,
                      Andreas

                      1 Reply Last reply Reply Quote 2
                      • E
                        ello
                        last edited by ello

                        hm, in the sdk help it is mentioned under "api change list in r20"... scrolling down to lib_description.h

                        i installed VS2015 just for seeing if it works better with c4d. however, in 2017 i had a nice built output where i could sort errors and warnings. this isn't there in the 2015 version, or do i need to toggle it somewhere. cannot find

                        nevermind, found it 🙂

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