Re: new nation problem
Well, on the off chance that the error is meaningful, I'd say first of all make sure that all the files referenced in the mod (the .dm itself, and all the images) are a) not currently open in another program and b) in a location with the same security permissions at the main mods folder (by default they should be, assuming you created the subfolders by hand vs. eg. unzipping an archive or something.)
If that doesn't get rid of the error, I'd say next look for potential issues in the .DM file. I see that you've got some non-ASCII characters in it (e.g. line 25/26.) I've no idea what assumptions Dominions IIII's engine makes regarding text data, but it's something to try. Sombre already pointed out the missing #end command. Nothing else jumps out at me.
If nothing stands out, then a typical debugging approach is to try small bits of the program (and that's what the mod is, an extension to a program in DOM3's scripting language) to see if they work independently. Try making a "micro mod" that has just the bare bones - modname, description, and version. Once that's working, put in a little bit at a time of your actual mod to see if it works in isolation (obviously, you'll need to have anything it's dependent upon there as well, e.g. if your unit references a weapon number, both need to be there.)
Hopefully you should be able to isolate the problem area that way.
|