Ir para conteúdo

Featured Replies

  • Respostas 316
  • Visualizações 102.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • r0bert0lol
    r0bert0lol

    Galera tópico atualizado, adicionei o banco de dados que eu estava utilizando.   Acabei de reinstalar o servidor para um colega, utilizei um Ubuntu 14.04 e tudo está funcionando 100 % ( A ún

  • TheOTXServer.exe

  • Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP.  

Posted Images

Postado

@kukas9 Sim, roda no windows também, mas recomendo o Linux

Meu Curso sobre Programação para OTServer

Programando OTServer

 

Peça o seu script! Entre agora mesmo no grupo

Developing

 

Conteúdos:

 

Discord: Belmont#7352

Não esqueça do REP+ :)     

Postado

Estou editando tem um tempo a base, porém to com um problema que não consigo solucionar.. No servidor o player não perde loot ao morrer, alguém sabe como ajustar?

  • Web Developper
  • Lua Script - begginer

 

Me chame no discord  :) 

Zanata.dev#2812

 

527733145_hail(1).gif.d50ab6835ad69daeea7a998ad6a5c3c1.gif

 

 

Postado

Opa meus queridos, estou tentando compilar essa Source porém não obtive sucesso, antes eu estava testando em windows porém desistir e passei para Ubuntu 18.04 LTS.

Porém continuo recebendo error e tendo problemas para compilar no momento eu estou recebendo o seguinte error.

 

➜  src (master) ✗ make
make  all-am
make[1]: Entering directory '/home/lhmd/testing/forgottenserver/src'
  CXX      otserv.o
otserv.cpp: In function ‘void otserv(StringVec, ServiceManager*)’:
otserv.cpp:613:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->p, g_config.getString(ConfigManager::RSA_PRIME1).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:614:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->q, g_config.getString(ConfigManager::RSA_PRIME2).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:615:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->d, g_config.getString(ConfigManager::RSA_PRIVATE).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:616:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->n, g_config.getString(ConfigManager::RSA_MODULUS).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:617:18: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
  BN_dec2bn(&g_RSA->e, g_config.getString(ConfigManager::RSA_PUBLIC).c_str());
                  ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:627:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:627:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmp1, g_RSA->d, r1, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:628:15: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
               ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
In file included from /usr/include/openssl/asn1.h:23:0,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
otserv.cpp:628:28: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod(g_RSA->dmq1, g_RSA->d, r2, ctx);
                            ^
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:630:23: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                       ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:630:36: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                    ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:630:46: error: invalid use of incomplete type ‘RSA {aka struct rsa_st}’
   BN_mod_inverse(g_RSA->iqmp, g_RSA->q, g_RSA->p, ctx);
                                              ^~
In file included from /usr/include/openssl/crypto.h:25:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/asn1.h:16,
                 from /usr/include/openssl/rsa.h:16,
                 from otserv.cpp:44:
/usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
otserv.cpp:687:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(result = db->storeQuery(query.str()))
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
otserv.cpp:697:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(result_ = db->storeQuery(query_playeritems.str()))
        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
otserv.cpp:716:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(result_ = db->storeQuery(query_playerdepotitems.str()))
        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
otserv.cpp:735:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     if(result_ = db->storeQuery(query_tileitems.str()))
        ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:567: recipe for target 'otserv.o' failed
make[1]: *** [otserv.o] Error 1
make[1]: Leaving directory '/home/lhmd/testing/forgottenserver/src'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2

Alguma alma bondosa poderia me ajudar a compilar essa source? ... tou afim de brincar um pouco e aprender um pouco mais sobre a parte de codigo em C++ do tibia.

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.1k
  • Posts 512.5k

Informação Importante

Confirmação de Termo