[SOLVED] Request for help troubleshooting a light custom modpack

Please post here for questions and discussion about scenario, art and sound modding and the game editor for Distant Worlds.

Moderators: elliotg, Icemania

Post Reply
BlackGyver
Posts: 3
Joined: Mon May 26, 2014 2:38 am

[SOLVED] Request for help troubleshooting a light custom modpack

Post by BlackGyver »

Hello! I've discovered Distant Worlds recently, and wanted to try my hand at modding right after finishing the tutorial. With some help from existing mods and the modding guide PDF, I've put together a light modpack with pieces from GEM and some from Human Revolution, and a custom race (fremen) based on humans, relatively overpowered to give me some breathing room as I start getting familiar with the game. Unfortunately, the custom race I added in seems to break somewhere, as the game crashes after giving me an error message about a bad reference.

I've spent a few hours troubleshooting it, to no avail.

I've made sure my custom race has;

-A line and column in the biases/raceBiases files
-An entry pointing to a shipset
-An entry pointing to a troop set
-An entry pointing to a race picture
-An entry pointing to a flag

And still it breaks!

Any help given to resolve this would be highly appreciated!

Thanks in advance!

I attached the modpack without the Images folder (173KB), but I can't attach the whole thing (120MB), and I apparently can't link to it either.

The error message (in french):
************** Texte de l'exception **************
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à System.Drawing.Bitmap..ctor(Image original)
à DistantWorlds.Main.nMTjWNFT26()
à DistantWorlds.Main.ghuycyUYmS()
à DistantWorlds.Main.Ignite(Game game, String currentFileName)
à DistantWorlds.Start.ATIEjyY7Sf(Game )
à DistantWorlds.Start.EBhS0AEc38(Object , EventArgs )
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
à DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ButtonBase.WndProc(Message& m)
à System.Windows.Forms.Button.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Assemblys chargés **************
mscorlib
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
_
Version de l'assembly : 0.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
DistantWorlds
Version de l'assembly : 1.9.5.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Windows.Forms
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
DistantWorlds.Controls
Version de l'assembly : 1.9.5.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
DistantWorlds.Types
Version de l'assembly : 1.9.5.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.Xna.Framework
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30901.0 built by: xnabldr
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.dll
----------------------------------------
Microsoft.DirectX.DirectSound
Version de l'assembly : 1.0.2902.0
Version Win32 : 5.04.00.2904
CodeBase : file:///C:/Windows/assembly/GAC/Microsoft.DirectX.DirectSound/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.DirectSound.dll
----------------------------------------
Microsoft.Xna.Framework.Graphics
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30901.0 built by: xnabldr
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/Microsoft.Xna.Framework.Graphics/v4.0_4.0.0.0__842cf8be1de50553/Microsoft.Xna.Framework.Graphics.dll
----------------------------------------
System.Deployment
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Core
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Deployment.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.1 (RTMRel.030319-0100)
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment.resources/v4.0_4.0.0.0_fr_b03f5f7f11d50a3a/System.Deployment.resources.dll
----------------------------------------
AxInterop.WMPLib
Version de l'assembly : 1.0.0.0
Version Win32 : 1.0.0.0
CodeBase : file:///G:/Program%20Files%20(x86)/Slitherine%20Ltd/Distant%20Worlds%20Universe/AxInterop.WMPLib.DLL
----------------------------------------
Interop.WMPLib
Version de l'assembly : 1.0.0.0
Version Win32 : 1.0.0.0
CodeBase : file:///G:/Program%20Files%20(x86)/Slitherine%20Ltd/Distant%20Worlds%20Universe/Interop.WMPLib.DLL
----------------------------------------
mscorlib.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.235 (RTMGDR.030319-2300)
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.1 built by: RTMRel
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.VisualBasic
Version de l'assembly : 10.0.0.0
Version Win32 : 11.0.50861.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Management
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
PresentationCore
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
WindowsBase
Version de l'assembly : 4.0.0.0
Version Win32 : 4.0.30319.18331 built by: FX45GDRSTAGE
CodeBase : file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
Microsoft.DirectX
Version de l'assembly : 1.0.2902.0
Version Win32 : 5.04.00.2904
CodeBase : file:///C:/Windows/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------

************** Débogage JIT **************
Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette
application ou cet ordinateur (machine.config) doit avoir la valeur
jitDebugging définie dans la section system.windows.forms.
L'application doit également être compilée avec le débogage
activé.

Par exemple :

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

Lorsque le débogage juste-à-temps est activé, les exceptions non gérées
seront envoyées au débogueur JIT inscrit sur l'ordinateur
plutôt que d'être gérées par cette boîte de dialogue.
Attachments
TheGreen..NOIMG.zip
(179.5 KiB) Downloaded 7 times
User avatar
Darkspire
Posts: 1986
Joined: Thu Jun 12, 2003 8:07 pm
Location: My Own Private Hell

RE: [ISSUE] Request for help troubleshooting a light custom modpack

Post by Darkspire »

Welcome to the forums BlackGyver [:)]

I have had a look and there are a few things that need fixing.

1. You have two biases files in the theme, you only need raceBiases.txt. Checked that and it would seem to be ok, one thing to mention is with the biases file that it is always best to line the data up under the column numbers, makes checking easier.

2. The race file for the Fremen has the shipset number as 28, that is incorrect, numbers 0-21 are race shipsets and numbers 22 to 26 are Pirate shipsets, the shipsets must follow in numerical order, so your shipset should be numbered 27.

2a. Although allowed, it is better to never use the same number for the Pirate shipset as the race shipset, you have both at 28, use the numbers in point 2 or use -1 (random).

If numbering the shipset for the Fremen does not work then I will post a dropbox link, drop the entire theme in that and I will have a look at the whole picture.

Darkspire
BlackGyver
Posts: 3
Joined: Mon May 26, 2014 2:38 am

RE: [ISSUE] Request for help troubleshooting a light custom modpack

Post by BlackGyver »

I've narrowed it down to the "DesignsPictureFamilyIndex" function being the root of the problem. I guess there's an issue somewhere with the pictures? They have the right names, right numbers, and I've made sure they weren't over 300 pixels.

Will test some more and report back.

Edit: Didn't see your message. Thanks a lot for looking into it!

I will try renaming the shipset to 27 instead of 28.
User avatar
Darkspire
Posts: 1986
Joined: Thu Jun 12, 2003 8:07 pm
Location: My Own Private Hell

RE: [ISSUE] Request for help troubleshooting a light custom modpack

Post by Darkspire »

ORIGINAL: BlackGyver

I've narrowed it down to the "DesignsPictureFamilyIndex" function being the root of the problem. I guess there's an issue somewhere with the pictures? They have the right names, right numbers, and I've made sure they weren't over 300 pixels.

Will test some more and report back.

Which is what I just pointed out in my previous post [:D]

Rename the shipset folder to family27

DW will not be looking for family27 when loading family28 and thus should not kick out an error.

Darkspire
BlackGyver
Posts: 3
Joined: Mon May 26, 2014 2:38 am

RE: [ISSUE] Request for help troubleshooting a light custom modpack

Post by BlackGyver »

Excellent, that just solved it! Would never have thought of it. [:D]

As for the rest, I wasn't sure whether both biases and raceBiases were needed, but since I'd seen it done in a modpack or two I had around, I wondered if the redundancy was somehow important. Also, the formatting in them seems to have broken when zipped, they display all nicely at home. I've also followed your advice and chosen another pirate shipset.

Thanks for the quick and efficient help, I can now play and tweak some more. [;)]

Cheers!
Post Reply

Return to “Design and Modding”