MAX_MAP_VISIBILITY exceeded.... GAH!!!

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators


  • I'm about 70% done with a fairly large map, and I get "MAX_MAP_VISIBILITY exceeded" at the VIS stage. The .ase models all have their spawnflags set to 4. Anything that isn't a wall, floor, or ceiling is a detail.

    Is there any way of getting around the MAX_MAP_VISIBILITY limit short of turning everything into detail brushes?

    (and why is that limit there in the first place?)
    2 GHz Mac Pro
    Mac OS X 10.6.2
    nvidia GeForce 8800 GT
    Clueless Newbie
    Keyboard killer
     
    Posts: 518
    Joined: Wed Jan 03, 2007 1:01 pm

Fri Oct 10, 2008 4:17 pm

  • Why it is there - simple. There has to be SOME limit, because it costs memory.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sat Oct 11, 2008 12:01 am

  • divVerent wrote:Why it is there - simple. There has to be SOME limit, because it costs memory.

    Well, no doubt. ;)
    Is this limit hardcoded in radiant or can it be overridden in a .cfg or .def file? The limits in radiant were set back when Q3 was new, weren't they? So it should be safe to increase them at least a little.
    2 GHz Mac Pro
    Mac OS X 10.6.2
    nvidia GeForce 8800 GT
    Clueless Newbie
    Keyboard killer
     
    Posts: 518
    Joined: Wed Jan 03, 2007 1:01 pm

Sat Oct 11, 2008 12:21 am

  • Backup you q3map2 binary (/usr/games/q3map2) and replace it with this:
    https://cat2.optus.nu/cat2/q3map2.bigvi ... oreplanes2
    (make that q3map2)

    (source: https://cat2.optus.nu/cat2/q3map2-bigvi ... ant.tar.gz)

    Or you can use netradiant's q3map2.

    Oh, Div: I hit a 32k brushlimit in netradiant q3map2. Could you apply my greater limit from the patchfile (I think it's all Fs)?


    The limits in q3map2 were so the mappers of ID wouldn't generate so much data in the bsps that the maps couldn't fit on the CD I assume.

    Remeber: when your map won't compile, don't fix your map (it's not broken), fix the compiler :).
    take_this_cup_of_poison
    Banned
     
    Posts: 198
    Joined: Sun Jan 20, 2008 2:25 am

Sat Oct 11, 2008 8:08 am

  • The limits were set to reduce RAM usage.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sat Oct 11, 2008 8:45 am

Sat Oct 11, 2008 12:46 pm

  • try to add:
    _blocksize 2048
    to worldspawn, it might produce worse vis but should make map compile
    User avatar
    Morphed
    Alien
     
    Posts: 197
    Joined: Tue Feb 28, 2006 10:41 pm
    Location: Poland

Sat Oct 11, 2008 5:10 pm

  • Morphed wrote:try to add:
    _blocksize 2048
    to worldspawn, it might produce worse vis but should make map compile

    Yeah, that worked. Thanks. 8)
    2 GHz Mac Pro
    Mac OS X 10.6.2
    nvidia GeForce 8800 GT
    Clueless Newbie
    Keyboard killer
     
    Posts: 518
    Joined: Wed Jan 03, 2007 1:01 pm

Sun Oct 12, 2008 1:57 pm

  • Now I see why the limits were there.

    For 32bit users (e.g. Win32), q3map2 no longer worked after the limits raising patch, because it allocated more than 2 GB even on moderately sized maps (that would compile with a regular q3map2).

    So for now, NetRadiant has the limits raising UNDONE. Anyone who wants to exceed the limits has to build his own q3map2 executable.

    However, anyone who succeeds at making some of the limits dynamic (so they can be either specified on the command line, or even better, so they automatically extend themselves when reached) is welcome to submit a patch - that then won't break 32bit platforms.
    1. Open Notepad
    2. Paste: ÿþMSMSMS
    3. Save
    4. Open the file in Notepad again

    You can vary the number of "MS", so you can clearly see it's MS which is causing it.
    User avatar
    divVerent
    Site admin and keyboard killer
     
    Posts: 3809
    Joined: Thu Mar 02, 2006 4:46 pm
    Location: BRLOGENSHFEGLE

Sun Oct 12, 2008 3:33 pm

  • divVerent wrote:Now I see why the limits were there.

    For 32bit users (e.g. Win32), q3map2 no longer worked after the limits raising patch, because it allocated more than 2 GB even on moderately sized maps (that would compile with a regular q3map2).

    Yikes!

    Regardless of the size of the map?

    Well, good thing I found another solution.
    2 GHz Mac Pro
    Mac OS X 10.6.2
    nvidia GeForce 8800 GT
    Clueless Newbie
    Keyboard killer
     
    Posts: 518
    Joined: Wed Jan 03, 2007 1:01 pm



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest