Hi,
I need some help troubleshooting a pretty strange phenomonen that just appeared while working. The project went from a state of working to this odd state described below - without me doing any changes. No changes recorderd since the previous checkpoint.
I have this world with hotspots by the yellow plus symbols. They used to be accompanied by blue title textboxes, like so:
All of a sudden they all just stopped showing. They do not show in the editor and not in launched mode. I see no error messages in the console, unless I turn on debug mode and then I see this error:
[playcanvas-1.73.4.dbg.js:69804]: pc.I18n#addData: Invalid "header.version" field
Error: pc.I18n#addData: Invalid "header.version" field
at I18nParser._validate (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:69804:14)
at I18nParser.parse (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:69828:11)
at I18n.addData (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:70029:30)
at I18n._onAssetChange (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:70132:13)
at Asset.fire (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:1668:21)
at Asset.set (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:67428:13)
at _opened (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:67942:25)
at Array._loaded (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:67988:10)
at ResourceLoader._onSuccess (https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:69679:30)
at https://code.playcanvas.com/playcanvas-1.73.4.dbg.js:69616:19
Update: They now show, but with no fetched I18N data. Did anything change in the I18N system recently?
Now when I reload it seems every second time it works and it doesn’t.
The header.version
field mentioned in the error msg is defined like this in my language files:
{
"header": {
"version": 4
},
"data": [
{
"info": {
"locale": "en-US"
},
"messages": {
"contact.us": "Contact us",
"read.more": "Read more",
"link1title": "Product page",
"link2title": "Learn more",
"link3title": "Read a customer story",
"link4title": "Watch a video",
...