01-15-2016, 05:18 AM
Relating to this, is there a way to prevent older versions from joining? 1.8 has iirc some new blocks, and I'm guessing they would be disabled if 1.7 is allowed to join.
(01-15-2016, 04:49 AM)xoft Wrote: [ -> ]There's even a source code release of the last version that did support the pre-1.7 protocols:
https://github.com/cuberite/cuberite/rel...tag/1.6EoS
Note that supporting older protocols sounds like a good idea until you dig around for details. For example, the older clients have no knowledge of the newer blocks or mobs. So the clients usually crash whenever the server sends such data.
(01-15-2016, 03:08 PM)xoft Wrote: [ -> ]The 1.6EoS version, linked above, supports protocols from 1.2 to 1.7.
cd src
cmake . -DCMAKE_BUILD_TYPE=DEBUG && make
root@raspberrypi:~/Desktop/Cuberite/src# cmake . -DCMAKE_BUILD_TYPE=DEBUG && make
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Desktop/Cuberite/src
Scanning dependencies of target Blocks
[ 1%] Building CXX object Blocks/CMakeFiles/Blocks.dir/BlockBed.cpp.o
[ 1%] Building CXX object Blocks/CMakeFiles/Blocks.dir/BlockDoor.cpp.o
[ 2%] Building CXX object Blocks/CMakeFiles/Blocks.dir/BlockHandler.cpp.o
In file included from /root/Desktop/Cuberite/src/./PolarSSL++/RsaPrivateKey.h:12:0,
from /root/Desktop/Cuberite/src/./HTTPServer/HTTPServer.h:15,
from /root/Desktop/Cuberite/src/./Root.h:6,
from /root/Desktop/Cuberite/src/Blocks/BlockDirt.h:6,
from /root/Desktop/Cuberite/src/Blocks/BlockHandler.cpp:23:
/root/Desktop/Cuberite/src/./PolarSSL++/CtrDrbgContext.h:12:31: fatal error: polarssl/ctr_drbg.h: No such file or directory
#include "polarssl/ctr_drbg.h"
^
compilation terminated.
Blocks/CMakeFiles/Blocks.dir/build.make:100: recipe for target 'Blocks/CMakeFiles/Blocks.dir/BlockHandler.cpp.o' failed
make[2]: *** [Blocks/CMakeFiles/Blocks.dir/BlockHandler.cpp.o] Error 1
CMakeFiles/Makefile2:274: recipe for target 'Blocks/CMakeFiles/Blocks.dir/all' failed
make[1]: *** [Blocks/CMakeFiles/Blocks.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2