边缘世界 RimWorld

边缘世界 RimWorld

Work Tab
此主题已被锁定
Draylynn 2016 年 7 月 27 日 下午 6:42
Update borkage
14d game won't generate map with any FluffyTab mods installed;
There was an exception thrown by the PawnGenerator during generating a starting pawn. Trying one more time... Exception: System.NullReferenceException: Object reference not set to an instance of an object at Fluffy_Tabs.MapComponent_Priorities.get_Instance () [0x00000] in <filename unknown>:0 at Fluffy_Tabs.Widgets.Priorities (Verse.Pawn pawn) [0x00000] in <filename unknown>:0 at Fluffy_Tabs.Detours_WorkSettings._SetPriority (Verse.WorkTypeDef w, Int32 priority) [0x00000] in <filename unknown>:0 at RimWorld.Pawn_WorkSettings.EnableAndInitialize () [0x00000] in <filename unknown>:0 at Verse.PawnGenerator.DoGenerateNewNakedPawn (Verse.PawnGenerationRequest& request, System.String& error, Boolean ignoreScenarioRequirements) [0x00000] in <filename unknown>:0 at Verse.PawnGenerator.GenerateNewNakedPawn (Verse.PawnGenerationRequest& request) [0x00000] in <filename unknown>:0 at Verse.PawnGenerator.GeneratePawn (PawnGenerationRequest request) [0x00000] in <filename unknown>:0 at Verse.StartingPawnUtility.NewGeneratedStartingPawn () [0x00000] in <filename unknown>:0
< >
正在显示第 1 - 12 条,共 12 条留言
Archazy 2016 年 7 月 27 日 下午 7:09 
Yep same here
jey123456 2016 年 7 月 27 日 下午 7:51 
yep same here, this update broke my game XD. Was fine on the previous version.
Draylynn 2016 年 7 月 27 日 下午 7:52 
I'm sure Fluffy's will get round to fixing it, for the moment, just have to disable the tab mods. I already miss WorkTab. :(
jey123456 2016 年 7 月 27 日 下午 8:23 
since i am not a patient person. Heres a fix for anyone knowing how to compile a dll out here. I already fixed it for myself but im pretty sure the license wont let me distribute a fixed version.

Source/Fluffy_Tabs/Work/Detours_WorkSettings.cs | 2 ++ Source/Fluffy_Tabs/Work/MapComponent_PawnPriorities.cs | 3 +++ Source/Fluffy_Tabs/Work/Widgets_Work.cs | 2 ++ 3 files changed, 7 insertions(+) diff --git a/Source/Fluffy_Tabs/Work/Detours_WorkSettings.cs b/Source/Fluffy_Tabs/Work/Detours_WorkSettings.cs index 7a0e2b7..68269e0 100644 --- a/Source/Fluffy_Tabs/Work/Detours_WorkSettings.cs +++ b/Source/Fluffy_Tabs/Work/Detours_WorkSettings.cs @@ -46,6 +46,8 @@ namespace Fluffy_Tabs public void _SetPriority( WorkTypeDef w, int priority ) { Pawn pawn = pawnField.GetValue( this ) as Pawn; + if (pawn.Priorities() == null) + return; pawn.Priorities().SetPriority( w, priority ); } diff --git a/Source/Fluffy_Tabs/Work/MapComponent_PawnPriorities.cs b/Source/Fluffy_Tabs/Work/MapComponent_PawnPriorities.cs index cf7585e..2becbbd 100644 --- a/Source/Fluffy_Tabs/Work/MapComponent_PawnPriorities.cs +++ b/Source/Fluffy_Tabs/Work/MapComponent_PawnPriorities.cs @@ -31,6 +31,9 @@ namespace Fluffy_Tabs get { // try to get from game list. + if (Find.Map == null) + return null; + if ( _instance == null ) _instance = Find.Map.components.FirstOrDefault( comp => comp is MapComponent_Priorities ) as MapComponent_Priorities; diff --git a/Source/Fluffy_Tabs/Work/Widgets_Work.cs b/Source/Fluffy_Tabs/Work/Widgets_Work.cs index 260bac5..991b65a 100644 --- a/Source/Fluffy_Tabs/Work/Widgets_Work.cs +++ b/Source/Fluffy_Tabs/Work/Widgets_Work.cs @@ -742,6 +742,8 @@ namespace Fluffy_Tabs public static PawnPrioritiesTracker Priorities( this Pawn pawn ) { + if (MapComponent_Priorities.Instance == null) + return null; return MapComponent_Priorities.Instance.WorkgiverTracker( pawn ); }

To fix it, you should first copy the mod out of the workshop
"steam\steamapps\workshop\content\294100\725219116" inside your game mod folder. then open the source and do the modifications provided in the diff here. Then compile and you should be good to go.
最后由 jey123456 编辑于; 2016 年 7 月 27 日 下午 8:25
Fluffy  [开发者] 2016 年 7 月 28 日 上午 12:11 
thanks for the report guys. Looks like the game is generating pawns and setting their priorities before the map is loaded. Makes sense, sortof. I'll get a fixed version up tonight, in the mean time you can roll back to the previous release with the download link in the main discussion thread.
Narvi 2016 年 7 月 28 日 上午 2:24 
Just FYI, it doesn't seem to save priority lists anymore. The tab and everything works on preexisting worlds and saves, but it doesn't save your specific priorities; everything resets to 3 on load.
Rojikku 2016 年 7 月 28 日 下午 10:01 
[Resolved] July 28thish Crash on priority change
I decided to make a thread based on the amount of comments I saw relating to this issue. Then I can be subscribed to the thread, but not be spammed with unrelated issues. I hope this is more convenient for everyone.
I just noted the game crashing after a new game with priority changes. I noted that the game will not crash if it is paused, and that people go from "Wandering" to blank. After a few seconds of resumed play, with everyone frozen in place unsure what to do, the game crashes.
I can also confirm the game worked fine a few days ago.
Some comments indicate this happen even if this is the only mod installed. I have many mods, and thus cannot confirm this simply.
Edit: For practical purposes, I am running linux kernel 4.6.4
最后由 Rojikku 编辑于; 2016 年 7 月 29 日 下午 12:40
Jav 2016 年 7 月 28 日 下午 10:12 
Same thing is happening here, Windows 10
Carbondisulfide 2016 年 7 月 28 日 下午 11:12 
Happening to me as well, I've been playing on the same save for a while without changing any mods and it just suddenly started crashing when changing priorities.
flipflap 2016 年 7 月 29 日 上午 12:08 
Hello Fluffy I did all the research I could think of regarding this bug and will post a link to my dropbox

https://www.dropbox.com/sh/w8gmzzl1ejm9dk0/AACYACPzdQO3rAj4dI1bZNhla?dl=0

- As said above it does not crash when paused, however if you change a priority from 1 to 2 for example, after you press play, it will crash

- I tried without any other mods except core and the same bug occured. I did not uninstall the other mods only disabled them.

- New worlds/saves are buggy aswell.

I guess I will have to turn it off for a while. Just hope I can turn it on again when its fixed.

Thanks for your work :)

Samboy063 2016 年 7 月 29 日 上午 10:36 
I agree with erik. Someone needs to notify fluffy. My crash report (mentions Cleaning Bot from Misc. Robots but I just got one with a colonist): https://www.dropbox.com/sh/i5bbf97yzslwduq/AAA6m4W8ZQ6CXK80R5b2elHRa?dl=0.

-Does not crash when paused, only unpaused.
Disabling until fixed.
Rojikku 2016 年 7 月 29 日 下午 12:41 
Around half an hour ago an update was pushed out by fluff, and I just opened my game, changed priority, and there was no crash. Therefore I will mark this as resolved for now.
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50