Tremulous Forum

Mods => Mod Releases => Non-Gameplay Changing => Topic started by: GeneralScott on November 04, 2010, 12:13:32 pm

Title: Cannot compile PK3s
Post by: GeneralScott on November 04, 2010, 12:13:32 pm
Okay, well like I recently did with my HUD, none of the other mods out there completely cut it for me, so I'm gonna try to mod an existing one to suit me better. Focuses on sounds and some textures.
1) How do I compile the PK3? Just compressing it into a .zip and renaming it doesn't seem to work for me (because I'm on a mac maybe?)
2) Thats about it... I can do it if I could only compile it properly...
Title: Re: Questions about Mod Making
Post by: Demolution on November 04, 2010, 02:27:54 pm
Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function.
Title: Re: Questions about Mod Making
Post by: SlackerLinux on November 04, 2010, 02:53:14 pm
Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function. Use search function.

+1
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 04, 2010, 08:19:55 pm
What search function?  :-\
Title: Re: Questions about Mod Making
Post by: CreatureofHell on November 04, 2010, 10:08:45 pm
The box and the search button.
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 05, 2010, 01:09:42 am
Meh. I already know what I'm SUPPOSED to do. It just won't work, even if I unzip a previously working pk3, and rezip the unzipped version and name it the same. The filesizes are also different. This is more about troubleshooting.
Title: Re: Questions about Mod Making
Post by: SlackerLinux on November 05, 2010, 01:51:14 am
where are you testing these mods servers with sv_pure enabled wont allow use of modified pk3's
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 05, 2010, 02:06:59 am
Devmap. I'm not a complete noob. I understand how it works.
Title: Re: Questions about Mod Making
Post by: UniqPhoeniX on November 07, 2010, 02:16:49 pm
Any chance your OS is hiding the .zip extension? When you are re-zipping a file, are you selecting the folders named textures, scripts, vm, etc instead of the folder all those were extracted into (has to end up as z-mod.pk3/textures, not z-mod.pk3/z-mod/textures)? You could also try posting a 'broken' pk3 so we can see what is wrong with it.
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 07, 2010, 04:58:30 pm
Sure, I'll post the PK3. Download it her.... Wait, I can't get any file hosting sites to work today for some reason... I'll post a link later.
Title: Re: Questions about Mod Making
Post by: Ingar on November 08, 2010, 03:35:34 pm
where are you testing these mods servers with sv_pure enabled wont allow use of modified pk3's
Devmap. I'm not a complete noob. I understand how it works.

Note that /devmap and /set sv_pure 0 are not the same. devmap enables cheats like
god mode and noclip while sv_pure, like SlackerLinux indicated, allows the server to use files
outside pk3's.

