Shrinking a map

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
Zero Angel
Attila
Posts: 1536
Joined: Mon Feb 21, 2011 12:54 am
Contact:

Shrinking a map

Post by Zero Angel »

A friend of mine completed work on an indoor map comprised of multi-level tunnel segments and I am trying to miniturize it. I've halved the physical size of the objects, halved the metersPerGrid setting in the TRN -- but now that the map is half the size but everything is spaced out so widely (as if the map was put through a potato cuber). I want to bring everything back to its original spacing relative to the size of the map so that it is all together. The BZN is ASCII, but editing the position of the objects the manual way is tedious and it's easy to make an easily overlooked error.

Is there an easier way to do it?
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: Shrinking a map

Post by MrTwosheds »

Well you would have to divide all the positioning data in the bzn by 2 as well, I cant see that being a pleasant process. It would seem easier to me to just replace everything in the editor.
User avatar
S.cavA.rmyG.en
Sabre
Posts: 296
Joined: Fri Mar 04, 2011 3:15 am
Location: ISDF Junk Yard
Contact:

Re: Shrinking a map

Post by S.cavA.rmyG.en »

can't wate to see the map.
indoors hmm.
User avatar
Zero Angel
Attila
Posts: 1536
Joined: Mon Feb 21, 2011 12:54 am
Contact:

Re: Shrinking a map

Post by Zero Angel »

Well, I did it. The tedious but accurate way of going into the BZN, finding all the 'Pos' entries, and halving their values. Took me about half an hour to do using the most efficient manual way possible (Find: 'Pos', F3, down arrow, replace, F3, F3, down arrow... replace, etc). I managed to make an exact, miniaturized duplicate of the map. The only problem is that the map edges (rubber band part, not untextured part) kicks in just a little ways before the edge of the 'arena'.
Last edited by Zero Angel on Fri Mar 30, 2012 4:43 am, edited 1 time in total.
User avatar
bigbadbogie
Bull Dog
Posts: 586
Joined: Mon Feb 21, 2011 8:12 am
Location: Ecuadorian Embassy

Re: Shrinking a map

Post by bigbadbogie »

Shift F9 the map and move the 'edge_path' to move the 'rubber band' radius.
User avatar
Red Spot
Attila
Posts: 1629
Joined: Mon Feb 21, 2011 6:14 pm
Location: The Netherlands

Re: Shrinking a map

Post by Red Spot »

Excel ... Copy paste it in there and add some formulas, copy back the changed data to the bzn-file.
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: Shrinking a map

Post by MrTwosheds »

! I didn't expect that to work! :D
1/2 size terrain would be excellent for sniper dm maps.
User avatar
Zero Angel
Attila
Posts: 1536
Joined: Mon Feb 21, 2011 12:54 am
Contact:

Re: Shrinking a map

Post by Zero Angel »

Yes, it does actually work quite decently. Another interesting thing with smaller grid sizes is that it also lowers the minimum building segment size meaning you can create terrain-owning buildings and even make buildings interiors out of segments that are 1/2 to 1/4 of the size of a the smallest terrain base plate (ie: power gen size) that are perfect for pilot missions and deathmatches.

That said, such technique, while it works and is playable in multiplayer -- would also need to be tested on lower-end machines to see if it is too hard on the FPS (e.g. EPIC uses larger grid sizes to create massive view distances, in theory smaller grid sizes should work in reverse, and cause additional strain to the CPU or GPU per given view distance)
User avatar
MrTwosheds
Recycler
Posts: 3059
Joined: Sat Feb 19, 2011 8:37 am
Location: Outer Space
Contact:

Re: Shrinking a map

Post by MrTwosheds »

Well you only need to see out as far as a sniper rifles range and in a sniper dm you will probably never come across a full base or huge army of units.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Shrinking a map

Post by Nielk1 »

Has something changed? Last time I reduced the size of the terrain grid below the default the game became laggingly unstable.
Post Reply