Unofficial Editor (Menu problems)

Users who are viewing this thread

Hey Effidian, just tried version 0.300, and I'm unable to add any triggers to any of the menus. After adding a new option to the menu (in this case the start 1 menu), I click the Edit button, and when I try to click the + button, it gives an unhandled exception error:
Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Object cannot be cast from DBNull to other types.
   at System.DBNull.System.IConvertible.ToUInt32(IFormatProvider provider)
   at System.Convert.ToUInt32(Object value)
   at OpEditor.onAddOp(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
mb_edit
    Assembly Version: 1.0.2157.25929
    Win32 Version: 
    CodeBase: file:///C:/Documents%20and%20Settings/Thanato/Desktop/mb_edit-1/mb_edit.exe
----------------------------------------
msvcm80
    Assembly Version: 8.0.50608.0
    Win32 Version: 8.00.50727.42
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd/msvcm80.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
n00854180t said:
Hey Effidian, just tried version 0.300, and I'm unable to add any triggers to any of the menus. After adding a new option to the menu (in this case the start 1 menu), I click the Edit button, and when I try to click the + button, it gives an unhandled exception error:

That's what I get for rushing the release. I'll have a fix up shortly.


Edit: Fixed in 0.301. We'll just say I was making sure someone was using it. ;)
 
Figured making a new topic wasn't worth it.

I don't seem to be able to save anything I do with the editor. When I try, I get 'Syntax error: Missing operand after 's' operator.' This happens regardless of how little or what I edit.

I haven't the slightest idea if any of this is useful:

************** Exception Text **************
System.Data.SyntaxErrorException: Syntax error: Missing operand after 's' operator.
at System.Data.ExpressionParser.Parse()
at System.Data.DataExpression..ctor(DataTable table, String expression, Type type)
at System.Data.Select..ctor(DataTable table, String filterExpression, String sort, DataViewRowState recordStates)
at System.Data.DataTable.Select(String filterExpression)
at DataKey.key(String value)
at Operations.getArg(UInt32 type, String value)
at OpDataSource.writeOpBlock(DataWriter dw, DataTable tbl, Object opGroup)
at DialogSource.writeRow(DataWriter dw, DataRow row)
at DataSource.store(String path, Boolean changesOnly)
at DataManager.store(String path, Boolean changesOnly)
at EditForm.store(String path, Boolean changesOnly)
at EditForm.saveToolStripMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.TextBoxBase.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.RichTextBox.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

Last it worked was... a couple versions ago, I guess.

Incidentally, the 2d map preview is pretty awesome. I just wish I could change the orientation (i.e. turn it 180° and have the game start that way too).
 
[P]aradox said:
I don't seem to be able to save anything I do with the editor. When I try, I get 'Syntax error: Missing operand after 's' operator.' This happens regardless of how little or what I edit.

I *think* I know what this is. I'll try getting a fix up shortly.

Edit: Okay try 3.02 and see if that solves the problem. It has to do with having an element with an apostophe in the name, but I think I caught all the places where that would have been used.

Also, about the map thing. I can certainly add a rotate feature, but it won't affect the game. Thorgrim might be able to add a real rotate feature to the map editor.
 
I don't think it's worth opening a new thread for that, so I post here :

For troops, what does the 'unkillable' tick box really do ? Units die as usual.
I am trying to implement enemy heroes in HYW, with their own party, but that you can't kill or enslave in order to always have the party. I wonder how I could do that.
 
I have no idea. And I do think it would have been worth creating a new thread since this has nothing to do with a menu problem. :)

At this point I pretty much just surface the stuff from the python scripts. I don't actually know what they do. I've been waiting for either Armagan to release more documentation or for me to finish everything on my list and start playing with each option to see what they do.

Eventually, I'd like to get documentation for each field in the editor.
 
-GandalfTheGrey said:
Sorry, and thanks anyway.

No problem. I think everyone is used to keeping all the questions about a related mod or tool to a single thread because of the other forum. But since this forum is for editors, we can use new threads.
 
Back
Top Bottom