26

Re: [Questions] Ask your miscellaneous questions here!

I did not find any solution, so I have deleted all my Pc data, and restored my System, now it works fine again.

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

27

Re: [Questions] Ask your miscellaneous questions here!

Ioannisjanni wrote:

maybe try putting sv_register 0 in your autoexec? ( im not sure if thats the correct cmd)

Won't fix anything.

Not Luck, Just Magic.

28

Re: [Questions] Ask your miscellaneous questions here!

Teeworlds Servers Question:
Were do it get infos and files?
For exemple,
sv_map dm1
Were will teeworlds_srv.exe take the map from?
From %appdata%\teeworlds or from the same folder as teeworlds_srv.exe?

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

29

Re: [Questions] Ask your miscellaneous questions here!

const char *CClient::LoadMapSearch(const char *pMapName, int WantedCrc)
{
    const char *pError = 0;
    char aBuf[512];
    str_format(aBuf, sizeof(aBuf), "loading map, map=%s wanted crc=%08x", pMapName, WantedCrc);
    m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client", aBuf);
    SetState(IClient::STATE_LOADING);

    // try the normal maps folder
    str_format(aBuf, sizeof(aBuf), "maps/%s.map", pMapName);
    pError = LoadMap(pMapName, aBuf, WantedCrc);
    if(!pError)
        return pError;

    // try the downloaded maps
    str_format(aBuf, sizeof(aBuf), "downloadedmaps/%s_%08x.map", pMapName, WantedCrc);
    pError = LoadMap(pMapName, aBuf, WantedCrc);
    if(!pError)
        return pError;

    // search for the map within subfolders
    char aFilename[128];
    str_format(aFilename, sizeof(aFilename), "%s.map", pMapName);
    if(Storage()->FindFile(aFilename, "maps", IStorageTW::TYPE_ALL, aBuf, sizeof(aBuf)))
        pError = LoadMap(pMapName, aBuf, WantedCrc);

    return pError;
}

...
            if(pError)
                DisconnectWithReason(pError);
            else
            {
                pError = LoadMapSearch(pMap, MapCrc);

                if(!pError)
                {
                    m_pConsole->Print(IConsole::OUTPUT_LEVEL_ADDINFO, "client/network", "loading done");
                    SendReady();
                }
                else
                {
                    str_format(m_aMapdownloadFilename, sizeof(m_aMapdownloadFilename), "downloadedmaps/%s_%08x.map", pMap, MapCrc);
...

First try with current directory... if not... try search it in %appdata% if not... try it with _CRC

30

Re: [Questions] Ask your miscellaneous questions here!

I do not know wrote:

1)current directory...
2)%appdata%
3)_CRC(?)

Tnx

Playing Teeworlds since 2011!
"I will always be topless for you"
                  - Günther Branlutte

31

Re: [Questions] Ask your miscellaneous questions here!

I want to add a vote that can change my list of maps (like we can see on the DDrace Inspire, they organized this server alphabetically). How can I do it?

add_vote "show DM maps" ...

Vanilla FTW, please.

32 (edited by Broken 2012-12-16 18:45:12)

Re: [Questions] Ask your miscellaneous questions here!

Tarzan wrote:

I want to add a vote that can change my list of maps (like we can see on the DDrace Inspire, they organized this server alphabetically). How can I do it?

add_vote "show DM maps" ...

Lots of servers are doing this now. It's actually quite easy:

add_vote "change to new list" "clear_votes;exec newlist.cfg"

Then newlist.cfg is your new list of votes. Do the same to get back.

33

Re: [Questions] Ask your miscellaneous questions here!

That is what I am talking about. Thank you.

Vanilla FTW, please.

34 (edited by Zodiac 2012-12-26 14:55:52)

Re: [Questions] Ask your miscellaneous questions here!

Quick question. The method "CServer::DelClientCallback" is it 100% guaranteed to be called every time a client leaves the server? And its not called between map changes? I'm pretty sure I know the answer to these questions, but I'm testing something and I can't seem to figure out why it is going wrong.

35

Re: [Questions] Ask your miscellaneous questions here!

Zodiac wrote:

Quick question. The method "CServer::DelClientCallback" is it 100% guaranteed to be called every time a client leaves the server? And its not called between map changes? I'm pretty sure I know the answer to these questions, but I'm testing something and I can't seem to figure out why it is going wrong.

It's called everytime a client is literally disconnected from the server, because it's a callback function for the CNetServer instance of the server. That means it's not called during map changes.

36

Re: [Questions] Ask your miscellaneous questions here!

heinrich5991 wrote:
Zodiac wrote:

Quick question. The method "CServer::DelClientCallback" is it 100% guaranteed to be called every time a client leaves the server? And its not called between map changes? I'm pretty sure I know the answer to these questions, but I'm testing something and I can't seem to figure out why it is going wrong.

It's called everytime a client is literally disconnected from the server, because it's a callback function for the CNetServer instance of the server. That means it's not called during map changes.

That is what I thought =/ Dammit, means I am back to square one with this bug.