by date
Released GTK+ Map2Dif User Interface for Windows/Linux
Released GTK+ Map2Dif User Interface for Windows/Linux
| Name: | Jeffrey Bakker | ![]() |
|---|---|---|
| Date Posted: | Dec 19, 2005 | |
| Rating: | Not Rated | |
| Public: | YES | |
| Comments: | YES | |
| RSS Feed: | or Subscribe with . | |
| Profile Page: | View profile page for Jeffrey Bakker |
Blog post
Since my video game plan is going to have to be put on hold, due to time and money constraints, I figured I can still make myself useful by starting other projects in the meantime.
I don't know how many people will find it useful, but I designed a user interface for map2dif that works on Linux and on Windows. It requires python, GTK+ 2.6, pyGTK 2.6 and libglade, which are all available on any Linux distro and can easily be installed on Windows** in minutes.
Most people either know how to use map2dif from the command line, and others may use BSP programs that have map2dif already integrated. But for those in between, or those who'd like to do batch converting, m2dui is the ting for you! Below are some screenshots:
Windows

Linux

I hope that at least a small handful of people may find this useful. Here's the download link:
Linux/Windows python script release:
damnclan.com/evil/torque/m2dui-1.0.2.zip
"Standalone" Windows .exe release (only basic GTK+ runtime is required):
damnclan.com/evil/torque/m2dui_exe-1.0.2.zip
Enjoy!
*Note: first time running, you will have to locate the map2dif executeable and your paths, then you can click on save settings which will create an m2duirc file in your home folder.
**The "standalone" .exe version is recommended on Windows, as it has less requirements (only GTK+ runtime). The non-exe version still works fine in Windows, however. If you want to use the non-exe, you will need the following...
GTK+ for windows, GTK+ devel for Windows, libglade for windows are all available in one package, found here:
gladewin32.sourceforge.net/modules/wfdownloads/viewcat.php?cid=1
Then install python:
www.python.org/download
Then install pygtk (make sure to download the version the corresponding version of python and GTK+ you downloaded):
www.pcpm.ucl.ac.be/~gustin/win32_ports/pygtk.html
Update:
New feature, plus minor changes in v1.0.2, as well as another Windows .exe release (requires GTK+ runtime, but nothing more :). The non-exe release still works in Windows, given all requirements are met.
m2dui changes
v 1.0.2 (21/12/2005)
- Added more tooltips to the GUI.
- Added the ability to write batch/shell scripts for later/repeated use.
- Fixed for output and textures directory paths containing spaces.
- Fixed adding a whole directory to only add .map files inside.
- Maps directory chooser will now only show .map files.
v 1.0.1 (20/12/2005)
- Added a separate Windows .exe version (regular version still works too).
- Code cleanup/organization.
- Fixed GTK+ 2.8 FileChooser warnings.
- Fixed AboutBox bug if License file is not found.
- Updated toolbar with text labels.
v 1.0.0 (18/12/2005)
- Initial release.
I don't know how many people will find it useful, but I designed a user interface for map2dif that works on Linux and on Windows. It requires python, GTK+ 2.6, pyGTK 2.6 and libglade, which are all available on any Linux distro and can easily be installed on Windows** in minutes.
Most people either know how to use map2dif from the command line, and others may use BSP programs that have map2dif already integrated. But for those in between, or those who'd like to do batch converting, m2dui is the ting for you! Below are some screenshots:
Windows

Linux

