reposted from Phil'sEmpire
Hi everyone,
I’ve written a fairly simple application for Windows which should help simplify and take some of the tediousness out of exporting, moving and testing MarbleBlast levels. You can download it here as a .zip file. MarbleBlastMap2Dif (an official tool by GarageGames) is included as part of the .zip file for those who don’t have it.
When you run the app for the first time, you’ll need to set up where your main level-building directories are located. A screenshot can be seen below - I don’t think it should be that overwhelming to understand this interface at first.
[img][/img]
Once you’ve correctly set everything up, simply select a .map file from a generated list filtered to show only .map files (based on the directory you define) and the app will take care of automatically exporting the map, placing it in the game’s marble/data/interiors/ directory and then runing the game to do an interior test.
There are several benefits to using this application as opposed to manually doing each step when exporting and running your map. See below for a full list:
Features
Ability to list a selected directory containing .map files - the app will report if no .map files exist
Ability to either use your game’s interiors directory for where Map2Dif will search for textures (this removes the need to make a copy of your game’s textures!), or you can use a directory of your choice.
Handles exporting the .map file, moving the exported .dif file (handled by a command-line option in Map2Dif and testing the resulting level in-game.
If you feel that something has went wrong or if you’re not sure, you’re able to view the program output of Map2Dif by clicking the “Command Line Output” button. Popup errors such as the common ‘Vislink cannot be coplanar with a node’ error will pop up as normal after attempting to export.
Application settings are automatically saved at the end of each session (thanks to a neat feature present in the .NET Framework that was very easy to implement!)
Although very very minor, Map2Dif has a weird tendency to force the mouse to the bottom-right of the screen. This program will attempt to reset the position of the mouse back to its original position after exporting the map.
Changelog
1.1:simpler user interface
now searches .map files within directories automatically
type to search for maps; the maps list will automatically update as you type
multiple interior directories, the ability to select which map directory your exported .dif file will go into (useful for MBG/MBP maps inside MBP)
(optional) export the map through each of the listed ‘interiors’ directories you have, and it will save the exported .dif file into the interiors folder that exports with no error
1.0:Initial release.
Requirements
.NET Framework 2.0 or higher
A full version of MarbleBlast (interior testing not supported in demo)
MarbleBlastMap2Dif (bundled with the app)
Final Notes
Let me know (email: phil [at] philsempire [dot] com) if you experience any sort of problem, or if you can recommend anything I should change in the interface or code to make it easier for the user.
I hope you’ll all find this to be a useful tool during your level building
- Phil