Coder Social home page Coder Social logo

dngulin / ttyhlauncher Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 1.27 MB

Open source implementation of the old ttyh.ru minecraft launcher under the GNU GPL version 3.

Home Page: https://ttyh.ru/

License: GNU General Public License v3.0

C++ 95.11% Shell 0.88% CMake 3.61% Dockerfile 0.40%

ttyhlauncher's People

Contributors

betrok avatar dngulin avatar li-gru avatar pinkbyte avatar weqqr avatar xrevan86 avatar zaitsevyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ttyhlauncher's Issues

Со старым libzip 0.9 не собирается

Хотите - исправляйте, не хотите, не исправляйте и закрывайте Issue. Собирал текущий branch (2.0.1, как я понял, хотя у XRevan86 в OBS уже 2.0.2). Вот лог сборки:

[ 77%] Building CXX object src/CMakeFiles/ttyhlauncher.dir/utils/zip.cpp.o
cd /usr/src/packages/BUILD/ttyhlauncher-master/build/src && /usr/bin/c++  -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -I/usr/src/packages/BUILD/ttyhlauncher-master/build/src -I/usr/src/packages/BUILD/ttyhlauncher-master/src -I/usr/src/packages/BUILD/ttyhlauncher-master/build/src/ttyhlauncher_autogen/include -I/usr/src/packages/BUILD/ttyhlauncher-master/build -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtConcurrent  -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DNDEBUG -O2 -g -DNDEBUG   -Wall -Wpedantic -fPIC -std=c++11 -o CMakeFiles/ttyhlauncher.dir/utils/zip.cpp.o -c /usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp: In function 'bool Ttyh::Utils::Zip::unzipDir(const QString&, const QString&, const LogFunc&)':
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:63:38: error: 'ZIP_RDONLY' was not declared in this scope
     auto openFlags = ZIP_CHECKCONS | ZIP_RDONLY;
                                      ^
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:71:67: error: 'zip_get_num_entries' was not declared in this scope
     int entryCount = zip_get_num_entries(archive, ZIP_FL_UNCHANGED);
                                                                   ^
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:76:45: error: 'ZIP_FL_ENC_GUESS' was not declared in this scope
         auto statFlags = ZIP_FL_UNCHANGED | ZIP_FL_ENC_GUESS;
                                             ^
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:78:34: error: 'ZIP_STAT_NAME' was not declared in this scope
             auto statDataMask = (ZIP_STAT_NAME | ZIP_STAT_SIZE);
                                  ^
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:78:50: error: 'ZIP_STAT_SIZE' was not declared in this scope
             auto statDataMask = (ZIP_STAT_NAME | ZIP_STAT_SIZE);
                                                  ^
/usr/src/packages/BUILD/ttyhlauncher-master/src/utils/zip.cpp:79:28: error: 'struct zip_stat' has no member named 'valid'
             if ((entryStat.valid & statDataMask) != statDataMask)
                            ^
make[2]: *** [src/CMakeFiles/ttyhlauncher.dir/utils/zip.cpp.o] Error 1

wrong on build

./release\util.o:util.cpp:(.text+0x6a7): undefined reference to _imp___ZN8QuaCrc32C1Ev' ./release\util.o:util.cpp:(.text+0x6bd): undefined reference to _imp___ZN8QuaCrc329calculateERK10QByteArray'
./release\util.o:util.cpp:(.text+0xbfa): undefined reference to _imp___ZN6QuaZipC1ERK7QString' ./release\util.o:util.cpp:(.text+0xc15): undefined reference to _imp___ZN6QuaZip4openENS_4ModeEP19zlib_filefunc_def_s'
./release\util.o:util.cpp:(.text+0xc37): undefined reference to _imp___ZN10QuaZipFileC1EP6QuaZipP7QObject' ./release\util.o:util.cpp:(.text+0xc43): undefined reference to _imp___ZN6QuaZip13goToFirstFileEv'
Makefile.Release:213: recipe for target 'release\ttyhlauncher.exe' failed
./release\util.o:util.cpp:(.text+0xef5): undefined reference to _imp___ZN10QuaZipFile5closeEv' ./release\util.o:util.cpp:(.text+0xf17): undefined reference to _imp___ZN6QuaZip12goToNextFileEv'
./release\util.o:util.cpp:(.text+0xf2f): undefined reference to _imp___ZN10QuaZipFile4openE6QFlagsIN9QIODevice12OpenModeFlagEE' ./release\util.o:util.cpp:(.text+0xf40): undefined reference to _imp___ZNK6QuaZip18getCurrentFileNameEv'
./release\util.o:util.cpp:(.text+0x1215): undefined reference to _imp___ZN6QuaZip5closeEv' ./release\util.o:util.cpp:(.text+0x121e): undefined reference to _imp___ZN10QuaZipFileD1Ev'
./release\util.o:util.cpp:(.text+0x1227): undefined reference to _imp___ZN6QuaZipD1Ev' ./release\util.o:util.cpp:(.text+0x12b8): undefined reference to _imp___ZN10QuaZipFileD1Ev'
./release\util.o:util.cpp:(.text+0x12c1): undefined reference to _imp___ZN6QuaZipD1Ev' E:/Qt/Qt5.5.0/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: ./release\util.o: bad reloc address 0x13 in section .eh_frame'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [release\ttyhlauncher.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/MonkeyGaga/Desktop/build-ttyhlauncher-Desktop_Qt_5_5_0_MinGW_32bit-Release'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2

please help

Не работает в CentOS 5

Я подготовил среду сборки в CentOS 5 по этому руководству: http://qt-project.org/forums/viewthread/38354 Скомпилировал Qt 5, quazip и ttyhlauncher. В итоге лаунчер работает как в CentOS 5, так и в любом другом дистрибутиве Linux. Но из-за ошибки "Error: JSON: invalid UTF8 string at 50" не удаётся залогиниться.

Вот лог запуска:

[zenitur@localhost ttyhlauncher]$ ./run_game.sh
QXcbConnection: Failed to initialize XRandr
(17:06:53) Logger >> 21.01.15 ttyhlauncher-0.9 started.
(17:06:54) Settings >> Updating local clisent list...
(17:06:54) Util >> Make GET: http://store.ttyh.ru/prefixes.json
(17:06:54) Settings >> OK. Saving local copy...
(17:06:54) Settings >> Loading local client list...
(17:06:54) Settings >> Error: JSON: invalid UTF8 string at 50
(17:06:54) Settings >> Updating local java keystore...
(17:06:54) Util >> Make GET: http://store.ttyh.ru/store.ks
(17:06:54) Settings >> OK. Saving local copy...
(17:06:55) LauncherWindow >> Launcher window opened

Вот сама сборка: https://yadi.sk/d/NCHkp4i0dspvu

Что пробовал: сборку с ICU, с SSL 1.0.1 вместо 0.9.8, и запускать бинарник в современном дистрибутиве Linux.

Offline mode is useless

In short: offline mode requires Internet connection or it would not work.

Symptoms: long loading to main window(around 3 minutes, maybe more) and constant 'client needs updating' messages after click 'Login'. Which, when hit 'Update' will obviously fail.

Test setup is easy - either unplug Internet link or interrupt connection to master server in other way before launcher start(for example - blackhole route to master server or DNS if you want go wild)

Reproduced on 1.1.0 and current master(90e4b28)

Can't login server

I success login on launcher
But when I enter minecraft server
Authentication servers are down. Please try again later, sorry!
Is it a SSL problem??
(my authlib had already change URL)
Please help
Thanks a lot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.