Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Como compilar o OTClient no Debian 9, já estou tentando a um tempo, se preciso até pago pra quem me ajudar!

 

As dependencias estão instaladas:


root@tduarte:/home/leo# apt-get install -y build-essential cmake git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
git-core is already the newest version (1:2.11.0-3+deb9u2).
build-essential is already the newest version (12.3).
cmake is already the newest version (3.7.2-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@tduarte:/home/leo# apt-get install -y libboost-all-dev libphysfs-dev libssl-dev liblua5.1-0-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libssl-dev is already the newest version (1.1.0f-3+deb9u1).
libboost-all-dev is already the newest version (1.62.0.1).
libphysfs-dev is already the newest version (2.0.3-5).
liblua5.1-0-dev is already the newest version (5.1.5-8.1+b2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@tduarte:/home/leo# apt-get install -y libglew-dev libvorbis-dev libopenal-dev zlib1g-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libglew-dev is already the newest version (2.0.0-3+b1).
libvorbis-dev is already the newest version (1.3.5-4).
libopenal-dev is already the newest version (1:1.17.2-4+b2).
zlib1g-dev is already the newest version (1:1.2.8.dfsg-5).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


 

Mas quando eu tento compilar...


root@tduarte:/home/leo/Documents/otclient/build# make
[  1%] Building CXX object CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPublicKey(const string&, const string&)’:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:329:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->n, n.c_str());
                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:330:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->e, e.c_str());
                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
             ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                      ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:333:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_n) { BN_MONT_CTX_free(m_rsa->_method_mod_n); m_rsa->_method_mod_n = NULL; }
                                                                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘void Crypt::rsaSetPrivateKey(const string&, const string&, const string&)’:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:338:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->p, p.c_str());
                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:339:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->q, q.c_str());
                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:340:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     BN_dec2bn(&m_rsa->d, d.c_str());
                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
             ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                      ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:343:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_p) { BN_MONT_CTX_free(m_rsa->_method_mod_p); m_rsa->_method_mod_p = NULL; }
                                                                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:13: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
             ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:54: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
     if(m_rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                      ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:344:77: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
 _rsa->_method_mod_q) { BN_MONT_CTX_free(m_rsa->_method_mod_q); m_rsa->_method_mod_q = NULL; }
                                                                     ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp: In member function ‘bool Crypt::rsaCheckKey()’:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:355:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                     ^
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:355:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmp1, m_rsa->d, r1, ctx);
                                  ^
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:356:21: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                     ^
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:24:0,
                 from /usr/include/openssl/rsa.h:16,
                 from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:35:
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:356:34: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod(m_rsa->dmq1, m_rsa->d, r2, ctx);
                                  ^
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:29: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                             ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:42: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                          ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
/home/leo/Documents/otclient/src/framework/util/crypt.cpp:358:52: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
         BN_mod_inverse(m_rsa->iqmp, m_rsa->q, m_rsa->p, ctx);
                                                    ^~
