mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-04-19 11:00:29 +02:00
Add a few more log messages
This commit is contained in:
parent
0a56b18cfb
commit
458c3c30a0
@ -64,6 +64,7 @@ if(zlib-ng_FOUND)
|
|||||||
set(USE_ZLIB_NG TRUE)
|
set(USE_ZLIB_NG TRUE)
|
||||||
message(STATUS "Found zlib-ng, using it instead of zlib.")
|
message(STATUS "Found zlib-ng, using it instead of zlib.")
|
||||||
else()
|
else()
|
||||||
|
message(STATUS "zlib-ng not found, falling back to zlib.")
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
set(USE_ZLIB_NG FALSE)
|
set(USE_ZLIB_NG FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
@ -136,13 +136,15 @@ PlayerAttributes::PlayerAttributes(const std::string &worldDir)
|
|||||||
std::string backend = read_setting_default("player_backend", ifs, "files");
|
std::string backend = read_setting_default("player_backend", ifs, "files");
|
||||||
ifs.close();
|
ifs.close();
|
||||||
|
|
||||||
verbosestream << "Player backend is " << backend << std::endl;
|
verbosestream << "Player backend: " << backend << std::endl;
|
||||||
if (backend == "files")
|
if (backend == "files")
|
||||||
FilesReader(worldDir + "players").read(m_players);
|
FilesReader(worldDir + "players").read(m_players);
|
||||||
else if (backend == "sqlite3")
|
else if (backend == "sqlite3")
|
||||||
SQLiteReader(worldDir + "players.sqlite").read(m_players);
|
SQLiteReader(worldDir + "players.sqlite").read(m_players);
|
||||||
else
|
else
|
||||||
throw std::runtime_error(std::string("Unknown player backend: ") + backend);
|
throw std::runtime_error(std::string("Unknown player backend: ") + backend);
|
||||||
|
|
||||||
|
verbosestream << "Loaded " << m_players.size() << " players" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerAttributes::Players::const_iterator PlayerAttributes::begin() const
|
PlayerAttributes::Players::const_iterator PlayerAttributes::begin() const
|
||||||
|
@ -258,6 +258,7 @@ void TileGenerator::parseColorsFile(const std::string &fileName)
|
|||||||
std::ifstream in(fileName);
|
std::ifstream in(fileName);
|
||||||
if (!in.good())
|
if (!in.good())
|
||||||
throw std::runtime_error("Specified colors file could not be found");
|
throw std::runtime_error("Specified colors file could not be found");
|
||||||
|
verbosestream << "Parsing colors.txt: " << fileName << std::endl;
|
||||||
parseColorsStream(in);
|
parseColorsStream(in);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -527,8 +528,11 @@ void TileGenerator::createImage()
|
|||||||
image_height += (m_scales & SCALE_BOTTOM) ? scale_d : 0;
|
image_height += (m_scales & SCALE_BOTTOM) ? scale_d : 0;
|
||||||
|
|
||||||
if(image_width > 4096 || image_height > 4096) {
|
if(image_width > 4096 || image_height > 4096) {
|
||||||
errorstream << "Warning: The width or height of the image to be created exceeds 4096 pixels!"
|
errorstream << "Warning: The side length of the image to be created exceeds 4096 pixels!"
|
||||||
<< " (Dimensions: " << image_width << "x" << image_height << ")"
|
<< " (dimensions: " << image_width << "x" << image_height << ")"
|
||||||
|
<< std::endl;
|
||||||
|
} else {
|
||||||
|
verbosestream << "Creating image with size " << image_width << "x" << image_height
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
m_image = new Image(image_width, image_height);
|
m_image = new Image(image_width, image_height);
|
||||||
|
@ -91,7 +91,7 @@ static std::string search_colors(const std::string &worldpath)
|
|||||||
return SHAREDIR "/colors.txt";
|
return SHAREDIR "/colors.txt";
|
||||||
|
|
||||||
errorstream << "Warning: Falling back to using colors.txt from current directory." << std::endl;
|
errorstream << "Warning: Falling back to using colors.txt from current directory." << std::endl;
|
||||||
return "colors.txt";
|
return "./colors.txt";
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user