.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Utility: dom3Editor 1.0 released (http://forum.shrapnelgames.com/showthread.php?t=47490)

Larz June 8th, 2011 12:01 AM

dom3Editor 1.0 released
 
I have updated the Dominions 3 Mod Editor I have been working on to version 1.0. For those who don't know this is a visual editor for .dm files that includes many features of a modern integrated development environment included syntax coloring, code completion, error checking, integrated help and an overview mode where you won't have to write a single line of code if you don't want to. Here are some links to the previous announcements: (http://forum.shrapnelgames.com/showthread.php?t=47307). I have fixed a number of bugs and added a few enhancements. I have also upgraded a lot of the parsing infrastrusture resulting in a 2x increase in parsing speed. Here is an incomplete list of the additions and fixes:

- Bug with "##" used as comment (fixes editting the Mytheology mod)
- Better default values for all fields (matches the value in dom3db or modding manual for new objects).
- parser speed increase x2
- copystats always first command of newmonster
- weapon #flyspr second parameter is optional
- magicskill and custommagic are handled better and all defaults for existing monsters can be seen
- Spells can now have three #restricted values instead of only one.
- All of the sprites from the game will now appear in the editor (monsters, items, flags).
- PDF report generation

There are versions of the editor for Windows, Linux and Mac. This is an open-source project, so the source code is freely available. The project webpage is:

http://code.google.com/p/dom3editor/

Thanks to everyone who sent feedback and helped me improve this application.

Foodstamp June 8th, 2011 09:08 AM

Re: dom3Editor 0.9.1 released
 
This looks really awesome. I will give it a shot this week.

Foodstamp June 21st, 2011 09:38 PM

Re: dom3Editor 0.9.1 released
 
Lars,

I had a chance to try this out. It is really cool and it found a typo in a megamod I had made.

I like it quite a bit and will definitely try to migrate myself over to using it over notepad++ in the future.

I saw a few bugs. Some of the graphics for units didn't show up, and it reported erroneous errors in the mods.

Do you plan to update this for the upcoming patch?

Thanks again for your hard work. This is a really great tool that should help newcomers get into modding faster.

Larz June 21st, 2011 11:20 PM

Re: dom3Editor 0.9.1 released
 
Quote:

Originally Posted by Foodstamp (Post 779280)
Lars,

I had a chance to try this out. It is really cool and it found a typo in a megamod I had made.

I like it quite a bit and will definitely try to migrate myself over to using it over notepad++ in the future.

I saw a few bugs. Some of the graphics for units didn't show up, and it reported erroneous errors in the mods.

Do you plan to update this for the upcoming patch?

Thanks again for your hard work. This is a really great tool that should help newcomers get into modding faster.

Thanks for checking it out. There do seem to be some sprites missing from the ones I have in the app. I will try to get the missing ones added. I do plan to update this when the patch comes out along with adding better support for things like addreccom, addrecunit that can have a large number of entries by letting the user dynamically add new entries.

I also want to add a little more help for fields with well defined values, like combo boxes for paths (so you choose Fire instead of having to remember what the path number is).

Edi June 22nd, 2011 12:01 PM

Re: dom3Editor 0.9.1 released
 
Waiting for the new patch is definitely a good idea, since there are several new modding commands and some mechanics changes to some of the existing ones (#custommagic, for example).

Larz July 3rd, 2011 09:30 PM

dom3Editor 0.9.2 released
 
I have uploaded the latest version (0.9.2) of the dom3editor. It contains the following enhancements:

- Better support for commands that can have a large number of entries like addreccom, addrecunit for nations and homecom and homemon for sites.

- All commands have help text that will be displayed when the mouse is hovered over them. This occurs in the text editor and non-text displays of the mod. The help is taken from the modding manual. I think this is a great addition and will help novices and experts alike.

- Support for the new 3.27 patch of Dominions. All the new commands have been added.

The new version is located at http://code.google.com/p/dom3editor/downloads. You can download the full version or, if you already have 0.9.1 installed, you can download a patch to upgrade. Just unzip the patch in the same directory you have the dom3editor installed in to upgrade.

Thanks for trying this application.

GFSnl July 6th, 2011 06:45 PM

Re: dom3Editor 0.9.1 released
 
One thing if you check #copystats it positions the line at the end. So if you had checked other things they will be undone by this command at the end.
Is it possible to have a #copystat always as the second line after #newmonster?

regardless of the time you checked copystat?

Really, really, really great program.

Thanks

Larz July 9th, 2011 02:27 PM

Re: dom3Editor 0.9.1 released
 
Quote:

Originally Posted by GFSnl (Post 779888)
One thing if you check #copystats it positions the line at the end. So if you had checked other things they will be undone by this command at the end.
Is it possible to have a #copystat always as the second line after #newmonster?

regardless of the time you checked copystat?

Really, really, really great program.

Thanks

Good catch, I will get that fixed for the next release. There are some other commands that are order dependent that I will also make work correctly.

Thanks for the feedback.

GFSnl September 9th, 2011 02:19 PM

Re: dom3Editor 0.9.1 released
 
Great, program.

Made Myconos with it and the program allowed for very complex routines with all kinds of shapes to be programmed in an orderly fashion.

That said I did find some bugs.

--- When you type an Apostrophe in the description of a unit it will become an '\'.

--- When you change a numeric number like for example:
#secondshape 2600 into #secondshape 2601 or
change a weapon number.
It sometimes doesn't change anything and seems to freeze.
( it might have something to do with a sorting routine as the program becomes very slow too. Do you use some large JOIN tables or so? )

--- The program gives an error notification for unit numbers over 3000 which are allowed after the 3.27 patch.

That's it. Tnx.

llamabeast September 10th, 2011 06:42 AM

Re: dom3Editor 0.9.1 released
 
I meant to say before Larz - thanks very much indeed for this very impressive program.

I've been coding mods for some time so I'm more comfortable staying in text mode. But the error checking from this program is fantastic - helped me hunt down tens of bugs in CB1.9 (most of which had been there through a number of earlier versions I think). So, thanks!

Larz September 11th, 2011 03:10 AM

Re: dom3Editor 0.9.1 released
 
Thanks for the words of praise, I really enjoy working on this project. The next release is being worked on, it will fix the bugs listed in this thread (and a few more I found). I am also nearing completion on the mod report generator that's built into the editor that can create pdf reports on mods. These reports can contain everything in the mod (500 pages of pdf for CBM, not very useful) or can be scoped down to areas of interest. For instance, you can see just what's in a mod for a certain nation, including it's allowed pretenders, recruitables, heroes and national spells. Even more interesting is that you can see the change from vanilla dom3 or even another version of a mod! So, you could load up CBM 1.84 and 1.91 and get a report on everything that has changed and see old and new values side by side, or just see what has changed for your favorite nation.

It's taking a little longer then I thought it would to complete this (I'm spending most of my "free time on the computer" actually playing dom instead of writing tools for it). But, I have made good progress on the bug fixes so I may just release those if the mod reports slow me down.

jimbojones1971 September 12th, 2011 03:56 AM

Re: dom3Editor 0.9.1 released
 
This looks to be a very helpful app indeed, thanks Larz! I was hoping someone in the community had written something like this, and fortunately for me you have :-)

Foodstamp September 22nd, 2011 08:47 PM

Re: dom3Editor 0.9.1 released
 
Just wanted to bump this as I am using it right now and it found a few silly mistakes I made. I love this tool.

Soyweiser October 2nd, 2011 06:39 PM

Re: dom3Editor 0.9.1 released
 
I'm getting this error:
Code:

org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0
        at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)
        at org.larz.dom3.editor.DmEditor$1$2.process(DmEditor.java:144)
        at org.larz.dom3.editor.DmEditor$1$2.process(DmEditor.java:1)
        at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36)
        at org.eclipse.xtext.util.concurrent.IStateAccess$AbstractImpl.readOnly(IStateAccess.java:40)
        at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:70)
        at org.larz.dom3.editor.DmEditor$1.run(DmEditor.java:141)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.larz.dom3.editor.DmEditor.addPages(DmEditor.java:104)
        at org.eclipse.ui.forms.editor.FormEditor.createPages(FormEditor.java:138)
        at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
        at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
        at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
        at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
        at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
        at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
        at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1254)
        at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1207)
        at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1606)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:497)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
        at org.eclipse.ui.internal.PartStack.add(PartStack.java:483)
        at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
        at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
        at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
        at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
        at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:778)
        at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
        at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:638)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2860)
        at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
        at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
        at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
        at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2674)
        at org.larz.dom3.ApplicationActionBarAdvisor$2$1.run(ApplicationActionBarAdvisor.java:153)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.larz.dom3.ApplicationActionBarAdvisor$2.run(ApplicationActionBarAdvisor.java:132)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.larz.dom3.Application.start(Application.java:35)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)

