Giter Club home page Giter Club logo

exportagency's Issues

After removing all drug policies, the configuration screen for ExportAgency throws an exception

[HugsLib][ERR] Exception during DoWindowContents: System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.First[ExposableList`1] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at ExportAgency.ExportAgencyMod.DoSettingsWindowContents (Rect inRect) [0x00000] in <filename unknown>:0 
  at RimWorld.Dialog_VanillaModSettings.DoWindowContents (Rect inRect) [0x00000] in <filename unknown>:0 
Verse.Log:Error(String, Boolean)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
RimWorld.Dialog_VanillaModSettings:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Cannot start new game with ExportAgency activated

No matter what scenario is chosen, all clicking the "next" button yields is an exception:

Exception filling window for RimWorld.Page_SelectScenario: System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
at System.Collections.Generic.List`1<RimWorld.DrugPolicyEntry>.set_Item (int,RimWorld.DrugPolicyEntry) <0x000a9>
at RimWorld.DrugPolicy.set_Item (int,RimWorld.DrugPolicyEntry) <0x00039>
at ExportAgency.ExportAgency.DrugPolicyDatabasePostfix (RimWorld.DrugPolicyDatabase) <0x0019f>
at (wrapper dynamic-method) RimWorld.DrugPolicyDatabase..ctor_Patch1 (object) <0x00075>
at Verse.Game..ctor () <0x003b6>
at RimWorld.Page_SelectScenario.BeginScenarioConfiguration (RimWorld.Scenario,RimWorld.Page) <0x00041>
at RimWorld.Page_SelectScenario.CanDoNext () <0x00053>
at RimWorld.Page.DoBottomButtons (UnityEngine.Rect,string,string,System.Action,bool,bool) <0x00471>
at RimWorld.Page_SelectScenario.DoWindowContents (UnityEngine.Rect) <0x004b8>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) <0x00882>

Note that I was using ExportAgency in B19, and I have a handful of things exported from prior versions saved. I have not yet tried removing these to see if doing so resolves the error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.