Postado Setembro 16, 2020 4 anos @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: Spoiler • Cidade [8.60] • Cave de Boss • Widget Gesior • Autoloot 100% • [Old Client] Como Hookar Dll • Configurando VPS Windowns • [Solução] Código Caracteres Especiais Discord: Belmont#7352 Não esqueça do REP+
Postado Setembro 24, 2020 4 anos 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
Postado Setembro 29, 2020 4 anos 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.