Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
GreebCables

Doom iPhone: base.iPack

Recommended Posts

Hi guys,

I'm currently working on editing the iPhone source port of Doom, however many of the images (main menu etc) seem to be compressed in the base.iPack file.

Does anyone know how to uncompress or edit the contents of this file?

Many thanks.

Share this post


Link to post

Thanks :) I see there's code to access the resources in the iPack in the code but I hadn't a clue how to put one together for my own images. I wonder what program Carmack initially used to put it together.

One question about your program, though, I can't seem to get it to run... I keep getting "./mkpak: cannot execute binary file" error when I try to run it, am I doing something wrong? My linux skills are not the finest lol.

Share this post


Link to post

Hmm I tried running Make and it gave me

make: pkg-config: Command not found
make: pkg-config: Command not found
g++ -IPVRTexLib -DMKPAK -LPVRTexLib/Linux -o all mkpak.cpp -lPVRTexLib
mkpak.cpp:14:22: error: sndfile.hh: No such file or directory
mkpak.cpp: In function ‘void loadtexturebits(pkTextureData_t*)’:
mkpak.cpp:279: error: ‘CPVRTexture’ was not declared in this scope
mkpak.cpp:279: error: expected `;' before ‘tex’
mkpak.cpp:280: error: ‘PixelType’ was not declared in this scope
mkpak.cpp:280: error: expected `;' before ‘pt’
mkpak.cpp:281: error: ‘pt’ was not declared in this scope
mkpak.cpp:282: error: ‘OGL_RGB_565’ was not declared in this scope
mkpak.cpp:283: error: ‘OGL_RGBA_5551’ was not declared in this scope
mkpak.cpp:284: error: ‘OGL_RGBA_4444’ was not declared in this scope
mkpak.cpp:285: error: ‘OGL_RGBA_8888’ was not declared in this scope
mkpak.cpp:286: error: ‘OGL_BGRA_8888’ was not declared in this scope
mkpak.cpp:287: error: ‘OGL_AI_88’ was not declared in this scope
mkpak.cpp:288: error: ‘OGL_PVRTC4’ was not declared in this scope
mkpak.cpp:288: error: ‘tex’ was not declared in this scope
mkpak.cpp:289: error: ‘OGL_PVRTC2’ was not declared in this scope
mkpak.cpp:294: error: ‘tex’ was not declared in this scope
make: *** [all] Error 1

Share this post


Link to post

You need to find out how to install a development environment on your distro... pkg-config missing is not a good sign :P

also it seems you also need to get libsndfile and opengl (development/header files).

Share this post


Link to post

Thanks I got it working by installing libsndfile and qualifying some of the namespaces in the .cpp file.

Do the textures have to be in PVR format?

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×