Scenes.image: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(not in ep1)
(will get some code up soon)
Line 4: Line 4:


{{Warning|Only the VCD files in '''YOUR''' <code>scenes/</code> folder will be built into the image. This means that you will need to extract Valve's scenes from your base game's [[Game Cache File|GCF]]s before compiling if you want to use them. Remember that a lot of scenes used automatically by NPCs are in the original <code>source engine.gcf</code>. (Yes, doing all this sucks!) You ''don't'' need to distribute the extracted VCD files though.}}
{{Warning|Only the VCD files in '''YOUR''' <code>scenes/</code> folder will be built into the image. This means that you will need to extract Valve's scenes from your base game's [[Game Cache File|GCF]]s before compiling if you want to use them. Remember that a lot of scenes used automatically by NPCs are in the original <code>source engine.gcf</code>. (Yes, doing all this sucks!) You ''don't'' need to distribute the extracted VCD files though.}}
== Bypassing ==
If you are producing your own binaries, <code>CSceneEntity::LoadScene()</code> and <code>C_SceneEntity::LoadScene()</code> can be edited to read VCD files directly from the OS filesystem.


[[Category:Glossary]]
[[Category:Glossary]]
[[Category:Choreography]]
[[Category:Choreography]]

Revision as of 12:26, 5 November 2010

scenes/scenes.image is a binary data blob from which Source 2007 (i.e. The Orange Box engine) loads choreography scenes. It was created to improve performance on consoles: it is loaded into memory its entirety when the engine starts, which eliminates the need for consoles' slow optical media to seek around on a disk for hundreds of loose .VCD files. It helps on PC too however, so has been ported across.

To build a scenes.image, load Faceposer and choose File > Rebuild scenes.image...

Warning.pngWarning:Only the VCD files in YOUR scenes/ folder will be built into the image. This means that you will need to extract Valve's scenes from your base game's GCFs before compiling if you want to use them. Remember that a lot of scenes used automatically by NPCs are in the original source engine.gcf. (Yes, doing all this sucks!) You don't need to distribute the extracted VCD files though.

Bypassing

If you are producing your own binaries, CSceneEntity::LoadScene() and C_SceneEntity::LoadScene() can be edited to read VCD files directly from the OS filesystem.