You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, can you load the Developer Console in the browser, and then in it, type FS.readdir('/'), and give me the output? It should give a list of files and directories like ['.', '..', 'tmp', 'home', 'dev', 'proc', YOUR_FILES_HERE , ...]
I don't have that game, but I made one quickly in ags, and then set the translation to use in acsetup.cfg and it worked here. If possible also tell me what you have written in the line of the acsetup.cfg that is like below
[language]
translation=Test
In Google Chrome the Developer Tools is under the More tools -> Developer tools menu entry. I think shortcuts for invoking the developer console (like ctrl+shift+j) won't work in the AGS window because I am hijacking the keyboard keys.
Hey, my guess is the game would be calling Game.ChangeTranslation("English"); internally, so it would find it - I made a test game that does this here and it works.
So there is something else for this to happen, because you are getting the error here
I can't tell why right away, I would need to grab this game later to try to figure it out exactly what is going on.
Out of curiosity, does setting translation=English in the field of acsetup.cfg makes it work somehow? The only issue is that then picking up the voice pack correctly would depend on the game dev doing the proper code to support configuration from acsetup.cfg, since the voice pack change is a manual script command in ags, it is not internally tied to translation,
I need to sleep now, but I will look into this tomorrow, but it will probably take a while.
If I make a new empty acsetup.cfg containing only a [language] section, then it sets the translation during boot, but outputs the error when I select the language in the interface at 01:16:14 below.
agsjs/:1 01:16:07:155: Translation initialized: English (format: presume ASCII)
agsjs/:1 01:16:07:155: Engine initialization complete
agsjs/:1 01:16:07:156: Starting game
agsjs/:1 01:16:07:281: Initialize path finder
ags.js:1 INFO: IDBFS synced game files.
agsjs/:1 01:16:14:659: Translation initialized: English (format: presume ASCII)
agsjs/:1 01:16:14:667: Voice pack found: sp_english.vox
agsjs/:1 01:16:16:835: Cannot open translation: English.tra
Activity
ericoporto commentedon Jan 18, 2025
Hey, can you load the Developer Console in the browser, and then in it, type
FS.readdir('/'), and give me the output? It should give a list of files and directories like['.', '..', 'tmp', 'home', 'dev', 'proc', YOUR_FILES_HERE , ...]I don't have that game, but I made one quickly in ags, and then set the translation to use in
acsetup.cfgand it worked here. If possible also tell me what you have written in the line of the acsetup.cfg that is like belowIn Google Chrome the Developer Tools is under the
More tools -> Developer toolsmenu entry. I think shortcuts for invoking the developer console (like ctrl+shift+j) won't work in the AGS window because I am hijacking the keyboard keys.karl3wm commentedon Jan 18, 2025
acsetup.cfg contains
translation=ie the field is empty. Owlsgard on launch asks the user to select regionality.ericoporto commentedon Jan 18, 2025
Hey, my guess is the game would be calling
Game.ChangeTranslation("English");internally, so it would find it - I made a test game that does this here and it works.So there is something else for this to happen, because you are getting the error here
https://github.com/adventuregamestudio/ags/blob/6eda31dd5e3ad5122b56f255213971a947a372c9/Engine/ac/translation.cpp#L62
I can't tell why right away, I would need to grab this game later to try to figure it out exactly what is going on.
Out of curiosity, does setting
translation=Englishin the field ofacsetup.cfgmakes it work somehow? The only issue is that then picking up the voice pack correctly would depend on the game dev doing the proper code to support configuration from acsetup.cfg, since the voice pack change is a manual script command in ags, it is not internally tied to translation,I need to sleep now, but I will look into this tomorrow, but it will probably take a while.
karl3wm commentedon Jan 18, 2025
As an aside, I am also getting this exception sometimes, this time when I tried to attach acsetup.cfg:
karl3wm commentedon Jan 18, 2025
If I make a new empty acsetup.cfg containing only a
[language]section, then it sets the translation during boot, but outputs the error when I select the language in the interface at 01:16:14 below.In-game text is still in German.