New mapconv that works flawlessy on linux - Page 2

New mapconv that works flawlessy on linux

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

Moderator: Moderators

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 24 Aug 2011, 23:32

Win64 build , please test it , cause i had to use some hacks to get mingw64 work with cmake
Attachments
SpringMapConvNG_2_x64.7z
(746.36 KiB) Downloaded 288 times
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: New mapconv that works flawlessy on linux

Post by koshi » 25 Aug 2011, 01:41

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
0 x

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 25 Aug 2011, 10:56

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
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: New mapconv that works flawlessy on linux

Post by koshi » 25 Aug 2011, 11:50

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.
0 x

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 25 Aug 2011, 12:13

Maybe spring could be hacked to support map creation directly
0 x

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 25 Aug 2011, 12:28

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
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: New mapconv that works flawlessy on linux

Post by koshi » 25 Aug 2011, 13:25

Right, will do. Mind if I lowercase the other binary target?
0 x

User avatar
smoth
Posts: 22295
Joined: 13 Jan 2005, 00:46

Re: New mapconv that works flawlessy on linux

Post by smoth » 25 Aug 2011, 13:50

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?
0 x

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 25 Aug 2011, 14:19

koshi wrote:Right, will do. Mind if I lowercase the other binary target?
If you lowercase the name , decompiler generated makefiles won't work
0 x

User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac » 25 Aug 2011, 14:21

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
0 x

wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: New mapconv that works flawlessy on linux

Post by wolas » 30 Aug 2011, 22:16

if you use -o ./somedir/ map texture will be broken.

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

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: New mapconv that works flawlessy on linux

Post by koshi » 30 Aug 2011, 23:07

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.
0 x

abma
Spring Developer
Posts: 3544
Joined: 01 Jun 2009, 00:08

Re: New mapconv that works flawlessy on linux

Post by abma » 27 Sep 2011, 01:09

wiki page: http://springrts.com/wiki/MapConvNG

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

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: New mapconv that works flawlessy on linux

Post by zoggop » 28 Nov 2011, 06:56

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.
0 x

User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: New mapconv that works flawlessy on linux

Post by zoggop » 02 Dec 2011, 06:07

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.
0 x

kfriars
Posts: 36
Joined: 28 Sep 2011, 01:00

Re: New mapconv that works flawlessy on linux

Post by kfriars » 12 Jan 2012, 10:53

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.
0 x

User avatar
Cheesecan
Posts: 1571
Joined: 07 Feb 2005, 21:30

Re: New mapconv that works flawlessy on linux

Post by Cheesecan » 12 Jan 2012, 15:38

10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:
0 x

kfriars
Posts: 36
Joined: 28 Sep 2011, 01:00

Re: New mapconv that works flawlessy on linux

Post by kfriars » 12 Jan 2012, 16:16

Cheesecan wrote:10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:
I'm confused...
0 x

abma
Spring Developer
Posts: 3544
Joined: 01 Jun 2009, 00:08

Re: New mapconv that works flawlessy on linux

Post by abma » 19 Feb 2012, 03:50

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
0 x

abma
Spring Developer
Posts: 3544
Joined: 01 Jun 2009, 00:08

Re: New mapconv that works flawlessy on linux

Post by abma » 19 Feb 2012, 17:41

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)
0 x

Post Reply

Return to “Map Creation”