Forum

Pakscape/Pak Explorer commandline

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Pakscape/Pak Explorer commandline

Postby daemonicky » Tue Apr 26, 2011 4:55 pm

I want to add files to Quake pak in commandline. I have both Pakscape and Pak Explorer. Is it possible to do it and how?

Alternatively, do you know of any utility which can add files to pak in command line?

Thanks :)
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Postby Spike » Tue Apr 26, 2011 4:59 pm

qcc can!
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Spirit » Tue Apr 26, 2011 5:05 pm

pak from the QuakeForge tools is a CLI tool to handle pak files. There is also a FUSE filesystem for PAK iirc.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby daemonicky » Tue Apr 26, 2011 5:09 pm

Spike wrote:qcc can!


Thanks. :)

ps:
Now I found, that using either pak programs is not necessary, you can just copy files into folder viewtopic.php?t=3196 . Which solves my problem - I wanted to automatically compile and update progs.dat.
User avatar
daemonicky
 
Posts: 185
Joined: Wed Apr 13, 2011 1:34 pm

Postby Spike » Tue Apr 26, 2011 6:10 pm

if I'm reading this right, its:
qcc -pak mygamedir pak0.pak
qcc -pak2 mygamedir pak1.pak

run it twice and you get two pak files.
of course, that requires that your precache_model and precache_model2 calls are not confused.

oh, and this feature is of more use to people that actually want to build the entire thing from scratch, what with the fact that you probably don't want to change all the precache_sound/file/model calls to choose which files are actually compiled...
blurgh, lazy.
alternatively you could feed it some dummy qc file with a lot of precache_file/precache_file2 calls.

or you can just... not. easier that way.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby leileilol » Wed Apr 27, 2011 12:09 am

I use this cool program called qpakman for almost everything
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest