Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: WMCoolmon on April 29, 2004, 01:18:25 am

Title: VP Combiner
Post by: WMCoolmon on April 29, 2004, 01:18:25 am
VP Combiner (http://members.cox.net/~wmcoolmon/progs/vpc.exe)

Pretty straightforward - add the names of the VPs you want to combine into the Sources box, add an output filename into the output box and click go.

IMPORTANT NOTES:
Title: VP Combiner
Post by: Kazan on April 29, 2004, 08:16:47 am
did you write all the code for this yourself

and what purpose do you see in splicing VPs togeather
Title: VP Combiner
Post by: Goober5000 on April 29, 2004, 09:26:10 am
Cool. :yes:
Title: VP Combiner
Post by: kasperl on April 29, 2004, 09:45:58 am
what does it do when it finds two ship tables with different contents?
Title: VP Combiner
Post by: karajorma on April 29, 2004, 11:19:25 am
Quote
Originally posted by Kazan
and what purpose do you see in splicing VPs togeather


It would be quite useful when you have multiple VP files you need to turn on and off (e.g in the satalite campaigns for inferno and TBP)
Title: VP Combiner
Post by: Kazan on April 29, 2004, 11:20:42 am
*rolleyes*

THAT'S WHAT -MOD IS FOR
Title: VP Combiner
Post by: WMCoolmon on April 29, 2004, 06:00:59 pm
Quote
Originally posted by Kazan
did you write all the code for this yourself

and what purpose do you see in splicing VPs togeather


Yep.

It'd be handy for the mediaVP, and it was the easiest thing to do to test all the loading/saving functions. The code is fully capable of adding individual files or directories (In fact that's what it does to load the VP) it's just harder to translate that into a GUI frontend.

Quote
Originally posted by kasperl
what does it do when it finds two ship tables with different contents?


It will use the first one it finds, using the order of the sources in the listbox - this is currently alphabetical.
Title: VP Combiner
Post by: karajorma on April 29, 2004, 06:13:10 pm
Quote
Originally posted by Kazan
*rolleyes*

THAT'S WHAT -MOD IS FOR


Credit me with some sense.

 -mod doesn't work when you need the VPs of something like TBP to play one of the campaigns based on it like In The Beginning or Heat Em Up. In those cases you're back to renaming vp files and Data folders again.
Title: VP Combiner
Post by: Kazan on April 29, 2004, 06:20:56 pm
karajorma: ah.. we should makde it allow 'mod stacking' :P
Title: VP Combiner
Post by: karajorma on April 29, 2004, 06:27:56 pm
I agree.

It's not a huge problem yet. There are only 2-3 campaigns out for TBP and only the one released for Inferno IIRC but more are on the way :)
Title: VP Combiner
Post by: Flipside on April 29, 2004, 07:12:18 pm
It'll also be handy for modders who want to combine together several peoples work, the modders/fredders etc would simply VP their own work in the correct area, and the one person merges them all together :)

Tables would probably have to be added manually later as Karajorma said. I guess while I'm starting to learn C++, I might as well make a little project for myself of a more flexible way of editing tables, and inserting them into ships.tbl or weapons.tbl etc. Ah well... maybe one day ;)

Very very useful indeed! Thank you :D
Title: VP Combiner
Post by: WMCoolmon on April 29, 2004, 09:28:34 pm
Updates: :)



Edit: Err, I ran out of webspace and my ISP cleared the file, if you had any problems downloading try again.

Today's final addition:
A preview box! :D

Tommorow's planned additon: An update button, so you can select a file from a VP and selected an updated version to use when the VP is compiled.
Title: VP Combiner
Post by: Flipside on April 30, 2004, 02:34:42 pm
:D Excellent to hear!

Really good to see more tools :)
Title: VP Combiner
Post by: Kazan on April 30, 2004, 03:44:52 pm
what GUI toolkit you using
Title: VP Combiner
Post by: WMCoolmon on April 30, 2004, 05:17:47 pm
The base Win32 API functions.
Title: VP Combiner
Post by: Kazan on April 30, 2004, 05:53:01 pm
Yikes! I did that for PCS -- I highly advise you to learn WxWidgets
Title: VP Combiner
Post by: WMCoolmon on May 01, 2004, 07:42:49 pm
Newest version (http://members.cox.net/~wmcoolmon/progs/vpc.exe)

I had a hectic Friday, testing today...here's the new version.

The bad news: Removing sources is faulty
I did some heavy re-coding, but the added memory-recovery functions aren't working properly or something. Clearing still works, though.

Edit: Files now save properly, so this bug is effectively fixed aside from the extra memory it takes up. I'll keep on looking into this...

If the file count increases when you remove something, or something Bad happens when you try to read the outputted VP using another program, clear the source list and start over.

Stuffs
Title: VP Combiner
Post by: WMCoolmon on May 02, 2004, 07:10:33 pm
Mucho updates:

Meaning if you want to update an individual file of a VP - load it as a source, update the file, and output it.

Edit: red stuff added as of edit. It was really easy and thought of it while making post.
Title: VP Combiner
Post by: Antares on May 02, 2004, 08:18:45 pm
So long as you're putting so much effort into this, compile an updated Media VP with it. :p
Title: VP Combiner
Post by: WMCoolmon on May 02, 2004, 10:04:38 pm
Well, this one very convenient thread popped up, so... :p
Title: VP Combiner
Post by: WMCoolmon on May 03, 2004, 01:18:55 am
Blah, in preparation to making the mediaVP, I've slapped some more features on to make it very easy for me.



Outputting directories: Note that the data folder will be extracted in the directory specified, along with any other top-level dirs.
Inputting directories: The specified directory will be added as a top-level dir, BUT if it is not named data, you can add it as such. A dialog box will ask you if you want to.

Oh yeah, the link (http://members.cox.net/~wmcoolmon/progs/vpc.exe) is the same as always
Title: VP Combiner
Post by: JarC on May 03, 2004, 02:34:29 am
BIG bug on 2K here...when closing using the Close button (X top-right) instead of exit, the window hangs and won't accept any input, need to do task-kill to get rid of it
Title: VP Combiner
Post by: Kazan on May 03, 2004, 08:54:37 am
he's forgetting to call
            PostQuitMessage(0);
Title: VP Combiner
Post by: WMCoolmon on May 03, 2004, 06:13:39 pm
If only...blehg.

Code: [Select]
case WM_CLOSE:
case WM_DESTROY:
PostQuitMessage(0);
break;