- Jul 17, 2017
- 400
- 907
Created a patch that should fix this issue as well. It simply updates the arguments to the sorted function that is throwing the error:Thanks. Added to the bug list as a solution.
Well… you’ve got your answer then, don’t you? Join the Patreon, get access to the private Discord channel. Unless you were asking for the dev’s discord handle, which I have no idea of.
Added it to the list.
The mods use one specific and very restrictive definition of NTR. You need to take it up with them if you don’t like it. There have been a few threads about how misleading/wrong/incomplete the tag is already. Mods don’t seem to care so far.
Code:
sorted_items = sorted(inventory.items, reverse=True)
Code:
sorted_items = sorted(inventory.items, key=lambda item: item.cost, reverse=True)
(question: are there any gun items in this game? Because if there aren't it's likely the dev copied and pasted the code from somewhere else based on the comments in the code)
In fairness to the developer, the code is precisely identical to prior versions as far as I can tell, but something changed in the underlying python environment that caused this to break. However, it looks like the dev was utilizing undefined behavior in their use of the sorted function, and this is what happens when you rely on undefined behavior in your code. Could be wrong here though, so anyone feel free to correct me.
To install the patch, click on in, right click on the code in the window that opens and select "save as", then drop the file in the /game folder.
Last edited: