bigianb / bgda-explorer

Code written to try and figure out the data files used in Baldur's Gate Dark Alliance for the PS2
10 stars 6 forks source link

Auto detect engine version #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Rather than having to specify the engine version, it should be possible to 
detect it from looking at files in the path.

When loading a file, the absolute path will look like:

.../foo/BG/DATA/...

if we look in the foo directory, there will be an executable file starting with 
the name SLES_

We can use this to detect the engine version. I have the following European 
versions:

SLES_506.72   Dark Alliance
SLES_521.87   Dark Alliance 2
SLES_530.39   Champions Return To Arms

Original issue reported on code.google.com by bigianb on 22 Oct 2012 at 6:23

GoogleCodeExporter commented 9 years ago
What about trying to open stray files? There would still need to be the ability 
to select the version if you can't auto-detect the version.

Original comment by invisgh...@gmail.com on 22 Oct 2012 at 6:26

GoogleCodeExporter commented 9 years ago
I was thinking of an additional option. So you can specify the version as CRTA, 
BGDA or Auto.

Original comment by bigianb on 22 Oct 2012 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by bigianb on 24 Oct 2012 at 6:48

GoogleCodeExporter commented 9 years ago
By the way, 

BGDA 1 NTSC: SLUS_200.35
BGDA 2 NTSC: SLUS_206.75
CON NTSC: SLUS_205.65
CTRA NTSC: SLUS_209.73

Original comment by invisgh...@gmail.com on 24 Oct 2012 at 7:31