Patch fatal error

Hi Leute!

Heute habe ich mal versucht ein patch anzupassen damit ich keine Whitespace Errors mehr bekomme. Hat auch alles bis jetzt gut geklappt. Nun habe ich am Ende aber nun das Problem das der mir sagt Fatal Erorr

Hier mal die Zeile die er bemeckert

Zeile 216 ist diese hier

\ No newline at end of file

Wäre super wenn jemand eine Lösung für mich hätte /emoticons/default_sad.png

LG

Mal ein Ausschnitt aus dem Bereich!


+

+/* Wintergrasp Battle-Mage */

+DELETE FROM `creature` WHERE `id`=32170;

+INSERT INTO `creature` (`guid`,`id`,`map`,`spawnMask`,`phaseMask`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`spawndist`,`currentwaypoint`,`curhealth`,`cu$

+('', 32170, 571, 1, 65535, 27801, 0, 5925.34, 573.71, 661.087, 4.06662, 300, 0, 0, 504000, 440700, 0, 0, 0, 0, 0),

+('', 32170, 571, 1, 64, 0, 918, 5932.96, 549.906, 641.595, 2.09189, 300, 0, 0, 504000, 440700, 0, 0, 0, 0, 0);

+UPDATE `creature_template` SET `ScriptName`='npc_wg_ally_battle_mage' WHERE `entry`=32169;

+UPDATE `creature_template` SET `ScriptName`='npc_wg_horde_battle_mage' WHERE `entry`=32170;

+

+UPDATE `gameobject_template` SET `type` = 6, `faction` = 0, `data2` = 10, `data3` = 54643, `ScriptName` = 'go_wg_veh_teleporter' WHERE `entry` = 192951;

\ No newline at end of file

diff --git a/sql/Wintergrasp/OutdoorPvPWG_world_bunners.sql b/sql/Wintergrasp/OutdoorPvPWG_world_bunners.sql

new file mode 100644

index 0000000..4ec48d2

--- /dev/null

+++ b/sql/Wintergrasp/OutdoorPvPWG_world_bunners.sql

@@ -0,0 +1,179 @@

+DELETE FROM gameobject WHERE

+       id IN (192317,192335,192313,192316,192332,192331,192330,192329,192487,192310,192314,192308,192309,192324,192326,192312,192325,192304,187433,193984,193983,192377,192321,192318,192322,192320,192269,19$

+          AND map=571;

+INSERT INTO `gameobject` VALUES ('', 192317, 571, 1, 385, 5363.39, 2781.28, 435.634, 1.58825, 0, 0, 0, 1, 300, 255, 1);

+INSERT INTO `gameobject` VALUES ('', 192335, 571, 1, 385, 5363.72, 2763.25, 445.023, -1.54462, 0, 0, 0, 1, 300, 255, 1);

+INSERT INTO `gameobject` VALUES ('', 192313, 571, 1, 1, 5392.65, 3037.11, 433.713, -1.52716, 0, 0, -0.691512, 0.722365, 300, 0, 1);

+INSERT INTO `gameobject` VALUES ('', 192316, 571, 1, 385, 5322.01, 2781.13, 435.673, 1.57952, 0, 0, 0, 1, 300, 255, 1);

+INSERT INTO `gameobject` VALUES ('', 192332, 571, 1, 1, 5289.46, 2704.68, 435.875, -0.017451, 0, 0, -0.00872539, 0.999962, 300, 0, 1);

+INSERT INTO `gameobject` VALUES ('', 192331, 571, 1, 1, 5350.95, 2640.36, 435.408, 1.5708, 0, 0, 0.707108, 0.707106, 300, 0, 1);

+INSERT INTO `gameobject` VALUES ('', 192330, 571, 1, 1, 5392.27, 2639.74, 435.331, 1.50971, 0, 0, 0.685183, 0.728371, 300, 0, 1);

+INSERT INTO `gameobject` VALUES ('', 192329, 571, 1, 1, 5350.88, 2622.72, 444.686, -1.5708, 0, 0, -0.707108, 0.707106, 300, 0, 1);

+INSERT INTO `gameobject` VALUES ('', 192487, 571, 1, 1, 5278.38, 2613.83, 432.721, -1.58825, 0, 0, -0.713251, 0.700909, 300, 0, 1);

Zeilen werden nicht mit EOF (end of file) terminiert, sondern mit \n (line feed, newline).

In der bearbeiteten Datei in der letzten Zeile am Ende einfach Return drücken

Aber seit wann ist das für git ein Fatal Error?

neh nicht fatal error^^. fatal: Corrupted patch oder sowas war das^^ aber danke schön /emoticons/default_wink.png

Also statt “\ No newline at end of file” dann “\n” ?

Nein. Du musst eine neue Zeile am Dateiende einfügen.

Btw. kannst du keine Steuerzeichen in Klartext reinschreiben