Editor error in 2.4.4.f1

More
9 years 3 weeks ago #552 by Stiv
Hi!

Today I updated to the latest version of I2 Localization (2.4.4 f1) and I'm now getting an error in the unity editor.

Have you seen this before?

System.Security.VerificationException: Error verifying I2.Loc.UpgradeManager:.cctor (): This object not compatible with function pointer for delegate creation at 0x0020
UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])

I'm running Unity 5.0.0.f4 (64-bit) and as far as I can tell this error isn't stopping anything working in-game.

Any help would be appreciated!

Cheers

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #553 by Frank
Replied by Frank on topic Editor error in 2.4.4.f1
Hi,
The plugin now every few days checks the assetstore to see if there is a new version of the plugin so you be always up to date.
That error means that the check is failing.

Is your Editor set to WebPlayer?

I will test this new feature in different platforms and try reproducing that issue. Will give you update asap.

Thanks,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #554 by Frank
Replied by Frank on topic Editor error in 2.4.4.f1
Hi,
I double checked and the issue was that the update delegate had an optional parameter. Even when its optional, the latest versions of unity doesn't allow it.
That will be fixed in the new version of the plugin and doesn't affect the functionality.

You can easily fix the issue in your local project to avoid having that error shown everytime you open unity.

Just replace this section from the I2\Localization\Scripts\Editor\UpgradeManager.cs
		static UpgradeManager()
		{
			I2.I2AboutWindow.PluginsVersion["I2 Localization"] = LocalizationManager.GetVersion();
			EditorApplication.update += CheckPlugins;
		}
		
		public static void CheckPlugins( bool bForce = false )
		{
			EditorApplication.update -= CheckPlugins;
			
			EnablePlugins(bForce);
			CreateLanguageSources();
			CreateScriptLocalization();
		}

by this one
		static UpgradeManager()
		{
			I2.I2AboutWindow.PluginsVersion["I2 Localization"] = LocalizationManager.GetVersion();
			EditorApplication.update += AutoCheckPlugins;
		}

		public static void AutoCheckPlugins()
		{
			CheckPlugins ();
		}

		public static void CheckPlugins( bool bForce = false )
		{
			EditorApplication.update -= AutoCheckPlugins;
			
			EnablePlugins(bForce);
			CreateLanguageSources();
			CreateScriptLocalization();
		}

Thanks,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #555 by Stiv
Replied by Stiv on topic Editor error in 2.4.4.f1
Hi Frank,

Yes my editor was set to Web Player. I've just tried the suggested change and the error is gone :)

Thanks for the awesome support as always!

Cheers,
Steve

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #556 by Stiv
Replied by Stiv on topic Editor error in 2.4.4.f1
Oh, and one other minor thing. When I look at the About page for I2 Localization in the Unity Editor it says that the latest version in the asset store is 2.4.4.f2 but as far as I can tell the asset store is still on f1. Is that right?

Please Log in or Create an account to join the conversation.

More
9 years 3 weeks ago #557 by Frank
Replied by Frank on topic Editor error in 2.4.4.f1
Given that you have the Editor set to WebPlayer, the plugin manager is not able to contact the store to retrieve the correct version. In that case, the values you are seeing are the one that I set as default in the editor script.

As soon as you switch your project into any other platform, the plugin will be able of downloading the latest info and will keep a copy just in case it looses contact later on :-)

I will see if I can add the crossdomain xml to fix this issue with the web player!

Thanks for testing this!!!
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

Time to create page: 0.212 seconds
Template by JoomlaShine