MAX_MAP_VISIBLILTY


(SCDS_reyalP) #21

NO. that is wrong. The .prt is created in the BSP phase and used in the vis stage. If the map is leaked, it will not create one, but my suggestion was to see what is going on in the boxed map case to cause max visibility.

from tools/quake3/q3map2/bsp.c (which does the BSP pass)


	/* save out information for visibility processing */
	NumberClusters( tree );
	if( !leaked )
		WritePortalFile( tree );

-saveprt is set in the vis stage in case you want to keep it around after that, to look at it in the portal viewer. Otherwise, the vis stage deletes the .prt file, since there is no further need for it.


(FireFly) #22

@SCDS_reyalP: I’m a complete noob when it comes to coding, but from the code you posted:

if( !leaked ) WritePortalFile( tree ); 

I am reading this: ‘if map is leaked write a prt-file’ , so even if there’s a leak in the map it still tries to create a prt-file during the BSP stage ?


(SCDS_reyalP) #23

! means NOT in C.


(FireFly) #24

Aah, now I understand, so I should read it like this: “If map is not leaked write a prt-file”

I should really hang out more at the mod-making forum here at SD :fiesta:

thanks,


(LaggingTom) #25

Okay, so I don’t have a prt file because the map is leaking from an entity which is completely enclosed from the blank-space by two boxes. I’ve checked in all 3 2D views and also in the 3D view. Any clues?


(SCDS_reyalP) #26

Is there a leak line ?

What sort of entity is it ?

Does the message say ‘map leaked’ or just’entity leaked’ ? Entity leaked can mean there is an entity whose origin is in structure, which may be undesirable, but isn’t the same as a map leak.

Can you reduce it to a simple case that still causes the leak ? e.g. just the box with the ent in it ?

What version of q3map2 ?

edit:
If it is a brush based entity, have you manually set an origin key ?


(LaggingTom) #27

sigh Radiant, gotta love it.

The brush was in place properly when I gave up on it last night. So of course, I turn on the computer and start up radiant… and the bad entity was in the center of the map. Genius.