1

Topic: Looking for massive CTF maps with multiple flags

With the new 64 player vanilla mod, I've been hosting a server with 32 players and I feel like one flag wouldn't be enough.

2

Re: Looking for massive CTF maps with multiple flags

Does vanilla64 even support multi-flags?

Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

3

Re: Looking for massive CTF maps with multiple flags

Vanilla client can't render more than two flags (one red, one blue) and server can't send more than both flags at a time. Good luck with that! ^^

4

Re: Looking for massive CTF maps with multiple flags

Siile you did that in CSTT..... Was it Hard?

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

5

Re: Looking for massive CTF maps with multiple flags

If you have multiple flags you have to choose which flag gets snapped (sent to client). It's limited to a blue and a red flag, and if you try to snap more flags either the server or client showing the flags will crash (I don't remember which one did, but it caused issues).

Server's CTF gamecontroller also by default has no idea how to handle more than one of each flags.

6 (edited by unsigned char* 2016-10-13 17:03:29)

Re: Looking for massive CTF maps with multiple flags

Can render more than one flag...

    // render flag
    for(int i = 0; i < Num; i++)
    {
        IClient::CSnapItem Item;
        const void *pData = Client()->SnapGetItem(IClient::SNAP_CURRENT, i, &Item);

        if(Item.m_Type == NETOBJTYPE_FLAG)
        {
            const void *pPrev = Client()->SnapFindItem(IClient::SNAP_PREV, Item.m_Type, Item.m_ID);
            if (pPrev)
            {
                const void *pPrevGameData = Client()->SnapFindItem(IClient::SNAP_PREV, NETOBJTYPE_GAMEDATA, m_pClient->m_Snap.m_GameDataSnapID);
                RenderFlag(static_cast<const CNetObj_Flag *>(pPrev), static_cast<const CNetObj_Flag *>(pData),
                            static_cast<const CNetObj_GameData *>(pPrevGameData), m_pClient->m_Snap.m_pGameDataObj);
            }
        }
    }

But can't store more than two flags... for this.. but never is used :S

else if(Item.m_Type == NETOBJTYPE_FLAG)
                m_Snap.m_paFlags[Item.m_ID%2] = (const CNetObj_Flag *)pData;

Hack the ID.. idk if works properly xD
ONly can use RED or BLUE.


Ummm perhaps

const void *pPrev = Client()->SnapFindItem(IClient::SNAP_PREV, Item.m_Type, Item.m_ID);

Fuck all no? xDD

7

Re: Looking for massive CTF maps with multiple flags

@unsigned char, I think you can't just hack the id, because I think it's actually displayed Like if it's 1 it's blue and if it's 0 it's red or something like that..... Ans naturally you can't have an array with multiple objects in one index.....

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

8 (edited by 2016-10-13 19:38:19)

Re: Looking for massive CTF maps with multiple flags

Schwertspize wrote:

@unsigned char, I think you can't just hack the id, because I think it's actually displayed Like if it's 1 it's blue and if it's 0 it's red or something like that..... Ans naturally you can't have an array with multiple objects in one index.....

The color are render by m_Team...

    if(pCurrent->m_Team == TEAM_RED)
        RenderTools()->SelectSprite(SPRITE_FLAG_RED);
    else
        RenderTools()->SelectSprite(SPRITE_FLAG_BLUE);

But i will do a test for confirm xDD

Umm you can render more than 1 flag of the same color...
https://dl.dropboxusercontent.com/u/30566237/tw_forum/flags_tw.png
https://dl.dropboxusercontent.com/u/30566237/tw_forum/flags_tw_blue.png

9

Re: Looking for massive CTF maps with multiple flags

Wow, can you give a bit more information about the code you used?

And what happens if you pick up one of them? Or carry one of them to a Red flag?

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

10

Re: Looking for massive CTF maps with multiple flags

Schwertspize wrote:

Wow, can you give a bit more information about the code you used?

And what happens if you pick up one of them? Or carry one of them to a Red flag?

The big problem is that new flags lost prediction... because the game object only accept one carrier per flag.

For implement this, the big change it's use m_ID instead m_Team in Snap (CFlag).
For other questions: All is "supervised" by the controller... just works like you designed it wink