1 (edited by Orangus 2015-06-02 16:47:58)

Topic: Infection for Teeworlds 0.6.4

A port of original Infection server mod by Gravity to Teeworlds version 0.6.4
Source
Windows Binary
For other platforms you have to compile the source yourself
I have added few commands:
cure <id> - turns a player into a human
izombie <id> - turns a player into an iZombie
superjump <id> - gives superjump to a zombie

Orange is my faver color.
Orange and tangerine is my faver fruit.
I never get stuff done, just coz I'm lazy.

2

Re: Infection for Teeworlds 0.6.4

configuration:
AUTO  compiler             gcc
AUTO  stackprotector       yes
AUTO  minmacosxsdk         no
AUTO  macosxppc            no
AUTO  zlib                 (in system path)
AUTO  sdl                  using sdl-config
AUTO  freetype             using freetype-config

notes:
saved configuration to 'config.lua'

[  1/158] [1] network_header > src/game/generated/protocol.h
[  2/158] [3] client_content_header > src/game/generated/client_data.h
[  3/158] [4] server_content_header > src/game/generated/server_data.h
[  4/158] [2] c src/engine/external/zlib/inflate.c
[  5/158] [5] c src/engine/external/zlib/compress.c
[  6/158] [6] c src/engine/external/zlib/inffast.c
[  7/158] [7] c src/engine/external/zlib/inftrees.c
[  8/158] [8] c src/engine/external/zlib/uncompr.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[  9/158] [8] c src/engine/external/zlib/zutil.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 10/158] [5] c src/engine/external/zlib/infback.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 11/158] [8] c src/engine/external/zlib/adler32.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 12/158] [7] c src/engine/external/zlib/deflate.c
[ 13/158] [6] c src/engine/external/zlib/trees.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 14/158] [3] c src/engine/external/zlib/crc32.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 15/158] [1] c src/base/system.c
[ 16/158] [4] c++ src/engine/shared/kernel.cpp
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 17/158] [8] c++ src/engine/shared/console.cpp
[ 18/158] [4] c++ src/engine/shared/network_console.cpp
[ 19/158] [5] c++ src/engine/shared/demo.cpp
[ 20/158] [3] c++ src/engine/shared/datafile.cpp
[ 21/158] [4] c++ src/engine/shared/compression.cpp
[ 22/158] [4] c++ src/engine/shared/masterserver.cpp
[ 23/158] [2] c++ src/engine/shared/mapchecker.cpp
[ 24/158] [5] c++ src/engine/shared/network.cpp
[ 25/158] [1] c++ src/engine/shared/linereader.cpp
[ 26/158] [4] c++ src/engine/shared/network_client.cpp
[ 27/158] [6] c++ src/engine/shared/engine.cpp
[ 28/158] [2] c++ src/engine/shared/map.cpp
[ 29/158] [3] c++ src/engine/shared/storage.cpp
[ 30/158] [1] c++ src/engine/shared/network_conn.cpp
[ 31/158] [4] c++ src/engine/shared/ringbuffer.cpp
[ 32/158] [6] c++ src/engine/shared/huffman.cpp
[ 33/158] [2] c++ src/engine/shared/filecollection.cpp
[ 34/158] [4] c++ src/engine/shared/econ.cpp
[ 35/158] [2] c++ src/engine/shared/snapshot.cpp
[ 36/158] [1] c++ src/engine/shared/config.cpp
[ 37/158] [7] c++ src/engine/shared/network_server.cpp
[ 38/158] [5] c++ src/engine/shared/netban.cpp
[ 39/158] [6] c++ src/engine/shared/packer.cpp
[ 40/158] [3] c++ src/engine/shared/memheap.cpp
[ 41/158] [4] c++ src/engine/shared/jobs.cpp
[ 42/158] [6] c++ src/engine/shared/network_console_conn.cpp
[ 43/158] [3] cmd5 src/game/generated/nethash.cpp
[ 44/158] [4] c src/engine/external/pnglite/pnglite.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 45/158] [7] c++ src/game/layers.cpp
[ 46/158] [6] c++ src/game/localization.cpp
[ 47/158] [2] c++ src/game/gamecore.cpp
[ 48/158] [7] c++ src/game/collision.cpp
[ 49/158] [3] c++ src/game/generated/nethash.cpp
[ 50/158] [4] server_content_source > src/game/generated/server_data.cpp
[ 51/158] [5] network_source > src/game/generated/protocol.cpp
[ 52/158] [3] client_content_source > src/game/generated/client_data.cpp
[ 53/158] [4] c++ src/tools/fake_server.cpp
[ 54/158] [7] c++ src/tools/tileset_borderrem.cpp
[ 55/158] [5] c++ src/game/generated/protocol.cpp
[ 56/158] [6] c++ src/tools/dilate.cpp
[ 57/158] [3] c++ src/tools/map_version.cpp
[ 58/158] [7] c++ src/tools/tileset_borderset.cpp
[ 59/158] [4] c++ src/tools/tileset_borderadd.cpp
[ 60/158] [8] c++ src/tools/packetgen.cpp
[ 61/158] [6] c++ src/tools/tileset_borderfix.cpp
[ 62/158] [5] c++ src/tools/map_resave.cpp
[ 63/158] [4] c++ src/tools/crapnet.cpp
[ 64/158] [8] c++ src/mastersrv/mastersrv.cpp
[ 65/158] [1] c++ src/versionsrv/versionsrv.cpp
src/tools/crapnet.cpp: In function ‘void Run(int, NETADDR)’:
src/tools/crapnet.cpp:47:46: warning: narrowing conversion of ‘Port’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing]
  NETADDR Src = {NETTYPE_IPV4, {0,0,0,0}, Port};
                                              ^
