*.VH, *.VC
Displaying 1-15 of 15 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Omni

What is the difference between these two file types? They both contain the same VC code.

Originally I thought that *.vh was for those who don't want to bother with code, but nope, the plain text code is inside the file. So what special purpose does this thing serve?

Posted on 2004-06-10 04:56:57

Zip

None - just a useful indicator of what it contains - in keeping with the .cpp .h format. Generally, if you have a file of defines, or function declarations, or global variables a .vh file type is an indication it contains no actual code.
Traditionally, you would define all classes and such in a .h - which would be public, so people could use your class, but sometimes hide the .cpp with the actual code to stop it being nicked. :)

Rar

Posted on 2004-06-10 05:01:51

vecna

.vh is not any special sort of filetype.
You can #include anything, an .inc file, whatever you want.

I guess zip used .vh in his projects because otherwise I have no idea wtf you're talking about. :D

Posted on 2004-06-10 05:07:06

Omni

I suppose if you wanted to actually obfuscate your code, then you'd use a *.vpk, right?

And while I'm on that...how many VPKs can V3 mount, maximum?

Sorry, I'm just full of questions today. I did go look through the eight pages of this forum, though.

WAIT: Vecna, are you saying that VC can #include any plain text file, not just *.vc, and that *.vh is just an example of this, and not really any special feature?

Posted on 2004-06-10 05:08:59 (last edited on 2004-06-10 05:10:32)

Zip

Yup. Apparently verge basically ignores the extension. Like I said, header files are just a .cpp habit carried over. And yeah, a topic search function would be nice, but I bothered everyone enough already I think.
As for .vpk - I've yet to experiment.

Zip

Posted on 2004-06-10 05:12:32

Omni

Well, Zip. Who knew I'd assume your particular coding habits were a V3 feature.

I did start this thread after going over your compo entry again, by the way :)

Posted on 2004-06-10 05:14:17

Zip

I ain't the only one, Gayo does it as well. And a lot can be learned from his coding habits.

Zip

Posted on 2004-06-10 05:16:32

RageCage

I too use vc and vh. I generally put thing in a .vh that arn't game specific such as fade functions, astar, ripple effects, etc

Posted on 2004-06-10 05:25:49

Overkill

Quote:Originally posted by Omni

I suppose if you wanted to actually obfuscate your code, then you'd use a *.vpk, right?

And while I'm on that...how many VPKs can V3 mount, maximum?


.vpk's are for everything *but* the code. It auto-compiles the code when you run Verge3 into a file called "system.xvc". If you put the word "releasemode 1" into "user.cfg", it will use this compiled code instead of the otherwise open source code.

Also, I believe you can have 4 different .vpk files, which is enough if you categorize everything into seperate .vpk's.

Posted on 2004-06-11 01:28:16

Omni

If VPKs can't be used for code, then how is the zarilsplash.vpk file used to call Zaril's splash intro?

Posted on 2004-06-11 02:08:26

Overkill

Well, zarilsplash.VPK has the images and music, but you need the v3splash.VC file as well in order for there to be a function to call. The .VPKs only hold files that aren't necessary at the time of compilation.

Scripts are no longer needed as long as you have system.XVC and "releasemode 1" in user.CFG.

Posted on 2004-06-11 23:31:37

Buckermann

Well Overkill, I'm sorry, but I think you are wrong.

I have all the files for my new intro in a VPK file, including the tabu_intro.vc script.
To use the intro I just mount it
(complete verge.cfg)
automax 0
xres 640
yres 480
windowmode 1
paranoid 0
sound_device 0
releasemode 0
mount1 tabu_intro.vpk
(end)
and add a include to the system.vc like this:
#include "tabu_intro.vc".
and call the intro with Tabu_Intro() in the autoexec() function.
And it works.
(I also deleted the system.xvc to make sure my intro wasn't precompiled into it).

Posted on 2004-06-11 23:57:57

vecna

verge3 can pull .vc files from the packfile for compilation.

Posted on 2004-06-12 00:43:42

rpgking

That's a good way for people to release huge libraries(like a party/item/magic/dialogue/menu/battle system) as a single packfile...

Posted on 2004-06-14 15:46:43 (last edited on 2004-06-14 15:47:08)

vecna

Yep, that was the intention.

Posted on 2004-06-18 02:32:26


Displaying 1-15 of 15 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.