Jump to content
  • 0

Adding Repair Button on Thor Patcher


Eross

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

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

  • 2

  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.11
  • Content Count:  349
  • Reputation:   12
  • Joined:  04/05/20
  • Last Seen:  

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 2
Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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...