这个最小的是说能驱动MUDOS,能成功Connected.
现在以网上下载的单机专用MUDOS和其配制的config.cfg为标准说明:
先找一个单独的MUDOS运行,需要配置文件,加载config.cfg...运行后提示:open log/debug.log file failed.OK,根椐配置我们建目录:/log,再运行,现在提示:The simul_efun file adm/obj/simul_efun.c was not loaded.OK,我们建目录:/adm/obj,并在obj目录中建一个空文件simul_efun.c,再运行,现在是:adm/obj/simul_efun.c line 0: Cannot #i nclude globals.h
adm/obj/simul_efun.c line 1: parse error
No error handler for error: *Error in loading object '/adm/obj/simul_efun'
program: (none), object: (none), ..file: (none)
The simul_efun (/adm/obj/simul_efun) and master (/adm/obj/master) objects must be loadable.
看来现要config.h文件,根椐配置文件,我们建一个目录:/include,并在此目录中加一个空文件globals.h,再运行:The master file /adm/obj/master was not loaded.,现在我们在obj目录中建一个空文件master.运行:No function get_root_uid() in master object; possibly the mudlib doesn't want PACKAGE_UIDS to be defined.看来空的master.c不行了,我们在master.c中加上如下语句:string get_root_uid() { return "Root"; }
string get_bb_uid() { return "Backbone"; }
string creator_file(string file) { return "Root"; },现在再运行,OK,MUDOS成功跑起来了.
但现在用zMUD连线connected后就lose了,怎么办,现在在master.c中加一如下语句:object connect(int port)
{
object ob;
ob = new(__DIR__"user.c");
return ob;
}.同时在master.c相同目录中新建一个空文件user.c,现在运行mudos,并连线,成功...
现在看看一共用了哪些文件和目录?
1. /log
2. /adm/obj/simul_efun.c
3. /include/globals.h
4. /adm/obj/master.c
5. /adm/obj/user.c
其中只有master.c中有内容,其它的都是空的,这5个加起来有多大?237字节,怎么样?