Página académica del Colegio Nacional



Comunidad y Foros de discusión
No estás autentificado

< Último hilo   Siguiente hilo > Nuevo Tema  Publicar una respuesta
Autor: Asunto: PoP2 graphic

No registrado



  publicado el 21/6/2003 en 09:48
Do somebody know how to receive graphic from Prince of Persia 2 files (mainly from characters) ? Please write to asm3@o2.pl.
Thanks for replies.

 
Reply With Quote

PV3 Coder




Envíos: 184
Registrado: 24/10/2002
Status: Desconectado

  publicado el 23/6/2003 en 06:11
May be PR could extract some POP2 graphics when we could fix the block size bug.
 
Reply With Quote

No registrado


  publicado el 25/6/2003 en 13:45
I use the PR but i find some errors (wrong palette and invert image). Can You tell me how is save graphic in POP1 in *.dat file ? I do modul in Pascal that load BMP files, but i cannot load games dat files, even in Paint Shop Pro and MS Paint.
I need some graphic from PoP2 because i end alpha version of Prince of Persia 2 : Arena (soon to download).
Please help me !

 
Reply With Quote

PV3 Coder




Envíos: 184
Registrado: 24/10/2002
Status: Desconectado

  publicado el 25/6/2003 en 15:01
You have PR v0.2 alpha. I've uploaded PR v0.3 Beta, this version extracts perfect bitmaps except on title.dat, please read the readme file to see the changes. To save files in .dat format you have to compile them (extract the files first) using the -c option.

For the moment the program can't compile bitmaps and palettes, but you can extarct and start editing so when the program is done you can compile your work.

You could also download PRM: the actual version uses the old pr.dll, but you can replace it with the pr.dll v0.3 that is in the PR v0.3 package.

 
Reply With Quote

No registrado


  publicado el 25/6/2003 en 16:29
Unfortunately in this version (0.3) extracting from dat files dont't work when i use files from Prince of Persia 2, but when I use files from Prince of Persia 1 all work correctly! In the older version of resourcer (pgsrca1) extract from Prince of Persia 2 files work, but there was wrong palette. How can I extrack graphic from Prince of Persia 2 files correctly?
 
Reply With Quote

PV3 Coder




Envíos: 184
Registrado: 24/10/2002
Status: Desconectado

  publicado el 25/6/2003 en 17:12
Yeah!!! Very good news. I'm very happy to know that PG could extract POP2 images (never tryed with PG). PR can extract POP2 only if the .dat files are smaller then 64 kb. I'll increase this limit to 4 Gb in PR v0.4, I hope the index have the same format.
 
Reply With Quote

No registrado


  publicado el 27/6/2003 en 09:09
Hmm ...
Can You tell me how is save graphic in PoP1 data files?
I'll try to unpack datafiles from PoP2.
Thanks

 
Reply With Quote

PV3 Coder




Envíos: 184
Registrado: 24/10/2002
Status: Desconectado

  publicado el 28/6/2003 en 10:08
PG format is very difficult it uses 5 compression algorithms and an indexed file (the index is different in POP1 and POP2) and figuring out wasn't finished yet (only for big images that is what you have in POP2). If you really need to code a decompressor in Pascal I suggest you look in the PG source and see how are the compression made.

PR doesn't work because PR uses the indexed files in POP1 that POP2 hasn't, but PG looks for image headers which is a bit slower, but it works with POP2. Can you tell me wich image or wich .dat file could you unpack?

Indexes in POP2 are very big, and I'll tryo to figure out how they work.

 
Reply With Quote

No registrado


  publicado el 28/6/2003 en 22:23
I'm so happy to know PG works in Pop2









[Editado el 28/6/2003 por poirot]

 
Reply With Quote

Miembro normal



Envíos: 9
Registrado: 31/5/2003
Status: Desconectado

  publicado el 29/6/2003 en 08:14
Cool! After we finish PoP1, why not to figure out Pop2 formats?
 
Reply With Quote

PV3 Coder




Envíos: 184
Registrado: 24/10/2002
Status: Desconectado

  publicado el 29/6/2003 en 10:41
I've been working a bit in pop2 indexes, now I know how they are made, I only need to figure out some bytes and we are done. Indexes in pop2 are very important because it is impossible to find headers in images bigger than 256 pixels width or height. PG looks for headers, that's why it only unpacks small bitmaps. PR looks at the index and unpacks whatever the index points without verifying the bitmap header, that is the only way to unpack big images.

I used PG to unpack some pop2 dat files and see the offsets and sizes and after that I compared them with the index, and figured out how index works in pop2, I only need to know some bytes.

If anybody wanna help, please post here!

 
Reply With Quote

Miembro normal



Envíos: 7
Registrado: 30/9/2003
Status: Desconectado

  publicado el 30/9/2003 en 12:44
I like pop2 the graphic is good bether then pop1 so I like the graphic very well...
 
Reply With Quote
Nuevo Tema    Publicar una respuesta


Powered by XForum 1.6n by Trollix Software
original script by xmb


 
  All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me. Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Página Generada en: 0.172 Segundos