Here is a test of the Map Editor scripting I've been doing in 3DSMAX. If you combine this with the SCMAP stuff I blather on about before you can create a working map with Creature and AI pathing.
Sample video can be seen at http://184.108.40.206/Demigod/Mapeditor.swf. If someone could properly embed that. It would be make other people life easier.
The scripting is still at PreAlpha stage. For example you have to manually edit the LUA file after export to get portal to work properly. Chain have to be manually added as well as AI groups. But it does make setting up a map easier. (For those confused you have to manually add the entries to the Army chain to make them appear in game.)
Unfortunately since the meshes are held in a GR2 file it still requires Granny as well. And since the Demigod teams has decided to use a custom redirect for their shaders instead of embedding it in the Granny file... or the SCMAP file... or the LUA script, no map will be able to be textured without that shader. Hopefully that feature will be added in the SDK. If anyone has a work around please feel free to post that information. I was hoping to have a map ready for the Mod Manager launch.
Source code is available here to anyone interested in playing with it but to anyone interested in making a map I would suggest waiting for the SDK. As mention above, with out Granny or the SDK you can't do any textures or meshes and the script doesn't work 100% and still require manual editing post export to enable certain features (This may or may not be fixed at a later date.)
To create objects used in the Lua export
To export the LUA
Q. Will this script possibly damage my computer.
A.) Yes quite possible. If your the kind of people that worries about such things I would suggest not downloading. In fact I would suggest not downloading it at all.
Q. Does the script supports Flags
A.) Yes it does. Although you must know the lookup code for the different flags. A drop down menu may or may not be added at a later date.
Q. I looked at your source code... Do you even know what a function is.
A. Yes I do but I am unable to write them in MaxScript or for that matter in any language. This is the first program I have written (In reality the first program I copied and pasted from several other programs) so when I learn how to write a function I will use it in future programs. Until then copy and pasting the same lines works even if it causes Baby programmer jesus to cry.
Q. Isn't this code completely useless because the Gas Powered Games team enabled a Hash check on start up.
A.) Yes it is completely useless if your using the current build of Demigod. I'd like to thank the programming team for adding that feature. Hopefully the script may be used in future when Mod support is enabled. Currently I am testing this on a older build of the game.
Q.) I don't understand how to get this program running or how to make a map with it.
A.) Don't worry no one does. It's more a piece of sample code for other people then a useable product. Please wait for the SDK.
Q.) There is this map called Clock Tower...
A.) Yessssssssssss the guy who doesn't even know how to use functions is totally going to be able to make a dynamic AI pathing script to make that map work. You don't want to know how many man hours the ugly square box test took. Let's just say that even if I was to make a map it would be less complicated then nearly every map already in the game.