spdskatr/ProjectRimFactory

1.0 Error after loading up rimworld

Closed this issue · 8 comments

Getting the following error after rimworld started.

Error while instantiating a mod of type ProjectRimFactory.Common.ProjectRimFactory_ModComponent: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Exception from HarmonyInstance "com.spdskatr.projectrimfactory" ---> System.ArgumentOutOfRangeException: Argument is out of range. Parameter name: index at System.Collections.Generic.List1[System.Reflection.Emit.Label].get_Item (Int32 index) [0x00000] in :0
at ProjectRimFactory.Common.HarmonyPatches.GenSpawnPatch+d__1.MoveNext () [0x00000] in :0
at System.Linq.Enumerable+c__Iterator01[System.Object].MoveNext () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[System.Object].AddEnumerable (IEnumerable1 enumerable) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[System.Object]..ctor (IEnumerable1 collection) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToList[Object] (IEnumerable1 source) [0x00000] in :0
at Harmony.CodeTranspiler+d__7.MoveNext () [0x00000] in :0
at System.Linq.Enumerable+c__Iterator01[Harmony.CodeInstruction].MoveNext () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[Harmony.CodeInstruction].AddEnumerable (IEnumerable1 enumerable) [0x00000] in <filename unknown>:0 at System.Collections.Generic.List1[Harmony.CodeInstruction]..ctor (IEnumerable1 collection) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.ToList[CodeInstruction] (IEnumerable1 source) [0x00000] in :0
at Harmony.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00000] in :0
at Harmony.ILCopying.MethodBodyReader.FinalizeILCodes (System.Collections.Generic.List1 transpilers, System.Collections.Generic.List1 endLabels, System.Collections.Generic.List1 endBlocks) [0x00000] in <filename unknown>:0 at Harmony.ILCopying.MethodCopier.Finalize (System.Collections.Generic.List1 endLabels, System.Collections.Generic.List1 endBlocks) [0x00000] in <filename unknown>:0 at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1 prefixes, System.Collections.Generic.List1 postfixes, System.Collections.Generic.List1 transpilers) [0x00000] in :0
--- End of inner exception stack trace ---
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1 prefixes, System.Collections.Generic.List1 postfixes, System.Collections.Generic.List1 transpilers) [0x00000] in <filename unknown>:0 at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00000] in <filename unknown>:0 at Harmony.PatchProcessor.Patch () [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.<PatchAll>b__7_0 (System.Type type) [0x00000] in <filename unknown>:0 at Harmony.CollectionExtensions.Do[Type] (IEnumerable1 sequence, System.Action1 action) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 at ProjectRimFactory.Common.ProjectRimFactory_ModComponent..ctor (Verse.ModContentPack content) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in <filename unknown>:0 at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in <filename unknown>:0 at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in <filename unknown>:0 at Verse.LoadedModManager.CreateModClasses () [0x00000] in <filename unknown>:0 Verse.Log:Error(String, Boolean) Verse.LoadedModManager:CreateModClasses() Verse.LoadedModManager:LoadAllActiveMods() Verse.PlayDataLoader:DoPlayLoad() Verse.PlayDataLoader:LoadAllPlayData(Boolean) Verse.Root:<Start>m__1() Verse.LongEventHandler:RunEventFromAnotherThread(Action) Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()

What's the version if the game you are running? Which version of the mod?

The latest 1.0.2509 (i think that was the number) and the mod version 1.0.1.
From what i tried ingame the cooking station worked fine, dunno for the other stations though.

Are you running any other mods? Countless hours of testing has yielded nothing. Post your modlist if you can.

If it's an issue with another mod it could be everything. Here is a list of my mods:

HugsLib
JecsTools
RuntimeGC
Miscellaneous 'CORE'
Misc. Robots
Misc. Robots++
Rah's Bionics and Surgery Expansion
ED-EnhancedOptions
Job Splitter
OgreStack
Double Population
Better Workbench Management
RunAndGun
Mad Skills
Allow Tool
EdB Prepare Carefully
[KV] More Trait Slots - 1.0
RimHUD
CustomDeathRandomness
Death Rattle
Death Rattle - Comatose
[RF] Pawns are Capable! [1.0]
Ugh You Got Me
[SYR] Harvest Yield Patch
Room Food
Selling prisoners with no guilt
Defensive Positions
[KV] Change Dresser - 1.0
SF [v1.0] Priority Treatment
Hand Me That Brick Lite
Better Pawn Control
[1.0] FuckFriendlyFire
Dubs Mint Menus
While You're Up [1.0]
Skilled Stonecutting
Achtung!
Damage Indicators
[RF] Rumor Has It.... [1.0]
Harvest Organs Post Mortem - 4.1 [1.0]
Harvest Everything!
Hardworking animals 1.0
Prepare Landing
Just Ignore Me Passing
Snap Out!
Interaction Bubbles
Follow Me
Tech Advancing
Room Sense
More Faction Interaction
Heat Map
Medical Tab
Numbers
Camera+
Color Coded Mood Bar
Replace Stuff
Feed The Colonists
Spoons Hair Mod
Pick Up And Haul
Simple sidearms
Animals Logic
Prisoner Harvesting
[SYR] Prosthetic Icons
Infused
Simple Bulk Drugs
Bulk Components
Steel extraction
MoreSteelFromSlag - x50
Melee Hunting 1.0
Realistic Rooms
QualityBuilder
Sometimes Raids Go Wrong
[SYR] Set Up Camp
[KV] Show Hair With Hats or Hide All Hats - 1.0
What the hack?!
Psychology
Pharmacist
Dinosauria
Megafauna
Genetic Rim
GeneticRim Dinosauria Patch
A Dog Said... Animal Prosthetics
LBE's A Dog Said Easy Patcher
Glitter Tech
Industrialisation
Industrialisation - Glitter Tech Addon
Sparkling Worlds - Full Mod
More Vanilla Turrets [1.0]
[XND] Turret Extensions
More Vanilla Turrets - Turret Extensions Patch
Rimsenal - Rimhair
Xeva's Rimhair
Fertile Planet
Combat Training
[XND] Visible Pants
Rimsenal - Enhanced Vanilla Pack
Floored
[T] MoreFloors
More vanilla factions
More Mechanoids
MendAndRecycle
Hardcore Armors
gloomy_hair
Fences And Floors
Real Ruins
[SYR] Metallic Batteries
Expanded Roofing
Alpha Animals
Storage Solutions
More Furniture [1.0]
Door Mat R1.0
Quarry
RT Solar Flare Shield
Therapy
Dubs Rimkit
RIMkea
More Sculpture
Extended Storage
Centralized Climate Control
VGP Garden Gourmet
Wall Light
Star Wars - The Force
Star Wars - Factions
Star Wars - Fully Functional Lightsabers
Various Space Ship Chunk
[sd] advanced powergeneration
VGP Vegetable Garden
Matching Embrasures
Medieval Times
Misc. Training
RT Fuse
More Trade Ships
Tilled Soil
Hospitality
[KV] RimFridge - 1.0
Deadly Weapon Tweaks [1.0]
Auto Seller
Psychology Imprisonment Patch
ShowModDesignators
Run and Hide
Change map edge limit
[RF] Etched Stone Walls [1.0]
Bulk Stonecutting
[FSF] Rain Washes Away Filth
[KIR]Drop Pod Raids are Spacer Tech[1.0]
[SS]Maid Project
WeaponStats
[sd] goodnight
Incident Person Stat
Deep Ore Identifier
[CP] Detailed Body Textures II (1.0)
Spidercamp's Dog Pack (1.0)
SpiderCamp's Dog Pack A Dog Said Compatability Patch
[1.0] Dire Raids
Terraform Rimworld
[FSF] Efficient Utilities
Snowy Trees
Apparello 2
Pack Mules Extended - Dinosauria
Giddy-up! Core
Giddy-up! Battle Mounts
Giddy-up! Caravan
Giddy-up! Ride and Roll
PowerSwitch
Respect the Scars [1.0]
[B19]GW-HornHair
Giddy-up! Mechanoids
Pawn Rules
[Ods] Mens Hair
Fallout Traits
Table Diner
Expanded Prosthetics and Organ Engineering
[1.0] DE Surgeries
MiningCo. ForceField
MiningCo. Projector
Night Light [1.0]
llCher Facell
[Ods] Third Reich - Uniforms
PhiClient
[1.0] RPG Style Inventory [V2.2]
Project RimFactory - Core
Project RimFactory - Drones
Project RimFactory - Insanity
Project RimFactory - Storage

Ah, it seems to be ExtendedStorage. Seems fixable

Nice! :)

Try the newest release and load this mod after ExtendedStorage for the time being. Closing since this seems to be fixed.

Yes it's fixed now, no errors at the start!