nolanri Posted February 14, 2016 Share Posted February 14, 2016 is there any tool or any way to take our map file folder in a saved game and get the very large image that the map files would represent in game? i have taken a look at the map tools but they only open .pzw files. Is there a pzw file for my current map somewhere? or one for the general clean version of the map? Link to comment Share on other sites More sharing options...
francogp Posted February 17, 2016 Share Posted February 17, 2016 I have the same question... Link to comment Share on other sites More sharing options...
blindcoder Posted February 17, 2016 Share Posted February 17, 2016 There is now a a tool available here:https://github.com/blind-coder/pz-mapmap It doesn't have a UI, only a command line interface and you need a way to compile C# programs to use it.Most of the code comes from TIS with the savegame-reading code created by me. francogp 1 Link to comment Share on other sites More sharing options...
francogp Posted February 18, 2016 Share Posted February 18, 2016 There is now a a tool available here:https://github.com/blind-coder/pz-mapmap It doesn't have a UI, only a command line interface and you need a way to compile C# programs to use it.Most of the code comes from TIS with the savegame-reading code created by me.it does not compile... it say:Severity Code Description Project File LineError CS0246 The type or namespace name 'MMBinReader' could not be found (are you missing a using directive or an assembly reference?) MapMap D:\Trabajo\VisualStudio\pz-mapmap-master\MapMap\Main.cs 73do I need some sepcial lib? because MMBinReader and MMTileDefReader are not in MapMaplib Link to comment Share on other sites More sharing options...
blindcoder Posted February 18, 2016 Share Posted February 18, 2016 The files are right here: https://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMBinReader.cshttps://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMTileDefReader.cs Also, I've created a release that I compiled using mono on Linux: https://github.com/blind-coder/pz-mapmap/releasesIt's confirmed to work on Windows. francogp 1 Link to comment Share on other sites More sharing options...
francogp Posted February 18, 2016 Share Posted February 18, 2016 (edited) The files are right here: https://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMBinReader.cshttps://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMTileDefReader.cs Also, I've created a release that I compiled using mono on Linux: https://github.com/blind-coder/pz-mapmap/releasesIt's confirmed to work on Windows. Now I'm getting this with zomboid v33.20:Starting programm...Reading texture data from: Erosion.packSheet count: 5Reading texture data from: Tiles.packSheet count: 25Reading tiledef c:\GOG Games\Project Zomboid\media\newtiledefinitions.tilesExcepción no controlada: System.FormatException: La cadena de entrada no tiene el formato correcto. en System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) en System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) en System.Convert.ToInt32(String value) en MapMapLib.MMTileDefReader.Load(String datafile) en MapMap.Main.readTileDefs() en MapMap.Main.Run(String[] args) en MapMap.Program.Main(String[] args) Edited February 18, 2016 by francogp Link to comment Share on other sites More sharing options...
blindcoder Posted February 18, 2016 Share Posted February 18, 2016 The files are right here: https://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMBinReader.cshttps://github.com/blind-coder/pz-mapmap/blob/master/MapMapLib/MMTileDefReader.cs Also, I've created a release that I compiled using mono on Linux: https://github.com/blind-coder/pz-mapmap/releasesIt's confirmed to work on Windows. Now I'm getting this with zomboid v33.20:Starting programm...Reading texture data from: Erosion.packSheet count: 5Reading texture data from: Tiles.packSheet count: 25Reading tiledef c:\GOG Games\Project Zomboid\media\newtiledefinitions.tilesExcepción no controlada: System.FormatException: La cadena de entrada no tiene el formato correcto. en System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) en System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) en System.Convert.ToInt32(String value) en MapMapLib.MMTileDefReader.Load(String datafile) en MapMap.Main.readTileDefs() en MapMap.Main.Run(String[] args) en MapMap.Program.Main(String[] args) Check the runme.bash file. The tiledef files need specific names (prefixed with 0_ 1_ and 2_ respectively) to work. Link to comment Share on other sites More sharing options...
francogp Posted February 18, 2016 Share Posted February 18, 2016 (edited) Check the runme.bash file. The tiledef files need specific names (prefixed with 0_ 1_ and 2_ respectively) to work. Sorry abour the spam here... but now I get this Starting programm...Reading texture data from: Erosion.packSheet count: 5Reading texture data from: Tiles.packSheet count: 25Reading tiledef c:\Users\Franco\Zomboid\MAP EXPORTER\tiledef\0_tiledefinitions.tilesFilenumber: 0Tiledef Version: 1Got 122 tilesheetsReading tiledef c:\Users\Franco\Zomboid\MAP EXPORTER\tiledef\1_newtiledefinitions.tilesFilenumber: 1Tiledef Version: 1Got 177 tilesheetsReading tiledef c:\Users\Franco\Zomboid\MAP EXPORTER\tiledef\2_tiledefinitions_erosion.tilesFilenumber: 2Tiledef Version: 1Got 25 tilesheetsWorking on cell: 10 - 36Excepción no controlada: System.Runtime.InteropServices.ExternalException: Error genérico en GDI+. en System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) en MapMapLib.MMPlotter.PlotData(MMCellData cellData, String outputDir, Int32 cellx, Int32 celly) en MapMap.Main.parseMapData() en MapMap.Main.Run(String[] args) en MapMap.Program.Main(String[] args)My current param is:MapMap.exe -tiledef "c:/Users/Franco/Zomboid/MAP EXPORTER/tiledef/" -gfxsource "c:/GOG Games/Project Zomboid/media/texturepacks/Erosion.pack" -gfxsource "c:/GOG Games/Project Zomboid/media/texturepacks/Tiles.pack" -mapsource "c:/Users/Franco/Zomboid/mods/PZMapPack/media/maps/PZ Map Pack/" -output "c:/Users/Franco/Zomboid/MAPS EXPORTER/output/" -dolayers false -divider 2NOTE: Should I use ALL the params? or for example, -minx -maxx -miny -maxy are optionals? I tried the example coords and the original map, and the same exception occur. Edited February 18, 2016 by francogp Link to comment Share on other sites More sharing options...
blindcoder Posted February 18, 2016 Share Posted February 18, 2016 No, the -max* and -min* parameters ARE optional, as are some others.Can you do me a favor and try:- using \ instead of /- using a simpler parameter to -output (like: -output "output\"), ie: a relative path Link to comment Share on other sites More sharing options...
francogp Posted February 18, 2016 Share Posted February 18, 2016 No, the -max* and -min* parameters ARE optional, as are some others.Can you do me a favor and try:- using \ instead of /- using a simpler parameter to -output (like: -output "output\"), ie: a relative path1) I cant use \ instead of / because the program crash saying that the symbol is not valid2) Yep... I tried a simple -output "output\" and it works3) how can I do a full map image insted of cells? Link to comment Share on other sites More sharing options...
blindcoder Posted February 18, 2016 Share Posted February 18, 2016 1) weird... but okay 2) great 3) you don't want that. That'd be a 123 billion pixel image. Literally 537600 by 230400 pixels. I personally use the output from this program, push it through a few Linux shellscripts I wrot and get a few hundred 12800x12800 pixel images that I then convert into something I can use on the website. The entire process takes about a week, give or take. Link to comment Share on other sites More sharing options...
francogp Posted February 18, 2016 Share Posted February 18, 2016 3) you don't want that. That'd be a 123 billion pixel image. Literally 537600 by 230400 pixels. I personally use the output from this program, push it through a few Linux shellscripts I wrot and get a few hundred 12800x12800 pixel images that I then convert into something I can use on the website. The entire process takes about a week, give or take.I know that, but I was talking about a resized image... for example, I want a map of 10.000 x 10.000 pixels and the program resize the tiles for me. Link to comment Share on other sites More sharing options...
blindcoder Posted February 18, 2016 Share Posted February 18, 2016 Yeah, I'm using my scripts for that. I'm actually creating all the 12800x12800 pixel images, then resize all of them to 3.125% and then stitch them all together.Unfortunately, those scripts will pretty much only work on Linux. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now