[1.0] EdB Prepare Carefully - v1.0.13 (28 Jul 2019)

Started by EdB, September 21, 2014, 12:30:45 PM

Previous topic - Next topic

code99xx

#1515
Im also having these issues when trying to save created pawns in prepare careful:

Prepare Carefully could not find the pawn kind definition for the saved character: "AIPawn"
Verse.Log:Warning(String)
EdB.PrepareCarefully.PresetLoaderVersion3:LoadPawn_Patch1(Object, SaveRecordPawnV3)
EdB.PrepareCarefully.ColonistLoaderVersion3:Load(PrepareCarefully, String)
EdB.PrepareCarefully.ColonistLoader:LoadFromFile(PrepareCarefully, String)
EdB.PrepareCarefully.ControllerPawns:LoadCharacter(String)
EdB.PrepareCarefully.PanelLoadSave:<DrawPanelContent>b__12_0(String)
EdB.PrepareCarefully.Dialog_LoadColonist:DoMapEntryInteraction(String)
EdB.PrepareCarefully.Dialog_Colonist:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


and this

Exception filling window for EdB.PrepareCarefully.Dialog_LoadColonist: System.NullReferenceException: Object reference not set to an instance of an object
at Psychology.Harmony.Optional.PresetLoaderPatch.AddPsyche (EdB.PrepareCarefully.CustomPawn&,EdB.PrepareCarefully.SaveRecordPawnV3) <0x0005c>
at (wrapper dynamic-method) EdB.PrepareCarefully.PresetLoaderVersion3.LoadPawn_Patch1 (object,EdB.PrepareCarefully.SaveRecordPawnV3) <0x014c3>
at EdB.PrepareCarefully.ColonistLoaderVersion3.Load (EdB.PrepareCarefully.PrepareCarefully,string) <0x00371>
at EdB.PrepareCarefully.ColonistLoader.LoadFromFile (EdB.PrepareCarefully.PrepareCarefully,string) <0x00124>
at EdB.PrepareCarefully.ControllerPawns.LoadCharacter (string) <0x0003e>
at (wrapper delegate-invoke) EdB.PrepareCarefully.PanelLoadSave/LoadCharacterHandler.invoke_void__this___string (string) <0x00067>
at EdB.PrepareCarefully.PanelLoadSave.<DrawPanelContent>b__12_0 (string) <0x00018>
at EdB.PrepareCarefully.Dialog_LoadColonist.DoMapEntryInteraction (string) <0x00018>
at EdB.PrepareCarefully.Dialog_Colonist.DoWindowContents (UnityEngine.Rect) <0x00c1d>
at Verse.Window/<WindowOnGUI>c__AnonStorey2C4.<>m__1B1 (int) <0x00735>

Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


These happen only when i try to save the third character i create. I go into prepare carefully, create one character, save it, create a second character, save it, create a third character, try to save but the console pops up with the above errors. If i restart the game, it works for 2 characters and then the third bugs out again.


Then im getting this error when trying to start a new game:

