How To View The Translation File

Started by Ghostlady, Tue 17/06/2025 01:31:28

Previous topic - Next topic

Ghostlady

Hi, I created a new translation file but I cannot read it in notepad.  It looks like a bunch of junk.  Also, I have some older updated translation files that I can't seem to get rid of.  They keep showing up in my compiled folder.  How do I get rid of these?
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

Translation source is called TRS, these files are in your project's root folder. TRA is a compiled translation prepared for the engine, which you should not read.

There is a folder called Compiled/Data, where editor puts all the game data, before copying further into Compiled/Windows and so on. If there are any old files, they will still be copied to Compiled/Windows. Double check that old translation files are not in Compiled/Data. OTOH you may simply delete whole Compiled folder and do Rebuild All in the Editor.

Ghostlady

Ok, that got rid of all the old files.  In that past, I was able to use that tra file and be able to view it and able to search it.  This replaced the "filedump" that was in the very old version.  I need to find some speech in the game and I don't want to have to go through tons of rooms. 
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

#3
Quote from: Ghostlady on Tue 17/06/2025 18:48:32In that past, I was able to use that tra file and be able to view it and able to search it.  This replaced the "filedump" that was in the very old version.  I need to find some speech in the game and I don't want to have to go through tons of rooms. 

From what I know, very old versions of AGS have kept the translation text as-is, but later versions, starting from 2.72 or so, encrypt the text in order to avoid players reading it to get hints.

Are you speaking of a TRA file that you compile right now in the project you are working on, or are you speaking of a TRA file coming from some old game to which you no longer have a source?

On another hand, do you know what key words the speech contains? If so you could just run a text search over all the script files and room files in the project.

Ghostlady

I am speaking of a TRA file in my current compiled game with the latest version of AGS. Someone told me how to get a script of the whole game, but I can't find the post right now. Maybe it wasn't the tra file but a different file.

I do know the keyword I am looking for. Is there a way to a run text search over all the files without going one room at a time?

My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

Crimson Wizard

#5
Quote from: Ghostlady on Wed 18/06/2025 02:42:49I am speaking of a TRA file in my current compiled game with the latest version of AGS. Someone told me how to get a script of the whole game, but I can't find the post right now. Maybe it wasn't the tra file but a different file.

Have you tried checking the TRS file of the same name? I just do not understand the reason why are you looking into TRA. TRS file is the translation source. TRA file is the compiled translation.

When you speak of "whole script", are you referring to the acting script by a chance? There's a command that can create one in File menu.


Quote from: Ghostlady on Wed 18/06/2025 02:42:49I do know the keyword I am looking for. Is there a way to a run text search over all the files without going one room at a time?

I think AGS can search in all scripts including room scripts if you go to any script, do Edit -> Find All and select "Look Into: Current Project".
If that does not work, most file managers can search through files, Windows File Explorer can do that if you ask it to search the file contents AFAIK.

Ghostlady

Yikes. I found what I needed in the .trs file.  I was getting it confused with the .tra file.  Sorry for the confusion.
My Games:

Hauntings Of Mystery Manor
Intrigue At Oakhaven Plantation
Haunting at Cliffhouse

SMF spam blocked by CleanTalk