Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - infinitewarp

#1
Looks like 1.14b still didn't fix the issues around pawns and IsGuest. Following the same steps to reproduce (only Core, latest CCL, and latest Hospitality with new world), these exceptions are still raised constantly for each colonist once he spawns:

Exception ticking Jagerbomb: System.NullReferenceException: Object reference not set to an instance of an object
  at Hospitality.GuestUtility.IsGuest (Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Hospitality.ThoughtWorker_Expectations.CurrentStateInternal (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.TryCreateSituationalThought (RimWorld.ThoughtDef def) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.CheckRecalculateSituationalThoughtsAffectingMoodState () [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.get_SituationalThoughtsAffectingMood () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.get_Thoughts () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.DistinctThoughtGroups () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.TotalMood () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Mood.get_CurInstantLevel () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Seeker.NeedInterval () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Mood.NeedInterval () [0x00000] in <filename unknown>:0
  at RimWorld.Pawn_NeedsTracker.NeedsTrackerTick () [0x00000] in <filename unknown>:0
  at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
  at Verse.TickList.Tick () [0x00000] in <filename unknown>:0


I found your fix in the ThoughtWorker_Expectations class:
            if(p==null) return ThoughtState.Inactive;

That certainly looks like it should work...  :-\ Maybe something missed this change in your build process?
#2
I think I've encountered a bug with A14 and the latest version of Hospitality. I only have Core, CCL (no vanilla additions), and Hospitality. I've isolated this issue specifically to having Hospitality enabled.

At first, it just looks like a bunch of spurious errors, but then things get weird when someone dies...

Start a new colony with default "Crashlanded" settings, Cassandra Classic + Challenge, any random seed, any random location, any random characters. When the colonists first pop out of their pods, this exception is raised for each of them (in this case, his name is Matthew) and keeps popping up every second or so:

Exception ticking Matthew: System.NullReferenceException: Object reference not set to an instance of an object
  at Hospitality.GuestUtility.IsGuest (Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Hospitality.ThoughtWorker_Expectations.CurrentStateInternal (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.TryCreateSituationalThought (RimWorld.ThoughtDef def) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.CheckRecalculateSituationalThoughtsAffectingMoodState () [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.get_SituationalThoughtsAffectingMood () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.get_Thoughts () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.DistinctThoughtGroups () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.TotalMood () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Mood.get_CurInstantLevel () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Seeker.NeedInterval () [0x00000] in <filename unknown>:0
  at RimWorld.Need_Mood.NeedInterval () [0x00000] in <filename unknown>:0
  at RimWorld.Pawn_NeedsTracker.NeedsTrackerTick () [0x00000] in <filename unknown>:0
  at Verse.Pawn.Tick () [0x00000] in <filename unknown>:0
  at Verse.TickList.Tick () [0x00000] in <filename unknown>:0


That's just a minor nuisance since it doesn't seem to affect anything, but then I noticed that any time a human dies, he/she usually (not always, it seems) vanishes from the world instead of leaving a corpse. I first noticed this when my guys were fighting a raid, but then I realized I could reproduce this with the debug tools. Just use the "Tool: Kill" and click on anyone. They vanish and the same exception is raised in a slightly different way:


NullReferenceException: Object reference not set to an instance of an object
  at Hospitality.GuestUtility.IsGuest (Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Hospitality.ThoughtWorker_Expectations.CurrentStateInternal (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.TryCreateSituationalThought (RimWorld.ThoughtDef def) [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.CheckRecalculateSituationalThoughtsAffectingMoodState () [0x00000] in <filename unknown>:0
  at RimWorld.SituationalThoughtHandler.get_SituationalThoughtsAffectingMood () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.get_Thoughts () [0x00000] in <filename unknown>:0
  at RimWorld.ThoughtHandler.DistinctSocialThoughtGroups (Verse.Pawn otherPawn) [0x00000] in <filename unknown>:0
  at RimWorld.Pawn_RelationsTracker.OpinionOf (Verse.Pawn other) [0x00000] in <filename unknown>:0
  at RimWorld.Pawn_RelationsTracker.Notify_PawnDied (Nullable`1 dinfo) [0x00000] in <filename unknown>:0
  at Verse.Pawn_HealthTracker.PawnKilled (Nullable`1 dinfo, Verse.Hediff hediff) [0x00000] in <filename unknown>:0
  at Verse.Pawn_HealthTracker.CheckForStateChange (Nullable`1 dinfo, Verse.Hediff hediff) [0x00000] in <filename unknown>:0
  at Verse.Pawn_HealthTracker.AddHediff (Verse.Hediff hediff, Verse.BodyPartRecord part, Nullable`1 dinfo) [0x00000] in <filename unknown>:0
  at Verse.DamageWorker_AddInjury.FinalizeAndAddInjury (Verse.Pawn pawn, Verse.Hediff_Injury injury, DamageInfo dinfo, Verse.LocalInjuryResult& result) [0x00000] in <filename unknown>:0
  at Verse.DamageWorker_AddInjury.ApplyDamagePartial (DamageInfo dinfo, Verse.Pawn pawn, Verse.LocalInjuryResult& result) [0x00000] in <filename unknown>:0
  at Verse.DamageWorker_AddInjury.ApplyToPawn (DamageInfo dinfo, Verse.Pawn pawn) [0x00000] in <filename unknown>:0
  at Verse.DamageWorker_AddInjury.Apply (DamageInfo dinfo, Verse.Thing thing) [0x00000] in <filename unknown>:0
  at Verse.Thing.TakeDamage (DamageInfo dinfo) [0x00000] in <filename unknown>:0
  at Verse.HealthUtility.GiveInjuriesToKill (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu.<DoListingItems_GameModeMap>m__704 (Verse.Pawn p) [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugOptionLister+<DebugToolForPawns>c__AnonStorey3F1.<>m__6BD () [0x00000] in <filename unknown>:0
  at Verse.DebugTool.DebugToolOnGUI () [0x00000] in <filename unknown>:0
  at Verse.DebugTools.DebugToolsOnGUI () [0x00000] in <filename unknown>:0
  at RimWorld.UIRootMap.UIRootOnGUI () [0x00000] in <filename unknown>:0
  at Verse.Root.OnGUI () [0x00000] in <filename unknown>:0


(Also, thanks so much for keeping this mod working!  :D)
#3
FWIW, I think the last line here in the OP is wrong:

Quote from: Iwillbenicetou on September 19, 2014, 08:11:57 PM
2) Include the file output_log.txt file. You can get here by going to where the Rimworld.exe/.app file is located. For PC users, open the RimWorld1135Win_Data file. For macs, right-click on Rimworld.app and click, Open Package Contents. You should find the RimWorld1135Mac_Data file, or something similar. Inside should be the Output_log.txt file.

From what I can tell, the Mac app does not write the output_log.txt file by default. I couldn't find any in the app bundle nor in the corresponding Library/Application Support folder. It seems that you have to start the app from the command line with extra arguments to write it. Here is where I figured this out:

Quote from: infinitewarp on July 17, 2016, 06:03:50 PMFor anyone else looking here for an answer to my question, the Mac apps actually behave like the Linux binaries in this case. There is no output_log.txt written by default, and to get the logs, you have to launch from the command line with an extra argument pair "-logfile FILENAME". In my case:

infinitewarp@Hackintosh:RimWorld1234Mac$ nohup ./RimWorld1234Mac.app/Contents/MacOS/RimWorld1234Mac -logfile ~/Desktop/output_log.txt &
#4
General Discussion / Re: Debug log location?
July 17, 2016, 06:03:50 PM
After much digging around, I've discovered that the oft-referenced sticky HELP: [A14] How to Install and Update All Types of Mods. is actually wrong about logging for Mac.

For anyone else looking here for an answer to my question, the Mac apps actually behave like the Linux binaries in this case. There is no output_log.txt written by default, and to get the logs, you have to launch from the command line with an extra argument pair "-logfile FILENAME". In my case:

infinitewarp@Hackintosh:RimWorld1234Mac$ nohup ./RimWorld1234Mac.app/Contents/MacOS/RimWorld1234Mac -logfile ~/Desktop/output_log.txt &
#5
General Discussion / Re: Debug log location?
July 16, 2016, 11:15:49 PM
Also, I did see this in the readme.txt:

QuoteFor debugging and troubleshooting, the output_log.txt file is in the _Data folder in the game install folder.

But I don't see that file being written anywhere.


infinitewarp@Hackintosh:RimWorld$ pwd
/Users/infinitewarp/Applications/Games/RimWorld
infinitewarp@Hackintosh:RimWorld$ find . | grep -i 'output_log.txt'
infinitewarp@Hackintosh:RimWorld$ find ~/Library/Application\ Support/RimWorld/ | grep -i 'output_log.txt'
#6
General Discussion / Debug log location?
July 16, 2016, 11:04:27 PM
Please forgive me if I've posted this in the wrong forum. I searched around in here, the wiki, and the subreddit, and I couldn't find an answer to this question.

When debug mode is enabled, you can view exceptions in the "Debug log" window. Are these logs written to disk somewhere? Where is that? (I'm on a Mac, BTW.) I couldn't find anything in the usual places like where saves/worlds live nor in the app bundle itself.

If it's not written to disk, is there a convenient way of copying text out of the Debug log window? Clicking around and pressing cmd-c or ctrl-c don't put anything in my clipboard.

(I have a couple of bugs to report on the Hospitality mod, and I was really hoping to be able to include the exception stack traces.)

Thanks!  :)

edit: Oh, and I'm talking specifically about the non-Steam version A14 (0.14.1234 rev1377).
#7
General Discussion / Re: Introduce yourself!
June 12, 2016, 01:24:26 PM
Hello all! Long time player/reader, first time poster. :) I've been playing RimWorld since Jan '15. It's my on-again-off-again addiction that I keep coming back to with each new release.

-What introduced you to RimWorld? Or to this style of game in general?
I've always been into the sim/builder games. I spent tons of time playing SimCity and SimCity 2000 in the '90s; I was all over the SCURK scene when it emerged on the Internet in the mid '90s. A few years ago, I got hooked on Minecraft shortly after the switch from infdev to alpha in 2010, and I have been running private servers for friends and colleagues ever since.

After starting to get bored with Minecraft, a friend of mine introduced me to Dwarf Fortress in early 2012. I loved the idea of it, but I couldn't get past the interface and steep learning curve. I would watch a few hours of tutorials/lets plays on YouTube, feel like I had a good handle on it for a couple of days, and realize that I'd completely forgotten everything a week later.

Then for some reason in late December 2014, I decided to try DF again. I think I was Googling around for UI mods or something, and I came across a post on Reddit suggesting RimWorld as another game in the genre of DF but with a more more approachable and usable interface. It looked great, and I bought my copy just a few days later.  :D

-What's your favorite other game?
Most recently, Cities Skylines.

-Most embarrassing gaming-related story?
Not particularly embarrassing, but a funny personal story. Back in the early alpha days of Minecraft, shortly after I started my first server, one evening some friends and I were trying to clear out some trees. This was before there were separate biomes, and generic oak trees just grew everywhere. I figured I could do a "controlled burn" to easily clear out an area, but little did I know how quickly fire spread (much faster back then). Hundreds of trees were ablaze by the time I came up with a solution. No one was fast enough to cut them down, so I resorted to dropping stacks of TNT ahead of the fire to create a physical break. That massive scar upon the landscape still hadn't healed for over a year.

-What kind of breakfast cereal is the best?
Frosted mini wheats or raisin bran crunch! Getting old means trying to at least pretend to have a healthy breakfast. :D
#8
Since you mention the compatibility thing, I seem to remember this location changing some time ago, but I couldn't find any evidence of that. Maybe I'm thinking of another game...

On both Mac OS X 10.11 and 10.10, RimWorld has been saving data to ~/Library/Application Support/RimWorld/. In that directory, I have:
~/Library/Application Support/RimWorld/Config
~/Library/Application Support/RimWorld/Saves
~/Library/Application Support/RimWorld/Worlds

On my current 10.11 system, I torched the RimWorld folder and verified that it was recreated with those subdirectories in the same place. Mods like PrepareCarefully appear to be dropping their config folders in there too.

I haven't seen anything show up for RimWorld in the Caches directory on either of my two systems.