Exception filling window for EdB.PrepareCarefully.Dialog_Confirm: System.Reflection.TargetException: Non-static field requires a target
  at System.Reflection.MonoField.GetValue (System.Object obj) [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.ReplaceScenarioParts (RimWorld.Scenario actualScenario, RimWorld.Scenario vanillaFriendlyScenario) [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.PrepareGame () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.StartGame () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Page_PrepareCarefully.<ShowStartConfirmation>b__26_0 () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Dialog_Confirm.DoWindowContents (Rect inRect) [0x00000] in <filename unknown>:0
  at Verse.Window+<WindowOnGUI>c__AnonStorey2C4.<>m__1B1 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


Drew tabs without any being selected.
Verse.Log:Error(String)
Verse.Log:ErrorOnce(String, Int32)
Verse.TabDrawer:DrawTabs(Rect, IEnumerable`1)
RimWorld.Page_ConfigureStartingPawns:DoWindowContents_Patch1(Object, Rect)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)



These dont happen everytime but if I spend some time creating custom pawns, these errors start happening. If i start the game straight away without customizing much, it works.

code99xx

Ive spent the past hour trying to figure out the various conflicts i seem to have between mods and so far ive found 1 conflict between Psychology and EDB Prepare Carefully.

With only those 2 mods enabled (and HugsLib ofc) I cant save characters creating with prepare carefully. I can save one but when i try to save subsequent characters im getting this error:

Called InitSaving() but current mode is Saving
Verse.Log:Error(String)
Verse.ScribeSaver:InitSaving(String, String)
EdB.PrepareCarefully.ColonistSaver:SaveToFile_Patch0(CustomPawn, String)
EdB.PrepareCarefully.ControllerPawns:SaveCharacter(CustomPawn, String)
EdB.PrepareCarefully.<>c__DisplayClass12_0:<DrawPanelContent>b__1(String)
EdB.PrepareCarefully.Dialog_SaveColonist:DoSpecialSaveLoadGUI(Rect)
EdB.PrepareCarefully.Dialog_Colonist:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)



Any ideas on how to fix this? I remember in A16 or something I was able to run psychology and prepare carefully without a problem ...what changed?

eskoONE

#1517
Quote from: code99xx on August 27, 2017, 02:31:02 AM
Im also having these issues when trying to save created pawns in prepare careful:

Prepare Carefully could not find the pawn kind definition for the saved character: "AIPawn"
Verse.Log:Warning(String)
EdB.PrepareCarefully.PresetLoaderVersion3:LoadPawn_Patch1(Object, SaveRecordPawnV3)
EdB.PrepareCarefully.ColonistLoaderVersion3:Load(PrepareCarefully, String)
EdB.PrepareCarefully.ColonistLoader:LoadFromFile(PrepareCarefully, String)
EdB.PrepareCarefully.ControllerPawns:LoadCharacter(String)
EdB.PrepareCarefully.PanelLoadSave:<DrawPanelContent>b__12_0(String)
EdB.PrepareCarefully.Dialog_LoadColonist:DoMapEntryInteraction(String)
EdB.PrepareCarefully.Dialog_Colonist:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


and this

Exception filling window for EdB.PrepareCarefully.Dialog_LoadColonist: System.NullReferenceException: Object reference not set to an instance of an object
at Psychology.Harmony.Optional.PresetLoaderPatch.AddPsyche (EdB.PrepareCarefully.CustomPawn&,EdB.PrepareCarefully.SaveRecordPawnV3) <0x0005c>
at (wrapper dynamic-method) EdB.PrepareCarefully.PresetLoaderVersion3.LoadPawn_Patch1 (object,EdB.PrepareCarefully.SaveRecordPawnV3) <0x014c3>
at EdB.PrepareCarefully.ColonistLoaderVersion3.Load (EdB.PrepareCarefully.PrepareCarefully,string) <0x00371>
at EdB.PrepareCarefully.ColonistLoader.LoadFromFile (EdB.PrepareCarefully.PrepareCarefully,string) <0x00124>
at EdB.PrepareCarefully.ControllerPawns.LoadCharacter (string) <0x0003e>
at (wrapper delegate-invoke) EdB.PrepareCarefully.PanelLoadSave/LoadCharacterHandler.invoke_void__this___string (string) <0x00067>
at EdB.PrepareCarefully.PanelLoadSave.<DrawPanelContent>b__12_0 (string) <0x00018>
at EdB.PrepareCarefully.Dialog_LoadColonist.DoMapEntryInteraction (string) <0x00018>
at EdB.PrepareCarefully.Dialog_Colonist.DoWindowContents (UnityEngine.Rect) <0x00c1d>
at Verse.Window/<WindowOnGUI>c__AnonStorey2C4.<>m__1B1 (int) <0x00735>

Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


These happen only when i try to save the third character i create. I go into prepare carefully, create one character, save it, create a second character, save it, create a third character, try to save but the console pops up with the above errors. If i restart the game, it works for 2 characters and then the third bugs out again.


Then im getting this error when trying to start a new game:

Exception filling window for EdB.PrepareCarefully.Dialog_Confirm: System.Reflection.TargetException: Non-static field requires a target
  at System.Reflection.MonoField.GetValue (System.Object obj) [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.ReplaceScenarioParts (RimWorld.Scenario actualScenario, RimWorld.Scenario vanillaFriendlyScenario) [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.PrepareGame () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Controller.StartGame () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Page_PrepareCarefully.<ShowStartConfirmation>b__26_0 () [0x00000] in <filename unknown>:0
  at EdB.PrepareCarefully.Dialog_Confirm.DoWindowContents (Rect inRect) [0x00000] in <filename unknown>:0
  at Verse.Window+<WindowOnGUI>c__AnonStorey2C4.<>m__1B1 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)


Drew tabs without any being selected.
Verse.Log:Error(String)
Verse.Log:ErrorOnce(String, Int32)
Verse.TabDrawer:DrawTabs(Rect, IEnumerable`1)
RimWorld.Page_ConfigureStartingPawns:DoWindowContents_Patch1(Object, Rect)
Verse.<WindowOnGUI>c__AnonStorey2C4:<>m__1B1(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle)



These dont happen everytime but if I spend some time creating custom pawns, these errors start happening. If i start the game straight away without customizing much, it works.

i have similar issues with it. i cant start a game when i saved a preset it seems.

luckily there is workaround. i need to recreate a new world and load my preset i saved earlier to get the game to start again. im using 180 mods though, i would be surprised if everything would work perfectly.

try out the workaround and lmk if it works for you.

EDIT:

you need to get to the main menu and start from there, otherwise it keeps throwing errors.

Vas

#1518
You might want to stop using photobucket, your main post looks horrible now with all the preview images as massive errors.  :P

EDIT: I also didn't see steam version linked here.
http://steamcommunity.com/sharedfiles/filedetails/?id=735106432
Click to see my steam. I'm a lazy modder who takes long breaks and everyone seems to hate.

Jason_Dayspring

Thought I would throw out a warning to anyone using Psychology with this.  If you alter their psyche you CANNOT save the character, or the preset, and trying will cause a glitch that will require a restart before loading anything at all.  It seems to work fine otherwise, so if you want to save, just edit and save everything else, then just retweak the Psyche every time you load that preset/character.  I wish there was a way to fix the glitched presets though.  My fiance and I spent 2 hours creating our friends, then save/glitch/everything gone.  :(

ChaosChronicler

Don't know if any of you are having the same problem as me but for some reason most if not all modded hair options are not showing up for me unless I randomize a character. It was fine last night and I didn't change mod order or add mods.

kubolek01

I miss one thing: managing animals the same way, instead of acting like equipment. Then I must overlap it with dev menu ; (
Eat lead, walking pile of silver! (greedy Player)
I...I can't do it. Leave it alive, please!(inner soul)
It lives 200 years to end up as a jacket?!(realists mind)
If I would go to vacation in off-Earth, even fictional place, I'd choose Nibel.

SpaceDorf

Quote from: kubolek01 on October 01, 2017, 09:19:41 AM
I miss one thing: managing animals the same way, instead of acting like equipment. Then I must overlap it with dev menu ; (

Only because you want to start with Cyber-Wargs ?

But honestly, I have not thought about that possibility, sounds reasonable.

Giving Weapons or Equipment to the Pawns would also be a nice touch ( I guess, that has been mentioned before  ::))
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

kubolek01

Quote from: SpaceDorf on October 01, 2017, 09:37:05 AM
Quote from: kubolek01 on October 01, 2017, 09:19:41 AM
I miss one thing: managing animals the same way, instead of acting like equipment. Then I must overlap it with dev menu ; (

Only because you want to start with Cyber-Wargs ?

But honestly, I have not thought about that possibility, sounds reasonable.

Giving Weapons or Equipment to the Pawns would also be a nice touch ( I guess, that has been mentioned before  ::))
Better selfdestructing Thrumbalope. Due to hediffs.
Eat lead, walking pile of silver! (greedy Player)
I...I can't do it. Leave it alive, please!(inner soul)
It lives 200 years to end up as a jacket?!(realists mind)
If I would go to vacation in off-Earth, even fictional place, I'd choose Nibel.

oddible

HELP! Every time I use Prepare Carefully I finish selecting everything with the Point Limits turned on, I get done, hit the Red button to confirm, and nothing happens, I have to hit cancel then I get an error when I start the game and the game closes.  I've tried Saving my Prepare Carefully profile, when I go back in a second time and load the profile after the error it shows I'm 1000s of points over the limit, so I adjust, save the profile again, and I get the same error, load it back up again and this time it shows I'm 500 points above the limit.  I do this about 8x and eventually I can finally start a game.  What am I doing wrong? Thanks.

CannibarRechter

For one, you don't need to use limits. Perhaps the limits stuff hasn't been tested lately?
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Canute

I allways use the limit and it allways works.
But scenarios give random appearal to your pawn with different values.
And this can cause different point values.

But when oddible encounter errors, he should post an error log.
If you can a do shared log with the button or the output_log.txt as attachment from the data folder.

oddible

#1527
BTW this same problem happened to me on both my Win and Mac machines, and happened 10 months ago when I first started playing with Prepare Carefully and a couple other mods - I've since added a few more mods but again the problem happened with a much smaller log set as well.

Shared Log Link:
https://gist.github.com/51015cb79d44162b5a53e7fd0954a1e5

Yep, seem to only happen when I have limits turned on - which I want.
Screenshot of the error message: https://imgur.com/zhZNHBq.png

Canute

Can you try something.
Change your modorder
Core
Hugslib
EdB PC

And maybe just try a colony start with points enabled with this mods only.
If it works, then one of the other mods cause trouble.

This mods i use self without problems

Wildlife Tab: OmniLocator(1.0.0.0)
Set-Up Camp: Nandonalt_SetUpCamp(1.0.0.0)
[A17] Trading Spot: TradingSpot(1.0.0.0)
Medical Tab:
Stack Merger:
Tribal Essentials Modpack: TribalDefences(1.0.0.0), TribalJoy(1.0.0.0)
Dubs Hygiene and Central Heating: BadHygiene(1.0.0.0)
Expanded Prosthetics and Organ Engineering 2.0: (no assemblies)
Hand Me That Brick: HandMeThatBrick(2.2.17.0)
Allow Tool:
Hospitality:
A Dog Said...: (no assemblies)
Work Tab:


oddible