Skip to content

HSValhiem/HST_ModSourceChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

Drag a Mod onto the Tool to check if it uses sources that have been changed or deleted in the game update. The tool will provide the name of the classes that are changed or deleted for you to reference within WinMerge for changes.

Instructions to Use

Prerequisite Download Required Tools

Notepad++ DNSpy WinMerge

Note: You will need both the last version of the game and the current version to compare against. If you don't have the old version I.E Steam has already updated automatically then follow the guide at the bottom of this page to get it.

Step 1: Extract Game Sources with DNSpy

Note: You will need to repeat this step for both Versions of the game(Old and New) and use different directories Remember where you save both projects as the location will need to be used later

  • Open DNSpy
  • Click "File->Open" in Toolbar at top
  • Open assembly_valheim.dll in "Valheim\valheim_Data\Managed" image
  • Click "File->Export to Project" in Toolbar at top
  • Select a Folder to save to and press Export Note: Use the Picture Below for Reference, Don't forget to set Visual Studio version to 2022 image Don't forget to extract both versions of the game!

Step 2: Use Notepad++ to Remove Token Tags with Regex

Note: You will need to repeat this step for both Versions of the game(Old and New)

  • Open Notepad++
  • Click "Search->Find in Files..." in Toolbar at top
  • Enter the following ^\s*\/\/(?:\s*\((get|add|invoke|set|remove)\))?\s*Token:.+$ into the "Find what:" box
  • Browse or Enter the Path to the folder that you exported the source to with DNSpy
  • Make sure the search is setup like the following image and press "Replace in Files" Button and Press OK to Confirm image Don't forget to do this for both versions of the game!(Both Directories Old and New)

Step 3: Use WinMerge to Check Differences

  • Open WinMerge

  • Click "File->Open" in Toolbar at top

  • Open the old version dump directory and new version dump directory in Minmerge Note: Make sure to select the directory that contains the .cs files not the .sln

  • Click the Options Button and Make sure that the Options Look Like the Second Picture

  • Make sure Everything looks like the Picture and Click the Compare Button Note: These are the Locations that you saved During the DNSpy Step Note: Make sure that the First Folder is the Old Valheim Version and that the Second Folder is the New Version Note: Click the Options Button and Make sure that the Options Look Like the Second Picture image image

  • Click "Tools->Generate Report" in Toolbar at top

  • Save the file with name "newVersion" to the same directory that modSourceChecker.exe is located and select CSV for the "Style" image image

Step 4: Use It!!!

  • Simply Drag the Mod onto the modSourceChecker.exe and it will tell you if the Mod has source code references that have been changed or deleted in between version updates for Valheim.
  • One you have the classname in question you can go back into WinMerge and see the changes. image image image

How to get last version of Valheim in steam Tutorial

  • Open Steam
  • Right Click on Valheim and Select Properties image
  • Select "Betas" on the Left Side and then in the Dropdown select default_old image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages