Jump to content
  • 0
Eross

Adding Repair Button on Thor Patcher

Question

Good day ! Does anyone know how to add REPAIR button on a thor patcher?? So players dont need to delete the ".dat" folder manually .theyll just have to click the repair button from patcher .. I just need to know the right codes on config file .. thankyou !

  • Like 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
4 hours ago, Akkarin said:

You can have the button execute a program (i forget which config number that is) to open a .bat file. The .bat file contains the delete code.

Hi ! Just figured it out last day .. I just want to share it so others can use it 

 

On your Patcher Config, add these lines 

[Button:Repair]
Default='images/repair.png' 
OnHover='images/repair-hover.png'
OnDown='images/repair-down.png'
Left=300
Top=565
Mode=2
Action='repair.bat'
 

Create a repair.bat file and add it on RO Folder 

@echo off
del /q <.dat file>*.*
taskkill /IM "<Patcher.exe>" /F
start "Patcher.exe" "Patcher.exe"

 

Edited by Eross
  • Upvote 1
Link to comment
Share on other sites

  • 0

You can have the button execute a program (i forget which config number that is) to open a .bat file. The .bat file contains the delete code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.