Jump to content
  • 0

Patching The Server Using Diff via Linux


Finale

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

Hi Guys,

 

Anyone have encounter this error while patching your server using .DIFF file?

[root@ro3rd rAthena]# git apply patch.diff
patch.diff:30: trailing whitespace.

patch.diff:31: trailing whitespace.
100,guild_vs1,King of Emperium Hill,koe
fatal: corrupt patch at line 37

 

I'm currently trying to patch my server for KoE script. I'm using AnnieRuru's patch file > https://github.com/AnnieRuru/Release/blob/master/scripts/PvP %26 GvG/King of Emperium Hill/koe_1.2.diff

 

Thanks!

 

Edited by Finale
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

If you're using rAthena rev 2020+, you may want to apply the patch manually. Checking the diff file, castle.txt no longer exist.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  06/11/23
  • Last Seen:  

10 hours ago, Magnetix said:

If you're using rAthena rev 2020+, you may want to apply the patch manually. Checking the diff file, castle.txt no longer exist.

Is there a guide on how to do that?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   87
  • Joined:  04/10/12
  • Last Seen:  

You  can try doing the following:
 

git apply --3way diffFile.diff

if it doesn't work then try this one: 

patch -p1 < diffFile.diff

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  06/11/23
  • Last Seen:  

5 hours ago, sapitosucio said:

You  can try doing the following:
 

git apply --3way diffFile.diff

if it doesn't work then try this one: 

patch -p1 < diffFile.diff

I will try this one. Thank you!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.05
  • Content Count:  37
  • Reputation:   0
  • Joined:  06/09/23
  • Last Seen:  

8 hours ago, sapitosucio said:

You  can try doing the following:
 

git apply --3way diffFile.diff

if it doesn't work then try this one: 

patch -p1 < diffFile.diff

 

Hi, I tried running patch -p1 < patch.diff but I got this error:

[root@ro3rd rAthena]# patch -p1 < patch.diff
(Stripping trailing CRs from patch; use --binary to disable.)
patching file db/pre-re/castle_db.yml
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file db/pre-re/castle_db.yml.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/map/battle.cpp
Hunk #1 succeeded at 9680 with fuzz 2 (offset 2037 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file src/map/battle.hpp
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 10.
1 out of 1 hunk FAILED -- saving rejects to file src/map/battle.hpp.rej

 

 

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