|
Tile Extraction and Mapping Utility |
Neil Walker
Member #210
April 2000
|
Hello, Tile Extracter's purpose is to take a map of game, extract the unique tiles and give it to you in numerous formats for using in a game or just simply to see the tile graphics in the game. The extracted graphics are stored in both individual bitmap files and a sheet graphic file. They can also be resized during the extraction (e.g. for using as placeholders for a remake of an old game). The map is saved as both a csv file and a byte based file. The byte file can be imported with the sheet file into Mappy Editor to produce a full map of the game. Link: Screenies: {"name":"tiler.f.screen1.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/3\/a34f1258b3ccadf26b96b56132bca3ed.gif","w":646,"h":512,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/a\/3\/a34f1258b3ccadf26b96b56132bca3ed"} {"name":"tiler.f.screen2.gif","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/d\/cdbfbc948331d4db2a472b65a48782a1.gif","w":646,"h":512,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/d\/cdbfbc948331d4db2a472b65a48782a1"} You can download the full version which includes a windows binary and msvc/devcpp/mingw library files or the source code only version with various make files. It also includes a map of a great old game for the ZX-Spectrum called Marauder (a top down shooter) The external libraries tinyxml and Adime are required. The source for tinyxml is also supplied. Adime has instructions for downloading and building. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Kikaru
Member #7,616
August 2006
|
Wow... This is a really neat program! Could be very useful |
Richard Phipps
Member #1,632
November 2001
|
Good for remakes.. |
Neil Walker
Member #210
April 2000
|
Well, attached is something that took about a minute. Can you guess The bitmap is a sheet graphic and the fmp is a map file for Mappy if you have it. [edit]Hey rich, do you always post at the same second as me Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
Richard Phipps
Member #1,632
November 2001
|
OICW
Member #4,069
November 2003
|
Just one question. From which map formats can it rip/extract tiles? [My website][CppReference][Pixelate][Allegators worldwide][Who's online] |
Neil Walker
Member #210
April 2000
|
if you mean the input file - .bmp I didn't want to overload the program with too many external libraries. If you mean the export, a csv and a byte based format. there's actually a bug somewhere, it's definitely not my code, it seems as if it's my bitmap<>bitmap comparison - I'm looping the pixels of tiles and using _getpixel. Actually, If you check out my attached mario fmp (if you have mappy) against the gif, you'll see that a few tiles are being missed but I don't think it's my code, there's a pattern to the errors but I can't see it. They are all those that don't follow the pattern of the other tiles, e.g. do not have adjacent edges to other tiles with different colour pixel edges. You can see this in the mappy file (.fmp) - the flag at the end of mario has the middle tile missing, as does the green circle beside it and some of the gumbas that are only in the map because of the screen grabbing. Very strange. Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
miran
Member #2,407
June 2002
|
Makefile doesn't work in Linux. After editing it and fixing the obvious Windowsisms I get this: g++ -c src/tile_extracter/extract_program.cpp -o obj/extract_program.o src/tile_extracter/../axl/axl_animations.h:231: error: extra qualification ‘AXL_Projects::AnimationLibrary::’ on member ‘LogEntry’ src/tile_extracter/../axl/axl_animations.h:238: error: extra qualification ‘AXL_Projects::AnimationLibrary::’ on member ‘GetLoopTypeFromChar’ src/tile_extracter/extract_program.cpp: In function ‘bool ProgramLogic()’: src/tile_extracter/extract_program.cpp:165: warning: passing ‘double’ for argument 1 to ‘BITMAP* create_bitmap(int, int)’ src/tile_extracter/extract_program.cpp:165: warning: passing ‘double’ for argument 2 to ‘BITMAP* create_bitmap(int, int)’ make: *** [obj/extract_program.o] Error 1 After fixing the errors and creating the obj directory, it compiled. I also had to add the included TinyXml source files to the makefile and remove the reference to -ltinyxml. Surprisingly the program actually runs. I'll read the documentation to figure out how it is used. Btw, here's the makefile that eventually worked for me:
Note though that this is not the right way to write makefiles... -- |
Neil Walker
Member #210
April 2000
|
Thanks. I have absolutely no idea how to create make files, the one I supplied came directly from Dev-CPP and I mentioned in the readme that it needs changing I'll try it out on mingw and see if it works. Quote: fixing errors Was the solution simply to remove AXL_Projects:: ? I suspect this was a throwback to an earlier bug with namespaces. I can then update the files. Though oddly this compiles with mingw Quote: Surprisingly the program actually runs. Glad you have confidence in me in a post above I posted a mario world 1. Try that out and set the tile size to be 8. Quote: and creating the obj directoryp Sorry, I'm that used to ide's creating the directories for me... Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
miran
Member #2,407
June 2002
|
Quote: and I mentioned in the readme that it needs changing Yeah, I noticed that 2 minutes ago when I read the readme. Quote: I'll try it out on mingw and see if it works. It most certainly won't. Usually you need to put some if/else clauses in the makefile to make it work on different systems. Quote: Was the solution simply to remove AXL_Projects:: ? Yes. -- |
Neil Walker
Member #210
April 2000
|
Miran, As for the makefile, that's fine. The makefile I supplied works with mingw so I can simply ship both. btw, how do you get make to recognise a file other than 'makefile'. When I was first creating them I called it 'makefile.win' but typing 'make makefile.win' came back with 'no files to make' Neil. wii:0356-1384-6687-2022, kart:3308-4806-6002. XBOX:chucklepie |
miran
Member #2,407
June 2002
|
Quote: Did you by any chance download my previous version of AXL? No. I just downloaded TileExtracterSrc.zip fro your site half an hour ago. Quote: btw, how do you get make to recognise a file other than 'makefile'
make -f makefile.win But I suggest you use something like this makefile here:
This is this year's SpeedHack template makefile I wrote. It automatically compiles everything in the src directory using headers from the include directory, puts the object files in the obj directory and the final executable in the top level directory. I guess if you want to have multiple subdirectories under src it gets a little more complicated, but then again you might want to consider putting all cpp files in one dir and all h files in another. Then the above makefile just works, both with MinGW and in Linux. You only need to add references to 3rd party libraries in the relevant places (only -ladime in your case). -- |
|