Jump to content
  • 0

Patching The Server Using Diff via Linux


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

  • 0
Posted
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?

  • 0
Posted
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!

  • 0
Posted
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

 

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...