View topic - New mapconv that works flawlessy on linux



All times are UTC + 1 hour


Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: 24 Aug 2011, 22:32 
User avatar

Joined: 19 Jun 2008, 13:05
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 89 times
Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 00:41 
Lobby Developer
User avatar

Joined: 14 Aug 2007, 15:15
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


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 09:56 
User avatar

Joined: 19 Jun 2008, 13:05
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


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 10:50 
Lobby Developer
User avatar

Joined: 14 Aug 2007, 15:15
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.


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 11:13 
User avatar

Joined: 19 Jun 2008, 13:05
Maybe spring could be hacked to support map creation directly


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 11:28 
User avatar

Joined: 19 Jun 2008, 13:05
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


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 12:25 
Lobby Developer
User avatar

Joined: 14 Aug 2007, 15:15
Right, will do. Mind if I lowercase the other binary target?


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 12:50 
Content Developer
User avatar

Joined: 13 Jan 2005, 00:46
Location: ModalitÃ
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?


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 13:19 
User avatar

Joined: 19 Jun 2008, 13:05
koshi wrote:
Right, will do. Mind if I lowercase the other binary target?

If you lowercase the name , decompiler generated makefiles won't work


Top
 Offline Profile  
 
PostPosted: 25 Aug 2011, 13:21 
User avatar

Joined: 19 Jun 2008, 13:05
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


Top
 Offline Profile  
 
PostPosted: 30 Aug 2011, 21:16 

Joined: 30 Jul 2010, 19:40
if you use -o ./somedir/ map texture will be broken.

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


Top
 Offline Profile  
 
PostPosted: 30 Aug 2011, 22:07 
Lobby Developer
User avatar

Joined: 14 Aug 2007, 15:15
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.


Top
 Offline Profile  
 
PostPosted: 27 Sep 2011, 00:09 
Spring Developer

Joined: 31 May 2009, 23:08
wiki page: http://springrts.com/wiki/MapConvNG

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


Top
 Offline Profile  
 
PostPosted: 28 Nov 2011, 06:56 
User avatar

Joined: 07 Sep 2010, 17:47
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.


Top
 Offline Profile  
 
PostPosted: 02 Dec 2011, 06:07 
User avatar

Joined: 07 Sep 2010, 17:47
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:
Faulting application springmapconvng.exe, version 0.0.0.0, faulting module ntdll.dll, version 5.1.2600.6055, fault address 0x00018b9a.


Top
 Offline Profile  
 
PostPosted: 12 Jan 2012, 10:53 

Joined: 28 Sep 2011, 00:00
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.


Top
 Offline Profile  
 
PostPosted: 12 Jan 2012, 15:38 
User avatar

Joined: 07 Feb 2005, 21:30
Location: Cheese factory
10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:


Top
 Offline Profile  
 
PostPosted: 12 Jan 2012, 16:16 

Joined: 28 Sep 2011, 00:00
Cheesecan wrote:
10 secs. So what were the other guys doing before, a little folding@home maybe.. :roll:


I'm confused...


Top
 Offline Profile  
 
PostPosted: 19 Feb 2012, 03:50 
Spring Developer

Joined: 31 May 2009, 23:08
the win32 build crashes for me, too.

can someone please rebuild the current source?

Code:
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


Top
 Offline Profile  
 
PostPosted: 19 Feb 2012, 17:41 
Spring Developer

Joined: 31 May 2009, 23:08
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)


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.