Jump to content

CjMt2

Member
  • Posts

    64
  • Joined

  • Last visited

  • Feedback

    0%

About CjMt2

Informations

  • Gender
    Male

Recent Profile Visitors

2300 profile views

CjMt2's Achievements

Enthusiast

Enthusiast (6/16)

  • Dedicated
  • Conversation Starter
  • Reacting Well
  • First Post
  • Collaborator

Recent Badges

27

Reputation

  1. When I compile games I get: ld: error: ../../../extern/lib/libIL.a(altivec_common.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(altivec_typeconversion.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_alloc.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_bits.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_blp.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_bmp.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_convbuff.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_convert.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_cut.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_dcx.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_dds-save.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_dds.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_devil.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_dicom.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_doom.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_dpx.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_endian.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_error.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_exr.cpp.o) is incompatible with /usr/lib/crt1.o ld: error: ../../../extern/lib/libIL.a(il_fastconv.cpp.o) is incompatible with /usr/lib/crt1.o I'm looking for libIL.a compiled on FreeBSD 64bit, thanks in advance I mention that DevIL-1.8.0.tar.gz fails to compile and with pkg and from ports I installed graphics/devil as a favor because I still don't have libIL.a. # uname -a FreeBSD cjmt2.go.ro 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 Thank you
  2. Inspired by this community I decided to create a vdi with the latest version of FreeBSD (14.1) and all the packages needed to start a server and compile the source. FreeBSD user: root FreeBSD root password: metin2dev Please use this account for ssh access on the virtual machine. This user metin2dev is part of the wheel group so type su in the console and when asked for your password simply type metin2dev and voila you are root. THIS IS A HUGE SECURITY RISK FreeBSD user: metin2dev FreeBSD metin2dev password: metin2dev Alternatively, you can add the metin2dev user ALL=(ALL) ALL with visudo and sudo will also work. MariaDB user MariaDB password root metin2dev metin2dev metin2dev pma metin2dev This virtual machine is configured with SSL with my subdomain and my email address, you will need to configure your virtual machine with your data if you want httpS to work (S is intended) Please make sure you have a valid domain or subdomain and a valid email address before you can place this order: And don't forget to change your_domain.com with your domain! certbot certonly --webroot -w /usr/local/www/apache24/data -d your_domain.com Then edit the following filess with your data and SSL will work for you too: /usr/local/etc/apache24/httpd.conf /usr/local/etc/apache24/extra/httpd-ssl.conf Don't forget to visit [Hidden Content] after you boot the vdi image. I used [40250] Reference Serverfile + Client + Src [15 Available Languages] from [Hidden Content] The source is the original one, it is NOT compiled. The site is Geria2 also from here, it is not configured. This content is purely educational and is not recommended for use for other purposes. # uname -a FreeBSD metin2dev 14.1-RELEASE-p5 FreeBSD 14.1-RELEASE-p5 GENERIC amd64 # clang -v FreeBSD clang version 18.1.5 ([Hidden Content] llvmorg-18.1.5-0-g617a15a9eac9) Target: x86_64-unknown-freebsd14.1 Thread model: posix InstalledDir: /usr/bin # pkg info apache24-2.4.62 Version 2.4.x of Apache web server apr-1.7.3.1.6.3_1 Apache Portability Library augeas-1.14.0_2 Configuration editing tool bash-5.2.37 GNU Project's Bourne Again SHell binutils-2.43.1,1 GNU binary tools boost-all-1.85.0 The "meta-port" for boost libraries boost-docs-1.85.0 Documentation for libraries from boost.org boost-jam-1.85.0 Build tool from the boost.org boost-libs-1.85.0 Free portable C++ libraries (without Boost.Python) brotli-1.1.0,1 Generic-purpose lossless compression algorithm ccache-3.7.12_7 Tool to minimize the compile time of C/C++ programs compat10x-amd64-10.4.1004000.20181014 Convenience package to install the compat10x libraries compat5x-amd64-5.4.0.8.1_1 Convenience package to install the compat5x libraries compat6x-amd64-6.4.604000.200810_3 Convenience package to install the compat6x libraries compat7x-amd64-7.4.704000.201310.1 Convenience package to install the compat7x libraries compat8x-amd64-8.4.804000.20151116 Convenience package to install the compat8x libraries compat9x-amd64-9.3.903000.20170608 Convenience package to install the compat9x libraries cryptopp-8.9.0 Free C++ class library of Cryptographic Primitives curl-8.10.1 Command line tool and library for transferring data with URLs db18-18.1.40 Oracle Berkeley DB, Release 18.1 dbus-1.14.10_5,1 Message bus system for inter-application communication devil-1.8.0_5,1 Cross-platform image library expat-2.6.3 XML 1.0 parser written in C fontconfig-2.15.0_3,1 XML-based font configuration API for X Windows freetype2-2.13.3 Free and portable TrueType font rendering engine galera26-26.4.16_3 Synchronous multi-master replication engine gcc-13_5 Meta-port for the default version of the GNU Compiler Collection gcc10-10.5.0_1 GNU Compiler Collection 10 gcc13-13.3.0 GNU Compiler Collection 13 gdb-15.1 GNU Project Debugger gdbm-1.24 GNU database manager gettext-runtime-0.22.5 GNU gettext runtime libraries and programs giflib-5.2.2 Tools and library routines for working with GIF images gmake-4.4.1 GNU version of 'make' utility gmp-6.3.0 Free library for arbitrary precision arithmetic gnupg-2.4.5_1 Complete and free PGP implementation gnutls-3.8.7.1 GNU Transport Layer Security library googletest-1.15.2 Framework for writing C++ tests on a variety of platforms icu-74.2_1,1 International Components for Unicode (from IBM) indexinfo-0.3.1 Utility to regenerate the GNU info page index jansson-2.14 C library for encoding, decoding, and manipulating JSON data jasper-4.2.4 Implementation of the codec specified in the JPEG-2000 standard jbigkit-2.1_3 Lossless compression for bi-level images such as scanned pages, faxes jpeg-turbo-3.0.4 SIMD-accelerated JPEG codec which replaces libjpeg lcms2-2.16_2 Accurate, fast, and small-footprint color management engine lerc-4.0.0 C++ library for Limited Error Raster Compression libICE-1.1.1,1 Inter Client Exchange library for X11 libSM-1.2.4,1 Session Management library for X11 libX11-1.8.9,1 X11 library libXau-1.0.11 Authentication Protocol library for X11 libXcursor-1.2.2 X client-side cursor loading library libXdmcp-1.1.5 X Display Manager Control Protocol library libXext-1.3.6,1 X11 Extension library libXfixes-6.0.1 X Fixes extension library libXmu-1.1.4,1 X Miscellaneous Utilities libraries libXrandr-1.5.4 X Resize and Rotate extension library libXrender-0.9.11 X Render extension library libXt-1.3.0,1 X Toolkit library libargon2-20190702_1 Memory hard password hashing program and library libassuan-3.0.1 IPC library used by GnuPG and gpgme libdeflate-1.22 Fast, whole-buffer DEFLATE-based compression library libedit-3.1.20240808,1 Command line editor library libffi-3.4.6 Foreign Function Interface libfmt-10.2.1 Formatting library for C++ libgcrypt-1.11.0 General purpose cryptographic library based on the code from GnuPG libgd-2.3.3_13,1 Graphics library for fast creation of images libgpg-error-1.50 Common error values for all GnuPG components libiconv-1.17_1 Character set conversion library libidn2-2.3.7 Implementation of IDNA2008 internationalized domain names libksba-1.6.7 Library to make X.509 certificates liblz4-1.10.0,1 LZ4 compression library, lossless and very fast libmng-2.0.3_2 Multiple-image Network Graphics (MNG) reference library libnghttp2-1.63.0 HTTP/2.0 C Library libpsl-0.21.5_1 C library to handle the Public Suffix List libssh2-1.11.0_1,3 Library implementing the SSH2 protocol libtasn1-4.19.0_1 ASN.1 structure parser library libunistring-1.2 Unicode string library libxcb-1.17.0 The X protocol C-language Binding (XCB) library libxml2-2.11.9 XML parser library for GNOME libzip-1.10.1 C library for reading, creating, and modifying ZIP archives llvm-15_1,1 Meta-port for the default version of the LLVM Toolchain llvm15-15.0.7_10 LLVM and Clang localedata-5.4_2 Legacy locale data for FreeBSD 6+ lua53-5.3.6_1 Powerful, efficient, lightweight, embeddable scripting language makedepend-1.0.9,1 Dependency generator for makefiles mariadb1011-client-10.11.9 Multithreaded SQL database (client) mariadb1011-server-10.11.9 Multithreaded SQL database (server) mpc-1.3.1_1 Library of complex numbers with arbitrarily high precision mpdecimal-4.0.0 C/C++ arbitrary precision decimal floating point libraries mpfr-4.2.1,1 Library for multiple-precision floating-point computations nettle-3.10_1 Low-level cryptographic library npth-1.7 New GNU Portable Threads oniguruma-6.9.9 Regular expressions library compatible with POSIX/GNU/Perl openssl-3.0.15_1,1 TLSv1.3 capable SSL and crypto library p11-kit-0.25.5 Library for loading and enumerating of PKCS#11 modules pcre2-10.43 Perl Compatible Regular Expressions library, version 2 perl5-5.36.3_2 Practical Extraction and Report Language php83-8.3.12 PHP Scripting Language (8.3.X branch) php83-bz2-8.3.12 The bz2 shared extension for php php83-ctype-8.3.12 The ctype shared extension for php php83-curl-8.3.12 The curl shared extension for php php83-fileinfo-8.3.12 The fileinfo shared extension for php php83-filter-8.3.12 The filter shared extension for php php83-gd-8.3.12 The gd shared extension for php php83-iconv-8.3.12 The iconv shared extension for php php83-mbstring-8.3.12 The mbstring shared extension for php php83-mysqli-8.3.12 The mysqli shared extension for php php83-pdo-8.3.12 The pdo shared extension for php php83-pdo_mysql-8.3.12 The pdo_mysql shared extension for php php83-pdo_sqlite-8.3.12 The pdo_sqlite shared extension for php php83-session-8.3.12 The session shared extension for php php83-sqlite3-8.3.12 The sqlite3 shared extension for php php83-xml-8.3.12 The xml shared extension for php php83-zip-8.3.12 The zip shared extension for php php83-zlib-8.3.12 The zlib shared extension for php pinentry-1.3.1 Collection of simple PIN or passphrase entry dialogs pinentry-curses-1.3.1 Curses version of the GnuPG password dialog pkg-1.21.3 Package manager png-1.6.44 Library for manipulating PNG images py311-acme-2.11.0,1 ACME protocol implementation in Python py311-certbot-2.11.0,1 Let's Encrypt client py311-certbot-apache-2.11.0 Apache plugin for Certbot py311-certifi-2024.8.30 Mozilla SSL certificates py311-cffi-1.17.1 Foreign Function Interface for Python calling C code py311-charset-normalizer-3.3.2_1 Real First Universal Charset Detector py311-configargparse-1.5.3_1 Drop-in replacement for argparse py311-configobj-5.0.9 Simple but powerful config file reader and writer py311-cryptography-42.0.8_3,1 Cryptographic recipes and primitives for Python developers py311-distro-1.9.0 Linux OS platform information API py311-idna-3.10 Internationalized Domain Names in Applications (IDNA) py311-josepy-1.14.0 JOSE protocol implementation in Python py311-openssl-24.1.0,1 Python interface to the OpenSSL library py311-parsedatetime-2.6 Python module for parsing 'human readable' date/time expressions py311-pycparser-2.22 C parser in Python py311-pyrfc3339-1.1_1 Generate and parse RFC 3339 timestamps py311-pysocks-1.7.1_1 Python SOCKS module py311-python-augeas-1.0.3 Pure python bindings for Augeas py311-pytz-2024.2,1 World Timezone Definitions for Python py311-requests-2.32.3 Python HTTP for Humans py311-setuptools-63.1.0_1 Python packages installer py311-six-1.16.0_1 Python 2 and 3 compatibility utilities py311-urllib3-1.26.20,1 HTTP library with thread-safe connection pooling, file post, and more python-3.11_3,2 "meta-port" for the default version of Python interpreter python2-2_3 Meta-port for the Python interpreter 2.7 python27-2.7.18_3 Interpreted object-oriented programming language python3-3_4 Meta-port for the Python interpreter 3.x python311-3.11.10 Interpreted object-oriented programming language readline-8.2.13_1 Library for editing command lines as they are typed rsync-3.3.0 Network file distribution/synchronization utility serf-1.3.10_1 Serf HTTP client library source-highlight-3.1.9_10 C/C++ and Java sources to HTML converter sqlite3-3.46.1,1 SQL database engine in a C library squish-1.15_1 Open source DXT compression library subversion-1.14.4 Version control system sudo-1.9.16p1 Allow others to run commands as root tiff-4.6.0 Tools and library routines for working with TIFF images unixODBC-2.3.12_1 ODBC library suite for Unix utf8proc-2.9.0 UTF-8 processing library virtualbox-ose-additions-6.1.50 VirtualBox additions for FreeBSD guests webp-1.4.0_1 Google WebP image format conversion tool xorgproto-2024.1 X Window System unified protocol definitions xrandr-1.5.2_1 Primitive command line interface to the RandR extension xxhash-0.8.2_1 Extremely fast non-cryptographic hash algorithm zip-3.0_2 Create/update ZIP files compatible with PKZIP zstd-1.5.6 Fast real-time compression algorithm The game server is starting, I checked/modified each channel separately. If there is demand and interest in developing this initiative, I can keep this virtual machine online and provide ssh access upon request. Download: [Hidden Content] | password: 651433
  3. mysql -u root -p SELECT user FROM mysql.user; SELECT user,host FROM mysql.user; SELECT * FROM mysql.user; desc mysql.user; select user,host from mysql.user; SELECT current_user(); SELECT user,host, command FROM information_schema.processlist; First, let's clarify if the user aincradfiles@localhost exists and can authenticate in the Mysql server If you have the user aincradfiles@localhost then give the command: mysql -u aincradfiles -p If it authenticates, then the problem is on the path between bsd and the client you are connecting with.
  4. I removed do_guildskillup because it was already higher
  5. You can use free dns services like no-ip or similar, but your external IP appears with a simple ping regardless of the operating system in which the console opens
  6. You can unnecessarily complicate things with LogMeInHamachi, but it is better to connect the virtual machine in Bridge mode with the router to which you are connected. netstat and sockstat and ping are your friends in this case, see also execution permission/link to db and game
  7. I played a bit with vdi_4250_2014 posted right here on this forum. The server currently runs on 64bit, the source needs to be compiled outside of amd64. Basically, it's a long-standing game experience, the client has 15 languages available, it can be a starting point.
  8. ACMD(do_event_flag); ACMD(do_otomatikav_komut1); ACMD(do_otomatikav_komut2); { "gskillup", do_guildskillup, 0, POS_DEAD, GM_PLAYER }, { "otomatikav_komut1", do_otomatikav_komut1, 0, POS_DEAD, GM_PLAYER }, { "otomatikav_komut2", do_otomatikav_komut2, 0, POS_DEAD, GM_PLAYER }, and in cmd_general.cpp ACMD(do_guildskillup) ACMD(do_otomatikav_komut1) { ch->AggregateMonster(); } ACMD(do_otomatikav_komut2) { if (ch->CountSpecifyItem(20171) == 0 && ch->CountSpecifyItem(20172) == 0) { ch->ChatPacket(CHAT_TYPE_INFO, "|cFF00FF00|H|h[Sistem] : No Items Required to Run Auto Hunt"); return; } ch->ChatPacket(CHAT_TYPE_COMMAND, "OtomatikAvWindow"); }
  9. The following error occurs: # gmake default linking ../game.... ld: error: undefined symbol: do_otomatikav_komut1(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) ld: error: undefined symbol: do_otomatikav_komut2(CHARACTER*, char const*, int, int) >>> referenced by cmd.cpp >>> OBJDIR/cmd.o:(cmd_info) clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [Makefile:111: ../game] Error 1 In cmd.cpp I put: // otomatikav ACMD(do_event_flag); ACMD(do_otomatikav_komut1); ACMD(do_otomatikav_komut2); // end otomatikav before struct command_info cmd_info[] = and I put it below // otomatikav { "gskillup", do_guildskillup, 0,POS_DEAD, GM_PLAYER}, { "otomatikav_komut1", do_otomatikav_komut1, 0, POS_DEAD,GM_PLAYER}, { "otomatikav_komut2", do_otomatikav_komut2, 0, POS_DEAD,GM_PLAYER}, // end otomatikav above at { "\n", NULL, 0, POS_DEAD, GM_IMPLEMENTOR } What should I do in your opinion?
  10. Call to undefined function mysql_query()
  11. My problem is: $ /usr/local/bin/gmake compiling ani.cpp ani.cpp: In function 'DWORD ani_attack_speed(LPCHARACTER)': ani.cpp:353:32: error: invalid use of incomplete type 'class CItem' 353 | if (ITEM_WEAPON != item->GetType()) | ^~ In file included from stdafx.h:56, from ani.cpp:3: typedef.h:35:7: note: forward declaration of 'class CItem' 35 | class CItem; | ^~~~~ ani.cpp:357:26: error: invalid use of incomplete type 'class CItem' 357 | int weapon = item->GetSubType(); | ^~ typedef.h:35:7: note: forward declaration of 'class CItem' 35 | class CItem; | ^~~~~ ani.cpp: In function 'DWORD ani_combo_speed(LPCHARACTER, BYTE)': ani.cpp:372:57: error: invalid use of incomplete type 'class CItem' 372 | return s_ANI.attack_speed(ch->GetRaceNum(), item->GetSubType(), combo, ch->IsRiding()); | ^~ typedef.h:35:7: note: forward declaration of 'class CItem' 35 | class CItem; | ^~~~~ and in ani.cpp is DWORD ani_attack_speed(LPCHARACTER ch) { DWORD speed = 1000; if (NULL == ch) return speed; LPITEM item = ch->GetWear(WEAR_WEAPON); if (NULL == item) return speed; if (ITEM_WEAPON != item->GetType()) return speed; int race = ch->GetRaceNum(); int weapon = item->GetSubType(); if (weapon == WEAPON_TWO_HANDED) weapon = WEAPON_SWORD; return s_ANI.attack_speed(race, weapon); } I use gcc12 $ gmake -version GNU Make 4.4.1 Built for amd64-portbld-freebsd14.1 Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <[Hidden Content]; This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. I have to say that on the i386, the virtual machine that came with the source, I think martysama57, these ffiles compile beautifully, they don't even display any errors or warnings. Moreover, on amd64 without compat_x and libs32 installed I only receive linking ../game_r41029 /usr/local/bin/ld: skipping incompatible /usr/lib/libmd.so when searching for -lmd /usr/local/bin/ld: skipping incompatible /usr/lib/libmd.a when searching for -lmd /usr/local/bin/ld: cannot find -lmd: No such file or directory /usr/local/bin/ld: skipping incompatible /usr/lib/libmd.so when searching for -lmd /usr/local/bin/ld: skipping incompatible /lib/libc++.so.1 when searching for /lib/libc++.so.1 /usr/local/bin/ld: cannot find /lib/libc++.so.1: file in wrong format /usr/local/bin/ld: skipping incompatible /lib/libc++.so.1 when searching for /lib/libc++.so.1 /usr/local/bin/ld: skipping incompatible /usr/lib/libcxxrt.so when searching for /usr/lib/libcxxrt.so /usr/local/bin/ld: cannot find /usr/lib/libcxxrt.so: file in wrong format /usr/local/bin/ld: skipping incompatible /usr/lib/libcxxrt.so when searching for /usr/lib/libcxxrt.so collect2: error: ld returned 1 exit status gmake: *** [Makefile:181: ../game_r41029] Error 1
  12. Thanks for the post, it's useful though pkg install mysql56-client-5.6.51.pkg mysql56-server-5.6.51.pkg it should be pkg install -y mysql56-client mysql56-server
  13. At the insistence of another person, I downloaded this virtual machine. For now I am updating FreeBSD as it is at an "end of life" version. I will go through versions 13.2 -> 13.3 -> 13.4 -> Production: 14.1. If it reaches 14.1 -RELEASE and ALL the source is compiled, I will install apache, php, and at least a registration page. This is the plan, too bad this virtual machine is not amd64.
  14. I used this virtual machine with 1024 MB ram but the compilation takes too long, with 2048MB ram it works decently and the compilation and the game server started if everything that can be updated is updated. Now I have the server and the sources on my real machine an older amd phenom2 with 4 gb ram, still in testing. I'm very frustrated by the 32 bit limitation to 4 gb ram and I really don't like to compile in the virtual machine and then move to the real server. Anyway on 32bit 4 gb ram is maximum.
  15. Sorry, but channels (game) not start because special_item_group.txt have mising objects. TEST_SERVER bypass this problem but in real server this is big problem. Not exist for example vnum 110120 on server or client.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.