Shrinking map size
Shrinking map size
I wondered why a relative simple map with 150 brushes and some hundred actors has a big size of 13 MiB. Then I exported it to T3D, imported and build it: now it has a size of 3 MiB. I hope I lost nothing valuable.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Re: Shrinking map size
something in mylevel?
Good Bye. I'm leaving UT99 behind. I won't be around for UT's 30th.
Re: Shrinking map size
Of course I didn't close UnrealEd between ex- and import, so that all MyLevel stuff kept in memory and was taken over to the new map.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
- SteadZ
- Average
- Posts: 67
- Joined: Mon Mar 10, 2014 11:19 pm
- Personal rank: 1337
- Location: Scotland
- Contact:
Re: Shrinking map size
This is something a few people across at UnrealSP noticed not too long ago, seems essentially "garbage" is built up in the map file over time with rebuilds which contributes to file-size. Re-importing the map contents to a new file decreases the file size but you've not lost anything valuable
Another potential explanation is that the map contained high resolution lightmaps that were generated in 227 - these carry across to UT so long as you don't rebuild lighting there but it does increase the filesize. My guess is that it's the first explanation though.
Another potential explanation is that the map contained high resolution lightmaps that were generated in 227 - these carry across to UT so long as you don't rebuild lighting there but it does increase the filesize. My guess is that it's the first explanation though.
Re: Shrinking map size
I noticed that some maps that I made had thousands of red line paths. After rebuilding they were all gone.
Good Bye. I'm leaving UT99 behind. I won't be around for UT's 30th.
Re: Shrinking map size
Sorry, I forgot to mention the map: it is AS-Spacemars (April 2000) - the current MonsterHunt conversion is really bad and so I work on a better one.
(My question about Gustav Holst's 'Mars' is concerning this map.)
(My question about Gustav Holst's 'Mars' is concerning this map.)
Lines in T3D files longer than 1023 chars are cut off silently. But this is a rare condition.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Re: Shrinking map size
Big models usual cause.
Same stuff happen with NaZali map where grate movers generate too big models. So recreate them from t3d usually help.
From UTPT you can see which models take most size: After that you can export entire map to t3d and find what connected with this Models.
And do something with this items - like reimport from t3d, for example. (not entire map, just some brushes)
Best way for not lost something important. But possible not fast as recreate all from scratch.
Also v469 UnrealEd can build more effective .unr file. So can be used for this.
Same stuff happen with NaZali map where grate movers generate too big models. So recreate them from t3d usually help.
From UTPT you can see which models take most size: After that you can export entire map to t3d and find what connected with this Models.
And do something with this items - like reimport from t3d, for example. (not entire map, just some brushes)
Best way for not lost something important. But possible not fast as recreate all from scratch.
Also v469 UnrealEd can build more effective .unr file. So can be used for this.
Last edited by Buggie on Mon Dec 14, 2020 6:48 am, edited 1 time in total.
Re: Shrinking map size
What version of UTPT do you have? The version 2.0 beta 5 sorts the column "Size" alphabetically... masterpiece of software.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Re: Shrinking map size
I just tried it on a map I am doing, it lost about 400k.
Binary Space Partitioning
Re: Shrinking map size
I think it's groups, after I exported as T3d and re imported and lost 400k of a 7 meg map, I just noticed all the groups are gone, but the map had nothing missing.
Binary Space Partitioning
- sektor2111
- Godlike
- Posts: 6410
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Shrinking map size
Sample:
When you are adding actors to the map which it's in working stage some of useless bytes are OldLocation vector data. If you are importing a clean actor, this data it's no longer there - this is a sample of data-bytes decreasing map size but having the same content... It's why I added those functions in MapGarbage they are removing garbage for real, nobody ever needs that data in Editor, neither internal chain from Navigation Points, I believe those are created during reachSpecs calculations being not needed to be saved in map. All time 300-400k is removed this way + reducing/eliminating red builder template brush and culling Textures unused.
When you are adding actors to the map which it's in working stage some of useless bytes are OldLocation vector data. If you are importing a clean actor, this data it's no longer there - this is a sample of data-bytes decreasing map size but having the same content... It's why I added those functions in MapGarbage they are removing garbage for real, nobody ever needs that data in Editor, neither internal chain from Navigation Points, I believe those are created during reachSpecs calculations being not needed to be saved in map. All time 300-400k is removed this way + reducing/eliminating red builder template brush and culling Textures unused.
Re: Shrinking map size
The group markers still exist, but the names are not shown in UnrealEd's "Groups" window. Here is an example of a Brush in T3D format with a group marker set:
Code: Select all
Begin Actor Class=Brush Name=Brush1
...
PostScale=(SheerAxis=SHEER_ZX)
Group=GroupTest
Level=LevelInfo'MyLevel.LevelInfo0'
...
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett