RimWorld

RimWorld

Clean Research Sort
51 Comments
Leo39994  [author] 11 hours ago 
@Caramel No, while this mod is compatible with OrganizedResearchTech, OrganizedResearchTech is better combined with the Organized Research Tab.
Caramel 13 hours ago 
can you patch OrganizedResearchTech?
VitaKaninen 23 Sep @ 8:11am 
Hopefully it will be easy to fix!
Leo39994  [author] 23 Sep @ 8:08am 
@VitaKaninen Thanks! We finally figured out what the issue was, but it's still hard to believe it was designed this way.
VitaKaninen 23 Sep @ 7:46am 
I am getting an error when using RimFridge: Now with Shelves! I believe it has to do with a hidden research topic that lists itself as a prerequisite.

Here is the error:
[Clean Research Sort]: The research tree couldn't be organized after 200 passes. The last project calculated was 'Power Factor Setting for RimFridge'.

Here is what the research def looks like for the fridge:

<Defs>
<ResearchProjectDef>
<defName>RimFridge_PowerFactorSetting</defName>
<label>Power Factor Setting for RimFridge</label>
<description>This is used for the power-factor setting of RimFridge. You shouldn't be able to see this.</description>
<baseCost>0</baseCost>
<techLevel>Neolithic</techLevel>
<recalculatePower>true</recalculatePower>
<researchViewX>256</researchViewX>
<researchViewY>256</researchViewY>
<prerequisites>
<li>RimFridge_PowerFactorSetting</li>
</prerequisites>
</ResearchProjectDef>
</Defs>
GULÉ🏠 21 Sep @ 8:44pm 
Thank you so muuuuch ! This mod made me love the complicated research tab again.
Sparkasaurusmex 17 Sep @ 11:06am 
This might be outside the scope of this mod, but doesn't seem like enough to be a mod on it's own so I'll suggest it here. It would be nice if hovering over the research button on the bottom menu displayed the current research in the tooltip.
Pablo Discobar 17 Sep @ 6:31am 
Fascinating work.
VitaKaninen 17 Sep @ 12:17am 
[Clean Research Sort]: The research tree couldn't be organized after 2000 passes. Try increasing the 'Max Sorting Passes' in the mod setting. If the issue continues, please check for mod conflicts or research that requires itself in a loop.

https://gist.github.com/HugsLibRecordKeeper/c6eb6a7272620679fcb6538761ca320a
Leo39994  [author] 16 Sep @ 11:59pm 
@VitaKaninen So, is there still a problem even if we increase the number of passes to 2000?
Then I will add another tab blacklist setting in order to reduce unnecessary passes.
VitaKaninen 16 Sep @ 11:40pm 
Ok, but I am still getting the red error suggesting that I increase the search passes. Are these things unrelated?
Leo39994  [author] 16 Sep @ 11:33pm 
@VitaKaninen The coordinates for VE mods were designed that way, with the remaining space reserved for research projects of other VE mods.
I will try to add a mod setting later to reduce the large amount of white space on the left.
VitaKaninen 16 Sep @ 10:37pm 
It seems to be having an issue with Psycasts Expanded. I tried increasing the number of passes to 500, but it still has an issue. The psycast tab still looks wonky.

https://imgur.com/a/B3RHWGN
Leo39994  [author] 16 Sep @ 5:04pm 
@LordBeef21 This keeps most research projects in their relative places. The Organized Research Tab, on the other hand, is a complete reorganization based on a new set of conditions.
LordBeef21 16 Sep @ 2:12pm 
Hi! How does this compare with Organized Research Tab? What improvements does it make?
Maxie 16 Sep @ 2:11am 
The GOAT of all mods
SS丿Strum 15 Sep @ 7:57pm 
How to conduct a cohort study
DEUS VULT! 15 Sep @ 1:01pm 
Gamechanger!
Cam™ 15 Sep @ 9:13am 
Legend o7
Vinni Pukh 15 Sep @ 8:29am 
o7 Thank you for your hard work this is fantastic
ENDERTRON66 15 Sep @ 6:39am 
mega
Lyn the Cookie 15 Sep @ 4:39am 
OMG I WANTED THIS FOR SO LONG
kongkim 15 Sep @ 2:28am 
Fantastic mod. :)
Would love if there was a option to have tabs for each tech level.
Leo39994  [author] 14 Sep @ 9:33pm 
@MacGyver Even though the vertical scrollbar has no function in the vanilla game, this mod doesn't remove it.
Oozy 14 Sep @ 9:18pm 
This bricked my game for some reason :(
MacGyver 14 Sep @ 8:49pm 
Hi! i've been looking for this mod for a long time! Is it possible to get the vertical scroll bar off?
Schadenfreude 14 Sep @ 6:14pm 
Awesome, I much prefer the vanilla screen. This is just stunning and perfect.

Thank you for this addition!
blackendpizza 14 Sep @ 1:31pm 
@Just Not everyone is a freaking coder and work in Visual Studio. -_- We just want to play a fun game. Please recognize this.
Leo39994  [author] 14 Sep @ 9:06am 
@konstantynopolitaneczka This mod doesn't change the research tabs. Projects will still be laid out and sorted in their original tabs.
AstrobotJones 14 Sep @ 7:17am 
"How is it possible that you can do this but the Ludeon team can't?? ~KawwaK
It's probably not a very high priority adjustment.
konstantynopolitaneczka 14 Sep @ 6:40am 
how does it work with multiple research tabs?
Juicer 14 Sep @ 2:05am 
This is excellent and just works.
TheForbiddenCornBread 13 Sep @ 10:50pm 
Oh my god. If this actually works then this is absolutely amazing. I was just thinking about how annoying the research trees looked with lots of mods.
Leo39994  [author] 13 Sep @ 9:32pm 
Added mod settings:

- Max Sorting Passes: Controls the sorting algorithm's iterations.

- Vertical Compaction: An experimental feature, disabled by default, to reduce the research tree's vertical footprint.

- Max Vertical Compaction Y-axis: Sets the Y-axis for vertical compaction.
Just 13 Sep @ 8:06pm 
Ludeon team did a lot for modding. We - modders - can modify almost everything we want to. Ludeon then implements the best solutions (how many o7 mods do YOU know? :) ).

This is the best thing - you can start modding and make game better. You can subscribe to mod, which makes your game better.
5tratz 13 Sep @ 1:38pm 
I actually did this myself for my own mod, automatically aligned it so it doesn't overlap, etc, I am shocked that Ludeon doesn't properly code this, it's pretty simple really. Good job :Upvoter:
KawwaK 13 Sep @ 10:55am 
How is it possible that you can do this but the Ludeon team can't??
bean 13 Sep @ 9:29am 
I meant that I got another mod to fix the scroll bar Aranador but I still couldn't scroll far enough :(

Also thank you Leo!
Aranador 13 Sep @ 8:56am 
The "Y-axis scroll bar doesnt work" problem is actually vanilla behaviour. As this mod still uses the vanilla tech display, it is only natural that mods that sprawn their tech too far vertically, will remain lost to you.
Leo39994  [author] 13 Sep @ 7:41am 
@Eclipse This mod sorts overlapping projects to the right, while "organized research tab" re-sorts all the projects.
Leo39994  [author] 13 Sep @ 7:35am 
@bean No, this mod does not affect the Y-axis.

@-NQ- nick4fake With too many research projects, it's not possible to achieve a stable layout within the safe limit. This lightweight mod might not be suitable for you, or I'll update the custom setting limit later when I have time.
-NQ- nick4fake 13 Sep @ 7:25am 
[Clean Research Sort]: Failed to stabilize research tree layout within 200 passes. Please check research definition files.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (string)
LeoCleanResearchSort.CleanResearchSort:SortProjectsAndApply ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()
bean 13 Sep @ 6:12am 
Does this mod bring researches that are off screen on screen? Some of my mods have their researches off my screen so I have to look them up by name to access them. I have a scroll bar mod that I thought was going to fix it, but it didn't :(
Eclipse 13 Sep @ 6:10am 
What is the difference between organized research tab?
TheBreakfastBandit 13 Sep @ 6:01am 
I've Been looking for a mod like this for ages, you my friend are a legend
TwistedRuse 13 Sep @ 4:16am 
Fantastic!!

I was using organized research tab but that pushed all my neolithic research to the very end of everything, this keeps it all near the front where it should be. It's amazing. Thankyou.
KaelynZ 12 Sep @ 10:07pm 
Wonderful! Works great in a heavily modded load order (900 mods), organizes all the research tabs very nicely. A must-have QoL UI mod!
Elijah 12 Sep @ 8:37pm 
THANK YOU. I NEEDED THIS
Quilava 12 Sep @ 8:11am 
Oh wow, you even have some of my research mod in the list that block other same as me, this maybe what i need :love_seagull:
Marukun 12 Sep @ 5:04am 
LOOOOOOVE IT!!!!!!!!!!!!!!!!!!!!!!!