# game: Alter Ego
# file type: *.erp
# (c) 2010 AlphaTwentyThree
set NAMEDAT 0x3D
get FILES short
for i = 1 <= FILES
get ZEROS short
get DUMMY long
get SIZE long
get OFFSET long
get TYPE short
get NAME string
savepos CURR
strlen NAMEL NAME
set RES NAMEDAT
math RES -= NAMEL
math CURR += RES
goto CURR
log NAME OFFSET SIZE
next i
The file extensions are specific, for example *.ESA are sounds and music, *.EIT are dds files and so on. If you want you can write a little extractor into the code so you can directly work with the files. I don't have the game so I can't check all formats.
Sheen wrote:Works great XpoZed, . The problem is all files are encrypted (EMA, ESA, EIT and so on).
Its look like they wanted protect Alter Ego's files like a state secret.
Regards.
Not encrypted actually... ESA are OGG, EIM are DDS and so on... they just have a small header at the beginning.
For example EIM has the following structure :
Aha, ok thank for the advise. But if anybody wants to open a dds file, how he can do it? I suposse is not so easy like changing the extension of the file (I tried ), and the lang files don't appear. Where i looked for I only found code...and I looked for in all compressed files.
You can edit DDS easily with photoshop and a free DDS plugin ffrom nvidia (google it).
To edit EIM files as DSS, open the file with some text editor and remove the first 16 bytes until you reach the DDS header. Then change the extension to .DDS and you're ready.
The language file is located in US_D_UI_Local.erp as Alter_Ego_Texty.ete.
The ETE file has very simple structure, so you can edit it quite easy with any HEX editor.
I have two dds programs (dds converter and image converter plus, and photoshop and fireworks of course) already cause I work a lot with graphics files, but i'll take a look for that nvidia dds plugin that you said.
I created two simple programs help converting files from .EIM to .DDS and vice-versa.
Now I'm working on .ETE <-> .TXT converter, to help translating the game texts.
Updated! I combined the two programs into one. If the given file extension is .EIM, then converts to .DDS; If .DDS, then converts to .EIM
Last edited by bacter on Thu Jun 23, 2011 6:32 pm, edited 1 time in total.
The latest version of my ETE <-> TXT and EIM <-> DDS converter.
I added new function to help the updating of .ERP files.
(To replace only one file in the existing ERP archive)
Example of the usage: 1: extract the files from the contents of the "US_D_UI_Local.erp" archive:
AE_TOOL.EXE X US_D_UI_Local.erp e:\mydir
The tool automatically generates a hash value for each file, to help the replacing: