Reduce the scale of a map?

Interesting mapping tools and mapping help.

Moderator: Morax

Reduce the scale of a map?

Postby Freedomfighter » 22 Jan 2018, 20:03

Is there a way to take a 20K map and reduce the scale so its exactly the same but only 10k say without having to completely remake the map?
Freedomfighter
Avatar-of-War
 
Posts: 77
Joined: 26 Oct 2014, 12:54
Has liked: 12 times
Been liked: 31 times
FAF User Name: Freedom_

Re: Reduce the scale of a map?

Postby Lionhardt » 28 Jan 2018, 04:26

Either import the heightmap into something like blender and shrink it, then it will be proportionately, or shrink the map in an image editor and adjust the the weight of the grey values... however I don't know the formula that tells you how much you need to reduce the amplitude of the weight curve, maybe somebody else does. Otherwise you need to trial-and-error it, but those ways do work in theory.

In P this is the weight adjustment for the grey values: https://youtu.be/35tU-PeXQAY?t=208
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Reduce the scale of a map?

Postby Uveso » 28 Jan 2018, 11:55

Don't forget to adjust the coordinates from mexes, waypoints, start locations etc in the map-script files !
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: Reduce the scale of a map?

Postby Morax » 29 Jan 2018, 17:43

Lionhardt wrote:In P this is the weight adjustment for the grey values: https://youtu.be/35tU-PeXQAY?t=208


I was thinking that would be some super professional tutorial but I think you posted the news ; )
Maps and Modifications Councilor

M&M Discord Channel

Come join us and help create content with the artists of FAF.
User avatar
Morax
Councillor - Maps and Mods
 
Posts: 2865
Joined: 25 Jul 2014, 18:00
Has liked: 1167 times
Been liked: 662 times
FAF User Name: Morax

Re: Reduce the scale of a map?

Postby Lionhardt » 29 Jan 2018, 19:00

Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Reduce the scale of a map?

Postby Egon » 06 Feb 2018, 23:41

It is possible to scale/import/copy/mirror everything except props, markers and Units which can only be copied/mirrored and not scaled.

these tools are needed:
Photoshop or Gimp
Official SupCom Editor
Hazardx Marker Editor
FAF Map Editor

Heightmap:
open with gimp or PS scale image size to half
when importing with off. Editor, reduce huwhite value from 128 to 64 to scale height to half

Decals:
open map with offical editor
select all decals
scale them down by leftmouse klicking the small S+- symbol on any of them
drag them to the left top quarter of your map
ctrl+c
open 10x10 map and ctrl+v

Markers:
always do changes to markers on your smaller map
this way u can atleast import them to the larger map with hazardx marker editor
scale them manually

Strata:
(i did import double sized masks directly with FAF Map Editor once, however this does not work anymore for me)
open 20x20 map with FAF Map Editor and goto Textures
export every Mask and Stratum settings of the Layers needed
scale image size of the Masks to half in PS or Gimp
open 10x10 map and import settings and modified Masks

Light/Water
export import with off. Editor or FAF Map Editor

Units:
i did not find a good method for them
they tend to loose their decals when copying
mess up the save.lua
have to be rescaled manually
looks too much thinned out
so its best to redo them anyway

props/waves/skybox/background:
have to be (re)done manually
Egon
Avatar-of-War
 
Posts: 57
Joined: 14 Oct 2015, 03:53
Location: Deutschland
Has liked: 14 times
Been liked: 14 times
FAF User Name: FAF_Egon

Re: Reduce the scale of a map?

Postby Lionhardt » 07 Feb 2018, 07:12

I don't know if ozonex' editor can scale and rotate markers, props etc by now. If not, I am working on a script for that at the moment. Need to write it two times though, as props are stores in binary format in .scmap which first needs to be parsed while markers are easily accessible in _save.lua can be parsed by lua itself. For parsing and wring the .scmap file b2ag's map parser can be used: https://github.com/b2ag/scmap_mirror_tool

This is the synopsis of the script I am writing, so you have an idea of what I want to do:

Code: Select all
Usage: transform.lua [-m] [-u] [-t <times>] [-c] [-h] <infile>
       <command> ...

Arguments:
   infile                input file (-save.lua file)

Options:
   -m, --markers         Apply transformation to markers.
   -u, --units           Apply transformation to units.
   -t <times>, --times <times>
                         Apply transformation n times. (default: 1)
   -c, --copy            Copy objects each transformation.
   -h, --help            Show this help message and exit.

Commands:
   rotate                Rotate by degrees.
   scale                 Scale by factor.
   translate             Translate by units of length.



Edit: until I finish this (new lua version of the) script you can give it a shot with the previous old and uber-hacky script I wrote in python for that 2 years ago:

viewtopic.php?f=53&t=10413#

It's really poor code and probably very buggy... but it does the job... sort of.
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Reduce the scale of a map?

Postby Lionhardt » 14 Feb 2018, 03:24

Script is ready to use if you still need it. Not quite feature complete yet though: https://github.com/LionhardtFAF/Mapping ... sformation
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Reduce the scale of a map?

Postby Freedomfighter » 28 Feb 2018, 15:54

Yeah, I completely remade the map from scratch before any of the replies had been sent. And since then I haven't touched it again, might try again at the weekend.
Freedomfighter
Avatar-of-War
 
Posts: 77
Joined: 26 Oct 2014, 12:54
Has liked: 12 times
Been liked: 31 times
FAF User Name: Freedom_


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest