Resources.Load stops working after I2 Localization

More
11 months 1 week ago #3110 by Frank

I was detecting and destroying all "DontdestroyOnLoad" objects

The plugin uses a coroutine to delay localization to the end of the frame (instead of doing a full localize everytime a term changes) and to download data from google. To manage those coroutines it creates a hidden manager set to Dontdestroyonload to keep downloading data even when switching scenes.
So, yes, destroying that it very bad haha.

error: The object you are trying to instantiate is null


That error its weird. Does the prefab you try to instantiate with Resources.Load has any Localize component attached? Does it have a LanguageSource?
Can you place a Debug.Log to verify that the prefab is not actually null?

Error Access to the path "/storage/emulated/0/tracesPending.csv" is denied.


The plugin doesnt load any csv file, all the localization is stored in the I2Languages.prefab.
Are you manually loading the csv file to then call Import_CSV?


The thing about the having the Debug.Log(I2.Loc.LocalizationManager.CurrentLanguage) affecting things, is that whenever you set or query the currentLanguage, if the localization is not initialized, then it tries to initialize it (loads the language sources and updates the internal dictionary).

A few things to look out:
Did you move/deleted the I2Languages.prefab?
Are you instantiating any LanguageSource in your scene?

Are all your asset references valid? (I mean the objects referenced in the Assets tab in the I2Languages.prefab and the Localize component References section)
inter-illusion.com/assets/I2LocalizationManual/AssetsTab.html

Are you localizing any Font? If so, does the term points to a valid path in the Resources folder?

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
11 months 1 week ago #3111 by Oakshiro
Hello.

Fist of all, thanks for helping me so much.
The I2Languages.prefab was inside I2/Localization/Resources. The system itself asked me to move it to I2/Resources , and that's where it is right now.
I am not instantiating any LanguageSource
And, i have no Assets other than the text, so that tab is empty.

I will keep on searching, could it be because any other android plugin is interfering? In the Editor everything is ok. Is just the Android build that is not being Localized.

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

More
11 months 1 week ago #3112 by Oakshiro
Hello!

I finally achieved to make it work.
I simply removed everything and did a fresh install of v2.8.6 and now works like a charm.
I don't know why it didn't work, but I'll perfectly live without knowing it :P

Thanks!

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

Time to create page: 0.113 seconds
Template by JoomlaShine