Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom iPhone: base.iPack
 
Author
All times are GMT. The time now is 04:52. Post New Thread    Post A Reply
GreebCables
Warming Up


Posts: 13
Registered: 09-11


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.

Old Post 09-03-11 13:40 #
GreebCables is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Dark Yoda
Warming Up


Posts: 13
Registered: 01-10


There is code to unpack iPack directly in doom classic source code, obviously :) So you can easily write unpacker by yourself. We lost our version of unpacker, but you can use our packer: https://github.com/TermiT/mkpack

Old Post 09-05-11 10:33 #
Dark Yoda is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GreebCables
Warming Up


Posts: 13
Registered: 09-11


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.

Old Post 09-05-11 10:45 #
GreebCables is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Dark Yoda
Warming Up


Posts: 13
Registered: 01-10


You need to rebuild the binary

Old Post 09-05-11 18:38 #
Dark Yoda is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
GreebCables
Warming Up


Posts: 13
Registered: 09-11


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


Old Post 09-05-11 18:47 #
GreebCables is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
chungy
Doomworld is so about bullshit excuses


Posts: 1458
Registered: 06-05


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).

Old Post 09-05-11 20:08 #
chungy is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
GreebCables
Warming Up


Posts: 13
Registered: 09-11


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?

Old Post 09-05-11 23:37 #
GreebCables is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Dark Yoda
Warming Up


Posts: 13
Registered: 01-10


id released source code for updated version of doom classic (2.1), it also contains ipack utility.
http://download.zenimax.com/idsoftw...ios_v21_src.zip

Old Post 09-06-11 09:14 #
Dark Yoda is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
BlackFish
Forum Spammer


Posts: 4274
Registered: 06-02


Can someone compile the ipack tool?

Old Post 09-12-11 00:15 #
BlackFish is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
GreebCables
Warming Up


Posts: 13
Registered: 09-11


You should be able to load it into xcode and compile it as a mac console app

Old Post 09-25-11 14:50 #
GreebCables is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 04:52. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Source Ports > Doom iPhone: base.iPack

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory