New Doom Forums  
glBSP - New Doom Forums
Go Back   New Doom Forums > Source Ports > Doom Legacy > Legacy 2.0 Development

Reply
 
Thread Tools Display Modes
Old January 8th, 2007, 12:27 PM   #1
chippo
Commander Keen
 
chippo's Avatar
 
Join Date: Jan 2007
Posts: 83
glBSP

In another thread
Quote:
Originally Posted by Planky
You need to build gl nodes for the IWAD you are using. Simply download GLBSP, 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:
Code:
 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
chippo is offline   Reply With Quote
Old January 8th, 2007, 07:47 PM   #2
MR_ROCKET
 
MR_ROCKET's Avatar
 
Join Date: Apr 2001
Location: Somewhere between Space and Time
Posts: 5,185
Strange, I was able to run Doom2, Heretic and Hexen in Legacy2 just by drag and dropping the Iwads onto the 2 node builders. I didn't need any extra variables..Then I decided, screw this I'm making a batch file.

I haven't tried the shareware version though..
MR_ROCKET is offline   Reply With Quote
Old January 9th, 2007, 03:04 AM   #3
chippo
Commander Keen
 
chippo's Avatar
 
Join Date: Jan 2007
Posts: 83
Quote:
Originally Posted by MR_ROCKET
I haven't tried the shareware version though..
Hmm. Wonder if that might be it... No success; no computer shop in Cape Town sells any doom software. :-(

Aha! Success. A friend has the original floppy discs of Doom1 and Doom2 and will sell them to me for R20 (about 3 USD).

Nope. Shareware wasn't to problem. Time to follow the ancient Jedi advice: "Use the source, Luke!".

Ha! There it is. In util/w_wad.cpp in the function InitMultipleFiles(), is the enlightement I was needing. So I run the following command:
glbsp -q Doom.wad -o Doom.gwa

Then I init legacy-2 with:
./Legacy -opengl -iwad Doom.wad
and away we go. After a bit more glbsp'ing I can now play the following in opengl on legacy-2:
- Doom1 commercial
- Doom2 commercial
- Heretic shareware
- Freedoom 0.5

I have trouble with my Hexen shareware. After starting the game I get the splash screen, but when I hit escape, I get returned to the command prompt. Stderr.txt contains:
open /dev/sequencer: No such file or directory
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
(BTW, I've seen this /dev/sequencer error before on games that do work, so it's obviously not fatal.)

Stdout.txt had:
Code:
 Jan  8 2007               Doom Legacy 1.99.0 alpha5                   22:04:55
DOOM 2: Hell on Earth

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/hexen.wad (2856 lumps)
Added PWAD file /usr/share/games/doom/hexen.gwa (24 lumps)
Added GL information from file hexen.gwa.
COM_Init: Init the command buffer
SYS_Init: Init system-specific stuff.
Found 74 video modes
New OpenGL renderer created.
0 joystick(s) found.
SV_Init
Variable intermission is already defined
gravity set to 1
InitTextures...
InitSprites...
Initializing network...done.
CL_Init
V_Init: Init the video module.
HU_Init: Init the Heads Up Display
M_Init: Init menu.
R_Init: Init DOOM refresh daemon.
Reading ANIMDEFS...
 8 animations found.
S_Init: Init sound module.
 Audio device initialized: 22050 Hz, 1024 samples/slice.
 Music initialized.
I_InitCD: Init CD audio
 CD audio initialized.
Reading SNDINFO...
Warning: Alias sound 'Chat' already defined!
 480 sounds found.
Reading SNDSEQ...
 14 sequences found.
blood lasts for 20 seconds

Executing /home/chippo/.legacy/glconfig.cfg
Default resolution: 800 x 600 (8 bpp)
Couldn't execute file autoexec.cfg
I_SetVideoMode: fullscreen 800 x 600 (8 bpp)
Color depth in bits: R 5, G 6, B 5.
Alpha buffer depth 0 bits.
Depth buffer depth 16 bits.
OpenGL mode is double buffered.
Set OpenGL video mode 800x600x16. (fullscreen)
OpenGL Vendor:   NVIDIA Corporation
OpenGL renderer: RIVA TNT2/AGP/SSE2/forceSW
OpenGL version:  1.5.3 NVIDIA 71.74
Screen aspect ratio 1.33.
HUD aspect ratio 1.33.
StartMusic: HEXEN
Couldn't load music lump: Module format not recognized
Reading MAPINFO...
 New cluster 1 (map 1)
Nothing much of interest in there, this looks like a job for gdb.

Cheers,
chippo
chippo is offline   Reply With Quote
Old January 9th, 2007, 06:26 PM   #4
Planky
 
Join Date: Aug 2000
Location: New Zealand
Posts: 1,401
Hexen isn't supported by Legacy.
__________________
From the ashes of the fire, a new tree grows, and thus, Planky lives again
Planky is offline   Reply With Quote
Old January 10th, 2007, 03:33 AM   #5
smite-meister
 
smite-meister's Avatar
 
Join Date: Dec 2002
Location: Boston, MA
Posts: 572
Quote:
Originally Posted by chippo
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?
It has an entirely different OpenGL renderer.
glbsp does most of the work required for rendering a Doom map in OpenGL, and does it well, so we decided to make GL nodes a requirement.
As you noticed, the usual way of adding the GL nodes to an IWAD is to generate an additional file, originalfilename.gwa, which has only the nodes in it (so that the IWAD itself remains untouched).

Quote:
So I downloaded the software (and noticed that the bastards advertise several doom ports, but not us :-( )
Quiet, Andrew might be listening
Quote:
Originally Posted by Planky
Hexen isn't supported by Legacy.
Oh yes it is. Almost fully. We're speaking about Legacy 2, remember?
__________________
Member of the DooM Legacy Team
smite-meister is offline   Reply With Quote
Old January 10th, 2007, 11:34 AM   #6
Planky
 
Join Date: Aug 2000
Location: New Zealand
Posts: 1,401
Oops. .
__________________
From the ashes of the fire, a new tree grows, and thus, Planky lives again
Planky is offline   Reply With Quote
Old January 12th, 2007, 06:34 PM   #7
g6672D
 
Join Date: Oct 2005
Location: Unknown
Posts: 1,330
Has anyone got the latest version for testing? I'm getting mighty excited again.
g6672D is offline   Reply With Quote
Old January 18th, 2007, 09:38 PM   #8
chippo
Commander Keen
 
chippo's Avatar
 
Join Date: Jan 2007
Posts: 83
Quote:
Originally Posted by g6672D
Has anyone got the latest version for testing? I'm getting mighty excited again.
Of what? glBSP can be downloaded here:
http://glbsp.sourceforge.net/
chippo is offline   Reply With Quote
Old January 18th, 2007, 09:51 PM   #9
Aliotroph?
 
Join Date: Jul 2001
Location: The frozen wastes of Quan'ideery
Posts: 9,095
I think he meant Legacy.
__________________
Aliotroph.post_count++;
Aliotroph? is offline   Reply With Quote
Old January 19th, 2007, 02:35 AM   #10
g6672D
 
Join Date: Oct 2005
Location: Unknown
Posts: 1,330
LOL! LEGACY! LEGACY! Win32 version!
g6672D is offline   Reply With Quote
Old January 19th, 2007, 04:01 AM   #11
Ajapted
 
Ajapted's Avatar
 
Join Date: Mar 2005
Location: Tasmania
Posts: 338
Quote:
Originally Posted by chippo
So I downloaded the software (and noticed that the bastards advertise several doom ports, but not us :-( )
Only one poor bastard works on glBSP

I'll gladly add Legacy to the list. You could have sent me an email instead of moaning here.
Ajapted is offline   Reply With Quote
Old January 19th, 2007, 04:35 AM   #12
chippo
Commander Keen
 
chippo's Avatar
 
Join Date: Jan 2007
Posts: 83
Quote:
Originally Posted by Ajapted
Only one poor bastard works on glBSP
Only one person!? Wow! And it supports 6 different compilers across 4 operating systems. And (at least on linux) it compiles with -Wall, and not a single warning!

Quote:
Originally Posted by Ajapted
I'll gladly add Legacy to the list. You could have sent me an email instead of moaning here.
I'm terribly terribly sorry! I wasn't moaning; it was supposed to be a joke. I've had the exact problem before, in online forums (ae?) where I think I'm being funny, but nobody else sees it that way.

I can't speak for anyone else (on this forum), but I always imagined that we'd get all the advertising we wanted via the features that we put in. I didn't mind at all that glBSP's website didn't mention us. I also wouldn't mind if it did.

Anyways, sorry again. I'll try harder to keep my posts to technical stuff and try even harder to avoid humour, 'cos obviously I'm not good at it.

Cheers,
chippo
chippo is offline   Reply With Quote
Old January 19th, 2007, 09:14 AM   #13
MR_ROCKET
 
MR_ROCKET's Avatar
 
Join Date: Apr 2001
Location: Somewhere between Space and Time
Posts: 5,185
Well until Legacy2 came along the older Legacy versions would use the Zennode node builder, mainly for gl nodes. But yeah now days, Legacy2 needs glBSP.
Anyways chippo I thought it was funny

And yeah, we need a win32 compiled update ! plz*confused*
MR_ROCKET is offline   Reply With Quote
Old January 19th, 2007, 10:54 AM   #14
Aliotroph?
 
Join Date: Jul 2001
Location: The frozen wastes of Quan'ideery
Posts: 9,095
Yeah, it was kinda funny.
__________________
Aliotroph.post_count++;
Aliotroph? is offline   Reply With Quote
Old January 20th, 2007, 10:57 PM   #15
Ajapted
 
Ajapted's Avatar
 
Join Date: Mar 2005
Location: Tasmania
Posts: 338
Quote:
Originally Posted by chippo
Only one person!? Wow! And it supports 6 different compilers across 4 operating systems. And (at least on linux) it compiles with -Wall, and not a single warning!
Aww shucks .

My comment about having a moan was truly tongue-in-cheek, no need to apologise, definitely no offence taken!
Ajapted is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GLBSP utility not found gamer Tech Support 3 November 23rd, 2005 05:20 AM
glBSP & jump problems Poparelli Doomsday 2 August 3rd, 2005 01:41 AM
Downgrading to glBSP 1.96? skyjake Doomsday 4 July 12th, 2004 01:14 PM
GLBSP v 2.05 Slide Doomsday 6 January 8th, 2004 01:21 PM


All times are GMT -7. The time now is 01:30 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
NewDoom.com © 2000-2009 Mindless Games & Entertainment. All Rights Reserved.