fluffy-mods / ResearchTree

Graphical research tree and queue system for RimWorld
Other
23 stars 25 forks source link

[BUG] Locking a vanilla research node via prerequisites stalls the game #33

Open GHXX opened 4 years ago

GHXX commented 4 years ago

Describe the bug

If you lock a research node by adding the researchdef to its own prerequisites by editing an xml file of the Core mod (the base game) and then you open up the research tree and scroll into its view then the game locks up completely while the cpu usage jumps up to what a single thread can use at most. Likely a loop never exits.

Note: Apparently it doesnt lock up if you are fully zoomed out for some reason.

Expected behavior

What i was expecting is to be able to hide the research node which corresponds to the def i edited, which in turn should have locked all the nodes that relied on it.

Steps to reproduce

Note: research tree's "Group by techlevel" option was set to On

  1. Disable all mods except for Core and the steam version of ResearchTree, close the game.
  2. Open steamapps/common/RimWorld/Mods/Core/ResearchProjectDefs7ResearchProjects_2_Electricity.xml
  3. Add <li>Batteries</li> to the prerequisites of the Batteries def
  4. Save the file, start the game, open or create any world and click on the research button and scroll around.

Other mods

No, no other mods

Output log

The only relevant lines there are the pc specs. No lines are written which correspond to the mods.

Save game

Any save works, so this shouldnt be needed šŸ˜›

Screenshots

image The picture shows another way to reproduce it. Zoom out fully, move the screen to the bottom right and zoom in once and it locks up.

Environment

Game

Notes You might be wondering why i am trying to lock researches. And the answer to this is because i want to add a new feature to techadvancing which works fine using the vanilla techtree but breaks horribly with ResearchTree (and ResearchPal)

GHXX commented 4 years ago

Any news on this?

FluffierThanThou commented 4 years ago

Are you changing priorities while the game is running?

On Thu, Mar 26, 2020 at 2:29 PM GHXX notifications@github.com wrote:

Any news on this?

ā€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fluffy-mods/ResearchTree/issues/33#issuecomment-604431347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENLQMRUN7YE5HHVBNE7E3LRJNKDNANCNFSM4KKFCZ6A .

GHXX commented 4 years ago

I was not changing any priorities, but i was changing the prerequisites while the game was running.