In file included from /home/leo/Documents/otclient/src/framework/util/crypt.cpp:23:0:
/home/leo/Documents/otclient/src/framework/util/crypt.h:31:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
CMakeFiles/otclient.dir/build.make:110: recipe for target 'CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o' failed
make[2]: *** [CMakeFiles/otclient.dir/src/framework/util/crypt.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/otclient.dir/all' failed
make[1]: *** [CMakeFiles/otclient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
root@tduarte:/home/leo/Documents/otclient/build#

 

Link para o post
Compartilhar em outros sites
  • 9 months later...

bro vc precisa fazer um downgrade do openssl. provavelmente porque nossos processadores tem arquitetura 64bits (assim como tive problemas no ubuntu 18.04) e tambem porque eh necessario usar a versao do openssl em que foi escrito o otclient (Alguem poderia confirmar isso pra mim?)

 

cria um diretorio para fazer isso:

 

mkdir openssl-downgrade && cd openssl-downgrade

 

depois faz o download dessas arquivos .deb da referida versao do openssl, depois copiar todos os arquivos para a pasta do downgrade:

 

https://launchpad.net/~ubuntu-security-proposed/+archive/ubuntu/ppa/+build/15034998

 

depois instale estes pacotes com o comando:


 

sudo dpkg -i *.deb

 

fazendo isso vc volta o openssl para a versao 1.0.2g, que funciona com o OTCLIENT, assim como TFS 0.3/0.4

 

*credito ao usuario de outro forum chamdado Slawkens

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por OT Archive
      OTClient Redemption (mehah) para navegadores
      Em nome da OTServList Brasil e do OT Archive, adaptei o OTClient Redemption para rodar em navegadores web.
       
       
      Source: https://github.com/mehah/otclient/pull/894 Guia de compilação e uso: https://github.com/OTArchive/otclient/wiki/Guia-‐-OTClient-Redemption-Web Demo sem assets: https://demo.otarchive.com Versão modular: https://webclient.otarchive.com Vídeo demonstrando o client se conectando a um servidor:  


       
       
      Em caso de dúvidas sobre o client web ou sobre servidores com suporte a websockets, por favor poste aqui.
       
      Disponibilizou um client web para seu servidor? Me avise para que eu inclua seu OT na categoria Web na OTServList Brasil, com um botão "Jogar Agora".
    • Por maikon1993
      Fala galerinha de boas ?
       
      Preciso de ajuda, preciso de um macro para otcV8, que faça um item dar use no outro.
      Exemplo: Tem um item no servidor "spellswand" e ela é usada para vender item, dando "use" nela e no item que quer vender, queria deixar isso automático, se alguém poder me ajudar agradeço.
    • Por AddroJhonny
      Andei buscando de tudo que é forma para que o minimap fique com a imagem já liberada, assim como é no PxG. Porém, não encontrei em nenhum lugar alguma instrução. Comecei a mexer no arquivo minimap.lua e consegui avançar em algo.
       
      Meu script ficou assim:
      function updateCameraPosition() local player = g_game.getLocalPlayer() if not player then return end local pos = player:getPosition() if not pos then return end if not minimapWidget:recursiveGetChildById('posLabel') then local minimap = g_ui.createWidget('Minimap', minimapWidget) minimapWidget:setImageSource('/mapa/pisos/piso1') minimapWidget:setId('posLabel') minimapWidget:setOpacity(0.3) minimapWidget:centerInPosition(map, {x = 1015, y=1012, z=7}) end if not minimapWidget:isDragging() then if not fullmapView then minimapWidget:setCameraPosition(player:getPosition()) end minimapWidget:setCrossPosition(player:getPosition()) end minimapPos = minimapWindow:recursiveGetChildById('posLabel') minimapPos:setText('X:'..pos.x..' Y:'..pos.y..' Z:'..pos.z) if minimapWidget:getCameraPosition().z ~= 7 then local minimap = minimapWidget:recursiveGetChildById('posLabel') minimap:setVisible(false) minimapWidget:setColor('black') end end  
      Agora a imagem realmente está aparecendo no minimap com transparência... e quase perfeito. Mas ainda falta conseguir fazer ela acompanhar a posição do player no lugar de ficar aberto por inteiro.
       
      Segue como ficou:
       

       
      Alguém consegue ajudar a melhor maneira de fazer isso? Ou se fiz errado também...
       
      Ty.
    • Por brunei
      Olá galera bom dia , boa tarde e boa noite a todos !
      venho trazer meu primeiro projeto para contribuir com o TK , se trata de um modulo bastante util 
      como é minha primeira vez trazendo algo aqui , talvez eu esqueça de algo , sem enrolação vamos la.

      o modulo é um Shiny Ditto Memory para PDA ,o melhor é que nao precisa de source e é bem simples de instalar !

      1° ponto - Adicionar o memory sistem por TalkAction do @zipter98 (fiz algumas correçoes e melhorias no script para funcionar de uma melhor forma com o modulo)

      em Talkactions.xml adicione a tag :  <talkaction words="/memory;!memory" event="script" value="sdittomemory.lua"/>
       
      2° - Em talkaction/script ,crie um arquivo sdittomemory.lua e cole esse script : 
       
      em : local cd = 2 (em segundos) mude para o numero que desejar como cooldown para efetuar a troca .
      Para efetuar a troca o pokemon precisa esta com os Moves 100% ,caso contrario ira mandar uma mensagem de bloqueio.
       

      3° - em somefunctions.lua adicione essas funçoes !

       
      tem umas correções q eu mesmo fiz no ditto system e shiny ditto system ,e é necessario pro modulo funcionar 100% .

      4° - extraia e adicione o arquivo na pasta Modulos do seu OTClient !

      pronto , com isso vai funcionar o modulo 
       

       
      1 - no icone salvar , vc consegue salvar o pokemon que o ditto esta transformado em cada slot (pokebola) e reverter o ditto.
      2 - no icone check , vc consegue remover uma memoria ou checar quais memorias o seu ditto esta usando.
      3 - e no icone transformar vc transforma em cada memoria salva no s.ditto e tbm consegue reverter para virar um pokemon novo sem usar a memori etc..

      entao é isso galera , espero que seja util .

      CREDITOS :
      @zipter98 
      @usoparagames Eu
      game_memory.rar
    • Por Gryffindori
      Já procurei à fundo mas não achei nada resolvido sobre isso, sempre que vou compilar acaba dando o erro. Alguém tem alguma solução?
       
      Problema - > . C2139 'OTMLNode': an undefined class is not allowed as an argument to compiler intrinsic type trait '__is_convertible_to' (compiling source file ..\src\client\localplayer.cpp) type_traits 325
       

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo