Jump to content

Need help with making patch files


Guest deathdealer

Recommended Posts

Hey

I am new to c++ Programming and want to learn more about it. I tryed making a patch but when i try to apply it, i get a error saying

error: patch failed: src/game/Makefile.am:203

error: src/game/Makefile.am: patch does not apply

Heres the patch

diff --git a/src/game/Makefile.am b/src/game/Makefile.am

index ca186184aa28

--- a/src/game/Makefile.am

+++ b/src/game/Makefile.am

@@ -203,6 +203,8 @@

PetitionsHandler.cpp \\

Player.cpp \\

Player.h \\

+ PlayerbotAI.cpp \\

+ PlayerbotAI.h \\

PlayerDump.cpp \\

PlayerDump.h \\

PointMovementGenerator.cpp

What i could not really figure out is what does this mean @@ -203,6 +203,8 @@ it seems like its the line where the code goes but idk what i am doing wrong.

Link to comment
Share on other sites

What i could not really figure out is what does this mean @@ -203,6 +203,8 @@

it seems like its the line where the code goes but idk what i am doing wrong.

if you use Windows XP/Vista, here's how to make patches:

with msysGit (Git GUI) to Creating a Patch

When you finish with your amendments in Source code,

right click on the folder (with MaNGOS Source)

and select Git GUI Here

and you'll see in the column "Unstaged Changes"

the file in which you made changes (at the front is an icon)

important: do not click on the icon

Next from the main menu select:

Repository -> Visualize master's History

and you'll see at the top - this line:

Local uncommitted changes, not checked in to index

then right click on this line, and select "Make patch"

(the line should not be highlighted)

EDIT:

then open the new patch and see what you do wrong

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use