It is possible the pathnames inside the pk3 are wrong. Maybe they have a parent directory.
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 08, 2010, 08:01:30 pm
The original .pk3 works just fine on my devmap
Title: Re: Questions about Mod Making
Post by: Tremulant on November 10, 2010, 07:23:38 pm
so you're sorted?
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 11, 2010, 12:25:13 am
No, I want to make my own mod, same problem as before. Anyone know any good file hosting sites? Mediafire and a couple others are not working for this for some reason... ???
Title: Re: Questions about Mod Making
Post by: Tremulant on November 11, 2010, 12:34:48 am
Oh, it's just that you said you knew what you were doing, which pk3 is it that stops working when you unzip and rezip it?
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 11, 2010, 03:31:07 am
Wolf's mod. I don't change it at all but it doesn't work anymore when I rezip it. It's wierd. I was going to post the file so poeple could figure out what was wrong but I'm still looking for a decent file host.
Title: Re: Questions about Mod Making
Post by: Celestial_Rage on November 11, 2010, 03:55:16 am
Are you sure the directory structure is intact when you rezip it?
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 11, 2010, 11:16:03 am
As far as I can tell, it is COMPLETELY identical. However, I do notice a small filesize difference between the original and the re-zipped. I was thinking that this was my computer not zipping it the same as it should be? (I'm on a mac)
Title: Re: Questions about Mod Making
Post by: Teapot on November 11, 2010, 01:11:52 pm
It is possible the pathnames inside the pk3 are wrong. Maybe they have a parent directory.
Have you tried looking for this? What is the directory structure within the pk3 *before* extracting?
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 11, 2010, 01:28:23 pm
..I'm not really sure what you mean. But whatever it is, it is exactly the same is when it is rezipped. For some reason, whenever I try to upload it.... the download stalls.... I don't know if it's just too big or what.
Title: Re: Questions about Mod Making
Post by: Tremulant on November 11, 2010, 02:43:28 pm
How large is the file? What are you using to zip up the file, how are you verifying that the structure is the same?
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 12, 2010, 12:02:30 am
I'm not. I'm just assuming that the structure won't be changed when i zip it. Should I do something else?
Title: Re: Questions about Mod Making
Post by: Celestial_Rage on November 12, 2010, 03:22:48 am
You should not assume the structure does not change and actually check that it hasn't once it has been zipped.
Title: Re: Questions about Mod Making
Post by: F50 on November 12, 2010, 08:41:31 am
My guess is that you're using a compression algorithm (proprietary/unusual/not ZIP) that tremulous doesn't understand (since the file sizes are different).
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 12, 2010, 02:23:58 pm
Yeah, mine too. Is there some program for Mac that you KNOW will work for this?
Title: Re: Questions about Mod Making
Post by: Tremulant on November 12, 2010, 02:45:33 pm
It seems very odd that the default compression app on any platform would use anything besides standard zip compression when creating zip archives, hmm, well i suppose it is a mac... Did you manage to open the two zips in some kind of archive manager to compare directory structures yet. btw? If all else fails i suppose you might be able to open a terminal and use the zip command.
Title: Re: Questions about Mod Making
Post by: UniqPhoeniX on November 12, 2010, 04:05:38 pm
How about you just upload the rezipped file somewhere and we can stop guessing.
Title: Re: Questions about Mod Making
Post by: GeneralScott on November 12, 2010, 06:42:43 pm
The download always stalls in MediaFire, and the other uploaders I've tried don't work either. My internet isn't too good...
Title: Re: Questions about Mod Making
Post by: Tremulant on November 12, 2010, 06:51:56 pm
What about drop.io? Just how large is the file you're uploading?
Title: Re: Cannot compile PK3s
Post by: GeneralScott on March 28, 2011, 01:04:50 pm
Yeah... I screwed with it some more.
I guess I had time so I figured I'd just do it now.

Here is the link. What's wrong with it?

http://www.mediafire.com/?5x3nwb3wf3z6qia
Title: Re: Cannot compile PK3s
Post by: Tremulant on March 28, 2011, 02:41:18 pm
You zipped the containing directory, rather than just the files and directories you were keeping in it, i have no idea if that's important but it seems that opening your zzz-wolfbrmodb5 directory and selecting everything inside before zipping the lot together is worth a shot, so that when you open the resulting zip you see gfx, models, scripts, etc. rather than a zzz-wolfbrmodb5 containing those.
Title: Re: Cannot compile PK3s
Post by: GeneralScott on March 28, 2011, 02:53:18 pm
Okay, right, I'll try that. However that's not how the actual mods unzip, so I doubt that would work.... I'm thinking someone whos done this before can decompile, recompile, and see if it works then to narrow out the actual construction of the file and onto my computer.
Title: Re: Cannot compile PK3s
Post by: Teapot on March 28, 2011, 05:45:14 pm
You zipped the containing directory, rather than just the files and directories you were keeping in it
This is how it should be done, yes.

Okay, right, I'll try that. However that's not how the actual mods unzip
Programs put all the unzipped files inside a folder so your current folder will not be littered with files that may or may not have come from the zip file.
Yes, it can be a little confusing if you don't know that.
Title: Re: Cannot compile PK3s
Post by: Tremulant on March 28, 2011, 06:17:41 pm
Just open any zip file in whatever archive viewer you have, rather than extracting it, you'll see its structure.
Title: Re: Cannot compile PK3s
Post by: GeneralScott on March 28, 2011, 06:37:15 pm
Mac doesn't have one, unfortunately. Thanks for the HELP!
Title: Re: Cannot compile PK3s
Post by: c4 on March 28, 2011, 09:32:24 pm
Heres your issue: when you change the extension, mac just adds it to the name and hides the .zip.  you need to right click and click get info, where you can get rid of it alltogether.
Title: Re: Cannot compile PK3s
Post by: GeneralScott on March 28, 2011, 09:59:19 pm
Yeah, I got it all now. Thanks for the months long help.
Title: Re: Cannot compile PK3s
Post by: Tremulant on March 29, 2011, 02:48:33 am
Mac doesn't have one, unfortunately.
Seriously?
Title: Re: Cannot compile PK3s
Post by: c4 on March 29, 2011, 02:38:22 pm
Mac doesn't have one, unfortunately.
Seriously?
Much like windows, it doesn't ship with one, but there are plenty to download

http://www.macupdate.com/app/mac/11088/archive-viewer
Title: Re: Cannot compile PK3s
Post by: Tremulant on March 29, 2011, 04:01:11 pm
I'm fairly sure windows has shipped with one since XP.