mapconv - Page 13

mapconv

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: mapconv

Post by Argh »

Oh! One quick question: what should I make the value of -u and -r, if I want to scale the map up? Previously, it failed if I changed those values from 16, 16 for my map...
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

what is the size you want?, and add -b 3, and try using smooth3x3.
smooth5x5 seems to have a problem with big maps.

maybe it is because the amount of floating point operations done, it is very big for 16x16 maps with 5x5 smoothing.
Last edited by user on 10 Feb 2008, 21:29, edited 1 time in total.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: mapconv

Post by Gota »

Wow you are moving fast.
What is the final goal?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

the current goal, is to make this tool good for mapping.

old mapconv had alot of problems, and nobody wanted to "waste" time fixing it.

i am improving mapconv and fixing its problems , to make it good for mapping.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: mapconv

Post by Argh »

what is the size you want?
I just wanted to see if I can resize from 16/16 to 32/32, just to test how that works.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

you can, but you need alot of memory for it, since rescaling a 10x10 to
16x16 takes about 150mb in the pagefile.

the good thing in rescaling, is that it is faster, and better than rescaling in an image editor, in an image editor, rescaling a 5120x5120 to 8192x8192 takes about 300-400mb or even more in the pagefile, and image editors dont have the mitchell rescaling filter.

does smooth5x5 works for you in a 16x16 map?
for me it crashes when it is starting.
for any other size it does work.

i am looking at it to find what is the problem.
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Re: mapconv

Post by genblood »

Still getting this 1 error message now.

I've made the changes, it compiles and I get only 1
error now.

Could Not Find D:\Spring-Maps\Tower-map\Build-4\temp\Temp*.png.Raw

Also, my Geos from the feature map isn't creating the
Geos.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

Code: Select all

Could Not Find D:\Spring-Maps\Tower-map\Build-4\temp\Temp*.png.Raw
no problem in there if you use texcompress you would get:

Code: Select all

Could Not Find D:\Spring-Maps\Tower-map\Build-4\temp\Temp*.dds
are you using featuretolerance and ignoreheight?, if not, try them.
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Re: mapconv

Post by genblood »

This what I've got in the special.txt

ignoreheight;
keepminimap;
smooth3x3;
featuretolerance;
formatpng;

This waht I've got in the compressor.txt

nvdxt.exe -file temp\*.png -nmips 5 -dxt1 -box -fadeamount 0

An this is whats in the bat file

mapconv.exe -l -i -x 275 -n 53 -m mi-mm10.png -a mi-hm10.png -t T-Delta-Map-1.png -f mi-mf8.png -c 0.5 -o Marble-Isles-V1.4.smf -q 100 -z compressor.txt -w special.txt
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

remove ignoreheight and featuretolerance, i will try to find what is the problem.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: mapconv

Post by Gota »

[MAP]
{
stuff
[WATER]
{
other stuff about water
WaterRepeatX=4;
WaterRepeatY=4;
}
}

argh remember this?
is this exactly how it should be done? i tried it and it failed..
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

cant you use normal water?

if WaterRepeat doesnt works, i have made a widget that renders water,
and the water can be customized.
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

1.2 is done now, but i will wait some time, to see if there arent any bugs.
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Re: mapconv

Post by genblood »

I took out the 2 line from the special.txt file

Here is some of the text output before the error
happens.

Here is some output

calculating map id
map id:7915169397671523391
converting it to something that can be used in spring...
map id:2101408832
saving heightmap...
saving type map...
creating minimap..
version 8.30
Reading mini.png [Processing] Writing .\mini.dds
saving minimap...
Creating tiles 480/1024 0%
.
.
.
.
Creating tiles 70636/112640 100%
Saving metal map...
current metalmap width:1409
current metalmap height:1281
Writing 0 features
Could Not Find D:\Spring-Maps\Tower-map\Buld-4\temp\Temp*.png.raw
Press any key to continue . . .


The only thing I didn't get was the type map statement ...
I'm not using a type map?
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: mapconv

Post by Gota »

cani have the widget to cutomize water please.
and i have to insert the widget into the map?
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

does the map loads on spring?,

Code: Select all

Writing 0 features
Could Not Find D:\Spring-Maps\Tower-map\Buld-4\temp\Temp*.png.raw
Press any key to continue . . .


this will happen if everything is correct, and no errors.

have you added the parameter -y typemap?, is the name correct?


about the widget, i will make a topic on lua scripts forum, it will come with 3 lua files, and the main image.
User avatar
genblood
Posts: 862
Joined: 19 Jan 2005, 03:37

Re: mapconv

Post by genblood »

The map compiles, but still getting that 1 error. I recompiled it with a type map in it.
Still getting that 1 error statement ... :(

On the other hand the texture looks much better now ...

New build ... main texture looks better ..

Image
Image

Old build ... main texture NOT so good ...

Image
Image


I will try a few other things ...
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

old one was made using texcompress, nvdxt is much better.

Code: Select all

Could Not Find D:\Spring-Maps\Tower-map\Buld-4\temp\Temp*.png.raw


this is not an error, allways happens.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: mapconv

Post by Gota »

ok.thereis no documentation of all the new features.
Can you please even just post here giving an example compilation files with al the commands and a short explanation about what they do.
CAn you please tell me what else do i need except of what is listed here:
http://spring.clan-sy.com/wiki/Maps:Compiling
all i need is how the old converter worked only without the lines running along the map nothing else
user
Posts: 452
Joined: 22 Jan 2008, 16:33

Re: mapconv

Post by user »

it is all on the readme, if you wait some time, 1.2 will be released, -w -z will be optional.

i will try to make the readme better, argh has made an example compilation file, it is included in the package, he is making some more.

it seems that the mapping wiki is outdated now.

the commands:

-w <text file>
example:
-w options.txt
in the file:

featuretolerance;
ignoreheight;
smooth3x3;
formatpng;

all the possible options for the file are:

featuretolerance;
ignoreheight;
minimap-fast; -new in 1.2
keepminimap;
smooth3x3;
smooth5x5;
smooth7x7; -new in 1.2
formatpng;
formatrgb;
formattif;
formatdds;
formatjpg;
formattga;
formatppm;
formatbmp;

only one of the formats and smooth matrices must be on the file.

-z <text file> example:
-z line.txt

in the file:

nvdxt.exe -file temp\*.png -dither -dxt1 -point -fadeamount 0

-k <number> ,k will only work if -w is being used, and -w must have
one of those options: (k is the number of iterations for smoothing)

smooth3x3;
smooth5x5;
smooth7x7;

the old converter would allways have lines, in this you can choose the compressor.
Post Reply

Return to “Map Creation”