Does the host crash? I can get the host to successfully send maps, but mods always fail. It seems the host tries to sends mods as a map? Clients receive a file with many zeroes in the name just before the host crashes.andrvaut wrote:1) Correct work of external mods. Now the only reliable way to play with the mod in multiplayer is to add it to the map.
Code: Select all
if (hash == game.hash)
{
addConsoleMessage(_("Map was requested: SENDING MAP!"), DEFAULT_JUSTIFY, SYSTEM_MESSAGE);
LEVEL_DATASET *mapData = levFindDataSet(game.map, &game.hash);
filename = mapData->realFileName;
debug(LOG_INFO, "Map was requested. Looking for %s", filename.c_str());
}
else
{
filename = getModFilename(hash);
if (filename.empty())
{
debug(LOG_INFO, "Unknown file requested by %u.", player);
return false;
}
addConsoleMessage(_("Mod was requested: SENDING MOD!"), DEFAULT_JUSTIFY, SYSTEM_MESSAGE);
}