Map file too big

Discussion in 'Mapping Questions & Discussion' started by XEnderFaceX, Nov 8, 2017.

  1. XEnderFaceX

    XEnderFaceX L4: Comfortable Member

    Messages:
    169
    Positive Ratings:
    48
    Hi

    My map, pl_badyard file size is 51MB, thats way too big

    I had alot of AreaPortals and AreaPortals are expensive, so i deleted almost all of them and then i recompiled it with CompilePal, now its 52MB?! What?

    im mostly using Frontline Assets

    Whats the reason for this?
     
  2. red3pit

    red3pit L6: Sharp Member

    Messages:
    258
    Positive Ratings:
    280
    • Agree Agree x 2
  3. henke37

    aa henke37

    Messages:
    1,914
    Positive Ratings:
    448
    Area portals are dirt cheap when it comes to the file size. What you read was talking about the rendering cost. And they aren't expensive there either. They are supposed to lower the rendering cost!

    If you want to reduce the file size, go for the textures. That's not just the packed content, but also the lightmaps for all the brushes in the map. Correct use of materials without lightmaps such as nodraw and using the correct lightmap scale can greatly help reduce the file size.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  4. iiboharz

    aa iiboharz Meme Queen

    Messages:
    715
    Positive Ratings:
    1,037
    Just for the record, 51MB is pretty reasonable, especially considering there's maps that come stock with the game that are around 80 megs.
     
    • Agree Agree x 1
  5. hutty

    aa hutty

    Messages:
    471
    Positive Ratings:
    373
    for a fully detailed map, yeah 50MB is reasonable, although if your putting a map that big in map tests you might have issues with users taking a while to download it. (thats a 6 minute download for me)

    The notes about areaportals on being costly on the wiki are probably from 2003 in regards to hl2, an area portal needs to constantly check which entities are visible in order to know what to cut, so if the checking process takes more time than rendering those entities an areaportal will slow you down. This is almost never the case, unless you have an insanely dense map or a dumb amount of area portals.