lfnetwork.com mark read register faq members calendar

Thread: automating pk3 creation
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 04-08-2007, 12:15 AM   #1
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
automating pk3 creation

How many of you after compiling delete the .dlls and .pk3s from your mod folder, pack the .pk3 of your new dlls and then run your mod? I figured out a way to just simply compiling and then immediately start debugging with the f5 button. Btw, I only know the rules of how to do this with visual c++ express.


First thing you want to do is download Zip 2.32 from this ftp site.

Reason I chose Zip 2.32 is because its the fastest freeware zip program that allows execution through command lines that I know of.

I extracted the contents to:

D:\zip232\ (for instructions later)

Then inside your mod folder which is inside of GameData I created a .bat file called zipdlls. Using the repository for ojp I store the source in another folder and this is where my builds output the new dlls after each recompile:

D:\Jedi Academy\ojpwahoo\ojpbasic

but my mod folder is here:

D:\Jedi Academy\GameData\ojpwahoo\


Using that information this is what my .bat file looked like:

You can omit the 3rd and 4th line if you don't want your mod folder cleaned of text and log files (change code.pk3 or code anything to whatever the name of your pk3 with the dlls is called).

Quote:
del "D:\Jedi Academy\GameData\ojpwahoo\code.pk3"
del "D:\Jedi Academy\GameData\ojpwahoo\*.dll"
del "D:\Jedi Academy\GameData\ojpwahoo\*.txt"
del "D:\Jedi Academy\GameData\ojpwahoo\*.log"

D:\zip232\zip.exe -qj3 "D:\Jedi Academy\GameData\ojpwahoo\code" "D:\Jedi Academy\ojpwahoo\ojpbasic\*.dll"

ren "D:\Jedi Academy\GameData\ojpwahoo\*.zip" *.pk3
The options qj3 after the zip.exe say:

-q - to quiet all outputs
-j - to not zip in directories but the specified files themselves
-3 - balance of speed and size of zipped output, 1 is the fastest, 9 is the smallest

Now to configure Visual C++ I right clicked on jk2game folder in the Solution Explorer and I went to properties then expanded configuration properties then
expanded custom build event -> General

In there for command line I used:

"D:\Jedi Academy\GameData\ojpwahoo\zipdlls.bat"

for description I said "making pk3s" and for some reason it requires an output and i just typed "nothing" without the quotes.

Ofcourse you have to configure the whole thing based on your directories. Apply and you should be able to just compile then start debugging .


Redeemed!

An old school mod for jedi academy.

Last edited by Tinny; 04-08-2007 at 12:28 AM.
Tinny is offline   you may: quote & reply,
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > automating pk3 creation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:10 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.