I'm having a little trouble. (just a little).
today ive been trying with rambetter's iourtded file builder thingy (yes i know :D)
at http://daffy.nerius.com/urtserver/
anyway I tried it and came across several problems but I'm only down to one now.
I compiled a iourtded file using it successfully using the prinstalled patches.
I applied them like said in his tutorial (patch -N -p0 < ./file.patch)
and it completely works with the preinstalled patches. eg:
[root@pty12337d ioUrT-server-4.1]# patch -N -p0 < ./extra-patches/reconnectwait.patch
patching file code/server/sv_client.c
Hunk #1 succeeded at 701 (offset 266 lines).
Hunk #2 succeeded at 691 (offset 9 lines).
patching file code/server/server.h
Hunk #1 succeeded at 245 (offset 11 lines).
Hunk #3 succeeded at 353 with fuzz 2 (offset 30 lines).
patching file code/server/sv_init.c
Hunk #1 succeeded at 712 with fuzz 2 (offset 21 lines).
patching file code/server/sv_main.c
Hunk #1 succeeded at 79 with fuzz 2 (offset 18 lines).
However.I wanted to add in my own patch. Thats where I'm not exactly sure what to do.
I thought all I would have to do is add the patch into the extra-patches folder and redo the command with that one and it would work. But no. It doesnt :
[urt@pty12337d ioUrT-server-4.1]$ patch -N -p0 < ./extra-patches/goto.patch
patching file code/server/sv_client.c
Hunk #1 succeeded at 2102 with fuzz 1 (offset 540 lines).
Hunk #2 succeeded at 1885 (offset 23 lines).
Hunk #3 succeeded at 2496 (offset 570 lines).
patching file code/server/server.h
Hunk #1 FAILED at 205.
Hunk #2 FAILED at 316.
2 out of 2 hunks FAILED -- saving rejects to file code/server/server.h.rej
patching file code/server/sv_init.c
Hunk #1 FAILED at 544.
Hunk #2 succeeded at 701 with fuzz 2 (offset 7 lines).
1 out of 2 hunks FAILED -- saving rejects to file code/server/sv_init.c.rej
patching file code/server/sv_main.c
Hunk #1 FAILED at 61.
1 out of 1 hunk FAILED -- saving rejects to file code/server/sv_main.c.rej
I don't know whats wrong. Is there a certain way I have to import a new patch into the extra-patches folder or something. because I can ONLY get the standard ones that come with it to work and nothing I have put in myself. I have researched possible commands and tried including things in svn but nothing worked. Maybe some other command is necessary. (hopefully)
Cheers for help (hopefully rambetter can)
This post has been edited by jenglish: 27 November 2011 - 12:07 PM