HnH Cartographer - app to create local maps

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: HnH Cartographer - app to create local maps

Post by Leny-m »

ArtemisGray wrote:I can't get this to work.

I'm not very tech-savvy. So forgive me.

I place the HnHCartographer3 jar file into my folder with the run.bat and my map folder.

I double click the file. Nothing happens, nothing pops up. I closed and opened the folder to see if a new folder would pop up but still nothing.

What am I doing wrong?
At the current stage the app has no GUI so don't expect anything to pop up. Update your java just to be sure btw.

And the reasons why it doesn't do anything:

- you got no map files to be stitched together (go through your cave/map/simplemap folders and make sure there is at least one subfolder with tile files in it)
- you didn't wait long enough for the app to actualy create something (as there is no progress bar atm. you can check the process manager whether the app is still running)
- magic

Best way to try it out:

Delete or move your map, cave and simplemap folders. Play the game, save a simplemap, log off, run the cartographer.

If it still doesn't work, you might want to try running it from the command line and watch the output it's gonna print. To run the app from cmd you need to type something like "java -jar [path to the program]\HnHCartographer3.jar"
Image Image Image Image Image
Leny
Silvertron
Posts: 72
Joined: Mon Jan 02, 2012 8:32 pm

Re: HnH Cartographer - app to create local maps

Post by Silvertron »

Same issue as the poster before, nothing happens at all when I run the file (can see the process running in the process manager for a while, but still nothing after it's done).

Trying to run the app via command line returns "Directory (name) not found!" for map, cave and simplemap, even though they're all there and have files, and then:
Exception in thread "main" java.lang.NullPointerException
at hnhcartographer3.Reader.<init><Reader.java:21>
at hnhcartographer3.Run.main<Run.java:6>

Any ideas? :/
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: HnH Cartographer - app to create local maps

Post by Leny-m »

Silvertron wrote:Same issue as the poster before, nothing happens at all when I run the file (can see the process running in the process manager for a while, but still nothing after it's done).
Is the HnHCartographer really in the proper folder?
Silvertron wrote:Trying to run the app via command line returns "Directory (name) not found!" for map, cave and simplemap, even though they're all there and have files, and then:
Exception in thread "main" java.lang.NullPointerException
at hnhcartographer3.Reader.<init><Reader.java:21>
at hnhcartographer3.Run.main<Run.java:6>

Any ideas? :/
The exception is thrown just because the map/cave/simplemap folders weren't located.

I've made video tutorial on how to use the app, check it out and let me know if there's any trouble: http://youtu.be/Ac3Ccs8gmTk

And I've subscribed to this topic so I can help anyone faster. Feel free to PM me in case I'm not responding here.
Image Image Image Image Image
Leny
Silvertron
Posts: 72
Joined: Mon Jan 02, 2012 8:32 pm

Re: HnH Cartographer - app to create local maps

Post by Silvertron »

Hi Leny,

it was definitely in the correct folder; thank you for the video - it appears the problem was that I'd "faked" the simplemap folder, ie created it myself just so it would be there. I never actually use the simplemap ingame and was mostly after the regular and cave maps.
After your vid I've saved an actual simplemap and then the app suddenly worked like a charm.

That's kind of weird though, is it supposed to throw an exception when one of the folders isn't there or not created by Ender's?

Either way, resolved for me. Thanks for your help and for publishing the app :)
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: HnH Cartographer - app to create local maps

Post by Leny-m »

Silvertron wrote:Hi Leny,

it was definitely in the correct folder; thank you for the video - it appears the problem was that I'd "faked" the simplemap folder, ie created it myself just so it would be there. I never actually use the simplemap ingame and was mostly after the regular and cave maps.
After your vid I've saved an actual simplemap and then the app suddenly worked like a charm.

That's kind of weird though, is it supposed to throw an exception when one of the folders isn't there or not created by Ender's?

Either way, resolved for me. Thanks for your help and for publishing the app :)
I'll check it out when I got some spare time. I think I know where the problem is and it seems pretty simple. I'll probably just add skipping missing folders.
Image Image Image Image Image
Leny
mvgulik
Posts: 4098
Joined: Fri May 21, 2010 2:29 am

Re: HnH Cartographer - app to create local maps

Post by mvgulik »

You might like to ignore any image files that don't conform to a (example) "tile_*.png" filename.
(Cartographer crashes on encountering my "merge.png" quick-preview files that can be present in the map folders.)

Code: Select all

Exception in thread "main" java.lang.NumberFormatException: For input string: "d"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.<init>(Unknown Source)
        at hnhcartographer3.Tile.process(Tile.java:27)
        at hnhcartographer3.Tile.<init>(Tile.java:22)
        at hnhcartographer3.Map.<init>(Map.java:39)
        at hnhcartographer3.Reader.read(Reader.java:72)
        at hnhcartographer3.Reader.<init>(Reader.java:19)
        at hnhcartographer3.Run.main(Run.java:6)
Mmm, processed map-file get there date's reset. Think it would be better if the original file date would be maintained. (the file-modified date(windows) that it)
The resetting of the file date makes me think that, instead of moving map files, your copying them. Which 'can' be somewhat of a speed bump.
User avatar
Ando
Posts: 25
Joined: Sun Apr 04, 2010 8:00 am

Re: HnH Cartographer - app to create local maps

Post by Ando »

Hi Leny, awesome map stitcher, I really like it!
Once I hacked it up a bit to get it working on my machine, I found it really helpful.

To get it working, I had to decompile it, fix a few things, and recompile.
I've got some fixes here for Mac / Linux file paths, and for some of the exceptions.

Let me know if you want them.
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: HnH Cartographer - app to create local maps

Post by Leny-m »

1] yup, copying files
2] good job, nice to see someone involved ;)

I haven't been playing for quite some time and I'm rather busy with finishing my school right now :)
Image Image Image Image Image
Leny
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: HnH Cartographer - app to create local maps

Post by borka »

Leny-m wrote:1] yup, copying files
2] good job, nice to see someone involved ;)

I haven't been playing for quite some time and I'm rather busy with finishing my school right now :)
I hope you'll find time to upload with Ando's fixes. And good luck with finishing school successfully!!!
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
Leny-m
Posts: 109
Joined: Sat Dec 17, 2011 8:04 pm

Re: HnH Cartographer - app to create local maps

Post by Leny-m »

I've saved some time and the activity in this thread motivated me to reopen the code on Cartographer. I've left a message for Ando and hopefuly he'll be able to share his thoughts with me so I can either implement them into the new version or he might post his build and I'll update the initial post with links to it.

I listened to your suggestions and all of them are very valuable. I'm currently working on implementing them into the next version. I am also going to comment my own code to help people like Ando to develop it further.
You might like to ignore any image files that don't conform to a (example) "tile_*.png" filename.
done

Note that having extra .png files around in tile folders can lead to them being deleted. I don't plan on implementing any methods that would prevent this (like moving every extra file from the directory) unless there is a good reason for that. The rule here is to skip every file that doesn't contain ".png" and "tile" in its name and not to care about such files any further.
moving files rather than copying and deleting them
done

I've tried it on small sample of files (44 tiles) and I've decreased the processing time from 11317 to 10473 (time in ms), that's 1 second difference on pretty small sample so I expect quite neat improvement on high amounts of files.
_________

Thank you for your suggestions and keep them comming, I might be really busy but I don't give up on my work or people who can benefit from it.

e: I have also published the source files
Image Image Image Image Image
Leny

Return to “The Wizards' Tower”