Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PiPL "version mismatch"

Participant ,
Apr 03, 2020 Apr 03, 2020

I am getting the following PiPL warning:

 

"Code version is 1.0 and PiPL version is 1.0. (80601)"

 

I can't make any sense of it. 

 

It occured after I set the folowing #defines. 

 

 

#define	MAJOR_VERSION	1
#define	MINOR_VERSION	0
#define	BUG_VERSION		0
#define	STAGE_VERSION	PF_Stage_RELEASE
#define	BUILD_VERSION	1

 

I presume these settings imply "Myplugin v1.0R". 

 

I have tried playing with my PiPL.r file, but nothing seems to make any difference. 

 

What are the correct settings? And does it matter if I just release the plugin as a development version, with the same version numbers each time? 

 

TOPICS
SDK
2.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Participant , Apr 06, 2020 Apr 06, 2020

Thanks, James. 

 

It's one of those documentation blackholes that now exist because of the thousands of useful posts in the forum being deleted. 

 

In the end, I found the answer on a Russian blog, which thanks to Google translate, I discovered:

 

/*
The formula for calculating the AE_Effect_Version field in the PiPL resource of the plugin:
AE_Effect_Version = MAJOR_VERSION * 524288 +
MINOR_VERSION * 32768 +
BUG_VERSION * 2048 +
STAGE_VERSION * 512 +
BUILD_VERSION [enum value]
*/

Translate
Deleted User
Apr 09, 2020 Apr 09, 2020

A simple solution that I have been using for years is to automatically set the version value in the EffectPiPL.r file based on the value in the code. Just set it in the .r file like this and include in the .r file a .h header where you define the version, and include this header also in your main code (code can of course also be adapted to include stage):

 

AE_Effect_Version {
(MAJOR_VERSION << 19) + (MINOR_VERSION << 15) + (BUG_VERSION << 11) + BUILD_VERSION
},

Translate
Participant ,
Apr 04, 2020 Apr 04, 2020

I'm not sure what changing the stage version does, perhaps someone more knowledgeable can answer that.

 

If you change the version here, you should also change the version in the PIPL to match. Also, you may need to rebuild your entire solution since the compiler may just keep the old compiled PIPL instead of compiling the new changes, in which case you'll still get the same error even if the versions match in your project file. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Apr 06, 2020 Apr 06, 2020

Thanks, James. 

 

It's one of those documentation blackholes that now exist because of the thousands of useful posts in the forum being deleted. 

 

In the end, I found the answer on a Russian blog, which thanks to Google translate, I discovered:

 

/*
The formula for calculating the AE_Effect_Version field in the PiPL resource of the plugin:
AE_Effect_Version = MAJOR_VERSION * 524288 +
MINOR_VERSION * 32768 +
BUG_VERSION * 2048 +
STAGE_VERSION * 512 +
BUILD_VERSION [enum value]
*/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 09, 2020 Apr 09, 2020
LATEST

A simple solution that I have been using for years is to automatically set the version value in the EffectPiPL.r file based on the value in the code. Just set it in the .r file like this and include in the .r file a .h header where you define the version, and include this header also in your main code (code can of course also be adapted to include stage):

 

AE_Effect_Version {
(MAJOR_VERSION << 19) + (MINOR_VERSION << 15) + (BUG_VERSION << 11) + BUILD_VERSION
},

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines