The google spreadsheet import not updating prefab

More
8 years 11 months ago #637 by Frank
I checked and now the google function to ind the last updated time of a file has changed its behavior so the plugin things that its always up to date.
A quick fix to make it work is to change line 116 in Assets\I2\Localization\Scripts\Google\LanguageSource_Import_Google.cs

from this
			string query =  string.Format("{0}?key={1}&action=GetLanguageSource&version={2}", 
			                              Google_WebServiceURL,
			                              Google_SpreadsheetKey,
			                              ForceUpdate ? "0" : Google_LastUpdatedVersion);

to this (the "0" on the last line changed to "-1")
			string query =  string.Format("{0}?key={1}&action=GetLanguageSource&version={2}", 
			                              Google_WebServiceURL,
			                              Google_SpreadsheetKey,
			                              ForceUpdate ? "-1" : Google_LastUpdatedVersion); 

I will be updating the WebService to adjust to the new google changes, but changing that line will make the Editor be able of updating correctly.

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
The following user(s) said Thank You: GLeBaTi

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

More
8 years 11 months ago #638 by dchau_hh
Thanks for the quick fix Frank!

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

More
8 years 11 months ago #639 by Frank
BTW, I just fixed the WebService. The new service works even without changing that line in the code.

However, if you already installed the service, it has to be deleted from your google drive and installed again.
Anyone installing the plugin or service from now on will get the latest version automatically.

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
8 years 11 months ago #649 by Zoltrix
The fix indeed worked, thanks a lot Frank. Is it necessary to update service or is the c# fix you provide sufficient for now and has no repercussions?

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

More
8 years 11 months ago #650 by Frank
The code fix will work just fine in the editor.

However, if the game tries to update from the spreadsheet when running in the device it will not know that there is a new version.

But for development the code fix works fine, just be sure to update the webService before releasing the game :-)

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
The following user(s) said Thank You: Zoltrix

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

More
8 years 11 months ago #651 by Zoltrix
I sure will, thanks a lot!

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

Time to create page: 0.328 seconds
Template by JoomlaShine