From 80e1eb37ddfcbd224fe1d3491201ba8db3e1114f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Fri, 1 Jan 2016 21:05:09 +0100 Subject: Renamed leftover strings to Cuberite / Server, as needed. Also upgraded the user setting file for MSVC to 2013. --- CMakeLists.txt | 5 +- Doxyfile | 2 +- GETTING-STARTED.md | 4 +- Install/.gitignore | 2 - Install/Cuberite_high_detail_debug.cmd | 1 + Install/Cuberite_medium_detail_debug.cmd | 1 + Install/MCServer_high_detail_debug.cmd | 1 - Install/MCServer_medium_detail_debug.cmd | 1 - Server/.gitignore | 1 + Server/Plugins/Debuggers/Debuggers.lua | 2 +- Server/Plugins/HookNotify/HookNotify.lua | 2 +- Server/Plugins/NetworkTest/NetworkTest.lua | 4 +- Server/Plugins/TestLuaRocks/TestLuaRocks.lua | 2 +- Server/README.txt | 31 ++-- Server/hg | 2 +- Server/hg.supp | 2 +- Server/vg | 2 +- Server/webadmin/files/guest.html | 2 +- Server/webadmin/files/login.css | 2 +- Server/webadmin/files/style.css | 2 +- Server/webadmin/login_template.html | 4 +- Server/webadmin/template.html | 6 +- Server/webadmin/template.lua | 4 +- SetFlags.cmake | 2 +- Tools/BlockZapper/BlockZapper.txt | 2 +- Tools/MemDumpAnalysis/MemDumpAnalysis.vcproj | 4 +- docs/Generator.html | 36 ++--- docs/_files.txt | 2 +- src/Bindings/CMakeLists.txt | 2 +- src/BlockEntities/CMakeLists.txt | 2 +- src/Blocks/CMakeLists.txt | 2 +- src/CMakeLists.txt | 4 +- src/Cuberite.vcxproj.user | 27 ++++ src/Entities/CMakeLists.txt | 2 +- src/Generating/CMakeLists.txt | 2 +- src/HTTPServer/CMakeLists.txt | 2 +- src/Items/CMakeLists.txt | 2 +- src/MCServer.vcproj.user | 167 --------------------- src/Mobs/CMakeLists.txt | 2 +- src/Noise/CMakeLists.txt | 2 +- src/OSSupport/CMakeLists.txt | 2 +- src/PolarSSL++/CMakeLists.txt | 2 +- src/Protocol/CMakeLists.txt | 2 +- src/Resources/Cuberite.rc | 17 +++ src/Resources/MCServer.rc | 17 --- src/Resources/resource_Cuberite.h | 5 + src/Resources/resource_MCServer.h | 5 - src/Simulator/CMakeLists.txt | 2 +- .../IncrementalRedstoneSimulator/CMakeLists.txt | 2 +- src/UI/CMakeLists.txt | 2 +- src/WorldStorage/CMakeLists.txt | 2 +- tests/LoadablePieces/Stubs.cpp | 4 +- tests/NoiseTest/GNUmakefile | 2 +- 53 files changed, 133 insertions(+), 278 deletions(-) create mode 100644 Install/Cuberite_high_detail_debug.cmd create mode 100644 Install/Cuberite_medium_detail_debug.cmd delete mode 100644 Install/MCServer_high_detail_debug.cmd delete mode 100644 Install/MCServer_medium_detail_debug.cmd create mode 100644 src/Cuberite.vcxproj.user delete mode 100644 src/MCServer.vcproj.user create mode 100644 src/Resources/Cuberite.rc delete mode 100644 src/Resources/MCServer.rc create mode 100644 src/Resources/resource_Cuberite.h delete mode 100644 src/Resources/resource_MCServer.h diff --git a/CMakeLists.txt b/CMakeLists.txt index e15f9084f..3234e93d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,14 +9,13 @@ if (MSVC) endif() # These env variables are used for configuring Travis CI builds. -# See https://github.com/mc-server/MCServer/pull/767 if(DEFINED ENV{TRAVIS_CUBERITE_BUILD_TYPE}) message("Setting build type to $ENV{TRAVIS_CUBERITE_BUILD_TYPE}") set(CMAKE_BUILD_TYPE $ENV{TRAVIS_CUBERITE_BUILD_TYPE}) endif() -if(DEFINED ENV{TRAVIS_MCSERVER_FORCE32}) - set(FORCE32 $ENV{TRAVIS_MCSERVER_FORCE32}) +if(DEFINED ENV{TRAVIS_CUBERITE_FORCE32}) + set(FORCE32 $ENV{TRAVIS_CUBERITE_FORCE32}) endif() if(DEFINED ENV{TRAVIS_BUILD_WITH_COVERAGE}) diff --git a/Doxyfile b/Doxyfile index b898a0c04..1b1606243 100644 --- a/Doxyfile +++ b/Doxyfile @@ -26,7 +26,7 @@ DOXYFILE_ENCODING = UTF-8 # identify the project. Note that if you do not use Doxywizard you need # to put quotes around the project name if it contains spaces. -PROJECT_NAME = MCServer +PROJECT_NAME = Cuberite # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or diff --git a/GETTING-STARTED.md b/GETTING-STARTED.md index fc777aed0..5a36652ee 100644 --- a/GETTING-STARTED.md +++ b/GETTING-STARTED.md @@ -88,8 +88,8 @@ Basically, the process is: **Windows:** You need to first generate a solution file by executing `cmake .` on the commandline at the top-level folder of the repository, then just open the solution file in MSVC and build. Note that the first time after generating the solution, you will need to do extra setup in order to be able to fully debug in MSVC: -- Set the startup project to Cuberite: right-click the MCServer project in the Solution Explorer and choose "Set as Startup Project". -- Set the debugging folder: right-click the MCServer project in the Solution Explorer, choose "Properties". In the dialog, browse to "Configuration Properties" -> "Debugging" and set "Working Directory" to "../MCServer". +- Set the startup project to Cuberite: right-click the Cuberite project in the Solution Explorer and choose "Set as Startup Project". +- Set the debugging folder: right-click the Cuberite project in the Solution Explorer, choose "Properties". In the dialog, browse to "Configuration Properties" -> "Debugging" and set "Working Directory" to "../Server". How to Run ---------- diff --git a/Install/.gitignore b/Install/.gitignore index 3b0a53050..52c5ca5a9 100644 --- a/Install/.gitignore +++ b/Install/.gitignore @@ -1,4 +1,2 @@ -MCServer.exe -*.7z *.tag *.example.ini \ No newline at end of file diff --git a/Install/Cuberite_high_detail_debug.cmd b/Install/Cuberite_high_detail_debug.cmd new file mode 100644 index 000000000..0880495e3 --- /dev/null +++ b/Install/Cuberite_high_detail_debug.cmd @@ -0,0 +1 @@ +Cuberite --crash-dump-full diff --git a/Install/Cuberite_medium_detail_debug.cmd b/Install/Cuberite_medium_detail_debug.cmd new file mode 100644 index 000000000..1dcb291a0 --- /dev/null +++ b/Install/Cuberite_medium_detail_debug.cmd @@ -0,0 +1 @@ +Cuberite --crash-dump-globals diff --git a/Install/MCServer_high_detail_debug.cmd b/Install/MCServer_high_detail_debug.cmd deleted file mode 100644 index d94af8150..000000000 --- a/Install/MCServer_high_detail_debug.cmd +++ /dev/null @@ -1 +0,0 @@ -MCServer --crash-dump-full diff --git a/Install/MCServer_medium_detail_debug.cmd b/Install/MCServer_medium_detail_debug.cmd deleted file mode 100644 index 0a33c27fd..000000000 --- a/Install/MCServer_medium_detail_debug.cmd +++ /dev/null @@ -1 +0,0 @@ -MCServer --crash-dump-globals diff --git a/Server/.gitignore b/Server/.gitignore index 1df22b079..768adbb2c 100644 --- a/Server/.gitignore +++ b/Server/.gitignore @@ -31,6 +31,7 @@ motd.txt *.dmp *.xml mcserver_api.lua +cuberite_api.lua # Ignore the webadmin certs / privkey, so that no-one commits theirs by accident: webadmin/httpscert.crt diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua index 85e2c50ae..5b7f26fe6 100644 --- a/Server/Plugins/Debuggers/Debuggers.lua +++ b/Server/Plugins/Debuggers/Debuggers.lua @@ -1459,7 +1459,7 @@ function HandleCompo(a_Split, a_Player) -- Send one composite message to self: local msg = cCompositeChat() msg:AddTextPart("Hello! ", "b@e") -- bold yellow - msg:AddUrlPart("MCServer", "http://mc-server.org") + msg:AddUrlPart("Cuberite", "http://cuberite.org") msg:AddTextPart(" rules! ") msg:AddRunCommandPart("Set morning", "/time set 0") a_Player:SendMessage(msg) diff --git a/Server/Plugins/HookNotify/HookNotify.lua b/Server/Plugins/HookNotify/HookNotify.lua index 411dbebbd..33b1a80a8 100644 --- a/Server/Plugins/HookNotify/HookNotify.lua +++ b/Server/Plugins/HookNotify/HookNotify.lua @@ -5,7 +5,7 @@ Implements the entire plugin NOTE: This plugin is not meant for production servers. It is used mainly by developers to verify that things -are working properly when implementing MCServer features. Do not enable this plugin on production servers! +are working properly when implementing Cuberite features. Do not enable this plugin on production servers! This plugin logs a notification for each hook that is being called by the server. The TICK and WORLD_TICK hooks are disabled because they produce too much output. diff --git a/Server/Plugins/NetworkTest/NetworkTest.lua b/Server/Plugins/NetworkTest/NetworkTest.lua index d6849ead6..1bb35d0c6 100644 --- a/Server/Plugins/NetworkTest/NetworkTest.lua +++ b/Server/Plugins/NetworkTest/NetworkTest.lua @@ -107,7 +107,7 @@ local g_Services = -- Send a welcome message to newly accepted connections: OnAccepted = function (a_Link) - a_Link:Send("Hello, " .. a_Link:GetRemoteIP() .. ", welcome to the echo server @ MCServer-Lua\r\n") + a_Link:Send("Hello, " .. a_Link:GetRemoteIP() .. ", welcome to the echo server @ Cuberite-Lua\r\n") end, -- OnAccepted() -- There was an error listening on the port: @@ -140,7 +140,7 @@ local g_Services = -- Send a welcome message and the fortune to newly accepted connections: OnAccepted = function (a_Link) - a_Link:Send("Hello, " .. a_Link:GetRemoteIP() .. ", welcome to the fortune server @ MCServer-Lua\r\n\r\nYour fortune:\r\n") + a_Link:Send("Hello, " .. a_Link:GetRemoteIP() .. ", welcome to the fortune server @ Cuberite-Lua\r\n\r\nYour fortune:\r\n") a_Link:Send(g_Fortunes[math.random(#g_Fortunes)] .. "\r\n") end, -- OnAccepted() diff --git a/Server/Plugins/TestLuaRocks/TestLuaRocks.lua b/Server/Plugins/TestLuaRocks/TestLuaRocks.lua index 4a7cd4e1e..0e4ccb7d5 100644 --- a/Server/Plugins/TestLuaRocks/TestLuaRocks.lua +++ b/Server/Plugins/TestLuaRocks/TestLuaRocks.lua @@ -1,7 +1,7 @@ -- TestLuaRocks.lua --- This is a mockup plugin that does a quick test of LuaRocks capability in MCServer +-- This is a mockup plugin that does a quick test of LuaRocks capability in Cuberite -- "Success" is when the plugin loads, downloads the forum webpage and displays the headers and length and then displays both libs as loaded. -- "Failure" usually manifests as one of the "require" lines failing, although you have the luarock installed. diff --git a/Server/README.txt b/Server/README.txt index 3cddc37d2..f3972e90f 100644 --- a/Server/README.txt +++ b/Server/README.txt @@ -1,20 +1,17 @@ -/============================\ -| Custom Minecraft Server | -| (MCServer) | -| | -| Founder: Kevin Bansberg | -| A.K.A. FakeTruth | -| Lead dev: Mattes D | -| A.K.A. _Xoft(o) | -| A.K.A. xoft | -| Monsters by Alex Sonek | -| A.K.A. Duralex | -|============================| -| Info: www.mc-server.org | -| www.ae-c.net | -| www.rbthinktank.com | -| Mail: faketruth@gmail.com | -\============================/ +/=============================\ +| Custom Minecraft Server | +|(Cuberite, formerly MCServer)| +| | +| Founder: Kevin Bansberg | +| A.K.A. FakeTruth | +| Lead dev: Mattes D | +| A.K.A. _Xoft(o) | +| A.K.A. xoft | +| Monsters by Alex Sonek | +| A.K.A. Duralex | +|=============================| +| Info: www.cuberite.org | +\=============================/ Compatible clients: 1.7.x and 1.8.x Compatible protocol versions: 4, 5, 47 diff --git a/Server/hg b/Server/hg index f79dce8e8..38ba01206 100755 --- a/Server/hg +++ b/Server/hg @@ -1,6 +1,6 @@ #! /bin/bash -# This script runs MCServer under helgrind +# This script runs Cuberite under helgrind # It expects valgrind to be normally installed and available # Note that this is for Linux only and debug-only, since it slows down MCS way too much diff --git a/Server/hg.supp b/Server/hg.supp index bea6ecf3c..7acad9edc 100644 --- a/Server/hg.supp +++ b/Server/hg.supp @@ -1,4 +1,4 @@ -# This is a valgrind suppressions file for running helgrind on MCServer +# This is a valgrind suppressions file for running helgrind on Cuberite # Use by adding "--suppressions=hg.supp" to the helgrind commandline diff --git a/Server/vg b/Server/vg index 5fc22ab68..53f30d8d1 100755 --- a/Server/vg +++ b/Server/vg @@ -1,6 +1,6 @@ #! /bin/bash -# This script runs MCServer under valgrind +# This script runs Cuberite under valgrind # It expects valgrind to be normally installed and available # Note that this is for Linux only and debug-only, since it slows down MCS way too much diff --git a/Server/webadmin/files/guest.html b/Server/webadmin/files/guest.html index 4f965b75c..27af93142 100644 --- a/Server/webadmin/files/guest.html +++ b/Server/webadmin/files/guest.html @@ -8,7 +8,7 @@

