[Resolved] Unplayable Random OOB generator.

He's on the board and he writes tons of useful tools to make modding that much easier.
Post Reply
Michael Slaunwhite
Reactions:
Posts: 4358
Joined: Fri Jan 08, 2010 8:15 am

[Resolved] Unplayable Random OOB generator.

Post by Michael Slaunwhite »

Hello.

I have been trying to get a random oob to work, and all that happens is a crash.

One question: Do I have to do more too the oob after I select create random oob, or should I be able to play the oob right after it generates it?

My way of thinking is that after it creates the random oob, it should be able to play.

or...

Am I being a bonehead?

Also, I have the latest version.

Cheers...
Last edited by Garnier on Tue May 04, 2010 12:55 pm, edited 1 time in total.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re:Unplayable Random OOB generator.

Post by Garnier »

How are you using the OOB? After randomly generating an OOB, it should load it into the editor. Then you save it where you want it, manually.

Email me an OOB that causes a crash and I'll look at it, it's quite easy for me to find problems that way.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
Michael Slaunwhite
Reactions:
Posts: 4358
Joined: Fri Jan 08, 2010 8:15 am

Re:Unplayable Random OOB generator.

Post by Michael Slaunwhite »

Hello.

Here is the OOB.

Once I save the scenario, I tried to convert it to SOW, but it comes up as an invalid TC2M oob.

Also, when I use it in SOW, just clicking on the OOB crashes me to the desktop.

Also, when I run OOBedit, and load the OOB, the oob editor crashes giving me an "Unhandled exception error (Input string was not in a correct format)

Here is the error...

---------------------------------------------------------------------------

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at GEditOOB.OOB.Chain..ctor(String[] pos)
at GEditOOB.OOB.UnitElement..ctor(String[] fields)
at GEditOOB.OOB.OrderOfBattle.LoadElements(List`1 lines)
at GEditOOB.IO.IOEngine.LoadOOBFromFile(String path)
at GEditOOB.LoadSave.TryLoadOOBFromFile(String path)
at GEditOOB.LoadSave.OpenDialog()
at GEditOOB.MainForm.openToolStripMenuItem_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.HandleMouseUp(MouseEventArgs 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.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.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.3053 (netfxsp.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
EditOOB
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/NorbSoftDev/Scourge%20of%20War%20-%20Gettysburg/EditOOB.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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. [file name=OOB_SB_Random1.rar size=3114]http://www.norbsoftdev.com/media/kunena ... andom1.rar[/file]
Attachments
OOB_SB_Random1.rar
(3.04 KiB) Downloaded 4 times
Last edited by Michael Slaunwhite on Tue May 04, 2010 9:02 am, edited 1 time in total.
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re:Unplayable Random OOB generator.

Post by Garnier »

You are using the "Export as scenario" option. You can't use a scenario-exported OOB in sandbox mode, nor can you view such an oob in the editor. To save an OOB for use in sandbox mode you must just use the "Save" or "Save As" buttons.


I put in a lot of options that people wanted for specific things but unfortunately other people will end up using them without understanding them and have problems like this. :)
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
Michael Slaunwhite
Reactions:
Posts: 4358
Joined: Fri Jan 08, 2010 8:15 am

[Resolved] Unplayable Random OOB generator.

Post by Michael Slaunwhite »

Thanks Garnier.

I appreciate the help.

that is exactly what I did.

Cheers, and thanks for the quick response.
Last edited by Garnier on Tue May 04, 2010 12:55 pm, edited 1 time in total.
Post Reply