Perfect! :)
Federico Volpini
Recent community posts
Your i18n.js file is quite strange: section keys are missing, also `s and commas:
for instance:
var i18n = { Castle Adventure in Javascript CRT: { Press enter to continue... }, IFEngine: { warnings: { IFEngine must be extended No adventure loaded ...
should be:
var i18n = { htmlTitle: `Castle Adventure in Javascript`, CRT: { waitText: `Press enter to continue...` }, IFEngine: { warnings: { mustBeExtended: `IFEngine must be extended`, notLoaded: `No adventure loaded` ...
what happened?
The problem is: if you're using 1.0 version, you should not translate the IFEngine->verbs part
this
verbs: { look: `olhar`, take: `pegar`, drop: `soltar`, lookFor: `buscar` }
should remain:
verbs: { look: `guarda`, take: `prendi`, drop: `lascia`, lookFor: `cerca` }
In fact in the 1.1 version this section has been removed
Another tip: the `pattern` should all be lowercase and without accents,
Hello,
Yes, the bottom bar was enabled to allow chinese/Japanese/Korean input. It was born for the mobile and adjusted for this Jam (if you see the original italian version here: https://www.avventuranelcastello-js.it/play/ it only appears in mobile devices)
BTW great job in updating the parser for the "no space" languages!
Federico :)
Hi Natalia
the Engine replaced all special characters with their normalized version and LOWERED it:
For instance:
ÇÀÉÙ
become:
caeu
In the pattern you must use the simplified version for recognition (no accents, no upper words ecc):
pattern: `caeu`
In the labels, descriptions, answers ecc.. you can use what you want.
check the simplified string in the browser console log.
All special keys now shouldn't appear (DEAD/META/UNDEFINED ecc..) If I missed one please tell me.
The file loaded into the game is 18n.js so that's the file you should edit.
In the 1.1 version of AnC i18n.js is a copy of the en-en.i18n.js file, the unofficial english version.
For instance, The engine file shouldn't be touched. You can edit, in case, AvventuraNelCastello.js if you want, for example, to change the labirynth behaviour... but IMHO it's really hard work. All the misssing parts should be in the i18n.js file now.
:)