diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2012-07-11 14:16:02 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2012-07-19 11:04:33 -0700 |
commit | ca3569870496f8c6018c4394c22e36afdb84e369 (patch) | |
tree | cc6516b38af8f55ff1853990137189258486f968 /tmwcon/src/converter/WLKInterface.java | |
parent | 498038d2413f5f809c67f56b4fd7f2db6a96bc13 (diff) | |
download | tools-ca3569870496f8c6018c4394c22e36afdb84e369.tar.gz tools-ca3569870496f8c6018c4394c22e36afdb84e369.tar.bz2 tools-ca3569870496f8c6018c4394c22e36afdb84e369.tar.xz tools-ca3569870496f8c6018c4394c22e36afdb84e369.zip |
Add a tmx-to-wlk converter that handles CSV (in Python), and run it.
Some of the _mobs files changed due to bugs in the maps, which I fixed.
Remove the old Java version.
Diffstat (limited to 'tmwcon/src/converter/WLKInterface.java')
-rw-r--r-- | tmwcon/src/converter/WLKInterface.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tmwcon/src/converter/WLKInterface.java b/tmwcon/src/converter/WLKInterface.java deleted file mode 100644 index 29436fb..0000000 --- a/tmwcon/src/converter/WLKInterface.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Converter from Tiled .tmx files to tmwAthena .wlk and mob/warp scripts - * Copyright (c) 2008 Jared Adams - * Copyright (c) 2011 Ben Longbons - * License: GNU GPL, v2 or later - */ - -package converter; - -import java.io.*; - -import tiled.core.*; -import tiled.plugins.tmw.*; - -public class WLKInterface { - public WLKInterface() { - // See if the writer is available - WLKWriter.class.getName(); - } - - public void write(String name, Map map, File wlk) { - try { - wlk.createNewFile(); - WLKWriter.writeMap(map, new FileOutputStream(wlk)); - System.out.println("WLK written"); - } catch (Exception e) { - System.out.println("Problem writing WLK file:"); - e.printStackTrace(); - } - } -} |