Skip to content

Successfully compile against RimWorld 1.6 version#24

Open
lisanhu wants to merge 3 commits into
alextd:masterfrom
lisanhu:v1.6
Open

Successfully compile against RimWorld 1.6 version#24
lisanhu wants to merge 3 commits into
alextd:masterfrom
lisanhu:v1.6

Conversation

@lisanhu
Copy link
Copy Markdown

@lisanhu lisanhu commented Jul 13, 2025

Adding AllowTool 1.6 dll to the source folder so refer to it is easier on different computers.
Update TD_Enhancement_Pack.csproj to use the SDK style. This will enable Linux development in vscode.
Remove reference to system libraries, unity engine libraries, rimworld binaries, and replace all these together with the Krafs.Rimworld.Ref package on nugets. This will allow compiling in different computers (having different paths).
Update the C# codes to adapt to 1.6 RimWorld API. (Compiling successfully on my computer).

on different computers.
Update TD_Enhancement_Pack.csproj to use the SDK style. This will enable
Linux development in vscode.
Remove reference to system libraries, unity engine libraries, rimworld
binaries, and replace all these together with the Krafs.Rimworld.Ref
package on nugets. This will allow compiling in different computers
(having different paths).
Update the C# codes to adapt to 1.6 RimWorld API. (Compiling
successfully on my computer).
@lisanhu
Copy link
Copy Markdown
Author

lisanhu commented Jul 13, 2025

Hi!
Thank you so much for your mods! I used a lot of mods from you and they really helped me a lot!

My pull request is an initial port to RimWorld 1.6. It successfully compiled. The AllowTool.dll it compiled against is also the 1.6 version. Hopefully this will help you update the mod to 1.6 easier, and best wishes to your health. ( I heard that you are really sick in the comments on the workshop ).

@lisanhu
Copy link
Copy Markdown
Author

lisanhu commented Jul 14, 2025

Some notes for the last commit that fixes the harmony errors. Summarized using copilot sonnet 4.

Changes Overview

Modified Files:

  • Source/AreaEditable.cs - Major refactoring and cleanup
  • Source/BillCountInventory.cs - Updated Harmony patch signature
  • Source/DrawFieldEdgesCorners.cs - Updated patch parameters and fixed formatting
  • Source/Overlays/LightingOverlay.cs - Updated for RimWorld 1.6 compatibility

Specific Changes:

AreaEditable.cs

  • Fixed spacing/formatting in Rect constructor
  • Commented out DoButtonIcon method (recolor area functionality)
  • Cleaned up transpiler code by removing unused method references and variables
  • Improved code organization and comments
  • Fixed formatting inconsistencies (spacing around operators, brackets)
  • Updated conditional statements formatting

BillCountInventory.cs

  • Updated Harmony patch to use explicit parameter types instead of method name only
  • Changed from nameof(RecipeWorkerCounter.CountValidThings) to explicit type array specification

DrawFieldEdgesCorners.cs

  • Updated Harmony patch to include additional parameters for RimWorld 1.6 compatibility
  • Added new parameter types: HashSet<IntVec3> and int
  • Fixed minor spacing issue in array indexing
  • Fixed indentation inconsistency

LightingOverlay.cs

  • Updated patch target from "DirtyCache" to "DirtyCell" for RimWorld 1.6 compatibility
  • Added comment explaining the API change for better performance and functionality

@daffodilistic
Copy link
Copy Markdown

Hi @lisanhu

Unfortunately the mod author has passed away June 2025: https://steamcommunity.com/sharedfiles/filedetails/comments/2895300634

On 14 Jul @ 8:51pm his mother posted:

Sadly my son Alex TD @uuugggg died June 2025. Can anyone tell me if I could/should report this to someone? And I know he >made a lot of mods that people used and seemed to depend on. He was very proud of his mods. And his games.. see >tdsgames.com Is it possible for someone to take over managing his mods? I’m at [REDACTED]@[REDACTED].com thank you Marilyn T (T of TD)

@lisanhu
Copy link
Copy Markdown
Author

lisanhu commented Jul 17, 2025

@daffodilistic Thanks for the information. I heard of that and that's really sad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants