Pretty much everyone is using .jm so this might be useless.
1) Make a folder called Json2WmapMaps, inside the server folder.
2) Make a .txt file, call it WorldConverter, but this code inside it, and save it as a .bat:
Code:
@EcHo off
set /p jm="Enter map name: "
copy %jm%.jm Json2wmap\bin\Debug
Json2wmap\bin\Debug\Json2wmap %jm%.jm %jm%.wmap
echo wmap successfully compiled.
echo Moving the Wmap to Json2WmapMaps folder
move %jm%.wmap Json2WmapMaps
echo Moved the Wmap to Json2WmapMaps folder
pause
3) Inside Json2Wmap/app.config replace the whole file with this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed"
culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
4) Rebuild solution.
How to convert:
Drag out any .jm map, and put in the same folder as WorldConverter.bat. Open WorldConverter.bat, and type the maps name. It should convert to a wmap, without issues.