[ 66/158] [3] c++ src/game/generated/server_data.cpp
src/mastersrv/mastersrv.cpp: In function ‘void BuildPackets()’:
src/mastersrv/mastersrv.cpp:120:106: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
har IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
                                                                                              ^
src/mastersrv/mastersrv.cpp:120:106: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
[ 67/158] [7] c++ src/game/server/gamecontroller.cpp
bam: 'c++ src/mastersrv/mastersrv.cpp' error 256
[ 68/158] [8] c++ src/game/server/player.cpp
[ 69/158] [4] c++ src/game/server/eventhandler.cpp
[ 70/158] [5] c++ src/game/server/entities/projectile.cpp
[ 71/158] [3] c++ src/game/server/entities/flag.cpp
[ 72/158] [2] c++ src/game/server/entities/wall.cpp
[ 73/158] [6] c++ src/game/server/entities/character.cpp
[ 74/158] [1] c++ src/game/server/entities/laser.cpp
[ 75/158] [4] c++ src/game/server/entities/pickup.cpp
[ 76/158] [3] c++ src/game/server/gameworld.cpp
[ 77/158] [2] c++ src/game/server/entity.cpp
[ 78/158] [1] c++ src/game/server/gamemodes/ctf.cpp
[ 79/158] [5] c++ src/game/server/gamemodes/dm.cpp
[ 80/158] [4] c++ src/game/server/gamemodes/tdm.cpp
[ 81/158] [7] c++ src/game/server/gamemodes/infection.cpp
[ 82/158] [2] c++ src/game/server/gamecontext.cpp
[ 83/158] [8] c++ src/engine/server/server.cpp
[ 84/158] [5] c++ src/engine/server/register.cpp
[ 85/158] [4] c src/engine/external/wavpack/wputils.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 86/158] [1] c src/engine/external/wavpack/words.c
[ 87/158] [3] c src/engine/external/wavpack/metadata.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
src/engine/server/server.cpp: In member function ‘void CServer::ProcessClientPacket(CNetChunk*)’:
src/engine/server/server.cpp:853:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(Chunk < 0 || Offset > m_CurrentMapSize)
                           ^
src/engine/server/server.cpp:856:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(Offset+ChunkSize >= m_CurrentMapSize)
                        ^
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 88/158] [5] c src/engine/external/wavpack/float.c
[ 89/158] [3] c src/engine/external/wavpack/unpack.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 90/158] [7] c src/engine/external/wavpack/bits.c
[ 91/158] [4] c++ src/game/editor/io.cpp
[ 92/158] [5] c++ src/game/editor/layer_game.cpp
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
[ 93/158] [7] c++ src/game/editor/layer_quads.cpp
[ 94/158] [6] c++ src/game/editor/layer_tiles.cpp
[ 95/158] [5] c++ src/game/editor/auto_map.cpp
[ 96/158] [1] c++ src/game/editor/editor.cpp
[ 97/158] [3] c++ src/game/editor/popups.cpp
[ 98/158] [7] c++ src/engine/client/text.cpp
[ 99/158] [2] c++ src/engine/client/client.cpp
[100/158] [6] c++ src/engine/client/input.cpp
[101/158] [8] c++ src/engine/client/graphics.cpp
src/engine/client/text.cpp: In member function ‘int CTextRender::RenderGlyph(CFont*, CFontSizeData*, int)’:
src/engine/client/text.cpp:329:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(py = 0; py < pBitmap->rows; py++) // ignore_convention
                   ^
