Actually, they should be selected randomly. I've just converted a single JNX into three different IMGs, and they all got different MapIDs.
Do you remember what was the MapID in your IMGs?
Actually, they should be selected randomly. I've just converted a single JNX into three different IMGs, and they all got different MapIDs.
Do you remember what was the MapID in your IMGs?
Hello,
For information, I created a series of maps of Morocco using MAPC2MAPC in .jnx format to convert them to img and I had no problem.
I put all my jnx in a JNX folder and had them transformed into img in an IMG folder. This work was done in series using the post program # 108 and 113.
(Google translation)
Allin
The repeated MapID was an eight digit number - first six digits were 635235XX. I changed the XX to another two numbers, but can't remember what I replaced (and I have just emptied my recycle bin). I will convert some more without using any command parameters and see if I get the same result.
I have now converted three more Spanish JNX's with the same issue - here is an extract from the GMapTool log:
== Warning: repeated map ID number.
== Map ID 127860939 (79F00CB), file C:/Maps/05-Almeria.img, file C:/Maps/06-Lepe.img.
== Warning: repeated map ID number.
== Map ID 127860939 (79F00CB), file C:/Maps/06-Lepe.img, file C:/Maps/04-Motril.img.
Hello,
It's incredible!!
If you want, you can put these three jnx files on MEGA.nz (free) and give me the link by MP of the three files to download so that I test them.
Results in 24h
Allin
(Google translation)
I think I found the reason of the MapID duplication.
If batch_convert.cmd script or any other similar, which runs jnx2img.cmd several times in turn, the MapID generated for the first IMG is used for all subsequent maps.
@Eyelet99, have you used any batch conversion script for your JNX maps?
Yes I have tried your batch conversion script but the CMD just took me back to the jnx2img folder without running:
Microsoft Windows [Version 10.0.17134.648]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\>cd\jnx2img
C:\jnx2img>batch_convert.cmd "c:\maps-jnx" "c:\Maps-img"
C:\jnx2img>for %i in ("c:\*.jnx") do call jnx2img.cmd "%i" "c:\%~ni.img"
C:\jnx2img>
Also, when I created the three IMGs which had the same MAPIDs, I did run the jnx2img.cmd three times in succession.
Last edited by Eyelet99; 2nd April 2019 at 03:29 PM.
To run the batch script correctly, the folder names should be ended with backslash like this:
C:\jnx2img>batch_convert.cmd "c:\maps-jnx\" "c:\Maps-img\"
Anyway, the problem even occurs if jnx2img script is started more than once from the same command line session.
I'll fix this problem.
Last edited by AlexWhiter; 3rd April 2019 at 11:30 AM.
Alex
Thanks for spotting my stupid error. With the backslashes added, the batch conversion ran okay, but as you noted, the conversions all used the same MapID this time it was 07A304FB .
I look forward to your solution!
Bookmarks