My Kludge

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

Moderators: Icemania, elliotg

Post Reply
fishfoode
Posts: 2
Joined: Fri Oct 07, 2016 6:19 am

My Kludge

Post by fishfoode »

I've been working on a small personal mod of birdpeople, manbears, and brains in jars made from better, cooler mods. I've reached the final, terrible debugging phase and I have approximately zero idea what I'm doing. If anybody can help this poor soul parse this error message, I will love you forever.
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at DistantWorlds.Types.Galaxy.SetResearchCosts(Int32 baseTechCost, ResearchNodeDefinitionList researchNodeDefinitions)
at DistantWorlds.Types.Galaxy.InitializeResearchNodeDefinitions(String applicationStartupPath, String customizationSetName)
at DistantWorlds.Types.Galaxy.InitializeData(String applicationStartupPath, String customizationSetName, ResourceSystem& resourceSystem, PlanetaryFacilityDefinitionList& facilityDefinitions, ComponentDefinition[]& componentDefinitions, FighterSpecificationList& fighterSpecifications, ResearchNodeDefinitionList& researchNodeDefinitions, GovernmentAttributesList& governments, RaceFamilyList& raceFamilies, PlagueList& plagues)
at DistantWorlds.Start.K2vvRN5NAX(String , Boolean , Boolean )
at DistantWorlds.Start.cQnaa4JA0i(Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at DistantWorlds.Controls.GlassButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at DistantWorlds.Controls.GlassButton.OnMouseUp(MouseEventArgs e)
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)
The rest of it is registering as a link, which I can't post, nor could I post a pastebin.
Sabranan
Posts: 486
Joined: Wed Feb 24, 2016 4:05 pm

RE: My Kludge

Post by Sabranan »

Have a look in:

%appdata%\Code Force Limited\Distant Worlds\1.9.5.12\DW crash log.txt
or
%systemdrive%\Users\YOURUSERNAME\Documents\my games\Distant Worlds Universe\DW_CrashDump.txt

You may find more info if these files have been generated. If the crash happens on loading DW, it might even tell you the .txt file and line number it failed on.

Looking at that error I'm guessing it's the research.txt file though, since the first couple lines of the error are all about research.
User avatar
Retreat1970
Posts: 1131
Joined: Wed Nov 06, 2013 11:09 am
Location: Wisconsin

RE: My Kludge

Post by Retreat1970 »

Looking at that error I'm guessing it's the research.txt file though

I agree with that guess. Probably a typo.
fishfoode
Posts: 2
Joined: Fri Oct 07, 2016 6:19 am

RE: My Kludge

Post by fishfoode »

Thanks for the quick replies, you were right on the money. Had old component index numbers in the research.txt.
Post Reply

Return to “Design and Modding”