Game Development Community

map2dif mac?!?

by Sky Eckstrom · in Torque Game Engine · 02/07/2003 (9:33 pm) · 74 replies

Phew, I finally got my .map editor into a useable state on Mac OS X. Now I want to place my .maps into the engine, but I have to convert them into .dif format to do that. I'm pretty sure that?s what the map2dif tools is for, but I can?t figure out how to build it! (pb gives me lots of errors) Does anyone know how to do this or even if it works on Mac?

About the author

Recent Threads

  • No Sound
  • Page«First 1 2 3 4 Next»
    #61
    12/12/2004 (10:35 pm)
    I haven't seen anyone yet post a JQT jar that works on Mac OS X, so here's my attempt. :) It runs fine on Mac OS X and should in fact run elsewhere though I have not tested that. Just download it and double-click it.

    homepage.mac.com/davidfindley/Misc/FileSharing66.html

    This code is structurally identical to the original source... basically I just tossed the original .java files into an Eclipse project and it showed me where I had to update the source for the more recent Java compilers. The only real problems were references to Java "constants" (public static final type). In the earlier versions of Java, you were allowed to reference constants from an actual instance of an object. The compiler would figure out what you meant. You are no longer allowed to do that, so I just had to replace all the sample instances with the real class name. After that, it compiled fine, with some warnings about AWT deprecations. This probably means that it won't work at some point in the future without converting it to Swing, but as of Java 1.4 it still seems to work.

    Note that I haven't tried converting the map files to dif, but I wanted to put this resource out for people to try if they wanted to.
    #62
    12/13/2004 (5:32 am)
    David,
    Does the jar contain source? I want to freshen up the interface to JQT as soon as I have time so it would be great to have the source.

    Do you plan on doing anything further with JQT or just running it as is?
    #63
    12/13/2004 (6:02 am)
    David i tried it under Linux using Sun's java jre v1.4.2-2 and i get the following exception is this for Mac only?

    I did ' java -jar JQT.jar ' and got:

    Quote:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/apple/mrj/MRJOpenDocumentHandler
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    #64
    12/13/2004 (6:32 am)
    @Joe: I have uploaded my Eclipse project containing the source. It's on the same download page with the name JQTproj.zip. I don't know how qualified I am to work on JQT actually... I just wanted to see if I could import a .map at all. (I'm a server-side Java programmer on Solaris for my day job so I was confident that I could at least get it to run on Mac OS X!)

    If I also manage to get map2dif working (fighting with xcode now...) then this will at least give me a workflow on the Mac, primivite though it may be. At that point, I may want to expand it, but right now, I don't even know which direction it should go.

    I am very interested, however, in an all Mac OS X workflow, so that may be an incentive.

    @Benoit: Ah, yes. I should have thought of that... that I do know how to fix. He's registered an event handler so you can open files by double-clicking or dragging to the icon. It's fairly easy to work around that for non Mac OS X systems and also keep the functionality. I'll see if I can make a quick change to get it working on non Mac systems as well as Macs. I'll dust off my old Virtual PC, since it will exhibit the same symptoms. I'll post a change soon hopefully.
    #65
    12/13/2004 (6:49 am)
    Thanks
    #66
    12/13/2004 (7:48 am)
    I have uploaded 2 new files at:

    homepage.mac.com/davidfindley/Misc/FileSharing66.html

    JQT.jar - it runs on Windows now, or it seems to, so it should run on Linux as well.
    JQT.zip - new Eclipse project containing the changes required to make it run on non-Mac systems.

    As a side effect, Command-Q on the Mac works now, but the interface really needs to be converted from AWT to Swing to make it a more modern app.

    @Benoit: You probably can't read the docs from the original home page. They was distributed (as was common at that time) in a separate Mac only application. I'll convert them to HTML shortly and upload them. There's a lot of good info in there, I suspect.
    #67
    12/13/2004 (8:05 am)
    Thanks works fine now. Will play with it when i get home.
    #68
    12/13/2004 (8:21 am)
    David,

    Thanks for posting the changes. Part of my plan is to swingize it then add a layer system, multiple simultaneous views, remove the reliance on wad files and add support for all torque object types.
    #69
    12/13/2004 (8:38 am)
    Joe,

    You're welcome.

    That sounds great! I'm a complete Torque (and Quake) novice but I'm a pretty fair Java programmer, so if you need help I'd be happy to lend a hand. Jet let me know. Feel free to email me directly if you want to work off-line.
    #70
    12/13/2004 (8:47 am)
    Best of luck, i know nothing (anymore) of Java.
    #71
    12/13/2004 (9:31 am)
    I'm not sure when I will have time to get to this. Benoit and I are working on a Blender exporter first. Trying to get that going is proven to be a bit difficult but it would be a great app for the map making process. I'm working on a prototype so time is limited for me. But after we get that going I think I'll start on JQT.
    #72
    12/13/2004 (10:13 am)
    @Joe: I completely understand about the time. I look forward to seeing your exporter!

    In the meantime, I've converted the docs from the old Mac-specific "Paperboy" appliction to basic HTML:

    homepage.mac.com/davidfindley/Misc/FileSharing66.html

    The file is jqtdocs.zip. Since I had to reapply all formatting and styles by hand, I did a bit of editing: I removed the obsolete Mac specific install instructions since that was its own section. Anyone who actually needs those will be able to read the original docs anyway. I left the rest alone, which means it does have some other minor obsolete information and urls in there.
    #73
    12/13/2004 (2:33 pm)
    This is likely very obvious to most, but if you're like me, I kept trying "java JQT.jar" which resulted in an "Exception in thread "main" " error... Reading the docs, it turns out you have to double-click the .jar file. I always try and make things more complicated...
    #74
    07/17/2006 (7:47 am)
    Or run java -jar JQT.jar
    Page«First 1 2 3 4 Next»