When I try to open mytheology3_9.dm

lch October 7th, 2011 12:24 PM

Re: dom3Editor 0.9.1 released
 
Thanks a lot for the tool, again, for the updates to it, and especially to the source code that you have made available as well on the Google Code page.

Larz November 14th, 2011 12:11 AM

Re: dom3Editor 1.0 released
 
I have updated the OP with information on the 1.0 release of dom3editor. I have fixed all of the bugs sent to me and made some upgrades to the parser to speed it up.

One thing I have added is the ability to create a PDF report from a mod that lists all of the changes the mod implements, including the old and new values. At the moment this feature is not really very useful, it's just a first pass at my goal of auto-generated documentation that is useful and nice to look at. My goal is to be able to generate different manuals ("Nation Manuals" that will list all of the changes that effect a certain nation or a "Monster Manual" to list all of the monster changes) in an easy to read format including pictures of sprites and translated mod values (Fire instead of "0", translated bitmasks, etc). You could print out the differences between the mod and vanilla or even the differences between two versions of the mod to see what nations are effected most by changes.

There are versions of the editor for Windows, Linux and Mac. This is an open-source project, so the source code is freely available. The project webpage is:

http://code.google.com/p/dom3editor

Calahan January 31st, 2012 04:09 PM

Re: dom3Editor 1.0 released
 
2 Attachment(s)
Just started playing around with this program, and must say it's absolutely great. Many thanks for creating it Larz :up:

One possible bug I did find though is with entering descriptions, as the Carriage Returns being created are not recognised by Dominions. As the \r\n etc commands are being displayed in the text description (rather than being followed by Dominions 3)

Here's a screenshot to highlight the problem, and I've attached the simple mod I created to test it.

http://forum.shrapnelgames.com/pictu...&pictureid=497

Larz February 1st, 2012 12:38 AM

Re: dom3Editor 1.0 released
 
Thanks for letting me know. I'll take a look at the issue.

Larz February 1st, 2012 11:54 PM

Re: dom3Editor 1.0 released
 
1 Attachment(s)
Quote:

Originally Posted by Calahan (Post 793844)
Just started playing around with this program, and must say it's absolutely great. Many thanks for creating it Larz :up:

One possible bug I did find though is with entering descriptions, as the Carriage Returns being created are not recognised by Dominions. As the \r\n etc commands are being displayed in the text description (rather than being followed by Dominions 3)

Here is a patch that should fix the problem. Just unzip in your dom3editor directory. I will include this fix in the next offical release. Thanks for the bug report.

Larz March 12th, 2012 10:07 AM

Re: dom3Editor 1.0 released
 
There is a new release of the dom3editor (1.0.2). This is a bugfix release to address a couple of issues found by users. They are:

- Newlines in descriptions inserted unwanted characters.
- When modding items, the #weapon can now be a string as well as the weapon number. This is not allowed according to the modding manual, but I noticed several mods did this and tested that it does work. So it is now allowed.
- Valid new monster numbers increased to 3999. Again, this appears to be wrong in the modding manual but testing indicated this is the proper max.
- Default values for item modding should work better.
- The "General Modding" commands can now occur anywhere in the mod. They used to be restricted to the top of the mod (which was incorrect). Also, they can be properly edited from the form page.

There are downloads for Windows/Linux/Mac located at:

http://code.google.com/p/dom3editor/downloads/list

I have also uploaded a patch that will patch a current installation of the 1.0 version to 1.0.2. Just unzip the files into your dom3editor directory (files will go under plugins). This patch works on all platforms. To verify that it worked just go to Help->About and check the version number.


All times are GMT -4. The time now is 05:27 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.