Welcome, Guest
Username: Password: Remember me

TOPIC: GameSparks support

GameSparks support 3 months 1 day ago #3433

  • Allan
  • Allan's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Karma: 0
I'd like to add support for hosting updates to localised text on the GameSparks platform. This would be similar to the way you provide support for Google, but without the localised text having to be in a spreadsheet.

The reason for not using Google would be to keep all our content in one place, so if we do an update there is a single service providing the data.

Looking at the plug-in it doesn't look like it would be difficult to add the extra functionality, but it does look like it would be difficult to make the change in a way that didn't cause problems when updating the plug-in if/when a new version is released.

Do you have any suggestions or thoughts on this?
The administrator has disabled public write access.

GameSparks support 3 months 1 day ago #3436

  • Frank
  • Frank's Avatar
  • Offline
  • Administrator
  • Posts: 1206
  • Thank you received: 256
  • Karma: 78
Hi,
If I understood correctly, you are trying to host all your localization in the GameSparks server and update from there.
The easiest way to do this, is to follow the same approach used in the documentation for the ImportCSV file.
inter-illusion.com/assets/I2Localization...portingaCSVfile.html

In there, there is a custom MonoBehaviour that on Start() calls a method DownloadCSV. That uses WWW call to get the data it needs from the server and then updates the localization.

You can either store the data in a CSV file or database text and just do source.Import_CSV as soon as its downloaded.
Or once you download the localization data from the server using your custom script, you can do source.AddTerm(..) and similar calls to create terms and fill out their translations.

Either way, you don't need to change the plugin source as it all happens in your own custom script.

Hope that helps,
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 administrator has disabled public write access.
The following user(s) said Thank You: Allan
Time to create page: 0.100 seconds
Template by JoomlaShine