Tremulous Forum

Mods => Modding Center => Topic started by: WelcomedDigitalLove on November 18, 2007, 06:41:12 pm

Title: Can't access maps
Post by: WelcomedDigitalLove on November 18, 2007, 06:41:12 pm
I can't access any of the maps other than the defaults on any server. I downloaded them, so I'm wondering if they might be in the wrong folder. What folder should they be in?
Title: Re: Can't access maps
Post by: X-20 on November 18, 2007, 10:52:37 pm
They should be in your tremulous/base folder where all the other maps are  :tyrant: :tyrant: :tyrant:
Title: Re: Can't access maps
Post by: Basilisco on November 19, 2007, 06:33:21 am
When downloading maps, make sure the extension is .PK3 and not zip or anything like that.
Title: Re: Can't access maps
Post by: Bunneh on November 30, 2007, 12:38:32 pm
To expand on that, DO NOT EXTRACT THE .PK3s!

(You have no idea how many people I've seen complaining about defunct maps in-game and you find out that they've extracted the .pk3 to a folder with the map name on it...makes me want to go out and kill helpless kittens sometimes...)
Title: Re: Can't access maps
Post by: Caveman on November 30, 2007, 03:09:49 pm
Bunneh, mind if you get a clue?
Those idiots did not do an extraction, they extracted to the wrong folder.
If you extract the pk3 without moving the files, everything will be fine.
Here is the speed-gain you have been looking for in your other post.
Extracting saves trem the time on slower computers...
Title: Re: Can't access maps
Post by: jr2 on December 01, 2007, 09:12:24 am
Hmm.  So, .pk3 is like a .vp (Volition Package), except with compression?  .vps have the correct folder layout inside them, but any file with the same path that is actually in the folders instead of in the .vp overrides the one in the .vp  And, .vps don't have compression.

Is a .pk3 an actual .zip file, just with a renamed extension?  So you can compress the stuff with 7-Zip (http://www.7-zip.org) to a .zip file, and choose the compression level?
/me is curious.
Title: Re: Can't access maps
Post by: next_ghost on December 01, 2007, 11:18:00 am
Is a .pk3 an actual .zip file, just with a renamed extension?  So you can compress the stuff with 7-Zip (http://www.7-zip.org) to a .zip file, and choose the compression level?

Yes.
Title: Re: Can't access maps
Post by: Caveman on December 01, 2007, 02:10:15 pm
... .vps have the correct folder layout inside them, but any file with the same path that is actually in the folders instead of in the .vp overrides the one in the .vp ...

same with the .pk3
what's extracted will overrule anything inside the .pk3 as the pk3s get read first and then the files...
Title: Re: Can't access maps
Post by: /dev/humancontroller on December 02, 2007, 12:05:32 am
Hmm.  So, .pk3 is like a .vp (Volition Package), except with compression?  .vps have the correct folder layout inside them, but any file with the same path that is actually in the folders instead of in the .vp overrides the one in the .vp  And, .vps don't have compression.
Yes. Different game engines have different file hierarchy models.
And this makes no sense:
same with the .pk3
what's extracted will overrule anything inside the .pk3 as the pk3s get read first and then the files...

For reference, I'll quote an informational comment from files.c:

Code: (files.c) [Select]
To save disk space and speed loading, directory trees can be collapsed into zip files.
The files use a ".pk3" extension to prevent users from unzipping them accidentally, but
otherwise the are simply normal uncompressed zip files.  A game directory can have multiple
zip files of the form "pak0.pk3", "pak1.pk3", etc.  Zip files are searched in decending order
from the highest number to the lowest, and will always take precedence over the filesystem.
This allows a pk3 distributed as a patch to override all existing data.

I don't really know what is the real bottleneck of loading. CPU or HDD? They say that it's the HDD, but I see no difference with the hardware I have tested.
Title: Re: Can't access maps
Post by: Caveman on December 02, 2007, 04:18:37 am
I wish the comment in files.c where true, then there would be even less cheating .)
Title: Re: Can't access maps
Post by: benmachine on December 02, 2007, 03:52:30 pm
I wish the comment in files.c where true, then there would be even less cheating .)
They... are.
Servers to which you connect only allow you to load files inside pk3s whose checksums match the pk3s on the server. There is an exception made for menu files.
Of course, hacked clients need to and can bypass these checks.