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.
You are not logged in. Please login or register.
Teeworlds Forum → Support → [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.
maybe try putting sv_register 0 in your autoexec? ( im not sure if thats the correct cmd)
Won't fix anything.
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?
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
1)current directory...
2)%appdata%
3)_CRC(?)
Tnx
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" ...
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.
That is what I am talking about. Thank you.
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.
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.
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.
Teeworlds Forum → Support → [Questions] Ask your miscellaneous questions here!
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.