Map Viewer
Posted: Sat Apr 14, 2012 3:02 pm
Greetings developers,
I've played Andor's Trails for a while now, and started to look at the source, editors, and the forum posts. A common theme seems to be that writing the dialogues is a bit slow. Possibly because the dialogue editor is a bit uninspiring? I don't know, but I still though it would be neat to spice it up a bit, so I wanted to add a view of the area where the dialogue is taking place. And so this map viewer was born. Please see it as fruit for discussion, rather than a final contribution.
Since the intention was to have the map show as part of the HTML/JS editor, the original idea was a HTML5 Canvas implementation. However, I ran into problems with the zlib compression, and ended up in Java instead. There's a Java Applet example, but that's not very convenient because of the Security Permission setup. I might still port to JS, if there is interest. Please see NOTES.txt in the Jar file for details.
The viewer can stitch multiple maps together, and show large sections of the world. Although, the current implementation is memory heavy, and about 20 maps will easily take 1 GB of memory. Here's an example of a view of the areas between Crossglen, Fallhaven, Vilegard, Flagstone and the Crossroads: http://hblok.net/big_stitch.jpg (3.5 MB)
If your interested, download this archive which combines binary and source code:
http://hblok.net/mapviewer.jar (3.3 MB)
* To run
You probably have to change the path to the Andor's Trail source.
- From Jar
java -jar mapviewer.jar /usr/local/andor/andors-trail-read-only/AndorsTrail
- From Ant (after unpacking jar)
jar xvf mapviewer.jar
ant -DandorSrcPath=/usr/local/andor/andors-trail-read-only/AndorsTrail
Please see README.txt for more details.
I'm looking forward to your comments and ideas.
Regards,
Havard
I've played Andor's Trails for a while now, and started to look at the source, editors, and the forum posts. A common theme seems to be that writing the dialogues is a bit slow. Possibly because the dialogue editor is a bit uninspiring? I don't know, but I still though it would be neat to spice it up a bit, so I wanted to add a view of the area where the dialogue is taking place. And so this map viewer was born. Please see it as fruit for discussion, rather than a final contribution.
Since the intention was to have the map show as part of the HTML/JS editor, the original idea was a HTML5 Canvas implementation. However, I ran into problems with the zlib compression, and ended up in Java instead. There's a Java Applet example, but that's not very convenient because of the Security Permission setup. I might still port to JS, if there is interest. Please see NOTES.txt in the Jar file for details.
The viewer can stitch multiple maps together, and show large sections of the world. Although, the current implementation is memory heavy, and about 20 maps will easily take 1 GB of memory. Here's an example of a view of the areas between Crossglen, Fallhaven, Vilegard, Flagstone and the Crossroads: http://hblok.net/big_stitch.jpg (3.5 MB)
If your interested, download this archive which combines binary and source code:
http://hblok.net/mapviewer.jar (3.3 MB)
* To run
You probably have to change the path to the Andor's Trail source.
- From Jar
java -jar mapviewer.jar /usr/local/andor/andors-trail-read-only/AndorsTrail
- From Ant (after unpacking jar)
jar xvf mapviewer.jar
ant -DandorSrcPath=/usr/local/andor/andors-trail-read-only/AndorsTrail
Please see README.txt for more details.
I'm looking forward to your comments and ideas.
Regards,
Havard