From f3e0a5f6567481ded8917277a7101965872a9f60 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Tue, 9 Feb 2016 00:46:34 +0200 Subject: Add forum link to linkage error message --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index 3bfb7c730..c704b46bb 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -558,7 +558,7 @@ void cWorld::Start(void) if (!BadWorlds.empty()) { const char * WorldName = m_WorldName.c_str(); - LOGERROR("\n###### ERROR: %s is linked to the following nonexisting world/s:\n%s\n\nPlease edit %s/world.ini and fix this.\n\nNote that the server started enforcing proper world linkages recently. And people with older configs may naturally get this error. If you just want a working default config and don't mind losing this world, delete the folder \"%s\" and the server will receate one for you. Otherwise edit the world.ini file and fix the invalid linkages.\n######\n", + LOGERROR("\n###### ERROR: \"%s\" is linked to the following nonexisting world/s:\n%s\n\nPlease edit %s/world.ini and fix this.\n\nNote that the server started enforcing proper world linkages recently. And people with older configs may naturally get this error. If you just want a working default config and don't mind losing this world, delete the folder \"%s\" and the server will receate one for you. Otherwise edit the world.ini file and fix the invalid linkages.\n\nMore help and info:\nhttps://forum.cuberite.org/thread-2366.html\n######\n", WorldName, BadWorlds.c_str(), WorldName, WorldName); cRoot::Get()->StopServer(); } -- cgit v1.2.3 From 3fb32a55352c8dd6e21def07e7dcd37067992263 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Tue, 9 Feb 2016 10:02:36 +0200 Subject: Write to console when autofixing linkages --- src/Root.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Root.cpp b/src/Root.cpp index 11cc4e250..87c255b9c 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -410,6 +410,7 @@ void cRoot::LoadWorlds(cSettingsRepositoryInterface & a_Settings, bool a_IsNewIn a_Settings.AddValue("Worlds", "World", "world_nether"); a_Settings.AddValue("Worlds", "World", "world_end"); Worlds = a_Settings.GetValues("Worlds"); // Refresh the Worlds list so that the rest of the function works as usual + LOG("The server detected an old default config with bad world linkages. This has been autofixed by adding \"world_nether\" and \"world_end\" to settings.ini"); } } } -- cgit v1.2.3