Re: DOOM?
Posted: Mon Feb 02, 2009 7:57 pm
"doom" is executableTandyman100 wrote:All that's in the 7z files is a text file that can't be the game. I got the WAD, but where's the executables and game engine?
"doom" is executableTandyman100 wrote:All that's in the 7z files is a text file that can't be the game. I got the WAD, but where's the executables and game engine?
An executable text file?Heavyiron wrote:"doom" is executableTandyman100 wrote:All that's in the 7z files is a text file that can't be the game. I got the WAD, but where's the executables and game engine?
I opened it up, and it is just a short ascii file with stuff like "I'm gonna kill you" in it.hidnplayr wrote:No the other file.
The one called "DOOM" (without the quotes)
Executables in KolibriOS dont have a file extension..
That must be DOOMRC.TXT you're talking about, open your eyes dude..Tandyman100 wrote:I opened it up, and it is just a short ascii file with stuff like "I'm gonna kill you" in it.hidnplayr wrote:No the other file.
The one called "DOOM" (without the quotes)
Executables in KolibriOS dont have a file extension..
Code: Select all
sprintf(plutoniawad, "%splutonia.wad", oomwaddir);
ovf « Mon Jan 05, 2015 9:20 pm » e-andrew: может помочь: http://doomwiki.org/wiki/IWAD
ovf « Mon Jan 05, 2015 9:20 pm » или http://zdoom.org/wiki/IWAD
Serge « Mon Jan 05, 2015 9:11 pm » e-andrew: в d_main.c идёт разбор версий.
Code: Select all
//
// IdentifyVersion
// Checks availability of IWAD files by name,
// to determine whether registered/commercial features
// should be executed (notably loading PWAD's).
//
void IdentifyVersion (void)
{
char* doom1wad;
char* doomwad;
char* doomuwad;
char* doom2wad;
char* doom2fwad;
char* plutoniawad;
char* tntwad;
char *home;
char *doomwaddir;
// doomwaddir = getenv("DOOMWADDIR");
// if (!doomwaddir)
doomwaddir = ".";
// Commercial.
doom2wad = malloc(strlen(doomwaddir)+1+9+1);
sprintf(doom2wad, "%s/doom2.wad", doomwaddir);
// Retail.
doomuwad = malloc(strlen(doomwaddir)+1+8+1);
sprintf(doomuwad, "%s/doomu.wad", doomwaddir);
// Registered.
doomwad = malloc(strlen(doomwaddir)+1+8+1);
sprintf(doomwad, "%s/doom.wad", doomwaddir);
// Shareware.
doom1wad = malloc(strlen(doomwaddir)+1+9+1);
sprintf(doom1wad, "%s/doom1.wad", doomwaddir);
// Bug, dear Shawn.
// Insufficient malloc, caused spurious realloc errors.
plutoniawad = malloc(strlen(doomwaddir)+1+/*9*/12+1);
sprintf(plutoniawad, "%splutonia.wad", doomwaddir);
tntwad = malloc(strlen(doomwaddir)+1+9+1);
sprintf(tntwad, "%s/tnt.wad", doomwaddir);
// French stuff.
doom2fwad = malloc(strlen(doomwaddir)+1+10+1);
sprintf(doom2fwad, "%s/doom2f.wad", doomwaddir);
// home = getenv("HOME");
// if (!home)
home = ".";
sprintf(basedefault, "%s/doomrc.txt", home);
if (M_CheckParm ("-shdev"))
{
gamemode = shareware;
devparm = true;
D_AddFile (DEVDATA"doom1.wad");
D_AddFile (DEVMAPS"data_se/texture1.lmp");
D_AddFile (DEVMAPS"data_se/pnames.lmp");
strcpy (basedefault,DEVDATA"default.cfg");
return;
}
if (M_CheckParm ("-regdev"))
{
gamemode = registered;
devparm = true;
D_AddFile (DEVDATA"doom.wad");
D_AddFile (DEVMAPS"data_se/texture1.lmp");
D_AddFile (DEVMAPS"data_se/texture2.lmp");
D_AddFile (DEVMAPS"data_se/pnames.lmp");
strcpy (basedefault,DEVDATA"default.cfg");
return;
}
if (M_CheckParm ("-comdev"))
{
gamemode = commercial;
devparm = true;
/* I don't bother
if(plutonia)
D_AddFile (DEVDATA"plutonia.wad");
else if(tnt)
D_AddFile (DEVDATA"tnt.wad");
else*/
D_AddFile (DEVDATA"doom2.wad");
D_AddFile (DEVMAPS"cdata/texture1.lmp");
D_AddFile (DEVMAPS"cdata/pnames.lmp");
strcpy (basedefault,DEVDATA"default.cfg");
return;
}
if ( !access (doom2fwad,R_OK) )
{
gamemode = commercial;
// C'est ridicule!
// Let's handle languages in config files, okay?
language = french;
D_AddFile (doom2fwad);
return;
}
if ( !access (doom2wad,R_OK) )
{
gamemode = commercial;
D_AddFile (doom2wad);
return;
}
if ( !access (plutoniawad, R_OK ) )
{
gamemode = commercial;
D_AddFile (plutoniawad);
return;
}
if ( !access ( tntwad, R_OK ) )
{
gamemode = commercial;
D_AddFile (tntwad);
return;
}
if ( !access (doomuwad,R_OK) )
{
gamemode = retail;
D_AddFile (doomuwad);
return;
}
if ( !access (doomwad,R_OK) )
{
gamemode = registered;
D_AddFile (doomwad);
return;
}
if ( !access (doom1wad,R_OK) )
{
gamemode = shareware;
D_AddFile (doom1wad);
return;
}
printf("Game mode indeterminate.\n");
gamemode = indetermined;
// We don't abort. Let's see what the PWAD contains.
//exit(1);
//I_Error ("Game mode indeterminate\n");
}
Если читать исходники, то в Ultimate Doom можно тоже поиграть, если назвать файл doomu.wade-andrew wrote:[...] потом doom.wad (полная первая часть с возможностью выбора любого из трех (! именно из трех, в ultimate doom вы не поиграете) эпизодов [...] Итак, подведем итог: для игры в первую часть (не ultimate) нужно кинуть в папку doom.wad (без еденички). [...]
Новый дум добавлен в автосборку?maxcodehack wrote:rev 8547
Портировал нормальный doom, залил вместо этого.