Page 1 of 1

Loading GWA files

Posted: Wed Nov 22, 2006 6:34
by nwbeeman
I'm programming a GZDoom launcher, and one if its options is to run GLBSP and create a GWA file. It creates the file fine, only problem is the way i've got it set up. I have a folder with ALL of the IDGAMES archive, I click on the zip, on the wad, the launcher builds the nodes, adds -file xxxxxxx.gwa or whatever to the command line, GZDoom reports /(path)/xxxxxx.gwa added (41 lumps) but it still says if developer mode is on BSP building time took xxx seconds.

I guess what the real question is, is if a GWA file has the same name as the WAD file, but is in a different directory, will GZDoom load it and use it with the -file parameter? If I build the GWA file in the same directory of the wad WINRAR says that a new file has been added, so I create the GWA file in the temp directory and point GZDoom there, to avoid WinRAR coming up as soon as GLBSP finishes.

Posted: Wed Nov 22, 2006 6:40
by nwbeeman
After searching for GWA, you said Graf, that you do not use GWA files. Is that the same way even if they are specified with the -file option? If I tell the compiler to put them in the wad, it will force WinRAR to update. Guess I could tell GLBSP to copy the wad to the temp directory as a file with the GLNodes in it.

Posted: Wed Nov 22, 2006 9:46
by Graf Zahl
GWA files are not loaded with -file. THe only way they work is if they are in the same folder as the map being loaded. Then they get loaded automatically. When trying to load GL nodes from the WAD directory they must be in the same WAD as the level itself. When loading directly from Zips GWA files will be ignored.

Anyway, I strongly recommend not to use GLBSP to build nodes for GZDoom. Better use ZDBSP. The renderer has been optimized for that when handling certain rendering hacks.

In most cases building GL nodes externally is a waste of time anyway. The internal node builder is fast enough to build nodes for even the largest levels I know of in less than 10 seconds assuming you have a reasonably fast computer.

Posted: Wed Nov 22, 2006 19:37
by nwbeeman
Graf Zahl wrote:GWA files are not loaded with -file. THe only way they work is if they are in the same folder as the map being loaded. Then they get loaded automatically. When trying to load GL nodes from the WAD directory they must be in the same WAD as the level itself. When loading directly from Zips GWA files will be ignored.

Anyway, I strongly recommend not to use GLBSP to build nodes for GZDoom. Better use ZDBSP. The renderer has been optimized for that when handling certain rendering hacks.

In most cases building GL nodes externally is a waste of time anyway. The internal node builder is fast enough to build nodes for even the largest levels I know of in less than 10 seconds assuming you have a reasonably fast computer.
Thanks for your reply.