chippo
January 8th, 2007, 12:27 PM
In another threadYou need to build gl nodes for the IWAD you are using. Simply download GLBSP (http://glbsp.sourceforge.net/), then drag and drop the IWAD onto the executable (Im assuming it will behave the same way in Linux). This will build the gl-nodes and allow you to play it with Legacy 2.
Since glBSP is needed to run the opengl version of legacy, and you do need to compile it, maybe it should be mentioned in docs/compiling.html.
I know this is the wrong forum, but does anyone know why it is that legacy-1 doesn't need gl nodes to run the WADs with opengl rendering?
So I downloaded the software (and noticed that the bastards advertise several doom ports, but not us :-( ), compiled painlessly and installed. I then ran it like so:
glbsp -warn Doom1.wad -o bsp-Doom1.wad
in my DOOMWADDIR, and the output looked promising:
Saving WAD as bsp-Doom1.wad
Total serious warnings: 0
Total minor warnings: 2
All levels were built successfully.
The two warnings:
Warning: Sector #7 is unclosed near (-220.0,-1920.0)
Warning: Subsector #376 near (-324.0,-1920.0) is not closed (1 gaps, 1 segs)
were both on E1M3, so I figured that they shouldn't be a problem if I only want to play the first level.
So then I ran the game with:
./Legacy -opengl -iwad bsp-Doom1.wad
and the menus were fine, but as the game should have started I got a black screen. TAB wouldn't produce any (visible) map, and firing didn't produce any sound. Musta crashed, and maybe even crashed X!!! Nope, hitting escape brings us the menus and OPTIONS seems to work and QUIT works, but READ THIS! just gives a blank screen.
OK, maybe something wrong with my id shareware Doom1.wad (though it seems to be fine in legacy-2 with software rendering and legacy-1 with opengl). Lemme try my Heretic1.wad (also id shareware).
The glbsp params and output was similar, but this time there were 14 similar warnings but all in the last level. So I similarly try to run it, and immediately I get my prompt back (i.e. no seg fault). Stderr.txt contains:
Error: FileCache::GetNumForName: STCFN033 not found!
while stdout.txt contains: Jan 8 2007 Doom Legacy 1.99.0 alpha5 22:04:55
DOOM Registered Startup
Z_Init: Init zone memory allocation daemon.
W_Init: Init WADfiles.
Added PWAD file /usr/share/games/doom/legacy.wad (89 lumps)
Added IWAD file /usr/share/games/doom/bsp-Heretic1.wad (1428 lumps)
COM_Init: Init the command buffer
SYS_Init: Init system-specific stuff.
Found 27 video modes
New OpenGL renderer created.
0 joystick(s) found.
SV_Init
Variable intermission is already defined
gravity set to 1
InitTextures...
Patch 'WALL522' (57) not found!
Patch 'WALL520' (58) not found!
Patch 'WALL519' (59) not found!
Patch 'WALL523' (60) not found!
Patch 'WALL508' (61) not found!
Patch 'WALL529' (62) not found!
Patch 'WALL512' (63) not found!
Patch 'WALL524' (64) not found!
Patch 'WALL525' (65) not found!
Patch 'WALL526' (66) not found!
Patch 'WALL527' (67) not found!
Patch 'WALL528' (68) not found!
Patch 'WALL515' (69) not found!
Patch 'WALL516' (70) not found!
Patch 'WALL517' (71) not found!
Patch 'WALL500' (72) not found!
Patch 'WALL511' (73) not found!
Patch 'WLLLVFL1' (74) not found!
Patch 'WLLLVFL2' (75) not found!
Patch 'WLLLVFL3' (76) not found!
Patch 'WALL509' (77) not found!
Patch 'WALL501' (78) not found!
Patch 'WALL502' (79) not found!
Patch 'WALL503' (80) not found!
Patch 'WALL504' (81) not found!
Patch 'WALL505' (82) not found!
Patch 'WALL506' (83) not found!
Patch 'SKY2' (84) not found!
Patch 'SKY3' (85) not found!
Patch 'WALL530' (86) not found!
Patch 'WALL513' (87) not found!
Patch 'WALL518' (88) not found!
Patch 'WALL510' (89) not found!
Patch 'WLLWTFL1' (90) not found!
Patch 'WLLWTFL2' (91) not found!
Patch 'WLLWTFL3' (92) not found!
Unknown flat type: lump ' F_SKY1' in the file '/usr/share/games/doom/bsp-Heretic1.wad'.
InitSprites...
Initializing network...done.
CL_Init
V_Init: Init the video module.
HU_Init: Init the Heads Up Display
Closing OpenGL renderer.
Shutting down joysticks.
Joystick subsystem closed cleanly.
Then I try glbsp on my freedoom WAD, and the result was similar to one of the above (can't remember which, though, and I don't have that WAD anymore).
Then I assumed that maybe I was using the wrong parameters to glbsp, and ran 'glbsp -help'. I couldn't really understand much there. I read the man page (slight understanding) and the USAGE.txt, but I still can't really figure out what parameters I should use.
So while thinking about producing a bug report, I realised that I can't actually clearly state which exact version of which WAD I'm using (for other people in this forum to compare with). Then I remembered that smite-meister had once said: "I assume you're using freedoom-0.5". I wasn't, so I went and downloaded the file freedoom-iwad-0.5.zip.
I glbsp'ed as usual, and brought up legacy-2. It works! Viva, viva, viva! I now have legacy-2 working in fullscreen and opengl.
But my question is - is there anything (like different params to glbsp) that I can do to correctly create the gl nodes for the id shareware WADs?
TIA,
chippo
Since glBSP is needed to run the opengl version of legacy, and you do need to compile it, maybe it should be mentioned in docs/compiling.html.
I know this is the wrong forum, but does anyone know why it is that legacy-1 doesn't need gl nodes to run the WADs with opengl rendering?
So I downloaded the software (and noticed that the bastards advertise several doom ports, but not us :-( ), compiled painlessly and installed. I then ran it like so:
glbsp -warn Doom1.wad -o bsp-Doom1.wad
in my DOOMWADDIR, and the output looked promising:
Saving WAD as bsp-Doom1.wad
Total serious warnings: 0
Total minor warnings: 2
All levels were built successfully.
The two warnings:
Warning: Sector #7 is unclosed near (-220.0,-1920.0)
Warning: Subsector #376 near (-324.0,-1920.0) is not closed (1 gaps, 1 segs)
were both on E1M3, so I figured that they shouldn't be a problem if I only want to play the first level.
So then I ran the game with:
./Legacy -opengl -iwad bsp-Doom1.wad
and the menus were fine, but as the game should have started I got a black screen. TAB wouldn't produce any (visible) map, and firing didn't produce any sound. Musta crashed, and maybe even crashed X!!! Nope, hitting escape brings us the menus and OPTIONS seems to work and QUIT works, but READ THIS! just gives a blank screen.
OK, maybe something wrong with my id shareware Doom1.wad (though it seems to be fine in legacy-2 with software rendering and legacy-1 with opengl). Lemme try my Heretic1.wad (also id shareware).
The glbsp params and output was similar, but this time there were 14 similar warnings but all in the last level. So I similarly try to run it, and immediately I get my prompt back (i.e. no seg fault). Stderr.txt contains:
Error: FileCache::GetNumForName: STCFN033 not found!
while stdout.txt contains: Jan 8 2007 Doom Legacy 1.99.0 alpha5 22:04:55
DOOM Registered Startup
Z_Init: Init zone memory allocation daemon.
W_Init: Init WADfiles.
Added PWAD file /usr/share/games/doom/legacy.wad (89 lumps)
Added IWAD file /usr/share/games/doom/bsp-Heretic1.wad (1428 lumps)
COM_Init: Init the command buffer
SYS_Init: Init system-specific stuff.
Found 27 video modes
New OpenGL renderer created.
0 joystick(s) found.
SV_Init
Variable intermission is already defined
gravity set to 1
InitTextures...
Patch 'WALL522' (57) not found!
Patch 'WALL520' (58) not found!
Patch 'WALL519' (59) not found!
Patch 'WALL523' (60) not found!
Patch 'WALL508' (61) not found!
Patch 'WALL529' (62) not found!
Patch 'WALL512' (63) not found!
Patch 'WALL524' (64) not found!
Patch 'WALL525' (65) not found!
Patch 'WALL526' (66) not found!
Patch 'WALL527' (67) not found!
Patch 'WALL528' (68) not found!
Patch 'WALL515' (69) not found!
Patch 'WALL516' (70) not found!
Patch 'WALL517' (71) not found!
Patch 'WALL500' (72) not found!
Patch 'WALL511' (73) not found!
Patch 'WLLLVFL1' (74) not found!
Patch 'WLLLVFL2' (75) not found!
Patch 'WLLLVFL3' (76) not found!
Patch 'WALL509' (77) not found!
Patch 'WALL501' (78) not found!
Patch 'WALL502' (79) not found!
Patch 'WALL503' (80) not found!
Patch 'WALL504' (81) not found!
Patch 'WALL505' (82) not found!
Patch 'WALL506' (83) not found!
Patch 'SKY2' (84) not found!
Patch 'SKY3' (85) not found!
Patch 'WALL530' (86) not found!
Patch 'WALL513' (87) not found!
Patch 'WALL518' (88) not found!
Patch 'WALL510' (89) not found!
Patch 'WLLWTFL1' (90) not found!
Patch 'WLLWTFL2' (91) not found!
Patch 'WLLWTFL3' (92) not found!
Unknown flat type: lump ' F_SKY1' in the file '/usr/share/games/doom/bsp-Heretic1.wad'.
InitSprites...
Initializing network...done.
CL_Init
V_Init: Init the video module.
HU_Init: Init the Heads Up Display
Closing OpenGL renderer.
Shutting down joysticks.
Joystick subsystem closed cleanly.
Then I try glbsp on my freedoom WAD, and the result was similar to one of the above (can't remember which, though, and I don't have that WAD anymore).
Then I assumed that maybe I was using the wrong parameters to glbsp, and ran 'glbsp -help'. I couldn't really understand much there. I read the man page (slight understanding) and the USAGE.txt, but I still can't really figure out what parameters I should use.
So while thinking about producing a bug report, I realised that I can't actually clearly state which exact version of which WAD I'm using (for other people in this forum to compare with). Then I remembered that smite-meister had once said: "I assume you're using freedoom-0.5". I wasn't, so I went and downloaded the file freedoom-iwad-0.5.zip.
I glbsp'ed as usual, and brought up legacy-2. It works! Viva, viva, viva! I now have legacy-2 working in fullscreen and opengl.
But my question is - is there anything (like different params to glbsp) that I can do to correctly create the gl nodes for the id shareware WADs?
TIA,
chippo