Page 2 of 3

Re: New mapconv that works flawlessy on linux

Posted: 24 Aug 2011, 23:32
by tizbac
Win64 build , please test it , cause i had to use some hacks to get mingw64 work with cmake

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 01:41
by koshi
tizbac wrote:...maybe a graphical editor on top of it
Here's my fork (dunno where the original went) of DasBruce's wx frontend. Maybe you can coordinate/re-use some stuff of his when you actually tackle a GUI.

edit: will prolly have a buntu package for this sometime later today

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 10:56
by tizbac
If you do it it's ok , cause i didn't like wx last time i used it, otherwise i'll do it with Qt , the map compiler can be used as library too , if you want i can add function to pass raw data as image directly

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 11:50
by koshi
I meant a package for your mapconv. The inital debianization is done and it's currently waiting to be built on launchpad: https://launchpad.net/~koshi/+archive/ppa/+packages
If someone wants to try it right now, here's a amd64 build from my desktop box: http://filebin.springlobby.info/mapconv ... _amd64.deb

I wouldn't start a new GUI project with wx either and would prefer Qt btw.

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 12:13
by tizbac
Maybe spring could be hacked to support map creation directly

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 12:28
by tizbac
koshi wrote:I meant a package for your mapconv. The inital debianization is done and it's currently waiting to be built on launchpad: https://launchpad.net/~koshi/+archive/ppa/+packages
If someone wants to try it right now, here's a amd64 build from my desktop box: http://filebin.springlobby.info/mapconv ... _amd64.deb

I wouldn't start a new GUI project with wx either and would prefer Qt btw.
Be careful ,the "decompiler" target has a too generig name , maybe rename it to smfdecompiler

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 13:25
by koshi
Right, will do. Mind if I lowercase the other binary target?

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 13:50
by smoth
tizbac wrote:I've tweaked compression so that it creates no artifacts at all, tiles that are equal 100% even if compression is disabled they are reused
so even with compression off you match 100% equal tiles. Ok what about compression on, you say no artifacts but at high compression how do you avoid that?

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 14:19
by tizbac
koshi wrote:Right, will do. Mind if I lowercase the other binary target?
If you lowercase the name , decompiler generated makefiles won't work

Re: New mapconv that works flawlessy on linux

Posted: 25 Aug 2011, 14:21
by tizbac
smoth wrote:
tizbac wrote:I've tweaked compression so that it creates no artifacts at all, tiles that are equal 100% even if compression is disabled they are reused
so even with compression off you match 100% equal tiles. Ok what about compression on, you say no artifacts but at high compression how do you avoid that?
I've added a nonlinear matching , that if a single pixel is more than 30 different ( noticeable by looking at it ) , it will count like 50 pixels different , so it is unlikely to be reused , unless you use more than 0.8 as th value

Re: New mapconv that works flawlessy on linux

Posted: 30 Aug 2011, 22:16
by wolas
if you use -o ./somedir/ map texture will be broken.

By the way thanks, launching mapconv under wine was pain :)

Re: New mapconv that works flawlessy on linux

Posted: 30 Aug 2011, 23:07
by koshi
Forgot to mention that I've made this available via the spring ppa: https://launchpad.net/~spring/+archive/ppa
Maybe you could start tagging commits that you deem notable advances? I'd then update the package for those.

Re: New mapconv that works flawlessy on linux

Posted: 27 Sep 2011, 01:09
by abma
wiki page: http://springrts.com/wiki/MapConvNG

can someone with the knowledge write a howto for mapconvng + deprecate all mapconv howtos?

Re: New mapconv that works flawlessy on linux

Posted: 28 Nov 2011, 06:56
by zoggop
Hmm, SpringMapConvNG.exe keeps crashing for me. To see if it was a problem with my map, I tried using decompiler.exe on DesertTriad, and then running the make.bat it spits out. It gets to "Compress done, ratio 99.4446" and then will either crash or seemingly quit normally. Either way, all that gets written is an empty (0 bytes) DesertTriad.smt and no DesertTriad.smf
However, it did work once with my own map! I just can't seem reproduce that. I'm running Windows XP.

Re: New mapconv that works flawlessy on linux

Posted: 02 Dec 2011, 06:07
by zoggop
So nobody else has this problem? I thought maybe it was because I'm running XP, but i just tried it on a computer running Vista and it does the same thing. The strangest thing is that it crashes 90% of the time, but every once in a while, it works, and if I use the exact same command line options again, it will crash again. The one thing that seems almost consistent is that if I specify a minimap, it crashes after loading the minimap, and never gets to compressing tiles. But then, every once in a while, the minimap works, too. Am I in some sort of parallel universe?

From Windows Event Viewier:

Code: Select all

Faulting application springmapconvng.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.6055, fault address 0x00018b9a.

Re: New mapconv that works flawlessy on linux

Posted: 12 Jan 2012, 10:53
by kfriars
So I have a Texture Map, Metal Map and Height Map that compiled fine on behe's mapconv, but when I compile it on Linux with mapconvng it doesnt complain and when I open it in Spring I just get the flat Texture Map rotated 180 deg and submersed under the water. Any Idea what is going on? Thanks in advance.

Re: New mapconv that works flawlessy on linux

Posted: 12 Jan 2012, 15:38
by Cheesecan
10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:

Re: New mapconv that works flawlessy on linux

Posted: 12 Jan 2012, 16:16
by kfriars
Cheesecan wrote:10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:
I'm confused...

Re: New mapconv that works flawlessy on linux

Posted: 19 Feb 2012, 03:50
by abma
the win32 build crashes for me, too.

can someone please rebuild the current source?

Code: Select all

SpringMapConvNG -t texture.png -h heightmap.png -z typemap.png -m metalmap.png -maxh 500.000000 -minh 225.000000 -th 0.8 -ct 4
-features features.txt -o "DesertTriad"
Range : 263 -> 64768
Compressing  8432350/   16384      -  16285 tiles
Compress done , ratio: 99.4446
then it crashes.

Output looks weird, maybe my commit fixed that already. (https://github.com/tizbac/SpringMapConv ... 162#L0R700 )

to reproduce: just decompile / compile http://api.springfiles.com/?springname=DesertTriad on windows (with wine it didn't crash)

gdb output: http://pastebin.com/WNUjqp03

Re: New mapconv that works flawlessy on linux

Posted: 19 Feb 2012, 17:41
by abma
i wasted more time on trying to fix the crash on win32:

https://github.com/tizbac/SpringMapConvNG/issues/6

but didn't find a proper solution.... only commenting out free() fixed it for me. any ideas whats wrong? (see the bug report)