The google spreadsheet import not updating prefab
9 years 8 months ago #637
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic The google spreadsheet import not updating prefab
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
to this (the "0" on the last line changed to "-1")
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
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.
9 years 8 months ago #638
by dchau_hh
Replied by dchau_hh on topic The google spreadsheet import not updating prefab
Thanks for the quick fix Frank!
Please Log in or Create an account to join the conversation.
9 years 8 months ago #639
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic The google spreadsheet import not updating prefab
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
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.
9 years 7 months ago #649
by Zoltrix
Replied by Zoltrix on topic The google spreadsheet import not updating prefab
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.
9 years 7 months ago #650
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic The google spreadsheet import not updating prefab
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
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.
9 years 7 months ago #651
by Zoltrix
Replied by Zoltrix on topic The google spreadsheet import not updating prefab
I sure will, thanks a lot!
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds