INFO vcompile - virtual compiling of rooms DESCRIPTION vcompile allows for objects without an actual file matching the objects filename. When the driver is instructed to load a file, it first check if it is already loaded. If not it looks in the specified dir. If there is no file there that can be used, it looks for a file named vcompile.c in the dir (and in the parent dirs!). If found, that object is loaded and the function compile_virtual in it is called with the file name as argument. This function should clone an object and return it. If anything else than an object is returned, you will get the usual error message about trying to load a non-existing object. The driver now changes file name on the clone to the file name given as argument to compile_virtual, and the reset function in the object is called with argument -1 . EXAMPLE Take a careful look at /doc/vcompile.c . Try a 'goto' to any file in that dir. NOTE Without great care, a map area is about the most boring area there is in the game. Be sure your vcompile.c cannot be shadowed. Be sure that your don't accept every file name in compile_virtual. You should check for the files '.acl', '..' and '.', at least.
Help topics available:
You are guest number 129 since December 2019.
This file was last modified: June 2000.