I hope that at least a small handful of people may find this useful. Here's the download link:
Linux/Windows python script release:
damnclan.com/evil/torque/m2dui-1.0.2.zip
"Standalone" Windows .exe release (only basic GTK+ runtime is required):
damnclan.com/evil/torque/m2dui_exe-1.0.2.zip
Enjoy!
*Note: first time running, you will have to locate the map2dif executeable and your paths, then you can click on save settings which will create an m2duirc file in your home folder.
**The "standalone" .exe version is recommended on Windows, as it has less requirements (only GTK+ runtime). The non-exe version still works fine in Windows, however. If you want to use the non-exe, you will need the following...
GTK+ for windows, GTK+ devel for Windows, libglade for windows are all available in one package, found here:
gladewin32.sourceforge.net/modules/wfdownloads/viewcat.php?cid=1
Then install python:
www.python.org/download
Then install pygtk (make sure to download the version the corresponding version of python and GTK+ you downloaded):
www.pcpm.ucl.ac.be/~gustin/win32_ports/pygtk.html
Update:
New feature, plus minor changes in v1.0.2, as well as another Windows .exe release (requires GTK+ runtime, but nothing more :). The non-exe release still works in Windows, given all requirements are met.
m2dui changes
v 1.0.2 (21/12/2005)
- Added more tooltips to the GUI.
- Added the ability to write batch/shell scripts for later/repeated use.
- Fixed for output and textures directory paths containing spaces.
- Fixed adding a whole directory to only add .map files inside.
- Maps directory chooser will now only show .map files.
v 1.0.1 (20/12/2005)
- Added a separate Windows .exe version (regular version still works too).
- Code cleanup/organization.
- Fixed GTK+ 2.8 FileChooser warnings.
- Fixed AboutBox bug if License file is not found.
- Updated toolbar with text labels.
v 1.0.0 (18/12/2005)
- Initial release.
Recent Blog Posts
| List: | 01/29/06 - EveryGUI - UNIX Commands by the Click of a Button 12/19/05 - Released GTK+ Map2Dif User Interface for Windows/Linux 10/20/05 - Plan for Jeffrey Bakker |
|---|
Submit your own resources!| James Lupiani (Dec 19, 2005 at 00:52 GMT) |
Have you looked at py2exe before? It'll let you build the Python interpreter and all the dependencies into a native executable (and data package) for people who don't want to install/manage Python on their machines.
| Jeffrey Bakker (Dec 19, 2005 at 01:13 GMT) |
Edited on Dec 19, 2005 01:15 GMT
| Prairie Games (Dec 19, 2005 at 06:06 GMT) |
| Jeffrey Bakker (Dec 19, 2005 at 20:22 GMT) |
The problem I'm having with py2exe is that the built program will execute with python errors I haven't seen in m2dui before. The build window says it's missing the modules 'gdk' and 'ltihooks'. That and the fact that it's rather large in filesize for such a small application (10MB+), even a compiled C/C++ program like this statically built with libraries would be only a few megs at most.
| Ben Jones (Dec 19, 2005 at 22:21 GMT) |
Edit: got it lol i feel noobish. you open up the .glade file and then double click the m2dui
Edit2: even more noobish, this opens the thing up so that u can edit hte actual interface.
Edited on Dec 19, 2005 22:26 GMT
| Jeffrey Bakker (Dec 19, 2005 at 23:02 GMT) |
Well, having GTK+ installed is a good start. I am guessing that you may not have python and pygtk for Windows installed.
First install python:
www.python.org/download
Then install pygtk (make sure to download the version the corresponding version of python you downloaded):
www.pcpm.ucl.ac.be/~gustin/win32_ports/pygtk.html
When python is installed, the m2dui.py file should look like a green snake in your Windows explorer. Just double-click on it to launch the program.
| Ben Jones (Dec 20, 2005 at 02:48 GMT) |
'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.
So... what do I do now?
| Jeffrey Bakker (Dec 20, 2005 at 03:15 GMT) |
DON'T
C:\Program Files\Somewhere\map2dif.exe
C:\Documents and Settings\user\Desktop\map2dif.exe
DO
C:\Torque\map2dif.exe
C:\my_folder\map2dif_plus.exe
Edit:
At first I thought it was spaces in the input filenames, but it turns out that is already taken care of by m2dui by placing quotes around them before calling map2dif. The only explaination left is that map2dif.exe is in a path with spaces (which putting quotes around doesn't simply fix). Most people will have map2dif.exe located under "C:\Torque\SDK\tools\", which doesn't have any spaces therfore isn't an issue.
If you certainly must use a copy of the map2dif.exe program located somewhere in "Program Files" or your desktop (or any path with spaces), there is a workaround. You can use a text editor to edit the m2dui config file (located in HOMEDRIVE:\Documents and settings\your username\m2duirc) and manually change the path to map2dif.exe in the old DOS style file name convention. eg. "C:\PROGRA~1\MAP2DIF\map2dif.exe"
Edited on Dec 20, 2005 05:37 GMT
| Jeffrey Bakker (Dec 20, 2005 at 06:18 GMT) |
Edited on Jan 11, 2006 15:17 GMT
| Ben Jones (Dec 20, 2005 at 20:30 GMT) |
| Jeffrey Bakker (Dec 21, 2005 at 10:46 GMT) |
| Ben Jones (Dec 21, 2005 at 17:28 GMT) |
| Jeffrey Bakker (Dec 21, 2005 at 20:33 GMT) |
Edited on Jan 11, 2006 15:17 GMT
| Ben Jones (Dec 27, 2005 at 05:25 GMT) |
This is where i get sent when i send my error to microsoft.
http://oca.microsoft.com/en/response.aspx?SGD=af7c0f4a-d761-4cc8-bb73-b667d9de418c&SID=10
Edited on Dec 27, 2005 05:26 GMT
| Jeffrey Bakker (Dec 28, 2005 at 07:18 GMT) |
| Ben Jones (Dec 28, 2005 at 17:32 GMT) |
| Jeffrey Bakker (Dec 31, 2005 at 00:38 GMT) |
| J.G. (Jan 17, 2006 at 23:53 GMT) |
Do you have a link to the basic GTK+ runtime?
Without it being in a package as you mentioned top of post?
Thanks,
JG
| Jeffrey Bakker (Feb 01, 2006 at 01:06 GMT) |
gladewin32.sourceforge.net/modules/wfdownloads/viewcat.php?cid=12
| Steven B (Jun 21, 2006 at 19:25 GMT) |
the map files created with 3d World Studio 5.47
but it is not working.
3d World Studio 5.47 doesn't make the dif file
even though the guy states that it will.
The textures are Microsoft Set Up files .stf
could that be the issue.
Either there is nothing in the output folder
or I am getting an error.
| JoZ (Nov 15, 2006 at 21:55 GMT) |
I've some problem with map2dif ui...
I'm not able to select the destination folder,
when I try it open the folder and select the first file of the folder... haw to explain... pratically selection of folder doesn't work it's only able to select file... Only one time after hundred temptative I was able no sure in wich way to have the output folder setted for the interior directory...
Can you help me?
Tnx a lot :)
You must be a member and be logged in to either append comments or rate this resource.



Not Rated