- Hello! Welcome to the MCServer WebAdmin. + Hello! Welcome to the Cuberite WebAdmin.

This is a default message, edit files/guest.html to add your own custom message. diff --git a/Server/webadmin/files/login.css b/Server/webadmin/files/login.css index 5d87da4c5..ad94e5810 100644 --- a/Server/webadmin/files/login.css +++ b/Server/webadmin/files/login.css @@ -1,4 +1,4 @@ -/* Copyright Justin S and MCServer Team, licensed under CC-BY-SA 3.0 */ +/* Copyright Justin S and Cuberite Team, licensed under CC-BY-SA 3.0 */ * { margin: 0; } diff --git a/Server/webadmin/files/style.css b/Server/webadmin/files/style.css index 7c0671970..8cb803a05 100644 --- a/Server/webadmin/files/style.css +++ b/Server/webadmin/files/style.css @@ -1,4 +1,4 @@ -/* Copyright Justin S and MCServer Team, licensed under CC-BY-SA 3.0 */ +/* Copyright Justin S and Cuberite Team, licensed under CC-BY-SA 3.0 */ * { margin: 0; } diff --git a/Server/webadmin/login_template.html b/Server/webadmin/login_template.html index d0ab9b566..30b7d4f82 100644 --- a/Server/webadmin/login_template.html +++ b/Server/webadmin/login_template.html @@ -1,4 +1,4 @@ - + Cuberite WebAdmin - Login @@ -32,7 +32,7 @@ -

