Cuberite Forum
Multi version Support - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Multi version Support (/thread-2314.html)

Pages: 1 2


RE: Multi version Support - PureTryOut - 01-15-2016

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.


RE: Multi version Support - xoft - 01-15-2016

There's a plugin for that: https://github.com/madmaxoft/SingleClientVersion


RE: Multi version Support - PureTryOut - 01-15-2016

Thanks! Exactly what I want!


RE: Multi version Support - EntryPoint - 01-15-2016

(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/releases/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.

If supported by the more previous version, 1.4, 1.5 would be great. Smile


RE: Multi version Support - xoft - 01-15-2016

The 1.6EoS version, linked above, supports protocols from 1.2 to 1.7.


RE: Multi version Support - EntryPoint - 01-17-2016

(01-15-2016, 03:08 PM)xoft Wrote: The 1.6EoS version, linked above, supports protocols from 1.2 to 1.7.

I tryed this command

Code:
cd src
cmake . -DCMAKE_BUILD_TYPE=DEBUG && make

but it did not work

Code:
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

This is error log
Help me please..


RE: Multi version Support - worktycho - 01-17-2016

If you downloaded the release, then you also need to download the associated libs. The easiest way of doing it is to use gits submodule functionality with the actual git repo.


RE: Multi version Support - xoft - 01-18-2016

You shouldn't be doing "cd src" before calling cmake. It will still fail, but it will give you hints about what you should do (download additional libraries and unpack to specific folders).


RE: Multi version Support - worktycho - 01-18-2016

The 1.6EoS release won't as it predates the hints being added to the cmakelist.