Skip to content

.tra translation file not found? #6

Open

Description

@karl3wm

I'm trying out Beyond The Edge of Owlsgard and it doesn't seem to recognize the English translation file, despite me selecting it for upload.

INFO: IDBFS synced game files.
agsjs/:1 17:35:45:367: Translation initialized: English (format: presume ASCII)
agsjs/:1 17:35:45:371: Voice pack found: sp_english.vox
agsjs/:1 17:35:47:513: Cannot open translation: English.tra

English.tra.zip

Activity

  1. ericoporto commented on Jan 18, 2025

    @ericoporto
    Owner

    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.

  2. karl3wm commented on Jan 18, 2025

    @karl3wm
    Author
    17:35:47:513: Cannot open translation: English.tra
    FS.readdir('/')
    (11) ['.', '..', 'tmp', 'home', 'dev', 'proc', 'sp_english.vox', 'speech.vox', 'Owlsgard.exe', 'audio.vox', 'English.tra']
    

    acsetup.cfg contains translation= ie the field is empty. Owlsgard on launch asks the user to select regionality.

  3. ericoporto commented on Jan 18, 2025

    @ericoporto
    Owner

    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=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.

  4. karl3wm commented on Jan 18, 2025

    @karl3wm
    Author

    As an aside, I am also getting this exception sometimes, this time when I tried to attach acsetup.cfg:

    ags.js:1  Uncaught RuntimeError: memory access out of bounds
        at ags.wasm:0xb510
        at ags.wasm:0x8ec7
        at ags.wasm:0x2c280a
        at ags.wasm:0x2c8438
        at ret.<computed> (ags.js:1:231262)
        at invoke_ii (ags.js:1:258903)
        at ags.wasm:0x202665
        at ags.wasm:0x65634d
        at ags.wasm:0x2c7625
        at ret.<computed> (ags.js:1:231262)
    $of @ ags.wasm:0xb510
    $func335 @ ags.wasm:0x8ec7
    $func4990 @ ags.wasm:0x2c280a
    $Hf @ ags.wasm:0x2c8438
    ret.<computed> @ ags.js:1
    invoke_ii @ ags.js:1
    $func2642 @ ags.wasm:0x202665
    $func12893 @ ags.wasm:0x65634d
    $Sf @ ags.wasm:0x2c7625
    ret.<computed> @ ags.js:1
    invoke_iii @ ags.js:1
    $func2643 @ ags.wasm:0x2029d0
    $func9895 @ ags.wasm:0x5f1a07
    $func15398 @ ags.wasm:0x6b0cca
    $Kf @ ags.wasm:0x158098
    ret.<computed> @ ags.js:1
    invoke_v @ ags.js:1
    $func1469 @ ags.wasm:0xdc826
    $func9131 @ ags.wasm:0x58b722
    $func14482 @ ags.wasm:0x68f812
    $Kf @ ags.wasm:0x158098
    ret.<computed> @ ags.js:1
    invoke_v @ ags.js:1
    $func9130 @ ags.wasm:0x58b2c6
    $func14088 @ ags.wasm:0x681337
    $Jf @ ags.wasm:0x2c827e
    ret.<computed> @ ags.js:1
    invoke_vii @ ags.js:1
    $func8849 @ ags.wasm:0x574f5a
    $func13221 @ ags.wasm:0x6629e0
    $Hf @ ags.wasm:0x2c8438
    ret.<computed> @ ags.js:1
    invoke_ii @ ags.js:1
    $lf @ ags.wasm:0x6ba078
    ret.<computed> @ ags.js:1
    Module._main @ ags.js:1
    callMain @ ags.js:1
    file_reader_fr.onload @ agsjs/:1
    load
    agsAttachFileInput @ agsjs/:1
    onchange @ agsjs/:1
    
  5. karl3wm commented on Jan 18, 2025

    @karl3wm
    Author

    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
    

    In-game text is still in German.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions