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 - GiantSpaceHamster

#316
Help / Re: Custom window blocking map panning
August 18, 2016, 04:12:58 PM
Thanks! I'll plug that in tonight and test.
#317
Help / Custom window blocking map panning
August 18, 2016, 02:37:26 PM
I've been working on a custom mood/temperature monitor window and I've made a lot of progress but one thing I haven't been able to figure out is why, when the new window is open, it blocks the user from being able to pan the map using either the mouse or the keyboard? I haven't implemented any sort of minimize/expand functionality but it looks like <esc> closes the window which then allows panning again. Anyone have any ideas?
#318
Thanks for the replies! I have been using a decompiler to view into the assembly and search for things and that has helped a lot. I tested using that utility method for getting the temperature "around" an object and it seems to be giving me what I want. I forget the method name but I think the class was GenTemperature.

Being able to search for keywords helps but I was a bit surprised to see a pretty flat class hierarchy with no sub packages to help navigate around and find what you're looking for.

I have now been able to add a ticker to my custom temperature chart showing each colonists' current temperature along with a line showing the outside temperature making it really easy to see when someone is outside their comfort zone at a glance. It all updates dynamically. I also played around with getting a click handler working so you can jump to a colonist by clicking on them in the list.
#319
I've only just started experimenting with C# modding but I noticed that my classes were not being loaded until I started a new game. Try that if you haven't already. I'm not sure under what circumstances that's required since I can make changes to a class implementation and load a save game and see the new changes take effect, but the first time I added the classes I was not seeing them initialized until I started a new game.

P.S. Holy cow the verification step in this forum is TEDIOUS!
#320
Hey everyone,

I started making a mod last night. My goal is to make a mod that provides a new "moods dashboard" overview pane for your colonists. So far I've been able to get a new custom window up, list the colonist names, and display their safe and comfortable temperature min/max values relative to each other on a small chart. There's also a vertical line showing the outside temperature, but that doesn't apply to every colonist if some are inside. What's the best way to get a colonist's current temperature? I saw a couple methods related to getting the temp "around an entity" and for getting the temp "within a tile". What's the difference between these and is one of them the one I'm looking for?

The CCL was immensely useful for getting started. I looked at the minimap to figure out how to make my own custom window and browsed the decompiled assemblies to try and find the data I need from the game.

Is there a general breakdown of where to find certain types of information from the game data? There are a ton classes and even a very high level "here's where this type of data can be found" would be very handy from someone with more experience.