Page 8 of 14
Re: Scenario Editor
Posted: Tue Aug 23, 2011 12:29 am
by Michael Slaunwhite
Nope, that didn't work either (renaming Mods to Mods_bak)
Here is the Error Report for NetFramework.
SPOILER: SHOW
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Gettysburg.Main.Main_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at DevComponents.DotNetBar.Office2007RibbonForm.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevComponents.DotNetBar.Office2007RibbonForm.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.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Gettysburg - Scenario Editor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/NorbSoftDev/Scourge%20of%20War%20-%20Gettysburg/Gettysburg%20-%20Scenario%20Editor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
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.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevComponents.DotNetBar2
Assembly Version: 9.5.0.16
Win32 Version: 9.5.0.16
CodeBase: file:///C:/NorbSoftDev/Scourge%20of%20War%20-%20Gettysburg/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
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.
Cheers...
Re: Scenario Editor
Posted: Tue Aug 23, 2011 1:30 pm
by Kalliser
You used the last fixed exe ? because the message :
System.NullReferenceException: Object reference not set to an instance of an object.
at Gettysburg.Main.Main_Load(Object sender, EventArgs e)
Seems to be the registry bug.
Because at this moment the soft will perform 4 steps:
1. setup the gamepath, from registry or from config file.
When done the editor made 3 actions :
2. preload of stock oobs if available in work/sdk/oobs directory
3. preload all mods present in mods directory
4. load sowgb.ini from work directory
if your mods directory was renamed it's not an error in step 3, so only 2 remain, I will add more trace in order to locate the source of the problem.
Here is the new exe with a more complete logging error :
http://www.megaupload.com/?d=IFRMHC0Y
With that you'll have an errorlog.txt created ni the same directory than the software.
Re: Scenario Editor
Posted: Tue Aug 23, 2011 3:48 pm
by Michael Slaunwhite
Kalliser Wrote:
Mega Upload is saying "The file you are trying to access is temporarily unavailable. Please try again later."
Cheers.
Re: Scenario Editor
Posted: Tue Aug 23, 2011 4:16 pm
by Michael Slaunwhite
It appears that this latest fixed .exe (version 1.5) is working. This is a very nice editor, I like it.
So far it's has been worth some of the headaches over the last couple days. I will let you know if I come across any problems.
The attachment editor.jpg is no longer available
Thanks!

Re: Scenario Editor
Posted: Tue Aug 23, 2011 4:28 pm
by Michael Slaunwhite
Kalliser.
This is simply incredible. Excellent, well I'm off to create my very first scenario.
Again, thank you for all the help!

Re: Scenario Editor
Posted: Tue Aug 23, 2011 4:40 pm
by Kalliser
No thank you for your patience, find and correct bug is always a pain for developper

without your help there is nothing much I can do.
Re: Scenario Editor
Posted: Tue Aug 23, 2011 5:03 pm
by Michael Slaunwhite
No thank you for your patience, find and correct bug is always a pain for developper

without your help there is nothing much I can do.
Well, I am happy that I helped (I don't think I did all that much really).
I would like to make my first request (I know your a busy man so I'll keep it short).
REQUEST:
While placing troops on the map, could you add a function which would allow you to set their facing? I know you can already to this by using the parameters in the right panel, but what I mean is holding either the CTRL or ALT key, and a small arrow would appear, you swivel the troops to their new facing, or while on a unit, right click, and a small compass appears, and you choose your facing.
Just a thought Sir. Anyway I'm off...
Thanks again!

Re: Scenario Editor
Posted: Tue Aug 23, 2011 5:36 pm
by Michael Slaunwhite
Hi me again.
Well so far so good. Since I am making a Scenario from scratch, and when I load an OOB, of course the troop placements are all in the top left hand corner since I do not have a startlocation.csv to load.
REQUEST:
Would it be possible to have the ability to click & drag from the drop down list of troops in the right hand panel onto the map?
Anyway, man this is a great tool to have, finally something that makes sense to me.
Cheers.
SPOILER: SHOW
Too bad you can't have dumb AI like chickens, cows, and triggers to have birds fly overhead.
Re: Scenario Editor
Posted: Tue Aug 23, 2011 7:12 pm
by Kalliser
I have 2 workaround :
1. when you select an element in the oob it become selected on the map so you can drag&drop from the map (but in your exe the highligting has been disabled, the element is just coming to top of the pile)
Or
2. When the oob has been imported launch the game in debug mode, then load your scenario. Move the troop at the desired location then when your are satisfied export the placement in startlocation.csv (you must bind the key according to the SDK instruction). Then come back in editor and merge startlocation.csv with your scenario.
About facing the troop you can already do it in editor, just do a drag&drop with the right mouse button instead of left mouse button (who is for troop displacement), you will see a red line showing the facing of the unit.

Re: Scenario Editor
Posted: Tue Aug 23, 2011 7:33 pm
by Michael Slaunwhite
I have 2 workaround :
1. when you select an element in the oob it become selected on the map so you can drag&drop from the map (but in your exe the highligting has been disabled, the element is just coming to top of the pile)
Or
2. When the oob has been imported launch the game in debug mode, then load your scenario. Move the troop at the desired location then when your are satisfied export the placement in startlocation.csv (you must bind the key according to the SDK instruction). Then come back in editor and merge startlocation.csv with your scenario.
About facing the troop you can already do it in editor, just do a drag&drop with the right mouse button instead of left mouse button (who is for troop displacement), you will see a red line showing the facing of the unit.

Cool, thank you very much!
Okay here is a problem I have found which caused an error.
[Screen Shot]
The attachment error.jpg is no longer available
[Error]
SPOILER: SHOW
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Reflection.TargetInvocationException: Property accessor 'Type' on object 'Gettysburg.Data.Scenario.ScenarioIniFile' threw the following exception:'Must specify valid information for parsing in the string.' ---> System.ArgumentException: Must specify valid information for parsing in the string.
at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at Gettysburg.Data.Scenario.ScenarioIniFile.get_Type()
--- End of inner exception stack trace ---
at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
at DevComponents.DotNetBar.PropertyNode.GetPropertyValueCore(Object target, PropertyDescriptor propertyDescriptor)
at DevComponents.DotNetBar.PropertyNode.GetPropertyValue(Object target)
at DevComponents.DotNetBar.PropertyNode.ApplyValue(Object value, Exception valueException)
at DevComponents.DotNetBar.PropertyNode.ApplyEdit(Object text)
at DevComponents.DotNetBar.PropertyNode.ApplyEdit()
at DevComponents.DotNetBar.PropertyNode.▫(Object ن, EventArgs ه)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.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: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Gettysburg - Scenario Editor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/NorbSoftDev/Scourge%20of%20War%20-%20Gettysburg/Gettysburg%20-%20Scenario%20Editor.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
DevComponents.DotNetBar2
Assembly Version: 9.5.0.16
Win32 Version: 9.5.0.16
CodeBase: file:///C:/NorbSoftDev/Scourge%20of%20War%20-%20Gettysburg/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=
I was working in the scenario.ini in the editor, and I selected SP (single player), and the editor crashed.
Also, I have noticed that if I change the map I wish to use in the scenario.ini then I go back to "troop Placement" the screen does not update with the new map.
I have also searched for the error dump (.log file), and I don't see it anywhere.
Hmmmm, Later!