summaryrefslogtreecommitdiff
path: root/tools/tmwcon/src/converter/WLKInterface.java
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2012-07-11 14:16:02 -0700
committerBen Longbons <b.r.longbons@gmail.com>2012-07-19 11:04:33 -0700
commita08660ca24cc18778ad929eb5a79453ba37d232e (patch)
tree3a89c50ddb54959b661e70802eb71ca77bce7216 /tools/tmwcon/src/converter/WLKInterface.java
parentfb3b066e0b99900b0dff319ef9ca8776d9d26a64 (diff)
downloadserverdata-a08660ca24cc18778ad929eb5a79453ba37d232e.tar.gz
serverdata-a08660ca24cc18778ad929eb5a79453ba37d232e.tar.bz2
serverdata-a08660ca24cc18778ad929eb5a79453ba37d232e.tar.xz
serverdata-a08660ca24cc18778ad929eb5a79453ba37d232e.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 'tools/tmwcon/src/converter/WLKInterface.java')
-rw-r--r--tools/tmwcon/src/converter/WLKInterface.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/tools/tmwcon/src/converter/WLKInterface.java b/tools/tmwcon/src/converter/WLKInterface.java
deleted file mode 100644
index 29436fbf..00000000
--- a/tools/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();
- }
- }
-}