src/engine/client/text.cpp:330:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(px = 0; px < pBitmap->width; px++) // ignore_convention
                    ^
src/engine/client/text.cpp:335:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(py = 0; py < pBitmap->rows; py++) // ignore_convention
                   ^
src/engine/client/text.cpp:336:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(px = 0; px < pBitmap->width; px++) // ignore_convention
                    ^
In file included from src/engine/client/graphics.cpp:9:0:
/usr/include/SDL/SDL_opengl.h:47:58: fatal error: GL/glu.h: No such file or directory
compilation terminated.
bam: 'c++ src/engine/client/graphics.cpp' error 256
[102/158] [8] c++ src/engine/client/graphics_threaded.cpp
src/engine/client/client.cpp: In member function ‘void CClient::ProcessConnlessPacket(CNetChunk*)’:
src/engine/client/client.cpp:938:105: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
har IPV4Mapping[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
                                                                                              ^
src/engine/client/client.cpp:938:105: error: narrowing conversion of ‘255’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
[103/158] [6] c++ src/engine/client/sound.cpp
bam: 'c++ src/engine/client/client.cpp' error 256
[104/158] [2] c++ src/engine/client/serverbrowser.cpp
[105/158] [3] c++ src/engine/client/friends.cpp
[106/158] [4] c++ src/engine/client/backend_sdl.cpp
In file included from src/engine/client/backend_sdl.cpp:3:0:
/usr/include/SDL/SDL_opengl.h:47:58: fatal error: GL/glu.h: No such file or directory
compilation terminated.
bam: 'c++ src/engine/client/backend_sdl.cpp' error 256
[107/158] [4] c++ src/game/generated/client_data.cpp
[108/158] [5] c++ src/game/client/animstate.cpp
[109/158] [4] c++ src/game/client/render.cpp
[110/158] [7] c++ src/game/client/components/motd.cpp
[111/158] [5] c++ src/game/client/components/binds.cpp
[112/158] [3] c++ src/game/client/components/emoticon.cpp
[113/158] [5] c++ src/game/client/components/console.cpp
[114/158] [7] c++ src/game/client/components/maplayers.cpp
[115/158] [4] c++ src/game/client/components/menus_browser.cpp
[116/158] [3] c++ src/game/client/components/spectator.cpp
[117/158] [6] c++ src/game/client/components/menus_demo.cpp
[118/158] [8] c++ src/game/client/components/voting.cpp
[119/158] [7] c++ src/game/client/components/skins.cpp
[120/158] [8] c++ src/game/client/components/killmessages.cpp
[121/158] [3] c++ src/game/client/components/countryflags.cpp
[122/158] [5] c++ src/game/client/components/flow.cpp
[123/158] [4] c++ src/game/client/components/effects.cpp
[124/158] [7] c++ src/game/client/components/menus_settings.cpp
[125/158] [3] c++ src/game/client/components/debughud.cpp
[126/158] [8] c++ src/game/client/components/mapimages.cpp
[127/158] [5] c++ src/game/client/components/chat.cpp
[128/158] [6] c++ src/game/client/components/hud.cpp
[129/158] [8] c++ src/game/client/components/menus_ingame.cpp
[130/158] [3] c++ src/game/client/components/sounds.cpp
[131/158] [4] c++ src/game/client/components/controls.cpp
[132/158] [3] c++ src/game/client/components/items.cpp
[133/158] [5] c++ src/game/client/components/camera.cpp
[134/158] [8] c++ src/game/client/components/players.cpp
[135/158] [2] c++ src/game/client/components/broadcast.cpp
[136/158] [5] c++ src/game/client/components/menus.cpp
[137/158] [2] c++ src/game/client/components/scoreboard.cpp
[138/158] [6] c++ src/game/client/components/nameplates.cpp
[139/158] [4] c++ src/game/client/components/damageind.cpp
[140/158] [3] c++ src/game/client/components/particles.cpp
[141/158] [6] c++ src/game/client/lineinput.cpp
[142/158] [3] c++ src/game/client/ui.cpp
[143/158] [2] c++ src/game/client/render_map.cpp
[144/158] [6] c++ src/game/client/gameclient.cpp
[145/158] [4] link fake_server
[146/158] [8] link tileset_borderrem
[147/158] [8] link dilate
[148/158] [2] link map_version
[149/158] [3] link tileset_borderset
[150/158] [7] link tileset_borderadd
[151/158] [4] link packetgen
[152/158] [8] link tileset_borderfix
[153/158] [3] link map_resave
[154/158] [7] link crapnet
[155/158] [8] link versionsrv
[156/158] [2] link infection_srv
bam: error: a build step failed

Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

3 (edited by Orangus 2015-05-30 12:34:45)

Re: Infection for Teeworlds 0.6.4

weird, I don't have that errors, which OS and compiler you have?
I was building it via MinGW..
and I have configured few stuff for it, only for GCC compiler

and also as I can see, these errors aren't affecting the server itself
so you don't have to worry about

Orange is my faver color.
Orange and tangerine is my faver fruit.
I never get stuff done, just coz I'm lazy.

4

Re: Infection for Teeworlds 0.6.4

This is not an original Infection port.
It's just a shabby copy.

I will be banned if I troll again ...

5 (edited by jxsl13 2015-05-30 15:34:06)

Re: Infection for Teeworlds 0.6.4

if I remember correctly, it's archlinux

ah, well, I tried compiling everything, that must be it ._.

Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

6 (edited by Orangus 2015-05-31 12:27:46)

Re: Infection for Teeworlds 0.6.4

Deepfinder wrote:

This is not an original Infection port.

There no way to make a real port coz as Gravity said, the source is lost.
Anyway that recode is apsolutely compatible with the original one.

Deepfinder wrote:

It's just a shabby copy.

Well then we'll be waiting for your better, fresh and cleaner one.

jxsl13 wrote:

ah, well, I tried compiling everything, that must be it ._.

yes, you have to compile the server only

Orange is my faver color.
Orange and tangerine is my faver fruit.
I never get stuff done, just coz I'm lazy.

7

Re: Infection for Teeworlds 0.6.4

0.6.4 is not even out yet ...

Trust dies but mistrust blossoms. Sophocles
Landil was here, and wrote the above ^^
HOLY FUCK! Can't believe I met Landil tongue

8

Re: Infection for Teeworlds 0.6.4

matiasmunk wrote:

0.6.4 is not even out yet ...

the code part is released already

Orange is my faver color.
Orange and tangerine is my faver fruit.
I never get stuff done, just coz I'm lazy.

9

Re: Infection for Teeworlds 0.6.4

It's really sad to see old mods become obsolete, so I appreciate your work a lot. Good job!
By the way, I can provide Linux binaries if you want them.

I tried your mod with a few maps and apparently maps that worked with the old mod don't work anymore on yours. If it's not too hard to achieve, do you plan to support them in the future or provide some sort of converter?

Why did you make this commit? I don't think it's a good idea to release object files as they are useless if you don't compile on the same platform, can be generated easily and automatically and they take a lot of space in the repository.

Orangus wrote:

the code part is released already

Not exactly, see the comments on this commit.

Also that's funny because when I looked at your pseudonym, I have realized we talked together on Teeworlds yesterday (I was TiJuly).

10

Re: Infection for Teeworlds 0.6.4

Truly, an amazing job's been done, thank you!

It would have been so great once you removed these useless
object files and shared a commit history the way it should be.

11 (edited by Kirbs 2015-06-26 01:43:13)

Re: Infection for Teeworlds 0.6.4

Getkey wrote:

It's really sad to see old mods become obsolete, so I appreciate your work a lot. Good job!

The old mod never became obsolete, just had to be patched with the python security patch and wahla. There. I still play the older infection on my private server tongue //trollface

EDIT: 64bit Linux binary: https://downloads.teeworlds.com/solidfi … ection_srv (I think?)

no