MCServer WebAdmin
+
Cuberite WebAdmin
diff --git a/Server/webadmin/template.html b/Server/webadmin/template.html index b0864e35d..305c566cd 100644 --- a/Server/webadmin/template.html +++ b/Server/webadmin/template.html @@ -110,9 +110,9 @@ #cssmenu > ul > li > a:after { border-color:#707070; } #cssmenu > ul > li > a:hover { background:#B8B8B8; } - + - +
@@ -132,7 +132,7 @@ {CONTENT}
diff --git a/Server/webadmin/template.lua b/Server/webadmin/template.lua index 00b2523b7..03ef95088 100644 --- a/Server/webadmin/template.lua +++ b/Server/webadmin/template.lua @@ -81,7 +81,7 @@ function ShowPage(WebAdmin, TemplateRequest) end Output([[ - + ]] .. Title .. [[ @@ -94,7 +94,7 @@ function ShowPage(WebAdmin, TemplateRequest)
- +
diff --git a/SetFlags.cmake b/SetFlags.cmake index 206a1da8e..4d6833edd 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -258,7 +258,7 @@ macro(set_exe_flags) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") if ("${CLANG_VERSION}" VERSION_LESS 3.0) - message(FATAL_ERROR "MCServer requires clang version 3.0 or higher, version is ${CLANG_VERSION}") + message(FATAL_ERROR "Cuberite requires clang version 3.0 or higher, your version is ${CLANG_VERSION}") endif() # clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math add_flags_cxx("-D__extern_always_inline=inline") diff --git a/Tools/BlockZapper/BlockZapper.txt b/Tools/BlockZapper/BlockZapper.txt index 2b52c477e..06687abf6 100644 --- a/Tools/BlockZapper/BlockZapper.txt +++ b/Tools/BlockZapper/BlockZapper.txt @@ -11,7 +11,7 @@ If the specifier line ends with an additional " BE", both blocks and entities ar The tool is aware of extended blocktypes (256 .. 4096). -The source code for this tool is public domain, but note that it depends on a few shared sources in MCServer that may be under other licenses. +The source code for this tool is public domain, but note that it depends on a few shared sources in Cuberite that may be under other licenses. */ diff --git a/Tools/MemDumpAnalysis/MemDumpAnalysis.vcproj b/Tools/MemDumpAnalysis/MemDumpAnalysis.vcproj index 8283fd531..d237e2c36 100644 --- a/Tools/MemDumpAnalysis/MemDumpAnalysis.vcproj +++ b/Tools/MemDumpAnalysis/MemDumpAnalysis.vcproj @@ -62,7 +62,7 @@ /> -Generating terrain in MCServer +Generating terrain in Cuberite -

Generating terrain in MCServer

-

This article explains the principles behind the terrain generator in MCServer. It is not strictly -specific to MCServer, though, it can be viewed as a generic guide to various terrain-generating algorithms, -with specific implementation notes regarding MCServer.

+

Generating terrain in Cuberite

+

This article explains the principles behind the terrain generator in Cuberite. It is not strictly +specific to Cuberite, though, it can be viewed as a generic guide to various terrain-generating algorithms, +with specific implementation notes regarding Cuberite.

Contents:

    @@ -80,7 +80,7 @@ neighboring chunks.


    The ComposableGenerator pipeline

    -

    This leads us directly to the main pipeline that is used for generating terrain in MCServer. For +

    This leads us directly to the main pipeline that is used for generating terrain in Cuberite. For technical reasons, the terrain composition step is further subdivided into Height generation and Composition generation, and the structures are really called Finishers. For each chunk the generator generates, in this sequence: @@ -131,7 +131,7 @@ generated for any number of dimensions.

    Generating biomes

    The easiest way to generate biomes is to not generate them at all - simply assign a single constant biome to everywhere. And indeed there are times when this kind of "generator" is useful - for the MineCraft's Flat -world type, or for testing purposes, or for tematic maps. In MCServer, this is exactly what the Constant +world type, or for testing purposes, or for tematic maps. In Cuberite, this is exactly what the Constant biome generator does.

    Of course, there are more interesting test scenarios for which multiple biomes must be generated as easy @@ -175,7 +175,7 @@ gives us the seed's X position. We use another Perlin noise and the same calcula seed.

    Here's an example of a biome map generated using the Voronoi + jitter grid, as implemented by the Voronoi -biome generator in MCServer:

    +biome generator in Cuberite:

    Distorted Voronoi

    @@ -194,7 +194,7 @@ coordinate before sending the coordinates down to the Voronoi generator:

    DistortedVoronoiBiome(X, Z) := VoronoiBiome(X + PerlinX(X, Z), Z + PerlinZ(X, Z)) -

    The following image shows the effects of the change, as generated by MCServer's DistortedVoronoi biome +

    The following image shows the effects of the change, as generated by Cuberite's DistortedVoronoi biome generator. It is actually using the very same Voronoi map as the previous image, the only change has been the addition of the distortion:

    @@ -241,7 +241,7 @@ either add them somewhere into the decision diagram, or we can make the generato

-

This is the approach implemented in MCServer's MultiStepMap biome generator. It generates biome maps like +

This is the approach implemented in Cuberite's MultiStepMap biome generator. It generates biome maps like this:

@@ -296,10 +296,10 @@ generator uses distortion before querying the small areas.



-

The following image shows an example output of a TwoLevel biome generator in MCServer:

+

The following image shows an example output of a TwoLevel biome generator in Cuberite:

-

Note that rivers are currently not implemented in this generator in MCServer, but they could be added +

Note that rivers are currently not implemented in this generator in Cuberite, but they could be added using the same approach as in MultiStepMap - by using a thresholded 2D Perlin noise.

@@ -332,12 +332,12 @@ suddenly become smooth. The following image shows the situation from the previou the averaging process:

-

The approach used in MCServer's Biomal generator is based on this idea, with two slight modifications. +

The approach used in Cuberite's Biomal generator is based on this idea, with two slight modifications. Instead of using a separate generator for each biome, one generator is used with a different set of input parameters for each biomes. These input parameters modify the overall amplitude and frequency of the Perlin noise that the generator produces, thus modifying the final terrain with regards to biomes. Additionally, the averaging process is weighted - columns closer to the queried column get a more powerful weight in the sum -than the columns further away. The following image shows the output of MCServer's Biomal terrain height +than the columns further away. The following image shows the output of Cuberite's Biomal terrain height generator (each block type represents a different biome - ocean in the front (stone), plains and ice plains behind it (lapis, whitewool), extreme hills back right (soulsand), desert hills back left (mossy cobble)):

@@ -425,7 +425,7 @@ snow, for example.

into an ice block if the biome is cold. This means that any water block that is under any kind of other block, such as under a tree's leaves, will still stay water. Thus an additional improvement could be made by scanning down from the surface block through blocks that we deem as non-surface, such as leaves, torches, -ladders, fences etc. Note that MCServer currently implements only the easy solution.

+ladders, fences etc. Note that Cuberite currently implements only the easy solution.

Bottom lava

Most worlds in MineCraft have lava lakes at their bottom. Generating these is pretty straightforward: Use @@ -433,7 +433,7 @@ the user-configured depth and replace all the air blocks below this depth with l that this makes this generator dependent on the order in which the finishers are applied. If the mineshafts generate before bottom lava, the mineshafts that are below the lava level will get filled with lava. On the other hand, if bottom lava is generated before the mineshafts, it is possible for a mineshaft to "drill -through" a lake of lava. MCServer doesn't try to solve this and instead lets the admin choose whichever they +through" a lake of lava. Cuberite doesn't try to solve this and instead lets the admin choose whichever they prefer.

Specific foliage

@@ -500,12 +500,12 @@ anywhere, so it would be rather useless.

surface, perhaps a bit more in the mountaineous biomes. There should be quite a few more springs underground, but there should definitely be more water springs than lava springs in the upper levels of the terrain, while there should be more lava springs and almost no water springs near the bottom. To accomodate this, the -MCServer team has made a tool that scanned through MineCraft's terrain and counted the amount of both types +Cuberite team has made a tool that scanned through MineCraft's terrain and counted the amount of both types of springs in relation to their height. Two curves have been found for the distribution of each type of the spring:

-

MCServer uses an approximation of the above curves to choose the height at which to generate the +

Cuberite uses an approximation of the above curves to choose the height at which to generate the spring.