1

Topic: [MOD] Instagib 1.1

..:: Instagib 1.1 ::..

:: New features

* Fixed friendly fire-bug
* Added killing spree (based on splok's code) http://www.teeworlds.com/forum/viewtopic.php?id=1210
* The broadcasting of kills works and is renamed
* Spawn protection with selectable time

http://static.pici.se/pictures/luTorGNyq.png

As you see it's a quite huge upgrade and I REALLY recommend the server hosters to upgrade to it. If you want your server to be TQed, this is a must (you have until 12 june to upgrade).

:: Features

* One-hit-kill
* Broadcast player's kills
* Killing spree
* Spawn protection
* Rifle only
* No powerups
* Support for dm/tdm/ctf
* Easy setup

:: Setup

Just grab a copy from the downloads and either use the binary for your system (teeworlds_srv.exe for win32 and teeworlds_srv for linux x86) or compile it yourself by following the official Compiling Document.
To set it up as an Instagib server, read the commands section.

:: Commands

* sv_instagib - Turn this on to enable instagib. Default: 0
* sv_instagib_dmg - Turn this on to kill on shots without bounce. Default: 1
* sv_instagib_bouncedmg - Turn this on to kill on shots with bounce. Default: 1
* sv_instagib_explode - Turn this on to make laser explode. Default: 0
* sv_kills_send - Turn this on to send the player's kills via broadcast to the player. Default: 0
* sv_protect - Set this to the number of seconds you want spawn protection. The player can't be killed within that time from the spawning. Default: 0
* sv_spree - Turn this on to enable killing spree messages. Default: 0
* sv_spree_method - Set this to 1 to send spree msgs via broadcast. If it conflicts with sv_kills_send, the kill send will go first. Default: 0

:: Server hosters: Look here!

Sometimes players want to play non-modded servers. Therefore I would be really happy if you put [MOD] in front of the server name, or put MOD inside the name. This is to help people that wants to play normal servers sometimes. I won't kill you if you don't, but remember you get this mod for free and putting [MOD] in the beginning of the server name is a great way of paying back to me. One nice thing would be if you have a motd, that you put something like "This is Instagib 1.1" or something like that in the end, so I know which servers using my mod. In return I give you support for the mod.

:: Thanks to

Thanks to Teeworlds devs, Daniel and spl0k. smile

:: Download

Download Instagib 1.1 from Willhostforfood
Download Instagib 1.1 from Filebin.ca

2

Re: [MOD] Instagib 1.1

You're welcome.
Just one problem: your sv_spree_method variable isn't used and so, spree messages are always sent to chat.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

3

Re: [MOD] Instagib 1.1

Ohhh... I waited for it, thanks !

4

Re: [MOD] Instagib 1.1

why until 12 of june?

5 (edited by Somerunce 2008-05-13 06:19:50)

Re: [MOD] Instagib 1.1

If you want your server qualified and on the TeeQual-list you must upgrade before the 12 of june. This is basically to prevent the friendly fire-bug.

spl0k: It works, but if sv_kills_send is activated, it will send in chat.

6

Re: [MOD] Instagib 1.1

I read the patch file and there's no call to send_broadcast() function nor use of the sv_spree_method in spree functions but just a send_chat, so that's why I'm noticing.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

7

Re: [MOD] Instagib 1.1

I got an error, i hope you can help me with this...

I patched ban.patch, then ctfbroad.patch, but when i patch instagib 1.1 ...

[root@dunlop teeworlds-mod]# patch -p1 < ban.patch
patching file src/engine/server/es_server.c
[root@dunlop teeworlds-mod]# patch -p1 < ctfbroad.patch
patching file src/game/g_variables.h
patching file src/game/server/gs_game_ctf.cpp
[root@dunlop teeworlds-mod]# patch -p1 < instagib1.1.patch
patching file src/game/g_variables.h
Hunk #1 FAILED at 57.
1 out of 1 hunk FAILED -- saving rejects to file src/game/g_variables.h.rej
patching file src/game/server/gs_common.h
patching file src/game/server/gs_server.cpp
patch unexpectedly ends in middle of line
Hunk #11 succeeded at 1988 with fuzz 1.

any suggestions???

p.s. g_variables.h.rej have:

***************
*** 57,59 ****
  MACRO_CONFIG_INT(sv_spamprotection, 1, 0, 1)

  MACRO_CONFIG_INT(sv_spectator_slots, 0, 0, 12)
--- 57,68 ----
  MACRO_CONFIG_INT(sv_spamprotection, 1, 0, 1)

  MACRO_CONFIG_INT(sv_spectator_slots, 0, 0, 12)
+
+ MACRO_CONFIG_INT(sv_kills_send, 0, 0, 1)
+ MACRO_CONFIG_INT(sv_protect, 0, 0, 10)
+ MACRO_CONFIG_INT(sv_spree, 0, 0, 1)
+ MACRO_CONFIG_INT(sv_spree_method, 0, 0, 1)
+ MACRO_CONFIG_INT(sv_instagib, 0, 0, 1)
+ MACRO_CONFIG_INT(sv_instagib_dmg, 1, 0, 1)
+ MACRO_CONFIG_INT(sv_instagib_bouncedmg, 1, 0, 1)
+ MACRO_CONFIG_INT(sv_instagib_explode, 0, 0, 1)

thanks!

8

Re: [MOD] Instagib 1.1

Patch are made for original teeworlds source.
But after u applied the first patch it isn't anymore the original source so the patch is saying that you don't have the good version

9 (edited by netomx 2008-05-13 23:55:53)

Re: [MOD] Instagib 1.1

but with the rejected file i think it do not include that ...

am i right?

EDIT:

I manually added the rejected file, and the i compile, and appears this:

/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c: In function `net_udp4_create':
/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c:541: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c: In function `net_tcp4_set_non_blocking':
/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c:612: warning: dereferencing type-punned pointer will break strict-aliasing rules
/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c: In function `net_tcp4_set_blocking':
/root/teeworlds/teeworlds-0.4.2-linux_x86/src/teeworlds-mod/src/engine/e_system.c:622: warning: dereferencing type-punned pointer will break strict-aliasing rules

it compiled, but can this error affect something?

10

Re: [MOD] Instagib 1.1

It's not an error but a warning tongue

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

11

Re: [MOD] Instagib 1.1

hmm, whoops yhaha well i know

i also modify the "128" max something to 256, explained in the post: "short server lag"

12

Re: [MOD] Instagib 1.1

Hi, sorry if i ask but can you tell me how you must install instagib ? i don't understand it very well sow if someone could help me plz.

i have downloaded the istagib.patch but i dont know what to do with it.

thanks a lot wink

13

Re: [MOD] Instagib 1.1

FuBu why are you posting the same thing on 3 posts ?!

Just download the .zip run teeworlds_srv and stop doing shit here.

14 (edited by FuBu!! 2008-05-23 16:06:50)

Re: [MOD] Instagib 1.1

it works but one thing is wrong, when i play insta there are wapons that i can pick up. how do i remove those wapons in a map ?

or can anyone tell me what to put in the .CFG file ?

Thanks wink

15

Re: [MOD] Instagib 1.1

I'd like a patch.

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

16

Re: [MOD] Instagib 1.1

Maybe you should download ? then open and see there is a patch in the archive ?
http://willhostforfood.com/zips/2867394 … b1.1.patch

17

Re: [MOD] Instagib 1.1

can u make a patch which only removes powerups in a map or can u show me the position in the patch where i can find it? (a patch will be better wink (best with server command))

i know i could change the map but its crap...

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

18 (edited by Grundik 2008-06-05 20:38:43)

Re: [MOD] Instagib 1.1

There is buffer overflow bug in spree messaging, and spree displayed incorrectly.
Fix (src/game/server/gs_server.cpp):

void player::spree_add()
{
    spree++;
    if(spree%5 == 0)
    {
        char buf[512];
        int t=(int)spree/5-1;
        if (t>5)
        {
            t=5;
        }
        str_format(buf, sizeof(buf), "%s %s with %d kills!", server_clientname(client_id), spree_note[t], spree);
        send_chat(-1, CHAT_ALL, buf); 
    }
}

void player::spree_end(int killer)
{
    if(spree < 5)
    {
        spree = 0;
        return;
    }
    spree = 0;
    char buf[512];
    str_format(buf, sizeof(buf), "%s killing spree was ended by %s", server_clientname(client_id), server_clientname(killer));
    send_chat(-1, CHAT_ALL, buf); 
}

19

Re: [MOD] Instagib 1.1

were i but the patch ?
and i have it on txt format?

20

Re: [MOD] Instagib 1.1

oops no need help TY!

21

Re: [MOD] Instagib 1.1

some1 help me with this instagib server plz its getting on my nervers

Im Bermudian and im proud <(^_^)>

22

Re: [MOD] Instagib 1.1

cool.keep up the good work

Teetrix - the world's first teewars fragmovie

23

Re: [MOD] Instagib 1.1

xD

Hiding in the Alps.

24

Re: [MOD] Instagib 1.1

hmm... i do not understand the compiling doc... can you prrovide a binary?

Invisible tee?!? Oh snap!!!
Click here to get!

25

Re: [MOD] Instagib 1.1

There are binaries included.