unzip>zip>rename to pk3 not working

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

unzip>zip>rename to pk3 not working

Postby yoggy » Sat Mar 08, 2008 4:06 am

Hi there, I am trying to edit some of the textures in the game on osx and I figured out the deal about the pk3 file being basically a zip in disguise.

I've unzipped it and gotten access to the data folder and textures but when I rezip in and rename the extension to .pk3, then nexuiz doesn't load and I get a screen saying "you have reached this menu due to missing or unlocatable content/data, you may consider adding -basedir /path/to/game to your launch commandline" with the option to open the console or quit.

I noticed that the pk3 file is 348.2 mb before I uncompress it, and after unzipping and rezipping it, it has grown to 361.6 mb. (I didn't change anything in the data folder for this test)

So something is changing with the archive. I've tried zipping it with the BOMArchiveHelper that comes with mac os x and a 3rd party program with the same result and exact file size.

Any help? I don't need the GTKRadiant thing, do I? I just want to edit some textures like particles and stuff that is not map specific.
yoggy
Newbie
 
Posts: 4
Joined: Sat Mar 08, 2008 3:52 am

Postby KadaverJack » Sat Mar 08, 2008 4:45 am

osx is setting some weird option in zip files, that the zip loader in the Nexuiz engine doesn't like. Either try the hotfix or don't repack the pk3 (just extract the files you want to edit and place them in Nexuiz/data/ with the same path as in the pl3 (e.g. Nexuiz/data/textures/foo/floor.jpg)).

As for the size difference: different zip programs archive dofferent compression ratios. The official pk3 is packed with p7zip, because it offers the best compression ratio. (plus osx zip files will be larger since they contain some extra junk, which is only used by osx)
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby torus » Sat Mar 08, 2008 4:50 am

KadaverJack wrote:(plus osx zip files will be larger since they contain some extra junk, which is only used by osx)


Not by much, but if you want to get rid of those, just enable view hidden items and delete them before you pack it.
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby yoggy » Sat Mar 08, 2008 4:55 am

Hey thanks a lot man, I got it working by just placing the files in Nexiuz/data.
yoggy
Newbie
 
Posts: 4
Joined: Sat Mar 08, 2008 3:52 am

Postby divVerent » Sat Mar 08, 2008 7:50 am

torus wrote:Not by much, but if you want to get rid of those, just enable view hidden items and delete them before you pack it.


Isn't it highly unwise to delete .DS_Store?
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby divVerent » Sat Mar 08, 2008 7:52 am

one working way to make good zip files on OS X is Terminal.app:

zip -9r ../somepk3name.pk3 .

from the extracted directory of data (with no other pk3s in it).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby torus » Sat Mar 08, 2008 3:50 pm

divVerent wrote:
torus wrote:Not by much, but if you want to get rid of those, just enable view hidden items and delete them before you pack it.


Isn't it highly unwise to delete .DS_Store?


Not that I know of- Mac OS just re-creates it if the directory is opened (I think)
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA


Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron