1

Topic: more one mod on server

hi tees smile
in last week i start some (10) servers on munga.ru:8303-8313 (freebsd), simple maps and lost/pirates with instagib (! nice mod).
but i can not install more mod in binary. When i patched source, i have some error and bam not create server.
i know that i have curves hands, but where exactly?

sorry for my english. form russia with love.

2

Re: more one mod on server

What patches did you apply when it failed, and what patches were already applied?

Used to be very active waay back

3

Re: more one mod on server

And why do your hands curve?
More importantly, what were the errors?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

4

Re: more one mod on server

i do:

#patch -p1 < homingspam.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/engine/e_config_variables.h homingspam/src/engine/e_config_variables.h
|--- teeworlds-0.4.2-src/src/engine/e_config_variables.h        2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/engine/e_config_variables.h 2008-06-09 19:31:21.000000000 +0200
--------------------------
Patching file src/engine/e_config_variables.h using Plan A...
Hunk #1 succeeded at 67.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/g_collision.cpp homingspam/src/game/g_collision.cpp
|--- teeworlds-0.4.2-src/src/game/g_collision.cpp       2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/g_collision.cpp        2008-06-09 19:31:21.000000000 +0200
--------------------------
Patching file src/game/g_collision.cpp using Plan A...
Hunk #1 succeeded at 8.
Hunk #2 succeeded at 21.
Hunk #3 succeeded at 51.
Hunk #4 succeeded at 135.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/g_collision.h homingspam/src/game/g_collision.h
|--- teeworlds-0.4.2-src/src/game/g_collision.h 2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/g_collision.h  2008-06-09 19:31:21.000000000 +0200
--------------------------
Patching file src/game/g_collision.h using Plan A...
Hunk #1 succeeded at 4.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/g_mapitems.h homingspam/src/game/g_mapitems.h
|--- teeworlds-0.4.2-src/src/game/g_mapitems.h  2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/g_mapitems.h   2008-06-09 19:31:21.000000000 +0200
--------------------------
Patching file src/game/g_mapitems.h using Plan A...
Hunk #1 succeeded at 43.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/g_variables.h homingspam/src/game/g_variables.h
|--- teeworlds-0.4.2-src/src/game/g_variables.h 2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/g_variables.h  2008-06-09 19:35:20.000000000 +0200
--------------------------
Patching file src/game/g_variables.h using Plan A...
Hunk #1 succeeded at 57.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/server/gs_common.h homingspam/src/game/server/gs_common.h
|--- teeworlds-0.4.2-src/src/game/server/gs_common.h    2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/server/gs_common.h     2008-06-09 19:37:20.000000000 +0200
--------------------------
Patching file src/game/server/gs_common.h using Plan A...
Hunk #1 succeeded at 190.
Hunk #2 succeeded at 320.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/server/gs_game.cpp homingspam/src/game/server/gs_game.cpp
|--- teeworlds-0.4.2-src/src/game/server/gs_game.cpp    2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/server/gs_game.cpp     2008-06-09 19:39:04.000000000 +0200
--------------------------
Patching file src/game/server/gs_game.cpp using Plan A...
Hunk #1 succeeded at 90.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Naur teeworlds-0.4.2-src/src/game/server/gs_server.cpp homingspam/src/game/server/gs_server.cpp
|--- teeworlds-0.4.2-src/src/game/server/gs_server.cpp  2008-04-05 15:13:02.000000000 +0200
|+++ homingspam/src/game/server/gs_server.cpp   2008-06-09 22:57:05.000000000 +0200
--------------------------
Patching file src/game/server/gs_server.cpp using Plan A...
Hunk #1 succeeded at 27.
Hunk #2 succeeded at 46.
Hunk #3 succeeded at 513.
Hunk #4 succeeded at 546.
Hunk #5 succeeded at 621.
Hunk #6 succeeded at 751.
Hunk #7 succeeded at 773.
Hunk #8 succeeded at 785.
Hunk #9 succeeded at 883.
Hunk #10 succeeded at 913.
Hunk #11 succeeded at 961.
Hunk #12 succeeded at 1007.
Hunk #13 succeeded at 1220.
Hunk #14 succeeded at 1239.
Hunk #15 succeeded at 1294.
Hunk #16 succeeded at 1365.
Hunk #17 succeeded at 1443.
Hunk #18 succeeded at 1499.
Hunk #19 succeeded at 1523.
Hunk #20 succeeded at 1556.
Hunk #21 succeeded at 1576.
Hunk #22 succeeded at 1593.
Hunk #23 succeeded at 1638.
Hunk #24 succeeded at 1687.
Hunk #25 succeeded at 1715.
Hunk #26 succeeded at 1727.
Hunk #27 succeeded at 1873.
Hunk #28 succeeded at 1907.
Hunk #29 succeeded at 2043.
Hunk #30 succeeded at 2122.
Hunk #31 succeeded at 2223.
Hunk #32 succeeded at 2357.
Hunk #33 succeeded at 2384.
Hunk #34 succeeded at 2617.
Hunk #35 succeeded at 2858.
done

then…

# patch -p1 < instagib.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nru b/src/game/g_variables.h a/src/game/g_variables.h
|--- b/src/game/g_variables.h   2008-04-05 15:13:02.000000000 +0200
|+++ a/src/game/g_variables.h   2008-05-12 21:12:20.000000000 +0200
--------------------------
Patching file src/game/g_variables.h using Plan A...
Hunk #1 succeeded at 57.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nru b/src/game/server/gs_common.h a/src/game/server/gs_common.h
|--- b/src/game/server/gs_common.h      2008-04-05 15:13:02.000000000 +0200
|+++ a/src/game/server/gs_common.h      2008-05-12 20:29:46.000000000 +0200
--------------------------
Patching file src/game/server/gs_common.h using Plan A...
Hunk #1 succeeded at 301.
Hunk #2 succeeded at 356 (offset 4 lines).
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff -Nru b/src/game/server/gs_server.cpp a/src/game/server/gs_server.cpp
|--- b/src/game/server/gs_server.cpp    2008-04-05 15:13:02.000000000 +0200
|+++ a/src/game/server/gs_server.cpp    2008-05-12 21:12:36.000000000 +0200
--------------------------
Patching file src/game/server/gs_server.cpp using Plan A...
Hunk #1 succeeded at 588 (offset 182 lines).
Hunk #2 failed at 750.
Hunk #3 failed at 778.
Hunk #4 succeeded at 799 (offset 75 lines).
Hunk #5 failed at 1032.
Hunk #6 succeeded at 1636 (offset 229 lines).
Hunk #7 succeeded at 1677 (offset 128 lines).
Hunk #8 succeeded at 1844 (offset 231 lines).
Hunk #9 failed at 2028.
Hunk #10 succeeded at 2091 (offset 120 lines).
Hunk #11 failed at 2108.
5 out of 11 hunks failed--saving rejects to src/game/server/gs_server.cpp.rej
done

and:

# ../bam/src/bam server_release
bam: building 'server_release'
c++ gs_game_dm.cpp
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:13,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_dm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:31,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_dm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:37,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_dm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
c++ gs_game.cpp
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:13,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game.cpp:3:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:31,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game.cpp:3:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:37,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game.cpp:3:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
cmd5 nethash.c
c++ gs_server.cpp
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:13,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp:5:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:31,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp:5:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:37,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp:5:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
/usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp: In member function `virtual void player::tick()':
/usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp:1763: warning: passing `float' for converting 2 of `int col_is_damage(int, int)'
/usr/home/trin/teeworlds/teeworlds/src/game/server/gs_server.cpp:1766: warning: passing `float' for converting 2 of `int col_is_teleport(int, int)'
c++ gs_game_tdm.cpp
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:13,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_tdm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:31,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_tdm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:37,
                 from /usr/home/trin/teeworlds/teeworlds/src/game/server/gs_game_tdm.cpp:2:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: warning: no newline at end of file
c++ gs_game_ctf.cpp
c nethash.c
c++ g_layers.cpp
c++ g_collision.cpp
c++ g_game.cpp
c es_server.c
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:13,
                 from /usr/home/trin/teeworlds/teeworlds/src/engine/server/es_server.c:7:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:31,
                 from /usr/home/trin/teeworlds/teeworlds/src/engine/server/es_server.c:7:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: no newline at end of file
In file included from /usr/home/trin/teeworlds/teeworlds/src/engine/e_config.h:37,
                 from /usr/home/trin/teeworlds/teeworlds/src/engine/server/es_server.c:7:
/usr/home/trin/teeworlds/teeworlds/src/engine/e_config_variables.h:96:44: no newline at end of file
bam: compile_c returned error number 256
bam: error during build

sad((

5

Re: more one mod on server

You did something weird with the diff file. How many patches did you apply? Did you apply it on a new version of teeworlds?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

6

Re: more one mod on server

it is not possible to patch the source with these two files. They are changing the same file (gs_server.cpp) but that seems not to be the problem. as far as i know both mods modify same functions in the code.
If you want instagib with all weapons and homingmod take the homingmod and set damage of every weapon to 20.